Remove unused sysdeps/unix/sysv/direct.h.
[platform/upstream/glibc.git] / ChangeLog
1 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
2
3         * sysdeps/unix/sysv/direct.h: Remove file.
4
5         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
6         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
7         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
8         * sysdeps/unix/sysv/bits/signum.h: Likewise.
9         * sysdeps/unix/sysv/bits/stat.h: Likewise.
10         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
11         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
12
13         * sysdeps/unix/sysv/setrlimit.c: Remove file.
14
15         * sysdeps/unix/xmknod.c: Remove file.
16         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
17
18         * sysdeps/unix/sysv/settimeofday.c: Remove file.
19
20         * sysdeps/unix/sysv/i386/time.S: Remove file.
21
22         * sysdeps/unix/fxstat.c: Remove file.
23         * sysdeps/unix/xstat.c: Likewise.
24         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
25
26         * sysdeps/unix/sysv/sigaction.c: Remove file.
27
28         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
29         (sysdep_headers): Remove variable.
30         [termio.h not in sysdep_headers] (generated): Likewise.
31         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
32         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
33         * sysdeps/unix/sysv/tcdrain.c: Likewise.
34         * sysdeps/unix/sysv/tcflow.c: Likewise.
35         * sysdeps/unix/sysv/tcflush.c: Likewise.
36         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
37         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
38         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
39         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
40         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
41
42         * sysdeps/unix/siglist.c: Remove file.
43
44         * sysdeps/unix/getppid.S: Remove file.
45
46         * sysdeps/unix/mkdir.c: Remove file.
47         * sysdeps/unix/rmdir.c: Likewise.
48
49 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
50
51         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
52         ERR_MAX value.
53         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
54         errlist-compat value.
55
56 2012-04-18  David S. Miller  <davem@davemloft.net>
57
58         * sysdeps/generic/memcopy.h (reg_char): Delete.
59         * debug/strcat_chk.c: Use char, not reg_char.
60         * debug/strcpy_chk.c: Likewise.
61         * debug/strncat_chk.c: Likewise.
62         * debug/strncpy_chk.c: Likewise.
63         * string/memchr.c: Likewise.
64         * string/memrchr.c: Likewise.
65         * string/rawmemchr.c: Likewise.
66         * string/strcat.c: Likewise.
67         * string/strchr.c: Likewise.
68         * string/strchrnul.c: Likewise.
69         * string/strcmp.c: Likewise.
70         * string/strcpy.c: Likewise.
71         * string/strncat.c: Likewise.
72         * string/strncmp.c: Likewise.
73         * string/strncpy.c: Likewise.
74
75 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
76
77         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
78         __builtin_memcopy is called when src and dest ranges are known to not
79         overlap.
80
81 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
82
83         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
84         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
85         fwd_align_merge macro call.
86         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
87         bwd_align_merge macro call.
88         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
89
90 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
91
92         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
93         bwd_align_merge macros.
94         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
95         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
96         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
97
98 2012-04-18  David S. Miller  <davem@davemloft.net>
99
100         * sysdeps/sparc/sparc64/memcopy.h: Delete.
101
102 2012-04-18  Andreas Jaeger  <aj@suse.de>
103
104         [BZ# 6794]
105         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
106         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
107         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
108
109         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
110         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
111         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
112
113         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
114         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
115         Adjust for changed ldbl-128 files.
116
117         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
118         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
119         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
120
121 2012-04-17  David S. Miller  <davem@davemloft.net>
122
123         * sysdeps/sparc/sparc32/memcopy.h: Delete.
124
125 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
126
127         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
128         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
129         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
130         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
131         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
132         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
133
134 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
135
136         [BZ #6794]
137         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
138         * math/libm-test.inc: Add ilogb errno and exception tests.
139         * math/w_ilogb.c: New file: ilogb wrapper.
140         * math/w_ilogbf.c: New file: ilogbf wrapper.
141         * math/w_ilogbl.c: New file: ilogbl wrapper.
142         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
143         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
144         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
145         exception being thrown with 0.0 as argument.
146         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
147         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
148         exception being thrown with 0.0 as argument.
149         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
150         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
151         exception being thrown with 0.0 as argument.
152         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
153         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
154         exception being thrown with 0.0 as argument.
155         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
156         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
157         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
158         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
159         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
160         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
161         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
162         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
163         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
164
165 2012-04-17  Petr Baudis  <pasky@ucw.cz>
166
167         * include/sys/uio.h: Change __vector to __iovec to avoid clash
168         with altivec.
169
170 2012-04-16  Marek Polacek  <polacek@redhat.com>
171
172         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
173
174 2012-04-16  Marek Polacek  <polacek@redhat.com>
175
176         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
177         operands of fdivp instruction.
178
179 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
180
181         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
182         * elf/tst-auditmod3b.c: Likewise.
183         * elf/tst-auditmod4b.c: Likewise.
184         * elf/tst-auditmod5b.c: Likewise.
185         * elf/tst-auditmod6b.c: Likewise.
186         * elf/tst-auditmod6c.c: Likewise.
187         * elf/tst-auditmod7b.c: Likewise.
188         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
189         * sysdeps/x86_64/preconfigure.in: Likewise.
190         * sysdeps/x86_64/preconfigure: Regenerated.
191
192 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
193
194         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
195         __ILP32__.
196
197 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
198
199         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
200         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
201
202 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
203
204         [BZ #13973]
205         * locale/iso-639.def: Fix gl language name. Spotted by
206         Yaron Shahrabani.
207
208 2012-04-12  Roland McGrath  <roland@hack.frob.com>
209
210         [BZ #2074]
211         * libio/libio.h (__io_write_fn): Update comment.
212
213 2012-04-12  Petr Baudis  <pasky@ucw.cz>
214
215         [BZ #2074]
216         * stdio.texi (Hook Functions): The user provided writer function
217         is not allowed to return -1.
218
219 2012-04-11  David S. Miller  <davem@davemloft.net>
220
221         * sysdeps/sparc/fpu/libm-test-ulps: Update.
222
223 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
224
225         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
226         Add a leading slash to rtkaio.
227
228 2012-04-11  Jim Meyering  <meyering@redhat.com>
229
230         [BZ #11959]
231         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
232         It is not necessarily an error to ignore fwrite's return
233         value.  One can reliably use ferror to test for errors after
234         the fact.
235
236 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
237
238         * bits/types.h (__snseconds_t): New type.
239         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
240
241         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
242         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
243         (__SNSECONDS_T_TYPE): Likewise.
244         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
245         (__SNSECONDS_T_TYPE): Likewise.
246         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
247         (__SNSECONDS_T_TYPE): Likewise.
248
249 2012-04-10  Andreas Jaeger  <aj@suse.de>
250
251         [BZ #2636]
252         * manual/time.texi (Processor Time): Return type of times is
253         elapsed real time since an arbitrary point in the past.
254         (CPU Time): Move CLK_TCK from here...
255         (Processor Time): ...to here.  Correct description.
256         * manual/conf.texi (Constants for Sysconf): Correct description of
257         _SC_CLK_TCK.
258
259 2012-04-10  David S. Miller  <davem@davemloft.net>
260
261         [BZ #13967]
262         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
263         where the is a gap between DT_REL(A) and DT_JMPREL.
264
265 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
266
267         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
268         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
269         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
270
271 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
272
273         * elf/dl-support.c (_dl_inhibit_cache): New variable.
274         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
275         (dl_main): Handle --inhibit-cache.
276         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
277         _dl_inhibit_cache.
278         * elf/dl-load.c (_dl_map_object): Use it.
279         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
280
281 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
282
283         [BZ #13872]
284         * sysdeps/i386/fpu/e_powl.S (p78): New object.
285         (__ieee754_powl): Saturate large exponents rather than testing for
286         overflow of y*log2(x).
287         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
288         * math/libm-test.inc (pow_test): Do not permit spurious overflow
289         exceptions.
290
291         [BZ #11521]
292         * math/s_ctan.c: Include <float.h>.
293         (__ctan): Avoid internal overflow or cancellation in calculating
294         denominator.
295         * math/s_ctanf.c: Likewise.
296         * math/s_ctanl.c: Likewise.
297         * math/s_ctanh.c: Likewise.
298         * math/s_ctanhf.c: Likewise.
299         * math/s_ctanhl.c: Likewise.
300         * math/libm-test.inc (ctan_test): Add more tests.
301         (ctanh_test): Likewise.
302         * sysdeps/i386/fpu/libm-test-ulps: Update.
303         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
304
305 2012-04-09  Andreas Jaeger  <aj@suse.de>
306
307         [BZ #6894]
308         * manual/filesys.texi (Directory Entries): Mention that d_namlen
309         is an optional BSD extension.
310
311         [BZ #10254]
312         * manual/stdio.texi (Opening Streams): Document additional fopen
313         parameters.
314
315 2012-04-09  Roland McGrath  <roland@hack.frob.com>
316
317         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
318         %eax without telling the compiler.
319
320 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
321
322         [BZ # 13963]
323         * manual/install.texi: Use sourceware.org.
324
325 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
326
327         [BZ #13873]
328         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
329         (__ieee754_pow): Generate overflow and underflow using huge*huge
330         and tiny*tiny rather than just returning constant infinity or zero
331         for large exponents.
332         * math/libm-test.inc (pow_test): Require overflow exceptions for
333         applicable cases of large exponents.
334
335         [BZ #706]
336         * sysdeps/i386/fpu/e_pow.S (p10): New object.
337         (__ieee754_pow): Use iterative multiplication algorithm only for
338         integer exponents with absolute value below 1024.  Check for odd
339         integer exponents when using algorithm for real exponents.
340         * math/libm-test.inc (pow_test): Add more tests.
341         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
342
343 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
344
345         [BZ #13705]
346         * math/libm-test.inc (exp_test): Do not allow overflow exception
347         on underflow test.
348
349 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
350
351         [BZ #13705]
352         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
353         instead of __kernel_standard_f.
354
355 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
356
357         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
358         * sysdeps/x86_64/memset_chk.S: Likewise.
359
360 2012-04-08  Andreas Jaeger  <aj@suse.de>
361
362         [BZ #10153]
363         * manual/startup.texi (Environment Access): Describe return value
364         for putenv and setenv.
365
366         [BZ #6895]
367         * manual/filesys.texi (Directory Entries): Add description for
368         DT_LNK.
369
370         [BZ #6890]
371         * manual/filesys.texi (Directory Entries): Clarify that it's file
372         system not operating system in the description of DT_UNKNOWN.
373
374         [BZ #6578]
375         * manual/syslog.texi (closelog): Fix reference, it's openlog.
376
377 2012-04-08  Stephen Compall  <s11@member.fsf.org>
378
379         [BZ #6649]
380         * manual/llio.texi (Opening and Closing Files): Add cross
381         reference to explain mode argument.
382
383 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
384
385         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
386         * sysdeps/x86_64/memset_chk.S: Likewise.
387
388 2012-04-07  David S. Miller  <davem@davemloft.net>
389
390         * elf/elf.h (R_SPARC_WDISP10): Define.
391         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
392         R_SPARC_SIZE32.
393         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
394         R_SPARC_SIZE64 and R_SPARC_H34.
395
396 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
397
398         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
399         conditions and remove no longer applicable assertion.
400
401 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
402
403         * bits/byteswap.h: Include <features.h>.
404         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
405         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
406
407 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
408
409         * bits/byteswap.h (__bswap_16): Removed.
410         Include <bits/byteswap-16.h> to get __bswap_16.
411         * sysdeps/i386/bits/byteswap.h: Likewise.
412         * sysdeps/s390/bits/byteswap.h: Likewise.
413         * sysdeps/x86_64/bits/byteswap.h: Likewise.
414         * bits/byteswap-16.h: New file.
415         * sysdeps/i386/bits/byteswap-16.h: Likewise.
416         * sysdeps/s390/bits/byteswap-16.h: Likewise.
417         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
418         * string/Makefile (headers): Add bits/byteswap-16.h.
419
420 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
421
422         [BZ #13895]
423         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
424         extra indirection.
425         * nss/Makefile (tests-static, tests): Add tst-nss-static.
426         * nss/tst-nss-static.c: New.
427
428 2012-04-06  Robert Millan  <rmh@gnu.org>
429
430         [BZ #6486]
431         * manual/llio.texi (File Position Primitive): lseek
432         refers to WHENCE when it really means OFFSET.
433
434 2012-04-06  Andreas Jaeger  <aj@suse.de>
435
436         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
437         strncmp declarations.
438
439         * abilist/libc.abilist: Add __poll and __ppoll.
440
441 2012-04-05  David S. Miller  <davem@davemloft.net>
442
443         * scripts/check-local-headers.sh: Accept a host triplet in the
444         path matched by the exclude regexp.
445
446         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
447         definition.
448         * sysdeps/powerpc/powerpc32/dl-machine.h
449         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
450         * sysdeps/s390/s390-32/dl-machine.h
451         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
452         * sysdeps/sparc/sparc32/dl-machine.h
453         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
454         * sysdeps/sparc/sparc64/dl-machine.h
455         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
456
457         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
458         lazy binding.
459         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
460         undefined symbol errors.
461
462         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
463         DT_NEEDED entries.
464
465 2012-04-05  Michael Matz  <matz@suse.de>
466
467         [BZ #13592]
468         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
469
470 2012-04-05  Andreas Jaeger  <aj@suse.de>
471
472         [BZ #13908]
473         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
474         comment.
475
476 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
477
478         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
479         which ROUND is no valid rounding mode.
480
481 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
482
483         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
484         read again.
485         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
486
487 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
488
489         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
490         an exception using FPU order intentionally.
491
492 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
493
494         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
495         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
496         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
497         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
498
499 2012-04-05  Simon Josefsson  <simon@josefsson.org>
500
501         [BZ #12340]
502         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
503         EINVAL when BUFLEN is too smal.
504
505 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
506
507         [BZ #13553]
508         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
509         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
510
511 2012-04-03  Andreas Jaeger  <aj@suse.de>
512
513         [BZ #13938]
514         * manual/setjmp.texi (System V contexts): Fix sentence.
515
516         [BZ #13926]
517         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
518         New macro for this case.
519         [!__GNUC__] (__bswap_64): New inline function for this case.
520         * sysdeps/x86_64/bits/byteswap.h: Likewise.
521         * bits/byteswap.h: Likewise.
522         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
523         ull, guard with __GLIBC_HAVE_LONG_LONG.
524
525         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
526         __GLIBC_HAVE_LONG_LONG.
527
528         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
529         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
530
531 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
532
533         [BZ #13691]
534         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
535         inptr and inend, rather than using last_ch.
536
537 2012-04-02  David S. Miller  <davem@davemloft.net>
538
539         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
540         * stdio-common/printf-parse.h (read_int): Change return type to
541         'int', return -1 on INT_MAX overflow.
542         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
543         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
544         overflows INT_MAX.  Check for overflow of in-format-string precision
545         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
546         SIZE_MAX not INT_MAX for integer overflow test.
547         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
548         skip the construct in the format string but do not record anything.
549         * stdio-common/bug22.c: Adjust to test both width/prevision
550         INT_MAX overflow as well as total length INT_MAX overflow.  Check
551         explicitly for proper errno values.
552
553 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
554
555         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
556         CHAR_MAX.
557         * string/test-strcmp.c [! WIDE]: Likewise.
558         * time/tst-mktime2.c: Likewise for INT_MAX.
559         * string/test-string.h: #include <sys/param.h> for MIN.
560
561         * csu/init-first.c (__libc_init_first): Call __ctype_init.
562         * sysdeps/i386/init-first.c (init): Likewise.
563         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
564         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
565         * sysdeps/sh/init-first.c (init): Likewise.
566
567 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
568
569         * po/ru.po: Update from translation team.
570         * po/vi.po: Likewise.
571
572 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
573
574         * resolv/nss_dns/dns-host.c: Merge copyright years.
575
576 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
577
578         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
579         Optimize memcpy with prefetch if
580         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
581         src, dst pointers have unequal 16 byte alignments.
582
583 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
584
585         [BZ #13928]
586         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
587         from a CNAME entry and return the minimum ttl for the query.
588         (gaih_getanswer_slice): Likewise.
589
590 2012-03-30  Jeff Law  <law@redhat.com>
591
592         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
593         due to long keys.
594         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
595         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
596
597         * resolv/nss_dns/dns-host.c: Update copyright year.
598
599 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
600
601         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
602         requests to save a system call.  Fix check that all bytes are sent.
603
604         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
605         comments for sendmmsg.
606
607 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
608
609         [BZ #13691]
610         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
611         with only 1 character between 0x0041 and 0x01b0.
612         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
613         * wcsmbs/tst-mbsnrtowcs.c: New file.
614
615 2012-03-29  David S. Miller  <davem@davemloft.net>
616
617         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
618         small copies by hand.
619
620 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
621
622         [BZ #13761]
623         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
624         _nss_compat_initgroups_dyn): Fall back to malloc/free
625         for large group memberships.
626
627 2012-03-28  David S. Miller  <davem@davemloft.net>
628
629         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
630         that branches into memcpy.
631         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
632         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
633         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
634         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
635         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
636         bits.
637         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
638         implementation too.
639         * sysdeps/sparc/mempcpy.S: New file.
640
641         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
642         the IFUNC routine in the libc case.
643         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
644
645         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
646         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
647         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
648         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
649         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
650         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
651         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
652         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
653
654         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
655         loop to 256 bytes instead of 64 bytes and fix test signedness.
656
657         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
658         * sysdeps/sparc/sparc32/Makefile: rather than here...
659         * sysdeps/sparc/sparc64/Makefile: and here.
660
661 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
662
663         * malloc/mallocbug.c: Avoid warnings about unused variables.
664
665 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
666
667         [BZ #13760]
668         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
669         in the right place. Discard and retry query if response is
670         larger than input buffer size.
671
672 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
673
674         [BZ #369]
675         [BZ #2678]
676         [BZ #3866]
677         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
678         x for large integer exponent.
679         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
680         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
681         sign of result as needed afterwards.
682         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
683         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
684         result for underflowing pow the same as for overflow.
685         (__kernel_standard_l): Handle powl overflow and underflow here
686         rather than calling __kernel_standard.
687         * math/libm-test.inc (pow_test): Add more tests.
688
689         [BZ #3868]
690         [BZ #13879]
691         [BZ #13910]
692         [BZ #13911]
693         [BZ #13912]
694         [BZ #13913]
695         [BZ #13915]
696         [BZ #13916]
697         [BZ #13917]
698         [BZ #13918]
699         [BZ #13919]
700         [BZ #13920]
701         [BZ #13921]
702         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
703         * sysdeps/ieee754/k_standard.c: Include <float.h>.
704         (__kernel_standard_l): New function.
705         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
706         __kernel_standard.
707         * math/w_acosl.c (__acosl): Likewise.
708         * math/w_asinl.c (__asinl): Likewise.
709         * math/w_atan2l.c (__atan2l): Likewise.
710         * math/w_atanhl.c (__atanhl): Likewise.
711         * math/w_coshl.c (__coshl): Likewise.
712         * math/w_exp10l.c (__exp10l): Likewise.
713         * math/w_exp2l.c (__exp2l): Likewise.
714         * math/w_fmodl.c (__fmodl): Likewise.
715         * math/w_hypotl.c (__hypotl): Likewise.
716         * math/w_j0l.c (__j0l, __y0l): Likewise.
717         * math/w_j1l.c (__j1l, __y1l): Likewise.
718         * math/w_jnl.c (__jnl, __ynl): Likewise.
719         * math/w_lgammal.c (__lgammal): Likewise.
720         * math/w_log10l.c (__log10l): Likewise.
721         * math/w_log2l.c (__log2l): Likewise.
722         * math/w_logl.c (__logl): Likewise.
723         * math/w_powl.c (__powl): Likewise.
724         * math/w_remainderl.c (__remainderl): Likewise.
725         * math/w_scalbl.c (sysv_scalbl): Likewise.
726         * math/w_sinhl.c (__sinhl): Likewise.
727         * math/w_sqrtl.c (__sqrtl): Likewise.
728         * math/w_tgammal.c (__tgammal): Likewise.
729         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
730         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
731         * math/libm-test.inc (acos_test): Add more tests.
732         (acosh_test): Likewise.
733         (asin_test): Likewise.
734         (atanh_test): Likewise.
735         (exp_test): Likewise.
736         (exp10_test): Likewise.
737         (exp2_test): Likewise.
738         (expm1_test): Likewise.
739         (lgamma_test): Likewise.
740         (log_test): Likewise.
741         (log10_test): Likewise.
742         (log1p_test): Likewise.
743         (log2_test): Likewise.
744         (pow_test): Do not allow some spurious overflow exceptions.
745         (sqrt_test): Add more tests.
746         (tgamma_test): Likewise.
747         (y0_test): Likewise.
748         (y1_test): Likewise.
749         (yn_test): Likewise.
750
751 2012-03-27  Anton Blanchard  <anton@samba.org>
752
753         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
754         MAP_HUGETLB.
755         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
756         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
757         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
758
759 2012-03-27  David S. Miller  <davem@davemloft.net>
760
761         * conform/Makefile: Run run-conformtest.sh using $(BASH).
762
763         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
764         have-as-vis3 check.
765
766 2012-03-27  Andreas Jaeger  <aj@suse.de>
767
768         * sysdeps/x86_64/elf/configure.in: Moved to ...
769         * sysdeps/x86_64/configure.in: ... here.
770         * sysdeps/x86_64/elf/start.S: Moved to ...
771         * sysdeps/x86_64/start.S: ... here.
772         * sysdeps/x86_64/elf/configure: Delete.
773
774         * sysdeps/x86_64/configure.in: Merge contents from
775         sysdeps/i386/configure.in (without i686 check).
776
777         * sysdeps/i386/elf/Versions: Merge into ...
778         * sysdeps/i386/Versions: ... this.
779         * sysdeps/i386/elf/Versions: Delete file.
780         * sysdeps/i386/elf/start.S: Moved to ...
781         * sysdeps/i386/start.S: ...here.
782         * sysdeps/i386/elf/configure.in: Merge into...
783         * sysdeps/i386/configure.in: ...here.
784         * sysdeps/i386/elf/configure.in: Delete file.
785         * sysdeps/i386/elf/configure: Delete file.
786
787         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
788         * debug/backtracesyms.c: ... here.
789         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
790         * debug/backtracesymsfd.c: ... here.
791         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
792         * sysdeps/generic/ifunc-sel.h: ... here.
793
794         * sysdeps/unix/i386/start.c: Delete file.
795         * sysdeps/unix/sparc/start.c: Delete file.
796         * sysdeps/unix/start.c: Delete file.
797
798         * sysdeps/sh/elf/configure.in: Moved to ...
799         * sysdeps/sh/configure.in: ... here.
800         * sysdeps/sh/elf/start.S: Moved to ...
801         * sysdeps/sh/start.S: ... here.
802         * sysdeps/sh/elf/configure: Delete file.
803
804         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
805         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
806         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
807         * sysdeps/powerpc/powerpc64/entry.h: ... here.
808         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
809         * sysdeps/powerpc/powerpc64/start.S: here.
810         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
811         * sysdeps/powerpc/powerpc64/Makefile: ... this.
812         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
813         * sysdeps/powerpc/powerpc64/configure.in: ... this.
814         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
815
816         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
817         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
818         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
819         * sysdeps/powerpc/powerpc32/start.S: ... here.
820         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
821         * sysdeps/powerpc/powerpc32/configure.in: ... this.
822         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
823
824         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
825         * sysdeps/powerpc/ifunc-sel.h: ... here.
826         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
827         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
828
829         * sysdeps/sparc/elf/configure.in: Moved to ...
830         * sysdeps/sparc/configure.in: ... here.
831         * sysdeps/sparc/elf/configure: Delete file.
832         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
833         * sysdeps/sparc/sparc32/start.S: ... here.
834         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
835         * sysdeps/sparc/sparc64/start.S: ... here.
836         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
837         * sysdeps/sparc/sparc32/Makefile: ... this.
838         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
839         * sysdeps/sparc/sparc64/Makefile: ... this.
840
841         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
842         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
843         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
844         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
845         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
846         * sysdeps/s390/s390-32/setjmp.S: ... here.
847         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
848         * sysdeps/s390/s390-32/configure.in: ... here.
849         * sysdeps/s390/s390-32/elf/configure: Delete file.
850         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
851         * sysdeps/s390/s390-32/start.S: ... here.
852
853         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
854         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
855         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
856         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
857         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
858         * sysdeps/s390/s390-64/setjmp.S: ... here.
859         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
860         * sysdeps/s390/s390-64/configure.in: ... here
861         * sysdeps/s390/s390-64/elf/configure: Delete file.
862         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
863         * sysdeps/s390/s390-64/start.S: ... here.
864         * sysdeps/s390/s390-64/elf/configure: Delete.
865
866         * configure.in: Remove support for elf directories in sysdeps.
867
868         * configure: Regenerated.
869         * sysdeps/i386/configure: Regenerated.
870         * sysdeps/powerpc/powerpc32/configure: Regenerated.
871         * sysdeps/powerpc/powerpc64/configure: Regenerated.
872         * sysdeps/s390/s390-32/configure: Regenerated.
873         * sysdeps/s390/s390-64/configure: Regenerated.
874         * sysdeps/sh/configure: Regenerated.
875         * sysdeps/sparc/configure: Regenerated.
876         * sysdeps/x86_64/configure: Regenerated.
877
878 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
879
880         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
881
882         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
883         denormal result into account.
884
885 2012-03-25  Roland McGrath  <roland@hack.frob.com>
886
887         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
888         Reported by Allan McRae <allan@archlinux.org>.
889
890 2012-03-23  Jeff Law  <law@redhat.com>
891
892         * nss/getnssent.c (__nss_getent): Fix typo.
893
894 2012-03-23  David S. Miller  <davem@davemloft.net>
895
896         * sysdeps/sparc/fpu/libm-test-ulps: Update.
897
898 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
899
900         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
901         to pad to uint64_t for each field.
902         (dl_tls_index): Replace unsigned long with uint64_t.
903
904 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
905         Paul Pluzhnikov  <ppluzhnikov@google.com>
906
907         [BZ #6528]
908         * grp/Makefile (otherlibs): Don't set it.
909         * inet/Makefile (otherlibs): Likewise.
910         * login/Makefile (otherlibs): Likewise.
911         * nscd/Makefile (otherlibs): Likewise.
912         * posix/Makefile (otherlibs): Likewise.
913         * pwd/Makefile (otherlibs): Likewise.
914         * rt/Makefile (otherlibs): Likewise.
915         * sunrpc/Makefile (otherlibs): Likewise.
916         * nss/Makefile (otherlibs): Likewise.
917         Add libnss_files to routines and static-only-routines.
918         ($(objpfx)getent): Remove rule.
919         * resolv/Makefile: Add libnss_dns and libresolv to routines and
920         static-only-routines.
921
922 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
923
924         [BZ #13892]
925         * math/s_cexp.c: Include <float.h>.
926         (__cexp): Handle exp result overflowing not necessarily
927         overflowing both real and imaginary parts of result.
928         * math/s_cexpf.c: Likewise.
929         * math/s_cexpl.c: Likewise.
930         * math/libm-test.inc (cexp_test): Add more tests.
931         * sysdeps/i386/fpu/libm-test-ulps: Update.
932         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
933
934 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
935
936         * include/link.h (ELFW): New macro.
937         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
938         Replace ELF64_R_TYPE with ELFW(R_TYPE).
939
940 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
941
942         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
943         with uint64_t.
944
945 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
946
947         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
948         declaration.
949         (struct La_x32_retval): Likewise.
950
951 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
952
953         * sysdeps/x86_64/preconfigure.in: New file.
954         * sysdeps/x86_64/preconfigure: New generated file.
955
956 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
957
958         [BZ #13824]
959         * math/e_exp2l.c: Include <float.h>.
960         (__ieee754_exp2l): Handle overflow and underflow cases
961         separately.  Only pass fractional part of argument to
962         __ieee754_expl.
963         * math/libm-test.inc (exp2_test): Add more tests.
964
965         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
966         negating x to take absolute value.
967         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
968         Likewise.
969         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
970         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
971         Likewise.
972         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
973         computing low part if x was negated.
974         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
975
976 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
977
978         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
979         la_x32_gnu_pltexit.
980         (pltexit): Cast int_retval to ptrdiff_t.
981         * elf/tst-auditmod3b.c: Likewise.
982         * elf/tst-auditmod4b.c: Likewise.
983         * elf/tst-auditmod5b.c: Likewise.
984         * elf/tst-auditmod6b.c: Likewise.
985         * elf/tst-auditmod6c.c: Likewise.
986         * elf/tst-auditmod7b.c: Likewise.
987
988         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
989         and x32_gnu_pltexit.
990
991         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
992         __ELF_NATIVE_CLASS.
993         (La_x32_regs): New macro.
994         (La_x32_retval): Likewise.
995         (la_x32_gnu_pltenter): New function prototype.
996         (la_x32_gnu_pltexit): Likewise.
997
998 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
999
1000         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
1001         exponent.
1002
1003         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1004
1005         * configure.in (libc_cv_cc_nofma): Check for option to disable
1006         generation of FMA instructions.
1007         * configure: Regenerate.
1008         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
1009         * sysdeps/ieee754/dbl-64/Makefile: New file.
1010         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
1011         Remove brandred-fma4.
1012         (CFLAGS-brandred-fma4.c): Remove.
1013         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
1014         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
1015         define.
1016         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
1017         define.
1018
1019 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
1020
1021         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
1022         LLONG_MAX != LONG_MAX.
1023         (_itoa_word): Use _ITOA_WORD_TYPE on value.
1024         (_fitoa_word): Likewise.
1025         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
1026         LLONG_MAX != LONG_MAX.
1027         * stdio-common/_itowa.h: Include <_itoa.h>.
1028         (_itowa_word): Use _ITOA_WORD_TYPE on value.
1029         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
1030         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
1031         only if not defined.
1032         (_ITOA_WORD_TYPE): Likewise.
1033         (_itoa_word): Use _ITOA_WORD_TYPE on value.
1034         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
1035
1036 2012-03-21  David S. Miller  <davem@davemloft.net>
1037
1038         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1039
1040 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
1041
1042         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
1043         of x86_64 when setting libc_cv_slibdir, libdir and
1044         libc_cv_localedir.
1045         * sysdeps/unix/sysv/linux/configure: Regenerated.
1046
1047 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
1048
1049         * manual/lang.texi (Old Varargs): Remove section.
1050         (How Variadic): Update menu.
1051         (va_start): Do not mention varargs.h.
1052
1053 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
1054             Joseph Myers  <joseph@codesourcery.com>
1055
1056         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
1057         link test.
1058         * configure: Regenerated.
1059
1060 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
1061
1062         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
1063         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
1064         conformtest.pl
1065
1066 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
1067
1068         * NOTES: Remove.
1069         * Makefile (files-for-dist): Remove NOTES.
1070         (NOTES): Remove rule.
1071         * README: Don't refer to NOTES.
1072         * manual/creature.texi: Don't include macros.texi.
1073         * manual/intro.texi (creature.texi): Remove comment referring to
1074         NOTES.
1075
1076         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
1077         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
1078         * configure: Regenerated.
1079         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
1080         LIBC_TRY_CC_OPTION.
1081         (libc_cv_as_i686): Likewise.
1082         (libc_cv_cc_avx): Likewise.
1083         (libc_cv_cc_sse2avx): Likewise.
1084         (libc_cv_cc_fma4): Likewise.
1085         (libc_cv_cc_novzeroupper): Likewise.
1086         * sysdeps/i386/configure: Regenerated.
1087
1088         [BZ #13883]
1089         * sysdeps/i386/fpu/s_cexp.S: Remove.
1090         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
1091         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
1092         * math/libm-test.inc (cexp_test): Add more tests.
1093         * sysdeps/i386/fpu/libm-test-ulps: Update.
1094         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1095
1096 2012-03-21  Allan McRae  <allan@archlinux.org>
1097
1098         * timezone/Makefile: Do not install iso3166.tab and zone.tab
1099
1100 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
1101
1102         [BZ #13871]
1103         * math/w_exp2.c: Do not include <float.h>.
1104         (o_threshold, u_threshold): Remove.
1105         (__exp2): Calculate result before checking finiteness and calling
1106         __kernel_standard.
1107         * math/w_exp2f.c: Likewise.
1108         * math/w_exp2l.c: Likewise.
1109         * math/libm-test.inc (exp2_test): Require overflow exception for
1110         1e6 input.
1111
1112         [BZ #3866]
1113         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
1114         range of signed 64-bit integers before using fistpll.  Remove
1115         checks for whether integers fit in mantissa bits.
1116         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
1117         the range of signed 32-bit integers before using fistpl.  Remove
1118         checks for whether integers fit in mantissa bits.
1119         * sysdeps/i386/fpu/e_powl.S (p64): New object.
1120         (__ieee754_powl): Test for y outside the range of signed 64-bit
1121         integers before using fistpll.  Reduce 64-bit values to 63-bit
1122         ones as needed.
1123         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
1124         divide-by-zero is raised for zero to large negative powers.
1125         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
1126         (__ieee754_powl): Test for y outside the range of signed 64-bit
1127         integers before using fistpll.  Reduce 64-bit values to 63-bit
1128         ones as needed.
1129         * math/libm-test.inc (pow_test): Add more tests.
1130
1131 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
1132
1133         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
1134         <stdio-common/_itoa.h>.
1135         * debug/segfault.c: Likewise.
1136         * elf/dl-cache.c: Likewise.
1137         * elf/dl-minimal.c: Likewise.
1138         * elf/dl-misc.c: Likewise.
1139         * elf/dl-sysdep.c: Likewise.
1140         * elf/dl-version.c: Likewise.
1141         * elf/rtld.c: Likewise.
1142         * hurd/hurdsock.c: Likewise.
1143         * hurd/lookup-retry.c: Likewise.
1144         * malloc/malloc.c: Likewise.
1145         * malloc/mtrace.c: Likewise.
1146         * nscd/nscd_getgr_r.c: Likewise.
1147         * nscd/nscd_getpw_r.c: Likewise.
1148         * nscd/nscd_getserv_r.c: Likewise.
1149         * posix/getopt_init.c: Likewise.
1150         * posix/wordexp.c: Likewise.
1151         * stdio-common/_itoa.c: Likewise.
1152         * stdio-common/printf_fphex.c: Likewise.
1153         * stdio-common/vfprintf.c: Likewise.
1154         * string/_strerror.c: Likewise.
1155         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
1156         * sysdeps/i386/i686/hp-timing.h: Likewise.
1157         * sysdeps/mach/_strerror.c: Likewise.
1158         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
1159         * sysdeps/mach/hurd/sethostid.c: Likewise.
1160         * sysdeps/mach/hurd/xmknodat.c: Likewise.
1161         * sysdeps/mach/xpg-strerror.c: Likewise.
1162         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
1163         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
1164         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
1165         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
1166         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
1167         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
1168         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
1169         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
1170         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
1171         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
1172         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
1173         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
1174         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
1175         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
1176         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
1177         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
1178         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
1179         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
1180         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
1181         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
1182         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
1183
1184         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
1185
1186         * stdio-common/_itoa.h: Moved to ...
1187         * sysdeps/generic/_itoa.h: Here.
1188
1189         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
1190
1191         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
1192         instead of "_itoa.h" and "_itowa.h".
1193         * stdio-common/vfprintf.: Likewise.
1194
1195 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
1196
1197         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
1198         <bits/wordsize.h>.
1199         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
1200         (__signbit): Likwise.
1201         (llrintf): Likwise.
1202         (llrint): Likwise.
1203
1204 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
1205
1206         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
1207         __WORDSIZE != 64.
1208
1209 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
1210
1211         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
1212         OVERFLOW_EXCEPTION_OK.
1213         * math/libm-test.inc ("Philosophy"): Update comment about
1214         exception testing.
1215         (OVERFLOW_EXCEPTION): Define.
1216         (OVERFLOW_EXCEPTION_OK): Likewise.
1217         (INVALID_EXCEPTION_OK): Renumber.
1218         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
1219         (IGNORE_ZERO_INF_SIGN): Likewise.
1220         (test_exceptions): Handle FE_OVERFLOW.
1221         (exp10_test): Expect overflow exceptions.
1222         (exp2_test): Likewise.
1223         (expm1_test): Likewise.
1224         (nextafter_test): Likewise.
1225         (pow_test): Likewise.
1226         (scalbn_test): Likewise.
1227         (scalbln_test): Likewise.
1228
1229 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
1230
1231         * sysdeps/x86_64/bits/atomic.h
1232         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
1233         64bit integer.
1234         (atomic_exchange_acq): Likewise.
1235         (__arch_exchange_and_add_body): Likewise.
1236         (__arch_add_body): Likewise.
1237         (atomic_add_negative): Likewise.
1238         (atomic_add_zero): Likewise.
1239
1240 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
1241
1242         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
1243         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
1244
1245 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
1246
1247         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
1248         Check __x86_64__ instead of __WORDSIZE.
1249
1250 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
1251
1252         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
1253
1254 2012-03-19  David S. Miller  <davem@davemloft.net>
1255
1256         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1257
1258         * sysdeps/sparc/fpu/fenv_private.h: New file.
1259         * sysdeps/sparc/fpu/math_private.h: Use it.
1260         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
1261         Remove.
1262         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
1263         (libc_feholdexcept_setroundl): Remove.
1264         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
1265         Remove.
1266         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
1267         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
1268
1269 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
1270
1271         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
1272         int64_t instead of long int.
1273         (INSERT_WORDS64): Likwise.
1274
1275 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
1276
1277         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
1278         _Unwind_GetCFA return to _Unwind_Ptr first.
1279
1280 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
1281
1282         [BZ #13629]
1283         * math/s_clog.c: Include <float.h>.
1284         (__clog): Scale large or subnormal inputs.
1285         * math/s_clogf.c: Likewise.
1286         * math/s_clogl.c: Likewise.
1287         * math/s_clog10.c: Include <float.h>.
1288         (M_LOG10_2): Define.
1289         (__clog10): Scale large or subnormal inputs.
1290         * math/s_clog10f.c: Likewise.
1291         * math/s_clog10l.c: Likewise.
1292         * math/libm-test.inc (clog_test): Add more tests.
1293         (clog10_test): Likewise.
1294         * sysdeps/i386/fpu/libm-test-ulps: Update.
1295         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1296
1297         [BZ #11451]
1298         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
1299         x and y.
1300         * math/libm-test.inc (atan2_test): Add another test.
1301
1302         * Makerules (common-objdir-compile): Remove.
1303         * sysdeps/unix/Makefile (config-generated): Do not add
1304         $(unix-generated) to variable.
1305         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
1306         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
1307         Remove rule.
1308         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
1309         Likewise.
1310         [generic bits/local_lim.h] (before-compile): Do not append to
1311         variable.
1312         [generic bits/local_lim.h] (common-generated): Likewise.
1313         [generic sys/param.h] (before-compile): Do not append to variable.
1314         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
1315         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
1316         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
1317         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
1318         include.
1319         [generic sys/param.h] (sys/param.h-includes): Remove variable.
1320         [generic sys/param.h] (sys/param.h-includes): Remove rule.
1321         [generic sys/param.h] ($(addprefix
1322         $(common-objpfx),$(sys/param.h-includes))): Likewise.
1323         [generic sys/param.h] (common-generated): Do not append to
1324         variable.
1325         [generic sys/param.h] (sysdep_headers): Likewise.
1326         [generic bits/errno.h] (before-compile): Do not append to
1327         variable.
1328         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
1329         rule.
1330         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
1331         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
1332         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
1333         [generic bits/errno.h] (common-generated): Do not append to
1334         variable.
1335         [generic bits/ioctls.h] (before-compile): Do not append to
1336         variable.
1337         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
1338         rule.
1339         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
1340         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
1341         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
1342         rule.
1343         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
1344         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
1345         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
1346         [generic bits/ioctls.h] (common-generated): Do not append to
1347         variable.
1348         [generic sys/syscall.h] (syscall.h): Remove variable.
1349         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
1350         rule.
1351         [generic sys/syscall.h] (before-compile): Do not append to
1352         variable.
1353         [generic sys/syscall.h] (common-generated): Likewise.
1354         * sysdeps/unix/errnos-tmpl.c: Remove file.
1355         * sysdeps/unix/errnos.awk: Likewise.
1356         * sysdeps/unix/ioctls-tmpl.c: Likewise.
1357         * sysdeps/unix/ioctls.awk: Likewise.
1358         * sysdeps/unix/mk-local_lim.c: Likewise.
1359         * sysdeps/unix/snarf-ioctls: Likewise.
1360
1361 2012-03-19  Richard Henderson  <rth@twiddle.net>
1362
1363         * sysdeps/i386/fpu/fenv_private.h: New file.
1364         * sysdeps/i386/fpu/math_private.h: Use it.
1365         (math_opt_barrier, math_force_eval): Remove.
1366         (libc_feholdexcept_setround_53bit): Remove.
1367         (libc_feupdateenv_53bit): Remove.
1368         * sysdeps/x86_64/fpu/math_private.h: Likewise.
1369         (math_opt_barrier, math_force_eval): Remove.
1370         (libc_feholdexcept): Remove.
1371         (libc_feholdexcept_setround): Remove.
1372         (libc_fetestexcept, libc_fesetenv): Remove.
1373         (libc_feupdateenv_test): Remove.
1374         (libc_feupdateenv, libc_feholdsetround): Remove.
1375         (libc_feresetround): Remove.
1376
1377         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
1378         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
1379
1380         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
1381         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
1382         (libc_feupdateenv_testl): New.
1383         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
1384         (libc_feupdateenv_testf): New.
1385         (libc_feupdateenv): Use libc_feupdateenv_test.
1386         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
1387         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
1388
1389         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
1390         (libc_feholdsetroundf, libc_feholdsetroundl): New.
1391         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
1392         (libc_feresetround_noex): New.
1393         (libc_feresetround_noexf): New.
1394         (libc_feresetround_noexl): New.
1395         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
1396         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
1397         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
1398         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
1399         SET_RESTORE_ROUND.
1400         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
1401         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
1402         (__cos): Likewise.
1403         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
1404         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
1405         SET_RESTORE_ROUND_NOEX.
1406         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
1407         SET_RESTORE_ROUND_NOEXF.
1408         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
1409         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
1410         (libc_feholdsetroundf): New.
1411         (libc_feresetround, libc_feresetroundf): New.
1412
1413         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
1414         (libc_feholdexcept_setround_53bit): Convert from macro to function.
1415         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
1416
1417         * sysdeps/generic/math_private.h: Include <fenv.h>.
1418         (default_libc_feholdexcept): New.
1419         (default_libc_feholdexcept_setround): New.
1420         (default_libc_fesetenv, default_libc_feupdateenv): New.
1421         (libc_feholdexcept): Only define if undefined.
1422         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
1423         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
1424         (libc_feholdexcept_setroundl): Likewise.
1425         (libc_feholdexcept_setround_53bit): Likewise.
1426         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
1427         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
1428         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
1429         (libc_feupdateenv_53bit): Likewise.
1430         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
1431         (libc_feholdexcept): Convert from macro to inline function.
1432         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
1433         (libc_fesetenv, libc_feupdateenv): Likewise.
1434
1435         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
1436         not previously defined.
1437         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
1438         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
1439         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
1440         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
1441         * sysdeps/ieee754/flt-32/math_private.h: New file.
1442         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
1443         math_private.h below SET_FLOAT_WORD.
1444         (__isnan, __isinf_ns, __finite): Remove.
1445         (__isnanf, __isinf_nsf, __finitef): Remove.
1446
1447 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
1448
1449         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1450
1451 2012-03-17  David S. Miller  <davem@davemloft.net>
1452
1453         [BZ #6471]
1454         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
1455         for 2.16.
1456
1457 2012-03-16  David S. Miller  <davem@davemloft.net>
1458
1459         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
1460         warnings.
1461
1462         [BZ #6471]
1463         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
1464         properly.
1465         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
1466         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
1467         sysdep_routines when subdir is sysvipc.
1468         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
1469         __getshmlba helper.
1470
1471         * sysdeps/sparc/fpu/libm-test/ulps: Update.
1472
1473 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
1474
1475         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
1476         [__LP64__].
1477
1478 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
1479
1480         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
1481         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
1482         (__lround): Renamed to ...
1483         (__llround): This.  Replace long int with long long int.
1484         Define lround functions as aliases of llround functions.
1485         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
1486
1487 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
1488
1489         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
1490         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
1491         adresses to uintptr_t.  Replace "long int" and "unsigned long
1492         int" with "greg_t" on va_arg.
1493
1494 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
1495
1496         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
1497         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
1498
1499         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
1500         Move e_machine check before EI_CLASS check.  Handle x32
1501         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
1502         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
1503         SKIP_EM_IA_64 and include
1504         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
1505
1506         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
1507         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
1508         (add_system_dir): New macro.
1509
1510         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
1511         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
1512
1513 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
1514
1515         [BZ #2551]
1516         [BZ #2552]
1517         [BZ #2553]
1518         [BZ #2554]
1519         [BZ #2562]
1520         [BZ #2563]
1521         [BZ #2565]
1522         [BZ #2566]
1523         [BZ #2576]
1524         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
1525         (y0): Likewise.
1526         * math/w_j0f.c (j0f): Likewise.
1527         (y0f): Likewise.
1528         * math/w_j0l.c (__j0l): Likewise.
1529         (__y0l): Likewise.
1530         * math/w_j1.c (j1): Likewise.
1531         (y1): Likewise.
1532         * math/w_j1f.c (j1f): Likewise.
1533         (y1f): Likewise.
1534         * math/w_j1l.c (__j1l): Likewise.
1535         (__y1l): Likewise.
1536         * math/w_jn.c (jn): Likewise.
1537         (yn): Likewise.
1538         * math/w_jnf.c (jnf): Likewise.
1539         (ynf): Likewise.
1540         * math/w_jnl.c (__jnl): Likewise.
1541         (__ynl): Likewise.
1542         * math/libm-test.inc (j0_test): Add more tests.
1543         (j1_test): Likewise.
1544         (jn_test): Likewise.  Add trailing semicolon to existing test.
1545         (y0_test): Likewise.
1546         (y1_test): Likewise.
1547         * sysdeps/i386/fpu/libm-test-ulps: Update.
1548         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1549
1550         [BZ #13851]
1551         [BZ #13854]
1552         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
1553         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
1554         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
1555         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
1556         (__tanl): Set errno for infinite argument.
1557         * sysdeps/i386/fpu/mptan.c: Remove.
1558         * sysdeps/i386/fpu/s_tan.S: Likewise.
1559         * sysdeps/i386/fpu/s_tanl.S: Likewise.
1560         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
1561         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
1562         * math/libm-test.inc (tan_test): Add more tests and enable more
1563         tests for double and long double.
1564         * sysdeps/i386/fpu/libm-test-ulps: Update.
1565         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1566
1567 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
1568
1569         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
1570         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
1571
1572 2012-03-16  Roland McGrath  <roland@hack.frob.com>
1573
1574         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
1575         * configure.in: Use it for both main tree and add-ons.
1576         * configure: Regenerated.
1577
1578 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
1579
1580         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
1581
1582 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
1583
1584         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
1585         in comment.
1586
1587         [BZ #13851]
1588         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
1589         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
1590         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
1591         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
1592         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
1593         infinite argument.
1594         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
1595         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
1596         != 0 for prec == 2.
1597         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
1598         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
1599         * sysdeps/i386/fpu/s_cosl.S: Likewise.
1600         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
1601         * sysdeps/i386/fpu/s_sinl.S: Likewise.
1602         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
1603         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
1604         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
1605         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
1606         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
1607         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
1608         * math/libm-test.inc (cos_test): Add more tests and enable more
1609         tests for long double.
1610         (sin_test): Likewise.
1611         (sincos_test): Likewise.
1612         * sysdeps/i386/fpu/libm-test-ulps: Update.
1613         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1614
1615 2012-03-16  David S. Miller  <davem@davemloft.net>
1616
1617         * sysdeps/sparc/fpu/math_private.h: New file.
1618
1619 2012-03-15  David S. Miller  <davem@davemloft.net>
1620
1621         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
1622         file.
1623         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
1624         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
1625         file.
1626         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
1627         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
1628         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
1629         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
1630         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
1631         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
1632         sysdep routines.
1633         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
1634
1635         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
1636         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
1637
1638         * sysdeps/sparc/sparc-ifunc.h: New file.
1639         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
1640         sparc-ifunc.h
1641         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
1642         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
1643         Likewise.
1644         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
1645         Likewise.
1646         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
1647         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
1648         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
1649         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
1650         Likewise.
1651         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
1652         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
1653         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
1654         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
1655         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
1656         Likewise.
1657         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
1658         Likewise.
1659         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
1660         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
1661         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
1662         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
1663         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
1664         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
1665         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
1666         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
1667         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
1668         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
1669         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
1670         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
1671         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
1672         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
1673         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
1674         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
1675         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
1676         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
1677         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
1678         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
1679         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
1680         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
1681         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
1682         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
1683
1684 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
1685
1686         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
1687         scaling.
1688         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1689
1690 2012-03-15  Andreas Jaeger  <aj@suse.de>
1691
1692         [BZ #13852]
1693         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
1694         ieee754/flt-32 implementation for sin, cos and sincos.
1695         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
1696         * sysdeps/i386/fpu/s_cosf.S: Likewise.
1697         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
1698         * sysdeps/i386/fpu/s_sinf.S: Likewise.
1699         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
1700         ieee754/flt-32 implementation for tan.
1701
1702         * math/libm-test.inc (cos_test): Enable some large input tests for
1703         float as well
1704         (sin_test): Likewise.
1705         (sincos_test): Likewise.
1706         (tan_test): Add tests for large input.
1707
1708         * sysdeps/i386/fpu/libm-test-ulps: Update.
1709
1710 2012-03-15  Andreas Jaeger  <aj@suse.de>
1711
1712         [BZ #13658]
1713         * math/libm-test.inc (cos_test): Add more test cases.
1714         (sin_test): Likewise.
1715         (sincos_test): Likewise.
1716
1717 2012-03-15  Andreas Jaeger  <aj@suse.de>
1718
1719         [BZ #13837]
1720         * math/libm-test.inc (cos_test): Add a test case for large input
1721         value.
1722         (sin_test): Likewise.
1723         (sincos_test): Likewise.
1724
1725 2012-03-15  Andreas Jaeger  <aj@suse.de>,
1726         Joseph Myers  <joseph@codesourcery.com>
1727
1728         [BZ #13658]
1729         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
1730         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
1731         * sysdeps/i386/fpu/branred.c: Likewise.
1732         * sysdeps/i386/fpu/dosincos.c: Likewise.
1733         * sysdeps/i386/fpu/mpa.c: Likewise.
1734         * sysdeps/i386/fpu/s_cos.S: Likewise.
1735         * sysdeps/i386/fpu/s_sin.S: Likewise.
1736         * sysdeps/i386/fpu/s_sincos.S: Likewise.
1737         * sysdeps/i386/fpu/sincos32.c: Likewise.
1738
1739         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
1740         Define.
1741         (libc_feupdateenv_53bit): Define.
1742         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
1743         Define.
1744         (libc_feupdateenv_53bit): Define.
1745
1746         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
1747         53 bit (without extend i386 double precision).
1748
1749         * math/libm-test.inc (sincos_test): Add tests for large input.
1750         (sin): Likewise.
1751         (cos): Likewise.
1752
1753         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
1754
1755 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
1756
1757         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1758
1759 2012-03-15  David S. Miller  <davem@davemloft.net>
1760
1761         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
1762         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
1763         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
1764         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
1765         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
1766         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
1767         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
1768         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
1769         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
1770         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
1771         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
1772         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
1773         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
1774         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
1775         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
1776         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
1777         file.
1778         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
1779         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
1780         file.
1781         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
1782         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
1783         file.
1784         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
1785         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
1786         file.
1787         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
1788         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
1789         fmin/fmax sysdep routines.
1790         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
1791
1792 2012-03-14  David S. Miller  <davem@davemloft.net>
1793
1794         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
1795         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
1796         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
1797         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
1798         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
1799         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
1800         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
1801         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
1802         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
1803         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
1804         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
1805         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
1806         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
1807         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
1808         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
1809         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
1810         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
1811         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
1812         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
1813         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
1814         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
1815         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
1816         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
1817         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
1818         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
1819         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
1820         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
1821         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
1822         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
1823         routines.
1824         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
1825         file.
1826         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
1827         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
1828         file.
1829         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
1830         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
1831         file.
1832         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
1833         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
1834         file.
1835         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
1836         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
1837         file.
1838         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
1839         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
1840         file.
1841         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
1842         file.
1843         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
1844         file.
1845         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
1846         file.
1847         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
1848         New file.
1849         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
1850         file.
1851         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
1852         file.
1853         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
1854         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
1855         file.
1856         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
1857         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
1858         file.
1859         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
1860         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
1861         file.
1862         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
1863         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
1864         VIS3 routines.
1865
1866         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
1867         New file.
1868
1869         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1870
1871         * sysdeps/sparc/configure.in: New file.
1872         * sysdeps/sparc/configure: Generate.
1873         * configure.in (libc_cv_sparc_as_vis3): Substitute.
1874         * configure: Regenerate.
1875         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
1876         * config.make.in (have-as-vis3): New.
1877         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
1878         available use -Av9d instead of -Av9a.
1879         * sysdeps/sparc/sparc64/Makefile: Likewise.
1880         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
1881         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
1882         New file.
1883         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
1884         file.
1885         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
1886         New file.
1887         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
1888         file.
1889         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
1890         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
1891         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
1892         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
1893         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
1894
1895         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
1896         fzeros/fnegs to load 0x80000000 into a float register instead of
1897         using the stack.
1898         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
1899
1900 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
1901
1902         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1903         bits/syscall.h.
1904         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
1905         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
1906         ($(inst_includedir)/bits/syscall.h): Remove rule.
1907         ($(objpfx)bits/syscall.d): Include instead of
1908         $(objpfx)syscall-list.d.
1909         (generated): Change syscall-list.h and syscall-list.d to
1910         bits/syscall.h and bits/syscall.d.
1911
1912 2012-03-14  Roland McGrath  <roland@hack.frob.com>
1913
1914         [BZ #13846]
1915         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
1916
1917 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
1918
1919         [BZ #13841]
1920         * math/s_csqrt.c: Include <float.h>.
1921         (__csqrt): Scale large or subnormal inputs.
1922         * math/s_csqrtf.c: Likewise.
1923         * math/s_csqrtl.c: Likewise.
1924         * math/libm-test.inc (csqrt_test): Add more tests.
1925         * sysdeps/i386/fpu/libm-test-ulps: Update.
1926         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1927
1928         [BZ #13840]
1929         * math/libm-test.inc (hypot_test): Add more tests.
1930
1931 2012-03-13  David S. Miller  <davem@davemloft.net>
1932
1933         [BZ #13840]
1934         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
1935         double-precision for the calculation instead of scaling.
1936
1937 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
1938
1939         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
1940         manipulate bits before adding and subtracting TWO52[sx].
1941         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
1942         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
1943         Likewise.
1944         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
1945
1946 2012-03-13  David S. Miller  <davem@davemloft.net>
1947
1948         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
1949         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
1950         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
1951         rtld-global-offsets.h
1952         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
1953
1954         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
1955         large parameters.
1956
1957         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
1958
1959         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
1960         'err' in the ifdef scope in which it is actually used.
1961
1962         * nss/nss_db/db-init.c: Include string.h
1963
1964 2012-03-12  David S. Miller  <davem@davemloft.net>
1965
1966         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
1967         masking out of the most significant byte of random value used.
1968         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
1969         Fix coding style in previous change.
1970
1971         * sysdeps/unix/sysv/linux/kernel-features.h
1972         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
1973         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
1974         expression.
1975         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
1976         later.
1977
1978 2012-03-11  David S. Miller  <davem@davemloft.net>
1979
1980         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
1981         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
1982         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
1983         for 'resultvar' otherwise things get truncated on 64-bit.
1984
1985         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
1986         Fix masking out of the most significant byte of random value used.
1987
1988         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1989
1990 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
1991
1992         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1993
1994 2012-03-09  David S. Miller  <davem@davemloft.net>
1995
1996         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
1997         variables with appropriate CPP guards.
1998         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
1999         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
2000         on resulting framesize and the management of the outregs buffer for pltexit.
2001         Preserve floating point return values across _dl_call_pltexit call.
2002         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
2003         framesize and the management of the outregs buffer for pltexit.
2004         Preserve floating point return values across _dl_call_pltexit
2005         call.
2006         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
2007         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
2008         (print_exit): Fix format string for return register value.
2009
2010 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
2011
2012         * sunrpc/Makefile (others): Add rpcgen.
2013         ($(objpfx)rpcgen): Remove special build rule and dependency on
2014         libc.
2015         * sunrpc/rpcgen.c: New file.
2016
2017 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
2018
2019         [BZ #13673]
2020         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
2021         * stdio-common/bug-vfprintf-nargs.c: Likewise.
2022         * sysdeps/i386/crti.S: Likewise.
2023         * sysdeps/i386/crtn.S: Likewise.
2024         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
2025         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
2026         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
2027         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
2028         * sysdeps/sh/crti.S: Likewise.
2029         * sysdeps/sh/crtn.S: Likewise.
2030         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
2031
2032         [BZ #13673]
2033         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
2034         with URL.
2035         * locale/programs/locfile-kw.gperf: Likewise.
2036         * locale/programs/charmap-kw.h: Regenerated.
2037         * locale/programs/locfile-kw.h: Likewise.
2038
2039         [BZ #13673]
2040         * intl/plural.y: Replace FSF snail mail address with URL.
2041         * intl/plural.c: Regenerated.
2042
2043 2012-03-09  Richard Henderson  <rth@twiddle.net>
2044
2045         * include/math_private.h: Remove file.
2046         * math/math_private.h: Move file ...
2047         * sysdeps/generic/math_private.h: ... here.
2048
2049         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
2050         * sysdeps/powerpc/fpu/math_private.h: Likewise.
2051         * sysdeps/x86_64/fpu/math_private.h: Likewise.
2052
2053         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
2054         and <math_private.h>.
2055         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
2056         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
2057         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
2058         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
2059         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
2060         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
2061         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
2062         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
2063         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
2064         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
2065         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
2066         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
2067         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
2068         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
2069         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
2070         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
2071         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
2072         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
2073         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
2074         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
2075         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
2076         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
2077         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
2078         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
2079         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
2080         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
2081         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
2082         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
2083         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
2084         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
2085         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
2086         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
2087         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
2088         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
2089         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
2090         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
2091         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
2092         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
2093         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
2094         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
2095         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
2096         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
2097         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
2098         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
2099         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
2100         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
2101         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
2102         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
2103         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
2104         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
2105         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
2106         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
2107         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
2108         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
2109         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
2110         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
2111         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
2112         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
2113         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
2114         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
2115         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2116         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
2117         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2118         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
2119         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
2120         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
2121         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
2122         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
2123         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
2124         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
2125         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
2126         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
2127         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
2128         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
2129         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
2130         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
2131         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
2132         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
2133         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
2134         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
2135         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
2136         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
2137         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
2138         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
2139         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
2140         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
2141         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
2142         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
2143         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
2144         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
2145         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
2146         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
2147         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
2148         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
2149         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
2150         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
2151         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
2152         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
2153         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
2154         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
2155         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
2156         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
2157         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
2158         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
2159         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
2160         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
2161         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
2162         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
2163         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
2164         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
2165         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
2166         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
2167         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
2168         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
2169         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
2170         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
2171         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
2172         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
2173         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
2174         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
2175         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
2176         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
2177         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
2178         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
2179         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
2180         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
2181         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
2182         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
2183         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
2184         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
2185         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
2186         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
2187         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
2188         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
2189         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
2190         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
2191         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
2192         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
2193         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
2194         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
2195         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
2196         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
2197         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
2198         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
2199         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
2200         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
2201         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
2202         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
2203         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
2204         * sysdeps/ieee754/k_standard.c: Likewise.
2205         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
2206         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
2207         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
2208         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
2209         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
2210         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
2211         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
2212         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
2213         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
2214         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
2215         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
2216         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
2217         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
2218         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
2219         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
2220         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
2221         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
2222         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
2223         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
2224         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
2225         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
2226         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
2227         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
2228         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
2229         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
2230         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
2231         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
2232         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
2233         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
2234         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
2235         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
2236         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
2237         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
2238         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
2239         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
2240         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
2241         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
2242         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
2243         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
2244         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
2245         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
2246         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
2247         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
2248         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
2249         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
2250         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
2251         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
2252         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
2253         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
2254         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
2255         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
2256         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
2257         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
2258         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
2259         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
2260         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
2261         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
2262         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
2263         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
2264         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
2265         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
2266         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
2267         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
2268         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
2269         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
2270         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
2271         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
2272         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
2273         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
2274         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
2275         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
2276         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
2277         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
2278         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
2279         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
2280         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
2281         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
2282         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
2283         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
2284         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
2285         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
2286         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
2287         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
2288         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
2289         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
2290         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
2291         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
2292         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
2293         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
2294         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
2295         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
2296         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
2297         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
2298         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
2299         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
2300         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
2301         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
2302         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
2303         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
2304         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
2305         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
2306         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
2307         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
2308         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
2309         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
2310         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
2311         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
2312         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
2313         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
2314         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
2315         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
2316         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
2317         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
2318         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
2319         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
2320         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
2321         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
2322         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
2323         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
2324         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
2325         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
2326         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
2327         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
2328         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
2329         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
2330         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
2331         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
2332         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
2333         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
2334         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
2335         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
2336         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
2337         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
2338         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
2339         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
2340         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
2341         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
2342         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
2343         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
2344         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
2345         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
2346         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
2347         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
2348         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
2349         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
2350         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
2351         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
2352         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
2353         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
2354         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
2355         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
2356         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
2357         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
2358         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
2359         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
2360         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
2361         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
2362         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
2363         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
2364         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
2365         * sysdeps/ieee754/s_lib_version.c: Likewise.
2366         * sysdeps/ieee754/s_matherr.c: Likewise.
2367         * sysdeps/ieee754/s_signgam.c: Likewise.
2368         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
2369         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
2370         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
2371         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
2372         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
2373         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
2374         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
2375         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
2376         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
2377         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
2378         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
2379         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
2380         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
2381         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
2382         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
2383         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
2384         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
2385         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
2386         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
2387         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
2388         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
2389
2390 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
2391
2392         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
2393         * sunrpc/rpc_main.c: Likewise.
2394         * sunrpc/rpc_svcout.c: Likewise.
2395
2396 2012-03-09  David S. Miller  <davem@davemloft.net>
2397
2398         * include/math_private.h: New file.
2399
2400 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
2401
2402         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
2403         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
2404         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
2405         from <bits/socket_type.h>.
2406         (enum __socket_type): Don't define here.
2407         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
2408         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2409         bits/socket_type.h.
2410
2411         [BZ #13566]
2412         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
2413         checking __USE_GNU.
2414
2415         * Makerules ($(inst_includedir)/%.h): New rule.
2416         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
2417         (install-others): Remove variable setting.
2418         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
2419
2420 2012-03-08  Richard Henderson  <rth@twiddle.net>
2421
2422         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
2423         from macro to inline function; merge with the
2424         !__LIBC_INTERNAL_MATH_INLINES version.
2425         (__ieee754_sqrtf): Likewise.
2426
2427         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
2428         to inline function.
2429         (__rintf, __floor, __floorf): Likewise.
2430
2431         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
2432         macro to inline function.
2433         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
2434
2435         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
2436         not <math/math_private.h>.
2437
2438 2012-03-08  David S. Miller  <davem@davemloft.net>
2439
2440         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
2441         copyright year.
2442         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
2443
2444 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
2445
2446         * resolv/gai_misc.c (handle_requests): Fix struct timespec
2447         normalization.
2448         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
2449         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
2450
2451 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
2452
2453         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
2454         be defined individually, they must be defined as a block.  Define
2455         S for printing a string instead of hidint the different by using a
2456         macro for adding the 'l'.
2457         * stdio-common/tst-fphex-wide.c: Adjust.
2458
2459 2012-03-07  Marek Polacek  <polacek@redhat.com>
2460
2461         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
2462
2463 2012-03-08  Marek Polacek  <polacek@redhat.com>
2464
2465         [BZ #13806]
2466         * stdio-common/Makefile (tests): Add tst-fphex-wide.
2467         * stdio-common/tst-fphex.c: Define a few macros to make the
2468         test reusable.  Use them.
2469         * stdio-common/tst-fphex-wide.c: New file.
2470
2471 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
2472
2473         [BZ #6911]
2474         * manual/macros.texi (gnusystems): New macro.
2475         (nongnusystems): Likewise.
2476         (gnulinuxhurdsystems): Likewise.
2477         (gnuhurdsystems): Likewise..
2478         (gnulinuxsystems): Likewise.
2479         * manual/charset.texi: Use new macros or @theglibc{} to refer to
2480         variants of the GNU system, not "GNU system".
2481         * manual/conf.texi: Likewise.
2482         * manual/errno.texi: Likewise.  Update example of errno macro
2483         expansion.
2484         * manual/filesys.texi: Likewise.
2485         (getumask): Document as specific to GNU/Hurd.
2486         * manual/install.texi: Likewise.  Reword some references to
2487         GNU/Linux.
2488         * manual/intro.texi: Likewise.
2489         * manual/io.texi: Likewise.
2490         (File Name Portability): Detail which constraints are inapplicable
2491         to all GNU systems and which are only inapplicable to GNU/Hurd.
2492         * manual/job.texi: Likewise.
2493         * manual/llio.texi: Likewise.
2494         (O_NOCTTY): Document as present on GNU/Linux.
2495         * manual/maint.texi: Likewise.
2496         * manual/memory.texi: Likewise.
2497         * manual/pattern.texi: Likewise.
2498         * manual/pipe.texi: Likewise.
2499         * manual/process.texi: Likewise.
2500         * manual/resource.texi: Likewise.
2501         (RUSAGE_CHILDREN): Remove statement about specifying a particular
2502         child on GNU/Hurd.
2503         * manual/setjmp.texi: Likewise.
2504         * manual/signal.texi: Likewise.
2505         * manual/startup.texi: Likewise.
2506         * manual/stdio.texi: Likewise.
2507         * manual/terminal.texi: Likewise.
2508         (ONLCR): Document as POSIX.
2509         (OXTABS): Document availability on GNU/Linux as XTABS.
2510         (ONOEOT): Document availability separately from other bits.
2511         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
2512         * manual/time.texi: Likewise.
2513         * manual/users.texi: Likewise.
2514         * INSTALL: Regenerated.
2515         * sysdeps/gnu/errlist.c: Regenerated.
2516
2517         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
2518         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
2519         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
2520         puts.
2521         * configure: Regenerated.
2522
2523 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
2524
2525         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
2526         default includes instead of AC_HEADER_CHECK.
2527         * sysdeps/i386/configure: Regenerated.
2528
2529         [BZ #10716]
2530         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
2531         * math/s_cacoshf.c (__cacoshf): Likewise.
2532         * math/s_cacoshl.c (__cacoshl): Likewise.
2533         * math/s_casinh.c (__casinh): Set signs of result from argument.
2534         * math/s_casinhf.c (__casinhf): Likewise.
2535         * math/s_casinhl.c (__casinhl): Likewise.
2536         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
2537         (casinh_test): Add more tests.
2538         * sysdeps/i386/fpu/libm-test-ulps: Update.
2539         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2540
2541 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
2542
2543         * po/zh_TW.po: Update from translation team.
2544
2545         * login/Makefile (distribute): Remove variable.
2546         * catgets/Makefile: Likewise.
2547         * mach/Makefile: Likewise.
2548         * malloc/Makefile: Likewise.
2549         * misc/Makefile: Likewise.
2550         * iconv/Makefile: Likewise.
2551         * nscd/Makefile: Likewise.
2552         * hurd/Makefile: Likewise.
2553         * manual/Makefile: Likewise.
2554         * locale/Makefile: Likewise.
2555         * intl/Makefile: Likewise.
2556         * conform/Makefile: Likewise.
2557         * nss/Makefile: Likewise.
2558         * time/Makefile: Likewise.
2559         * soft-fp/Makefile: Likewise.
2560         * dirent/Makefile: Likewise.
2561         * gmon/Makefile: Likewise.
2562         * po/Makefile: Likewise.
2563         * rt/Makefile: Likewise.
2564         * socket/Makefile: Likewise.
2565         * math/Makefile: Likewise.
2566         * signal/Makefile: Likewise.
2567         * debug/Makefile: Likewise.
2568         * elf/Makefile: Likewise.
2569         * timezone/Makefile: Likewise.
2570         * stdlib/Makefile: Likewise.
2571         * iconvdata/Makefile: Likewise.
2572         * sunrpc/Makefile: Likewise.
2573         * io/Makefile: Likewise.
2574         * argp/Makefile: Likewise.
2575         * inet/Makefile: Likewise.
2576         * hesiod/Makefile: Likewise.
2577         * grp/Makefile: Likewise.
2578         * csu/Makefile: Likewise.
2579         * wctype/Makefile: Likewise.
2580         * crypt/Makefile: Likewise.
2581         * libio/Makefile: Likewise.
2582         * string/Makefile: Likewise.
2583         * nis/Makefile: Likewise.
2584         * resolv/Makefile: Likewise.
2585         * stdio-common/Makefile: Likewise.
2586         * wcsmbs/Makefile: Likewise.
2587         * dlfcn/Makefile: Likewise.
2588         * posix/Makefile: Likewise.
2589
2590         * timezone/Makefile: Don't install timezone files, just the programs
2591         and scripts.
2592
2593 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
2594
2595         * nss/databases.def: Add missing gshadow entry.
2596
2597         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
2598
2599 2012-03-06  Marek Polacek  <polacek@redhat.com>
2600
2601         [BZ #13726]
2602         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
2603         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
2604         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
2605         * stdio-common/tst-long-dbl-fphex.c: New file.
2606
2607 2012-03-06  David S. Miller  <davem@davemloft.net>
2608
2609         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
2610         (set_obp_int): New function.
2611         (get_obp_int): New function.
2612         (__get_clockfreq_via_dev_openprom): Likewise.
2613         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
2614         Avoid unused variable warnings on 'val' and use builtin_expect.
2615         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
2616         __builtin_expect.
2617         (INLINE_CLONE_SYSCALL): Likewise.
2618
2619 2012-03-05  David S. Miller  <davem@davemloft.net>
2620
2621         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2622
2623 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
2624
2625         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2626
2627         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
2628         only for |x| >= 40.
2629         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
2630
2631 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
2632
2633         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
2634         Replace gettimeofday with __vdso_gettimeofday.
2635
2636         * sysdeps/unix/sysv/linux/x86_64/init-first.c
2637         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
2638         __vdso_clock_gettime and __vdso_getcpu.
2639
2640         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
2641         time with __vdso_time.
2642
2643 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
2644
2645         * manual/lang.texi (size_t): Note types to which size_t may be
2646         equivalent with the GNU C Library, but do not describe when
2647         differences between them are significant.
2648
2649 2012-03-05  Andreas Jaeger  <aj@suse.de>
2650
2651         * sysdeps/i386/fpu/libm-test-ulps: Update.
2652
2653 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
2654
2655         [BZ #3976]
2656         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
2657         (__ieee754_pow): Save and restore rounding mode and use
2658         round-to-nearest for main computations.
2659         * math/libm-test.inc (pow_test_tonearest): New function.
2660         (pow_test_towardzero): Likewise.
2661         (pow_test_downward): Likewise.
2662         (pow_test_upward): Likewise.
2663         (main): Call the new functions.
2664         * sysdeps/i386/fpu/libm-test-ulps: Update.
2665         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2666
2667         [BZ #3976]
2668         * math/libm-test.inc (cosh_test_tonearest): New function.
2669         (cosh_test_towardzero): Likewise.
2670         (cosh_test_downward): Likewise.
2671         (cosh_test_upward): Likewise.
2672         (sinh_test_tonearest): Likewise.
2673         (sinh_test_towardzero): Likewise.
2674         (sinh_test_downward): Likewise.
2675         (sinh_test_upward): Likewise.
2676         (main): Call the new functions.
2677         * sysdeps/i386/fpu/libm-test-ulps: Update.
2678         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2679
2680 2012-03-05  Tom de Vries  <tom@codesourcery.com>
2681
2682         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
2683         default stack guard is set in last bytes.
2684         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
2685
2686 2012-03-05  Kees Cook  <keescook@chromium.org>
2687
2688         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
2689
2690         [BZ #13656]
2691         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
2692         possibly allocate from heap instead of stack.
2693         * stdio-common/bug-vfprintf-nargs.c: New file.
2694         * stdio-common/Makefile (tests): Add nargs overflow test.
2695
2696 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
2697
2698         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2699
2700 2012-03-03  Marek Polacek  <polacek@redhat.com>
2701
2702         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
2703         * math/math_private.h: Likewise.
2704         * stdlib/tst-strtod.c: Likewise.
2705         * sysdeps/i386/i486/bits/atomic.h: Likewise.
2706         * sysdeps/x86_64/bits/atomic.h: Likewise.
2707
2708 2012-03-02  David S. Miller  <davem@davemloft.net>
2709
2710         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
2711         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
2712         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
2713         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
2714         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
2715         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
2716         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
2717         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
2718
2719 2012-03-02  Roland McGrath  <roland@hack.frob.com>
2720
2721         [BZ #13792]
2722         * manual/examples/README: New file, says the example source files
2723         can be used under GPL>=2.
2724         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
2725         line containing just "*/".
2726         * manual/examples/add.c: Add copyright header (GPL>=2).
2727         * manual/examples/argp-ex1.c: Likewise.
2728         * manual/examples/argp-ex2.c: Likewise.
2729         * manual/examples/argp-ex3.c: Likewise.
2730         * manual/examples/argp-ex4.c: Likewise.
2731         * manual/examples/atexit.c: Likewise.
2732         * manual/examples/db.c: Likewise.
2733         * manual/examples/dir.c: Likewise.
2734         * manual/examples/dir2.c: Likewise.
2735         * manual/examples/execinfo.c: Likewise.
2736         * manual/examples/filecli.c: Likewise.
2737         * manual/examples/filesrv.c: Likewise.
2738         * manual/examples/fmtmsgexpl.c: Likewise.
2739         * manual/examples/genpass.c: Likewise.
2740         * manual/examples/inetcli.c: Likewise.
2741         * manual/examples/inetsrv.c: Likewise.
2742         * manual/examples/isockad.c: Likewise.
2743         * manual/examples/longopt.c: Likewise.
2744         * manual/examples/memopen.c: Likewise.
2745         * manual/examples/memstrm.c: Likewise.
2746         * manual/examples/mkfsock.c: Likewise.
2747         * manual/examples/mkisock.c: Likewise.
2748         * manual/examples/mygetpass.c: Likewise.
2749         * manual/examples/pipe.c: Likewise.
2750         * manual/examples/popen.c: Likewise.
2751         * manual/examples/rprintf.c: Likewise.
2752         * manual/examples/search.c: Likewise.
2753         * manual/examples/select.c: Likewise.
2754         * manual/examples/setjmp.c: Likewise.
2755         * manual/examples/sigh1.c: Likewise.
2756         * manual/examples/sigusr.c: Likewise.
2757         * manual/examples/stpcpy.c: Likewise.
2758         * manual/examples/strdupa.c: Likewise.
2759         * manual/examples/strftim.c: Likewise.
2760         * manual/examples/strncat.c: Likewise.
2761         * manual/examples/subopt.c: Likewise.
2762         * manual/examples/swapcontext.c: Likewise.
2763         * manual/examples/termios.c: Likewise.
2764         * manual/examples/testopt.c: Likewise.
2765         * manual/examples/testpass.c: Likewise.
2766         * manual/examples/timeval_subtract.c: Likewise.
2767
2768         [BZ #13792]
2769         * manual/time.texi (Elapsed Time): Move timeval_subtract example
2770         function to ...
2771         * manual/timeval_subtract.c.texi: ... here, new file.
2772
2773 2012-03-02  David S. Miller  <davem@davemloft.net>
2774
2775         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
2776
2777 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
2778
2779         [BZ #3976]
2780         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
2781         (__sin): Save and restore rounding mode and use round-to-nearest
2782         for all computations.
2783         (__cos): Save and restore rounding mode and use round-to-nearest
2784         for all computations.
2785         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
2786         <fenv.h>.
2787         (tan): Save and restore rounding mode and use round-to-nearest for
2788         all computations.
2789         * math/libm-test.inc (cos_test_tonearest): New function.
2790         (cos_test_towardzero): Likewise.
2791         (cos_test_downward): Likewise.
2792         (cos_test_upward): Likewise.
2793         (sin_test_tonearest): Likewise.
2794         (sin_test_towardzero): Likewise.
2795         (sin_test_downward): Likewise.
2796         (sin_test_upward): Likewise.
2797         (tan_test_tonearest): Likewise.
2798         (tan_test_towardzero): Likewise.
2799         (tan_test_downward): Likewise.
2800         (tan_test_upward): Likewise.
2801         (main): Call the new functions.
2802         * sysdeps/i386/fpu/libm-test-ulps: Update.
2803         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2804
2805         [BZ #10135]
2806         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
2807         small n, then large n, before computing and testing k+n.
2808         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
2809         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
2810         Likewise.
2811         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
2812         Likewise.
2813         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
2814         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
2815         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
2816         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
2817         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
2818         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
2819         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
2820         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
2821         * math/libm-test.inc (scalbn_test): Add more tests.
2822         (scalbln_test): Likewise.
2823
2824         * manual/filesys.texi (mode_t): Describe constraints on size and
2825         signedness, not exact equivalence to a particular type.
2826         (ino_t): Likewise.
2827         (ino64_t): Likewise.
2828         (dev_t): Likewise.
2829         (nlink_t): Likewise.
2830         (blkcnt_t): Likewise.
2831         (blkcnt64_t): Likewise.
2832         * manual/llio.texi (off_t): Likewise.
2833
2834         [BZ #3976]
2835         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
2836         (__ieee754_exp): Save and restore rounding mode and use
2837         round-to-nearest for all computations.
2838         * math/libm-test.inc (exp_test_tonearest): New function.
2839         (exp_test_towardzero): Likewise.
2840         (exp_test_downward): Likewise.
2841         (exp_test_upward): Likewise.
2842         (main): Call the new functions.
2843         * sysdeps/i386/fpu/libm-test-ulps: Update.
2844         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2845
2846 2012-03-01  Chris Demetriou  <cgd@google.com>
2847
2848         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
2849         have predictable order.
2850
2851 2012-03-01  David S. Miller  <davem@davemloft.net>
2852
2853         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
2854
2855         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
2856         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
2857         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
2858         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
2859
2860         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
2861         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
2862         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
2863         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
2864         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
2865         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
2866         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
2867         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
2868         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
2869
2870         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2871
2872         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
2873         * sysdeps/sparc/fpu/libm-test-ulps: to here.
2874         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
2875
2876         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
2877         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
2878         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
2879         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
2880         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
2881         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
2882         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
2883         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
2884         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
2885         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
2886         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
2887         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
2888         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
2889         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
2890         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
2891         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
2892         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
2893         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
2894         * sysdeps/sparc/elf/configure: Regenerated.
2895
2896 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
2897
2898         * configure.in (AS, LD): Require binutils 2.20 or later.
2899         * configure: Regenerated.
2900         * manual/install.texi (Tools for Compilation): Give binutils 2.20
2901         as required minimum version.
2902         * INSTALL: Regenerated.
2903
2904         [BZ #2541]
2905         [BZ #4108]
2906         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
2907         before squaring exponent.
2908         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
2909         bottom long double and 27 bits of top long double before squaring
2910         exponent.
2911         * math/libm-test.inc (erfc_test): Add more tests.
2912         * sysdeps/i386/fpu/libm-test-ulps: Update.
2913         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
2914         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2915
2916 2012-03-01  Kai Tietz  <ktietz@redhat.com>
2917
2918         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
2919         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
2920         containing bit-fields.
2921         * soft-fp/extended.h (_FP_UNION_E): Likewise.
2922         * soft-fp/single.h (_FP_UNION_S): Likewise.
2923         * soft-fp/double.h (_FP_UNION_D): Likewise.
2924
2925 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
2926
2927         [BZ #13786]
2928         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
2929         not include ../strcmp.S.
2930         [USE_AS_STRNCASECMP_L]: Likewise.
2931         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
2932         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
2933         * sysdeps/i386/i686/multiarch/strncase_l-c.c
2934         (__strncasecmp_l_ia32): Define as alias to
2935         __strncasecmp_l_nonascii.
2936
2937         [BZ #5794]
2938         * math/libm-test.inc (expm1_test): Add test for bug 5794.
2939         * sysdeps/i386/fpu/libm-test-ulps: Update.
2940         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2941
2942         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
2943         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2944
2945 2012-02-29  Jeff Law  <law@redhat.com>
2946
2947         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
2948         out of bounds read.
2949
2950 2012-02-29  Marek Polacek  <polacek@redhat.com>
2951
2952         [BZ #13706]
2953         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
2954         * elf/Makefile: Add rules to run tst-unused-dep.out.
2955
2956 2012-02-28  David S. Miller  <davem@davemloft.net>
2957
2958         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
2959         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
2960         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
2961         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
2962         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
2963         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
2964
2965 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
2966
2967         * math/libm-test.inc (llround_test): Move one test from
2968         lround_test.  Use TEST_f_L in moved test.
2969         (lround_test): Move misplaced test to llround_test.  Add testcase
2970         from bug 2561.
2971
2972 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
2973
2974         * sysdeps/x86_64/fpu/e_expf.S: New file.
2975         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
2976
2977 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
2978
2979         [BZ #13637]
2980         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
2981         of remain_len that may cause incomplete multi-byte character and
2982         false match.
2983         * posix/bug-regex33.c: New file.
2984         * posix/Makefile (tests): Add bug-regex33.
2985
2986 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
2987
2988         * manual/macros.texi: New file.
2989         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
2990         * manual/libc.texinfo: Include macros.texi.
2991         * manual/creatute.texi: Likewise.
2992         * manual/install.texi: Likewise.
2993         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
2994         @glibcadj{} in references to the GNU C Library.
2995         * manual/charset.texi: Likewise.
2996         * manual/conf.texi: Likewise.
2997         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
2998         when not using those macros.
2999         * manual/creature.texi: Likewise.
3000         * manual/crypt.texi: Likewise.
3001         * manual/errno.texi: Likewise.
3002         * manual/filesys.texi: Likewise.
3003         * manual/header.texi: Likewise.
3004         * manual/install.texi: Likewise.
3005         * manual/intro.texi: Likewise.
3006         * manual/io.texi: Likewise.
3007         * manual/job.texi: Likewise.
3008         * manual/lang.texi: Likewise.
3009         * manual/libc.texiinfo: Likewise.
3010         * manual/llio.texi: Likewise.
3011         * manual/locale.texi: Likewise.
3012         * manual/maint.texi: Likewise.
3013         * manual/math.texi: Likewise.
3014         * manual/memory.texi: Likewise.
3015         * manual/message.texi: Likewise.
3016         * manual/nss.texi: Likewise.
3017         * manual/pattern.texi: Likewise.
3018         * manual/process.texi: Likewise.
3019         * manual/resource.texi: Likewise.
3020         * manual/search.texi: Likewise.
3021         * manual/setjmp.texi: Likewise.
3022         * manual/signal.texi: Likewise.
3023         * manual/socket.texi: Likewise.
3024         * manual/startup.texi: Likewise.
3025         * manual/stdio.texi: Likewise.
3026         * manual/string.texi: Likewise.
3027         * manual/sysinfo.texi: Likewise.
3028         * manual/syslog.texi: Likewise.
3029         * manual/terminal.texi: Likewise.
3030         * manual/time.texi: Likewise.
3031         * manual/users.texi: Likewise.
3032         * INSTALL: Regenerated.
3033         * NOTES: Regenerated.
3034         * sysdeps/gnu/errlist.c: Regenerated.
3035
3036 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
3037
3038         * include/dirent.h: Include <dirstream.h> before
3039         <dirent/dirent.h>.
3040
3041 2012-02-28  David S. Miller  <davem@davemloft.net>
3042
3043         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
3044         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
3045         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
3046         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
3047
3048 2012-02-27  David S. Miller  <davem@davemloft.net>
3049
3050         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
3051         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
3052         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
3053         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
3054
3055         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
3056         frame pointer instead of stack pointer relative arg slot.
3057         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
3058         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
3059         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
3060
3061 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
3062
3063         [BZ #3992]
3064         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
3065
3066 2012-02-27  David S. Miller  <davem@davemloft.net>
3067
3068         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
3069         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
3070         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
3071         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
3072         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
3073         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
3074         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
3075         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
3076
3077 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
3078
3079         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
3080         later.  Allow versions 5-9.
3081         * configure: Regenerated.
3082         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
3083         required minimum version and 4.6 as recommended version.  Do not
3084         mention bugs in GCC 2.7 and 2.8.
3085         * INSTALL: Regenerated.
3086
3087 2012-02-27  David S. Miller  <davem@davemloft.net>
3088
3089         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
3090         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
3091         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
3092         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
3093         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
3094         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
3095         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
3096         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
3097
3098         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
3099         manipulate bits before adding and subtracting TWO112[sx].
3100         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
3101
3102 2012-02-27  Roland McGrath  <roland@hack.frob.com>
3103
3104         [BZ #13775]
3105         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
3106         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
3107         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
3108         being in POSIX, because they are in 1003.1-2008.
3109
3110         * rt/tst-aio.c: Include <fcntl.h>.
3111         * rt/tst-aio7.c: Likewise.
3112         * rt/tst-aio64.c: Likewise.
3113
3114         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
3115
3116 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
3117
3118         * manual/install.texi (--with-headers): Describe headers as
3119         interface headers, not private headers.
3120         (Specific advice for GNU/Linux systems): Describe use of headers
3121         from "make headers_install", not private headers from older
3122         kernels.
3123         * INSTALL: Regenerated.
3124         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
3125         Change to 2.6.19.
3126         * sysdeps/unix/sysv/linux/configure: Regenerated.
3127
3128         * manual/llio.texi (fclean): Remove documentation.
3129
3130         * manual/Makefile (libc-texi-generated): New variable.  Include
3131         version.texi.
3132         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
3133         $(libc-texi-generated), not duplicated list of files.
3134         (version.texi, stamp-version): New rules.
3135         (realclean): Remove $(libc-texi-generated), not individual files
3136         from that list.  Do not remove dir-add.texinfo.
3137         * manual/libc.texinfo: Comment out uses of edition numbers and
3138         references to printed manual.  Remove last-updated dates.
3139         (EDITION): Comment out.
3140         (ISBN): Likewise.
3141         (VERSION, UPDATED): Remove.
3142         (version.texi): Include.
3143
3144 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
3145
3146         * sysdeps/posix/spawni.c: Include <signal.h>.
3147         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
3148         * sysdeps/pthread/aio_fsync.c: Likewise.
3149
3150 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
3151
3152         * conform/Makefile (tests): Run only when not cross-compiling and
3153         when fast-check is not defined.
3154
3155         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
3156         * conform/data/limits.h-data: Fixes for POSIX2008.
3157         * conform/run-conformtest.sh: Run all tests.
3158         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
3159         headers.
3160         * include/bits/dlfcn.h: Likewise.
3161         * include/langinfo.h: Likewise.
3162         * include/monetary.h: Likewise.
3163         * include/sys/poll.h: Likewise.
3164
3165         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
3166         for __USE_GNU.
3167         * posix/spawn.h: Define __need_sigset_t.
3168         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
3169         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
3170         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
3171         to get sigevent_t only.
3172         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
3173         only for __USE_GNU.
3174         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
3175         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
3176         process_vm_writev only for __USE_GNU.
3177         * termios/termios.h: Declare tcgetsid also for POSIX2008.
3178
3179         * conform/Makefile: For now ignore errors from run-conformtest.
3180         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
3181         POSIX to avoid namespace pollution.  Don't prepend headers.
3182         * conform/data/aio.h-data: Fixes for POSIX testing.
3183         * conform/data/fcntl.h-data: Likewise.
3184         * conform/data/glob.h-data: Likewise.
3185         * conform/data/grp.h-data: Likewise.
3186         * conform/data/pthread.h-data: Likewise.
3187         * conform/data/pwd.h-data: Likewise.
3188         * conform/data/signal.h-data: Likewise.
3189         * conform/data/spawn.h-data: Likewise.
3190         * conform/data/stdio.h-data: Likewise.
3191         * conform/data/stdlib.h-data: Likewise.
3192         * conform/data/stropts.h-data: Likewise.
3193         * conform/data/sys/mman.h-data: Likewise.
3194         * conform/data/sys/stat.h-data: Likewise.
3195         * conform/data/sys/types.h-data: Likewise.
3196         * conform/data/sys/wait.h-data: Likewise.
3197         * conform/data/time.h-data: Likewise.
3198         * conform/data/unistd.h-data: Likewise.
3199         * conform/data/utime.h-data: Likewise.
3200
3201         * io/sys/stat.h: fchmod was always in POSIX.
3202         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
3203         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
3204         * rt/aio.h: Define __need_timespec before including <time.h>.
3205         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
3206         struct.  Add forward declaration of pthread_attr_t and use it in
3207         sigevent.
3208         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
3209         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
3210         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
3211         always remove CLK_TCK definition.
3212
3213 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
3214
3215         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
3216
3217 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
3218
3219         * conform/run-conformtest.sh: New file.
3220         * conform/Makefile: Run run-conformtest for tests.
3221         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
3222         support.
3223
3224         * conform/data/uchar.h-data: New file.
3225         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
3226         * conform/data/arpa/inet.h-data: Likewise.
3227         * conform/data/assert.h-data: Likewise.
3228         * conform/data/complex.h-data: Likewise.
3229         * conform/data/cpio.h-data: Likewise.
3230         * conform/data/ctype.h-data: Likewise.
3231         * conform/data/dirent.h-data: Likewise.
3232         * conform/data/dlfcn.h-data: Likewise.
3233         * conform/data/errno.h-data: Likewise.
3234         * conform/data/fcntl.h-data: Likewise.
3235         * conform/data/float.h-data: Likewise.
3236         * conform/data/fmtmsg.h-data: Likewise.
3237         * conform/data/fnmatch.h-data: Likewise.
3238         * conform/data/ftw.h-data: Likewise.
3239         * conform/data/glob.h-data: Likewise.
3240         * conform/data/grp.h-data: Likewise.
3241         * conform/data/iconv.h-data: Likewise.
3242         * conform/data/inttypes.h-data: Likewise.
3243         * conform/data/langinfo.h-data: Likewise.
3244         * conform/data/libgen.h-data: Likewise.
3245         * conform/data/limits.h-data: Likewise.
3246         * conform/data/locale.h-data: Likewise.
3247         * conform/data/math.h-data: Likewise.
3248         * conform/data/monetary.h-data: Likewise.
3249         * conform/data/mqueue.h-data: Likewise.
3250         * conform/data/ndbm.h-data: Likewise.
3251         * conform/data/net/if.h-data: Likewise.
3252         * conform/data/netdb.h-data: Likewise.
3253         * conform/data/netinet/in.h-data: Likewise.
3254         * conform/data/nl_types.h-data: Likewise.
3255         * conform/data/poll.h-data: Likewise.
3256         * conform/data/pthread.h-data: Likewise.
3257         * conform/data/pwd.h-data: Likewise.
3258         * conform/data/regex.h-data: Likewise.
3259         * conform/data/sched.h-data: Likewise.
3260         * conform/data/search.h-data: Likewise.
3261         * conform/data/semaphore.h-data: Likewise.
3262         * conform/data/setjmp.h-data: Likewise.
3263         * conform/data/signal.h-data: Likewise.
3264         * conform/data/spawn.h-data: Likewise.
3265         * conform/data/stdarg.h-data: Likewise.
3266         * conform/data/stdio.h-data: Likewise.
3267         * conform/data/stdlib.h-data: Likewise.
3268         * conform/data/string.h-data: Likewise.
3269         * conform/data/strings.h-data: Likewise.
3270         * conform/data/stropts.h-data: Likewise.
3271         * conform/data/sys/ipc.h-data: Likewise.
3272         * conform/data/sys/mman.h-data: Likewise.
3273         * conform/data/sys/msg.h-data: Likewise.
3274         * conform/data/sys/resource.h-data: Likewise.
3275         * conform/data/sys/select.h-data: Likewise.
3276         * conform/data/sys/sem.h-data: Likewise.
3277         * conform/data/sys/shm.h-data: Likewise.
3278         * conform/data/sys/socket.h-data: Likewise.
3279         * conform/data/sys/stat.h-data: Likewise.
3280         * conform/data/sys/statvfs.h-data: Likewise.
3281         * conform/data/sys/time.h-data: Likewise.
3282         * conform/data/sys/timeb.h-data: Likewise.
3283         * conform/data/sys/times.h-data: Likewise.
3284         * conform/data/sys/types.h-data: Likewise.
3285         * conform/data/sys/uio.h-data: Likewise.
3286         * conform/data/sys/un.h-data: Likewise.
3287         * conform/data/sys/utsname.h-data: Likewise.
3288         * conform/data/sys/wait.h-data: Likewise.
3289         * conform/data/syslog.h-data: Likewise.
3290         * conform/data/tar.h-data: Likewise.
3291         * conform/data/termios.h-data: Likewise.
3292         * conform/data/utime.h-data: Likewise.
3293         * conform/data/utmpx.h-data: Likewise.
3294         * conform/data/varargs.h-data: Likewise.
3295         * conform/data/wchar.h-data: Likewise.
3296         * conform/data/wctype.h-data: Likewise.
3297         * conform/data/wordexp.h-data: Likewise.
3298
3299         * include/stropts.h: New file.
3300         * include/uchar.h: New file.
3301         * include/aio.h: Changes to allow conformtest.pl to use the headers.
3302         * include/assert.h: Likewise.
3303         * include/ctype.h: Likewise.
3304         * include/dirent.h: Likewise.
3305         * include/dlfcn.h: Likewise.
3306         * include/fcntl.h: Likewise.
3307         * include/fnmatch.h: Likewise.
3308         * include/glob.h: Likewise.
3309         * include/grp.h: Likewise.
3310         * include/libio.h: Likewise.
3311         * include/locale.h: Likewise.
3312         * include/math.h: Likewise.
3313         * include/net/if.h: Likewise.
3314         * include/netdb.h: Likewise.
3315         * include/netinet/in.h: Likewise.
3316         * include/pthread.h: Likewise.
3317         * include/pwd.h: Likewise.
3318         * include/regex.h: Likewise.
3319         * include/sched.h: Likewise.
3320         * include/search.h: Likewise.
3321         * include/setjmp.h: Likewise.
3322         * include/signal.h: Likewise.
3323         * include/stdio.h: Likewise.
3324         * include/stdlib.h: Likewise.
3325         * include/string.h: Likewise.
3326         * include/sys/cdefs.h: Likewise.
3327         * include/sys/mman.h: Likewise.
3328         * include/sys/msg.h: Likewise.
3329         * include/sys/resource.h: Likewise.
3330         * include/sys/select.h: Likewise.
3331         * include/sys/socket.h: Likewise.
3332         * include/sys/stat.h: Likewise.
3333         * include/sys/statvfs.h: Likewise.
3334         * include/sys/time.h: Likewise.
3335         * include/sys/times.h: Likewise.
3336         * include/sys/uio.h: Likewise.
3337         * include/sys/utsname.h: Likewise.
3338         * include/sys/wait.h: Likewise.
3339         * include/termios.h: Likewise.
3340         * include/time.h: Likewise.
3341         * include/ulimit.h: Likewise.
3342         * include/unistd.h: Likewise.
3343         * include/utime.h: Likewise.
3344         * include/wchar.h: Likewise.
3345         * include/wctype.h: Likewise.
3346         * include/wordexp.h: Likewise.
3347
3348         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
3349
3350         * time/time.h: TIME_UTC must be a macro.
3351         Make timespec_get available for ISO C11 only as well.
3352
3353 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
3354
3355         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
3356         Reported by Peng Haitao <penght@cn.fujitsu.com>.
3357
3358 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
3359
3360         * configure.in: Use -o not -a in test for unsupported multi-arch.
3361
3362 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
3363
3364         * manual/texinfo.tex: Update to version 2012-01-19.16.
3365
3366 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
3367
3368         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
3369
3370 2012-02-24  Roland McGrath  <roland@hack.frob.com>
3371
3372         [BZ #13738]
3373         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
3374         * manual/fdl-1.3.texi: New file.
3375         * manual/fdl-1.1.texi: File removed.
3376
3377         [BZ #13738]
3378         * manual/libc.texinfo (FDL_VERSION): New @set.
3379         Use it for mention of FDL in cover text.
3380         (Documentation License): Use it in @include file name.
3381
3382 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
3383             Roland McGrath  <roland@hack.frob.com>
3384
3385         [BZ #5461]
3386         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
3387         not LONG_LONG_MAX and LONG_LONG_MIN.
3388         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
3389         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
3390         name.
3391         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
3392
3393 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
3394
3395         [BZ #2547]
3396         [BZ #11365]
3397         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
3398         manipulate bits before adding and subtracting TWO23[sx].
3399         * math/libm-test.inc (nearbyint_test): Add more tests.
3400
3401 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
3402
3403         [BZ #2548]
3404         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
3405         bits before adding and subtracting TWO23[sx].
3406         * math/libm-test.inc (rint_test): Add more tests.
3407         (rint_test_tonearest): Likewise.
3408         (rint_test_towardzero): Likewise.
3409         (rint_test_downward): Likewise.
3410         (rint_test_upward: Likewise.
3411
3412 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
3413
3414         [BZ #10110]
3415         * include/stdc-predef.h: New file.  Extracted from features.h.
3416         * include/features.h: Include stdc-predef.h.
3417         * Makefile (headers): Add stdc-predef.h.
3418         * CONFORMANCE (Compiler limitations): Update.
3419
3420 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
3421
3422         * manual/libc.texinfo (VERSION, UPDATED): Revert.
3423
3424 2012-02-21  David S. Miller  <davem@davemloft.net>
3425
3426         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
3427         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
3428
3429 2012-02-20  David S. Miller  <davem@davemloft.net>
3430
3431         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
3432         using a normal save/restore sequence, rather than allocating a
3433         dummy stack frame just to store a frame pointer and restore.
3434         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
3435
3436 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
3437
3438         * manual/install.texi: Fix stray word in line-wrapped comment.
3439
3440 2012-02-20  David S. Miller  <davem@davemloft.net>
3441
3442         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
3443         both binutils and gcc support GOTDATA.
3444
3445         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
3446         "rd %pc" in the PIC register setup sequences.
3447
3448         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
3449         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
3450         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
3451         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
3452         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
3453         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
3454         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
3455         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
3456         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
3457         (SYSCALL_ERROR_HANDLER): Likewise.
3458         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
3459         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
3460         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
3461         (SYSCALL_ERROR_HANDLER): Likewise.
3462
3463         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
3464         (HAVE_GCC_GOTDATA): New.
3465         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
3466         relocation support in both binutils and gcc.
3467         * sysdeps/sparc/elf/configure: Regenerate.
3468
3469         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
3470         * sysdeps/sparc/sparc32/elf/configure: Delete.
3471         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
3472         * sysdeps/sparc/sparc64/elf/configure: Delete.
3473         * sysdeps/sparc/elf/configure.in: New file.
3474         * sysdeps/sparc/elf/configure: Generate.
3475
3476         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
3477         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
3478         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
3479         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
3480         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
3481
3482 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
3483
3484         * manual/install.texi: Do not mention specific glibc version
3485         numbers.
3486         * manual/libc.texinfo (VERSION, UPDATED): Update.
3487         (@copying): Use @copyright{} and range of years.
3488
3489 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
3490
3491         [BZ #13695]
3492         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
3493         [crti.S not in sysdirs] (generated): Do not append.
3494         [crti.S not in sysdirs] (omit-deps): Likewise.
3495         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
3496         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
3497         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
3498         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
3499         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
3500         Likewise.
3501         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
3502         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
3503         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
3504         * csu/defs.awk: Remove file.
3505         * sysdeps/generic/initfini.c: Likewise.
3506         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
3507         variable.
3508         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
3509         Likewise.
3510
3511 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
3512
3513         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
3514         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
3515         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
3516         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
3517         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
3518         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
3519         <bits/epoll.h>.
3520         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
3521         (__EPOLL_PACKED): Define to empty if not defined by
3522         <bits/epoll.h>.
3523         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
3524         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3525         bits/epoll.h.
3526
3527 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
3528
3529         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
3530         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
3531         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
3532         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
3533         <bits/timerfd.h>.
3534         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
3535         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3536         bits/timerfd.h.
3537
3538 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
3539
3540         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
3541         in C locale.
3542         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
3543         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
3544         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
3545         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3546
3547 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
3548
3549         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
3550         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
3551
3552 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
3553
3554         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
3555         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
3556         defined.
3557         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
3558         Likewise.
3559         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
3560         entry for 2.16.
3561
3562 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
3563
3564         * math/w_acos.c: Use non-signaling floating-point comparisons.
3565         * math/w_acosf.c: Likewise.
3566         * math/w_acosh.c: Likewise.
3567         * math/w_acoshf.c: Likewise.
3568         * math/w_acoshl.c: Likewise.
3569         * math/w_acosl.c: Likewise.
3570         * math/w_asin.c: Likewise.
3571         * math/w_asinf.c: Likewise.
3572         * math/w_asinl.c: Likewise.
3573         * math/w_atanh.c: Likewise.
3574         * math/w_atanhf.c: Likewise.
3575         * math/w_atanhl.c: Likewise.
3576         * math/w_exp2.c: Likewise.
3577         * math/w_exp2f.c: Likewise.
3578         * math/w_exp2l.c: Likewise.
3579         * math/w_j0.c: Likewise.
3580         * math/w_j0f.c: Likewise.
3581         * math/w_j0l.c: Likewise.
3582         * math/w_j1.c: Likewise.
3583         * math/w_j1f.c: Likewise.
3584         * math/w_j1l.c: Likewise.
3585         * math/w_jn.c: Likewise.
3586         * math/w_jnf.c: Likewise.
3587         * math/w_log.c: Likewise.
3588         * math/w_log10.c: Likewise.
3589         * math/w_log10f.c: Likewise.
3590         * math/w_log10l.c: Likewise.
3591         * math/w_log2.c: Likewise.
3592         * math/w_log2f.c: Likewise.
3593         * math/w_log2l.c: Likewise.
3594         * math/w_logf.c: Likewise.
3595         * math/w_logl.c: Likewise.
3596         * math/w_sqrt.c: Likewise.
3597         * math/w_sqrtf.c: Likewise.
3598         * math/w_sqrtl.c: Likewise.
3599         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
3600         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
3601         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
3602         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
3603         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
3604
3605 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
3606
3607         [BZ #9739]
3608         * manual/string.texi (strnlen): Use correct parameter name in
3609         equivalent expression.
3610
3611 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
3612
3613         [BZ #11174]
3614         * manual/users.texi (seteuid): Consistently use neweuid for
3615         argument name.
3616
3617 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
3618
3619         [BZ #13704]
3620         * manual/nss.texi (Services in the NSS configuration): Correct
3621         list of services in example configuration file.
3622
3623 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
3624
3625         [BZ #11322]
3626         * manual/arith.texi: Remove statements about negative zero
3627         behaving identically to zero.
3628
3629 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
3630
3631         [BZ #5993]
3632         * manual/install.texi: Do not document upgrading from libc5.
3633
3634 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
3635
3636         [BZ #4596]
3637         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
3638
3639 2012-02-18  David S. Miller  <davem@davemloft.net>
3640
3641         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
3642         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
3643         %o7 across the call.
3644         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
3645         instead.
3646         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
3647         SETUP_PIC_REG_LEAF.
3648         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
3649         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
3650         * sysdeps/sparc/crtn.S: Likewise.
3651
3652 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
3653
3654         * aout/Makefile: Remove.
3655
3656 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
3657
3658         [BZ #13058]
3659         * manual/examples/argp-ex1.c (main): Format definition in GNU
3660         style.
3661         * manual/examples/argp-ex2.c (main): Likewise.
3662         * manual/examples/argp-ex3.c (main): Likewise.
3663         * manual/examples/argp-ex4.c (main): Likewise.
3664         * manual/examples/longopt.c (main): Use new-style prototype
3665         definition.
3666         * manual/examples/strncat.c (main): Specify return type and use
3667         (void) for arguments.
3668         * manual/examples/subopt.c (main): Use char **argv argument.
3669
3670 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
3671
3672         [BZ #5077]
3673         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
3674         rounding modes.
3675
3676 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
3677
3678         [BZ #6907]
3679         * manual/string.texi (strchr): Change when strchrnul is
3680         recommended.
3681
3682 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
3683
3684         [BZ #174]
3685         * manual/locale.texi (setlocale): Document LOCPATH.
3686
3687 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
3688
3689         [BZ #10210]
3690         * manual/process.texi (execle): Move @dots{} before last argument.
3691
3692 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
3693
3694         [BZ #12047]
3695         * manual/charset.texi (Generic Charset Conversion): Fix typo
3696         (LC_TYPE -> LC_CTYPE).
3697
3698 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
3699
3700         [BZ #5805]
3701         * manual/arith.texi (scalbn): Use @var{} on parameter names.
3702         (scalbnf): Likewise.
3703         (scalbnl): Likewise.
3704         (scalbln): Likewise.
3705         (scalblnf): Likewise.
3706         (scalblnl): Likewise.
3707         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
3708         (vwarnx): Likewise.
3709         (verr): Likewise.
3710         (verrx): Likewise.
3711         * manual/filesys.texi (telldir): Use braces around return type.
3712         * manual/llio.texi (mmap): Add space after comma.
3713         (mmap64): Likewise.
3714         * manual/math.texi (jn): Use @var{} on parameter names.
3715         (jnf): Likewise.
3716         (jnl): Likewise.
3717         (yn): Likewise.
3718         (ynf): Likewise.
3719         (ynl): Likewise.
3720         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
3721         line.
3722         * manual/resource.texi (ulimit): Use @dots{} instead of literal
3723         "...".
3724         (sched_get_priority_min): Remove semicolon on @deftypefun line.
3725         (sched_get_priority_max): Likewise.
3726         * manual/signal.texi (sigvec): Add space after comma.
3727         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
3728         names.
3729         (if_indextoname): Likewise.
3730         (if_freenameindex): Likewise.
3731         (sendto): Use ',' instead of '.' in prototype.
3732         * manual/startup.texi (syscall): Use @dots{} instead of literal
3733         "...".
3734         * manual/stdio.texi (__fpending): Separate initial words of
3735         paragraph from @deftypefun line.
3736         * manual/syslog.texi (syslog): Use @dots{} instead of literal
3737         "...".
3738         (vsyslog): Use @var{} on parameter names.
3739         * manual/terminal.texi (stty): Use @var{} on parameter names.
3740         * manual/users.texi (getutmp): Use @var{} on parameter names.
3741         (getutmpx): Likewise.
3742
3743 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
3744
3745         [BZ #6884]
3746         * manual/stdio.texi (fopen): Fix typos in description of
3747         ",ccs=STRING".
3748
3749 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
3750
3751         [BZ #4026]
3752         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
3753         get clock_id definition.
3754
3755 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
3756
3757         [BZ #4822]
3758         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
3759         (madvise): Cast every argument to void on its own.
3760
3761 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
3762
3763         [BZ #9902]
3764         * manual/startup.texi (Exit Status): Fix typo.
3765
3766 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
3767
3768         [BZ #10140]
3769         * manual/examples/argp-ex1.c: Include <stdlib.h>.
3770         * manual/examples/argp-ex2.c: Likewise.
3771         * manual/examples/argp-ex3.c: Likewise.
3772
3773 2012-02-16  Richard Henderson  <rth@redhat.com>
3774
3775         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
3776         * sysdeps/s390/s390-32/initfini.c: Remove.
3777         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
3778         * sysdeps/s390/s390-64/initfini.c: Remove.
3779
3780 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3781
3782         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
3783         compiler output for sysdeps/generic/initfini.c.
3784         * sysdeps/sh/elf/initfini.c: Remove file.
3785
3786 2012-02-16  David S. Miller  <davem@davemloft.net>
3787
3788         [BZ #11494]
3789         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
3790
3791         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
3792         * sysdeps/sparc/crti.S: New file.
3793         * sysdeps/sparc/crtn.S: New file.
3794         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
3795         * sysdeps/sparc/sparc64/Makefile: Likewise.
3796
3797 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
3798
3799         [BZ #3335]
3800         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
3801
3802 2012-02-15  Roland McGrath  <roland@hack.frob.com>
3803
3804         [BZ #4822]
3805         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
3806
3807         * mach/devstream.c (cookie_io_functions_t): Macro removed.
3808         (write, read, close): Likewise.
3809         Patch by Aurelien Jarno <aurelien@aurel32.net>.
3810
3811 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
3812
3813         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
3814         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
3815         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
3816         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
3817         <bits/signalfd.h>.
3818         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
3819         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3820         bits/signalfd.h.
3821
3822 2012-02-14  Marek Polacek  <polacek@redhat.com>
3823
3824         * sysdeps/x86_64/crti.S: New file.
3825         * sysdeps/x86_64/crtn.S: New file.
3826         * sysdeps/x86_64/elf/initfini.c: Remove file.
3827
3828 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
3829
3830         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
3831         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
3832         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
3833         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
3834         <bits/inotify.h>.
3835         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
3836         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3837         bits/inotify.h.
3838
3839 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
3840
3841         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
3842         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
3843         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
3844         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
3845         <bits/eventfd.h>.
3846         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
3847         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3848         bits/eventfd.h.
3849
3850 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
3851
3852         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
3853         __feraiseexcept instead of feraiseexcept.
3854
3855         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
3856         nanosleep invocations.
3857         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
3858         strings, and add error checking for a nanosleep invocations.
3859
3860 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
3861
3862         Replace FSF snail mail address with URLs, as per GNU coding standards.
3863         Most of the snail mail addresses were wrong anyway, and omitting
3864         them makes the source code easier to maintain.  Almost all of the
3865         changes are to license notices and to locale LC_IDENTIFICATION
3866         addresses, except for this one:
3867         * manual/libc.texinfo: In "Published by", give the FSF's URL,
3868         not its snail mail address.
3869
3870 2012-02-09  Richard Henderson  <rth@twiddle.net>
3871
3872         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
3873         of kernel-features.h.
3874
3875         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
3876
3877 2012-02-08  Marek Polacek  <polacek@redhat.com>
3878
3879         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
3880         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
3881         * sysdeps/gnu/_G_config.h: Likewise.
3882         * sysdeps/generic/_G_config.h: Likewise.
3883
3884 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
3885
3886         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
3887         tests.
3888         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3889
3890         * sysdeps/powerpc/powerpc32/crti.S: New file.
3891         * sysdeps/powerpc/powerpc32/crtn.S: New file.
3892         * sysdeps/powerpc/powerpc64/crti.S: New file.
3893         * sysdeps/powerpc/powerpc64/crtn.S: New file.
3894
3895         * Makeconfig (have-initfini): Don't set.
3896         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
3897         * configure.in (nopic_initfini): Don't substitute.
3898         * config.h.in (HAVE_INITFINI): Don't #undef.
3899         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
3900         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
3901
3902 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
3903
3904         Support crti.S and crtn.S provided directly by architectures.
3905         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
3906         [crti.S in sysdirs] (omit-deps): Likewise.
3907         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
3908         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
3909         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
3910         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
3911         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
3912         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
3913         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
3914         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
3915         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
3916         compiler output for sysdeps/generic/initfini.c.
3917         * sysdeps/i386/elf/Makefile: Remove file.
3918         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
3919
3920 2012-02-07  Marek Polacek  <polacek@redhat.com>
3921
3922         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
3923         * sysdeps/gnu/_G_config.h: Likewise.
3924         * sysdeps/mach/hurd/_G_config.h: Likewise.
3925
3926 2012-02-07  Marek Polacek  <polacek@redhat.com>
3927
3928         * math/Makefile (tests): Add tst-CMPLX2.
3929         * math/tst-CMPLX2.c: New file.
3930
3931 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
3932
3933         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
3934
3935         * math/libm-test.inc (jn_test): Add missing L suffix.
3936
3937 2012-02-06  Marek Polacek  <polacek@redhat.com>
3938
3939         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
3940         * sysdeps/i386/fpu/e_powf.S: Likewise.
3941         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
3942         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
3943         * sysdeps/i386/fpu/e_acosh.S: Likewise.
3944         * sysdeps/i386/fpu/e_pow.S: Likewise.
3945         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
3946         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
3947         * sysdeps/i386/fpu/s_expm1.S: Likewise.
3948         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
3949         * sysdeps/i386/fpu/e_log2.S: Likewise.
3950         * sysdeps/i386/fpu/e_log2l.S: Likewise.
3951         * sysdeps/i386/fpu/e_scalb.S: Likewise.
3952         * sysdeps/i386/fpu/e_powl.S: Likewise.
3953         * sysdeps/i386/fpu/s_log1p.S: Likewise.
3954         * sysdeps/i386/fpu/e_log10f.S: Likewise.
3955         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
3956         * sysdeps/i386/fpu/e_logl.S: Likewise.
3957         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
3958         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
3959         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
3960         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
3961         * sysdeps/i386/fpu/e_log2f.S: Likewise.
3962         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
3963         * sysdeps/i386/fpu/e_log.S: Likewise.
3964         * sysdeps/i386/fpu/s_cexp.S: Likewise.
3965         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
3966         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
3967         * sysdeps/i386/fpu/e_logf.S: Likewise.
3968         * sysdeps/i386/fpu/e_log10l.S: Likewise.
3969         * sysdeps/i386/fpu/e_atanh.S: Likewise.
3970         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
3971         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
3972         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
3973         * sysdeps/i386/fpu/e_log10.S: Likewise.
3974         * sysdeps/i386/fpu/s_frexp.S: Likewise.
3975         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
3976         * sysdeps/i386/fpu/s_asinh.S: Likewise.
3977         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
3978         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
3979         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
3980         * sysdeps/i386/asm-syntax.h: Likewise.
3981         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
3982         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
3983         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
3984         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
3985         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
3986         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
3987         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
3988         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
3989         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
3990         * sysdeps/powerpc/sysdep.h: Likewise.
3991         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
3992         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
3993
3994 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
3995
3996         [BZ #411]
3997         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
3998
3999 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
4000
4001         * sysdeps/i386/sysdep.h: Include <features.h>.
4002         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
4003         version.
4004
4005 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
4006
4007         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
4008         Define.
4009         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
4010         LOAD_PIC_REG_STR.
4011
4012 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
4013
4014         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
4015         (SETUP_PIC_REG): Use GET_PC_THUNK.
4016         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
4017         macro.
4018
4019 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
4020
4021         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
4022         for non-PIC compilation.
4023         (SETUP_PIC_REG): Add .p2align directive.
4024         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
4025         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
4026         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
4027         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
4028         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
4029         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
4030         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
4031         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
4032         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
4033         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
4034         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
4035         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
4036         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
4037         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
4038         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
4039         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
4040         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
4041         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
4042         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
4043         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
4044         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
4045         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
4046         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
4047         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
4048         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
4049         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
4050         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
4051         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
4052         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
4053         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
4054         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
4055         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
4056         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
4057         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
4058         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
4059         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
4060         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
4061         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
4062         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
4063         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
4064         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
4065
4066 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
4067
4068         * math/tst-CMPLX.c: Include <stdio.h>.
4069
4070 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
4071
4072         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
4073         float.
4074         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
4075         * sysdeps/sparc/bits/mathdef.h: Likewise.
4076
4077 2012-01-31  Marek Polacek  <polacek@redhat.com>
4078
4079         * libio/libio.h: Don't define _PARAMS.
4080         * locale/programs/config.h: Don't define PARAMS.
4081         * stdlib/strtol_l.c: Likewise.
4082         (__strtol_l): Remove PARAMS from the prototype.
4083
4084 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
4085
4086         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
4087         names.  Just use the correct names.  Remove unnecessary wrapper
4088         functions.
4089         * malloc/arena.c: Likewise.
4090         * malloc/hooks.c: Likewise.
4091
4092         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
4093         ARENA_TEST says not to.  Simplify test for creation of a new arena.
4094         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
4095
4096 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
4097
4098         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
4099         into tail calls.
4100         (update_get_addr): New function.
4101         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
4102         GET_ADDR_MODULE parameter.
4103
4104 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
4105
4106         * crypt/cert.c: Remove __STDC__ conditionals.
4107         * crypt/crypt-entry.c: Likewise.
4108         * crypt/crypt_util.c: Likewise.
4109         * libio/filedoalloc.c: Likewise.
4110         * libio/fileops.c: Likewise.
4111         * libio/genops.c: Likewise.
4112         * libio/iofclose.c: Likewise.
4113         * libio/iofdopen.c: Likewise.
4114         * libio/iofopen.c: Likewise.
4115         * libio/iofopen64.c: Likewise.
4116         * libio/iogetdelim.c: Likewise.
4117         * libio/iopopen.c: Likewise.
4118         * libio/obprintf.c: Likewise.
4119         * libio/oldfileops.c: Likewise.
4120         * libio/oldiofclose.c: Likewise.
4121         * libio/oldiofdopen.c: Likewise.
4122         * libio/oldiofopen.c: Likewise.
4123         * libio/oldiopopen.c: Likewise.
4124         * libio/wfiledoalloc.c: Likewise.
4125         * libio/wgenops.c: Likewise.
4126         * locale/programs/xmalloc.c: Likewise.
4127         * misc/syslog.c: Likewise.
4128         * stdio-common/xbug.c: Likewise.
4129         * string/memchr.c: Likewise.
4130         * string/memcmp.c: Likewise.
4131         * string/memrchr.c: Likewise.
4132         * string/rawmemchr.c: Likewise.
4133         * sysdeps/posix/getcwd.c: Likewise.
4134         * time/strftime_l.c: Likewise.
4135
4136 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
4137
4138         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
4139         * config.make.in (config-cflags-sse2avx): Define.
4140         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
4141         Fix typo.
4142
4143 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
4144
4145         * scripts/config.guess: Update from upstream config git repository.
4146         * scripts/config.sub: Likewise.
4147
4148 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
4149
4150         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
4151         (EM_NUM): Update.
4152         (R_TILEPRO_*, R_TILEGX_*): New macros.
4153
4154         * scripts/firstversions.awk: Fix bug in version range handling.
4155
4156         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
4157
4158         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
4159
4160         * include/sys/epoll.h: New file.
4161         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
4162         libc_hidden_def.
4163
4164 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
4165
4166         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
4167         Avoid unnecessary __WORDSIZE == 64 test.
4168         (fmaxf): Use VEX format if possible.
4169         (fmax): Likewise.
4170         (fminf): Likewise.
4171         (fmin): Likewise.
4172
4173         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
4174         * math/math_private.h: Remove libc_fegetround* and
4175         libc_fesetround*.
4176         * sysdeps/i386/configure.in: Check for -msse2avx.
4177         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
4178         also if SSE2AVX is defined.
4179         Remove libc_fegetround* and libc_fesetround*.
4180         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
4181         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
4182         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
4183         of HAS_YMM_USABLE.
4184         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
4185         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
4186         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
4187         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
4188         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
4189
4190         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
4191
4192 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4193
4194         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
4195         size is not set.
4196         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
4197
4198 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
4199
4200         [BZ #13618]
4201         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
4202         relocation.
4203         * Makeconfig (libm): Define.
4204         * elf/Makefile: Add rules to build and run tst-relsort1.
4205         * elf/tst-relsort1.c: New file.
4206         * elf/tst-relsort1mod1.c: New file.
4207         * elf/tst-relsort1mod2.c: New file.
4208
4209 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
4210
4211         * math/s_ldexp.c: Remove __STDC__ conditionals.
4212         * math/s_ldexpf.c: Likewise.
4213         * math/s_ldexpl.c: Likewise.
4214         * math/s_nextafter.c: Likewise.
4215         * math/s_nexttowardf.c: Likewise.
4216         * math/s_significand.c: Likewise.
4217         * math/s_significandf.c: Likewise.
4218         * math/s_significandl.c: Likewise.
4219         * math/w_jnl.c: Likewise.
4220         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
4221         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
4222         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
4223         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
4224         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
4225         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
4226         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
4227         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
4228         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
4229         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
4230         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
4231         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
4232         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
4233         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
4234         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
4235         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
4236         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
4237         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
4238         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
4239         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
4240         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
4241         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
4242         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
4243         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
4244         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
4245         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
4246         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
4247         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
4248         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
4249         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
4250         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
4251         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
4252         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
4253         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
4254         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
4255         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
4256         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
4257         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
4258         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
4259         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
4260         * sysdeps/ieee754/k_standard.c: Likewise.
4261         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
4262         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
4263         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
4264         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
4265         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
4266         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
4267         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
4268         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
4269         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
4270         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
4271         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
4272         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
4273         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
4274         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
4275         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
4276         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
4277         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
4278         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
4279         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
4280         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
4281         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
4282         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
4283         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
4284         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
4285         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
4286         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
4287         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
4288         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
4289         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
4290         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
4291         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
4292         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
4293         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
4294         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
4295         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
4296         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
4297         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
4298         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
4299         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
4300         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
4301         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
4302         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
4303         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
4304         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
4305         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
4306         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
4307         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
4308         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
4309         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
4310         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
4311         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
4312         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
4313         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
4314         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
4315         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
4316         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
4317         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
4318         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
4319         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
4320         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
4321         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
4322         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
4323         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
4324         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
4325         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
4326         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
4327         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
4328         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
4329         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
4330         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
4331         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
4332         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
4333         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
4334         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
4335         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
4336         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
4337         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
4338         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
4339         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
4340         * sysdeps/ieee754/s_matherr.c: Likewise.
4341         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
4342         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
4343         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
4344         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
4345
4346 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
4347
4348         * crypt/md5.h: Remove __STDC__ conditionals.
4349         * libio/libioP.h: Likewise.
4350         * locale/programs/config.h: Likewise.
4351         * sysdeps/generic/sysdep.h: Likewise.
4352         * sysdeps/i386/asm-syntax.h: Likewise.
4353         * sysdeps/s390/asm-syntax.h: Likewise.
4354         * sysdeps/unix/sysdep.h: Likewise.
4355         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
4356         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
4357
4358 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
4359
4360         * libio/libio.h: Remove __STDC__ conditionals.
4361         * malloc/obstack.h: Likewise.
4362         * math/complex.h: Likewise.
4363         * math/math.h: Likewise.
4364         * sysdeps/generic/_G_config.h: Likewise.
4365         * sysdeps/gnu/_G_config.h: Likewise.
4366         * sysdeps/mach/hurd/_G_config.h: Likewise.
4367         * sysdeps/powerpc/bits/mathdef.h: Likewise.
4368         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
4369         * sysdeps/sparc/bits/mathdef.h: Likewise.
4370
4371 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
4372
4373         [BZ #13583]
4374         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
4375         Clean up HAS_* macros.
4376         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
4377         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
4378         possible.
4379         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
4380         HAS_AVX.
4381         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
4382         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
4383         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
4384         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
4385         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
4386
4387 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
4388
4389         * elf/tst-unique3.cc (gets): Remove declaration.
4390         * elf/tst-unique3lib.cc (gets): Likewise.
4391         * elf/tst-unique3lib2.cc (gets): Likewise.
4392         * elf/tst-unique4.cc (gets): Likewise.
4393
4394 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
4395
4396         * include/stdio.h: Add C++ protection.  Add gets declarations and
4397         definitions.
4398         * debug/tst-chk1.c: Don't declare gets here.
4399         * stdio-common/tst-gets.c: Likewise.
4400
4401 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
4402
4403         * posix/glob: Remove directory.
4404
4405 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
4406
4407         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
4408
4409 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
4410
4411         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
4412         of the non-standard EPFNOSUPPORT.
4413
4414 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4415
4416         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
4417         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
4418         ANYWHERE set to 1 only on KERN_NO_SPACE error.
4419
4420 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
4421
4422         * wcsmbs/uchar.h: Test __STDC_VERSION__.
4423
4424 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
4425
4426         * nscd/aicache.c (addhstaiX): Do not cache negative results of
4427         transient errors.
4428         * nscd/grpcache.c (cache_addgr): Likewise.
4429         * nscd/hstcache.c (cache_addhst): Likewise.
4430         * nscd/initgrcache.c (addinitgroupsX): Likewise.
4431         * nscd/pwdcache.c (cache_addpw): Likewise.
4432         * nscd/servicescache.c (cache_addserv): Likewise.
4433
4434 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
4435
4436         * malloc/malloc.c: Various cleanups.
4437         * malloc/hooks.c: Likewise.
4438
4439         * stdlib/Makefile (tests): Add bug-fmtmsg1.
4440         * stdlib/bug-fmtmsg1.c: New file.
4441
4442         * stdlib/fmtmsg.c (init): Add missing unlock.
4443         Patch by Peng Haitao <penght@cn.fujitsu.com>.
4444
4445 2012-01-12  Marek Polacek  <polacek@redhat.com>
4446
4447         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
4448         and _GNU_SOURCE.
4449
4450 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
4451
4452         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
4453         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
4454         macro to ensure uniqueness of label name.
4455         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
4456         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
4457
4458 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
4459
4460         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
4461
4462         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
4463         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
4464         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
4465         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
4466
4467 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
4468
4469         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
4470
4471         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
4472         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
4473         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
4474
4475         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
4476
4477         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
4478         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
4479         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
4480         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
4481
4482         * math/bits/math-finite.h: Add ldexp support.
4483
4484 2012-01-10  Marek Polacek  <polacek@redhat.com>
4485
4486         * locale/programs/localedef.h (show_archive_content): Add noreturn
4487         attribute.
4488
4489 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
4490
4491         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
4492
4493 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
4494
4495         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
4496
4497         * io/Makefile (headers): Add bits/poll2.h.
4498
4499 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
4500
4501         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
4502         typo #include statement.
4503
4504 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
4505
4506         * include/sys/cdefs.h: Define __attribute_alloc_size.
4507         * catgets/gencat.c: Add alloc_size attribute and apply consistently
4508         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
4509         * elf/pldd.c: Likewise.
4510         * iconv/iconv_charmap.c: Likewise.
4511         * iconv/iconvconfig.c: Likewise.
4512         * iconv/strtab.c: Likewise.
4513         * locale/programs/locale.c: Likewise.
4514         * locale/programs/localedef.h: Likewise.
4515         * locale/programs/simple-hash.c: Likewise.
4516         * nscd/nscd.h: Likewise.
4517         * nss/makedb.c: Likewise.
4518         * sysdeps/generic/ldconfig.h: Likewise.
4519         * locale/programs/localedef.c: Remove xmalloc prototype.
4520         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
4521
4522 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
4523
4524         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
4525         appropriate.
4526
4527 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
4528
4529         * math/Makefile (tests): Add tst-CMPLX.
4530         * math/tst-CMPLX.c: New file.
4531
4532         * math/complex.h (CMPLXL): Fix typo.
4533
4534         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
4535         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
4536         GLIBC_2.16.
4537         * debug/tst-chk1.c: Add poll and ppoll tests.
4538         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
4539         * include/sys/poll.h: Add hidden proto for ppoll.
4540         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
4541         * sysdeps/mach/hurd/ppoll.c: Likewise.
4542         * io/ppoll.c: Likewise.
4543         * debug/poll_chk.c: New file.
4544         * debug/ppoll_chk.c: New file.
4545         * include/bits/poll2.h: New file.
4546         * io/bits/poll2.h: New file.
4547
4548         [BZ #1350]
4549         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
4550
4551         * configure.in: static is always set to yes.  Remove.
4552         * config.make.in: Don't set build-static.
4553         * Makeconfig: Remove use of build-static.
4554         * dlfcn/Makefile: Likewise.
4555         * elf/Makefile: Likewise.
4556         * math/Makefile: Likewise.
4557         * misc/Makefile: Likewise.
4558         * nptl/Makefile: Likewise.
4559         * sysdeps/mach/hurd/Makefile: Likewise.
4560
4561         * configure.in: PWD_P is not used anymore.
4562         * config.make.in: Remove PWD_P entry.
4563
4564         * configure.in: Remove last remnants of RANLIB.
4565         No need to check for signed size_t anymore.
4566         Don't set libc_commonpagesize and libc_relro_required here for Alpha
4567         and IA-64.
4568         Remove __builtin_expect test because we require at least gcc 3.4.
4569         * aclocal.m4: Likewise.
4570
4571         * wcsmbs/mbrtoc16.c: Implement using towc function.
4572         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
4573         * wcsmbs/wcsmbsload.c: Likewise.
4574         * iconv/gconv_simple.c: Likewise.
4575         * iconv/gconv_int.h: Likewise.
4576         * iconv/gconv_builtin.h: Likewise.
4577         * iconv/iconv_prog.c: Remove CHAR16 handling.
4578
4579         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
4580
4581         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
4582
4583         * configure.in: Remove --with-elf and --enable-bounded options.
4584         Dont set base_machine for ia64.  More non-ELF conditions removed.
4585         Remove testing and setting of leading underscore information.
4586         * config.make.in (build-bounded): Set to no.
4587         * config.h.in: Remove NO_UNDERSCORES entry.
4588         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
4589         them.
4590         * csu/start.c: Remove !NO_UNDERSCORE code.
4591         * locale/localeinfo.h: Likewise.
4592         * sysdeps/generic/machine-gmon.h: Likewise.
4593         * sysdeps/generic/sysdep.h: Likewise.
4594         * sysdeps/i386/sysdep.h: Likewise.
4595         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
4596         * sysdeps/mach/sysdep.h: Likewise.
4597         * sysdeps/s390/s390-32/sysdep.h: Likewise.
4598         * sysdeps/s390/s390-64/sysdep.h: Likewise.
4599         * sysdeps/sh/sysdep.h: Likewise.
4600         * sysdeps/sparc/sparc32/alloca.S: Likewise.
4601         * sysdeps/unix/i386/sysdep.S: Likewise.
4602         * sysdeps/unix/sparc/start.c: Likewise.
4603         * sysdeps/unix/sparc/sysdep.S: Likewise.
4604         * sysdeps/unix/sparc/sysdep.h: Likewise.
4605         * sysdeps/unix/start.c: Likewise.
4606         * sysdeps/unix/x86_64/sysdep.S: Likewise.
4607         * sysdeps/x86_64/sysdep.h: Likewise.
4608
4609 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
4610
4611         [BZ #13553]
4612         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
4613         for non-gcc.
4614         * argp/argp-fmtstream.h: Use const instead __const.
4615         * argp/argp.h: Likewise.
4616         * assert/assert.h: Likewise.
4617         * bits/fenv.h: Likewise.
4618         * bits/sched.h: Likewise.
4619         * bits/sigset.h: Likewise.
4620         * bits/sigthread.h: Likewise.
4621         * catgets/nl_types.h: Likewise.
4622         * conform/data/pthread.h-data: Likewise.
4623         * crypt/crypt-private.h: Likewise.
4624         * crypt/crypt.h: Likewise.
4625         * crypt/crypt_util.c: Likewise.
4626         * ctype/ctype.h: Likewise.
4627         * debug/execinfo.h: Likewise.
4628         * debug/mbsnrtowcs_chk.c: Likewise.
4629         * debug/mbsrtowcs_chk.c: Likewise.
4630         * debug/wcsnrtombs_chk.c: Likewise.
4631         * debug/wcsrtombs_chk.c: Likewise.
4632         * debug/wcstombs_chk.c: Likewise.
4633         * dirent/dirent.h: Likewise.
4634         * dlfcn/dlfcn.h: Likewise.
4635         * elf/neededtest4.c: Likewise.
4636         * grp/grp.h: Likewise.
4637         * gshadow/gshadow.h: Likewise.
4638         * iconv/gconv.h: Likewise.
4639         * iconv/gconv_int.h: Likewise.
4640         * iconv/gconv_simple.c: Likewise.
4641         * iconv/iconv.h: Likewise.
4642         * iconv/loop.c: Likewise.
4643         * iconv/skeleton.c: Likewise.
4644         * include/aio.h: Likewise.
4645         * include/aliases.h: Likewise.
4646         * include/argz.h: Likewise.
4647         * include/arpa/inet.h: Likewise.
4648         * include/assert.h: Likewise.
4649         * include/dirent.h: Likewise.
4650         * include/dlfcn.h: Likewise.
4651         * include/execinfo.h: Likewise.
4652         * include/fcntl.h: Likewise.
4653         * include/fenv.h: Likewise.
4654         * include/glob.h: Likewise.
4655         * include/grp.h: Likewise.
4656         * include/libintl.h: Likewise.
4657         * include/mntent.h: Likewise.
4658         * include/netdb.h: Likewise.
4659         * include/pwd.h: Likewise.
4660         * include/rpc/netdb.h: Likewise.
4661         * include/sched.h: Likewise.
4662         * include/search.h: Likewise.
4663         * include/shadow.h: Likewise.
4664         * include/signal.h: Likewise.
4665         * include/stdio.h: Likewise.
4666         * include/stdlib.h: Likewise.
4667         * include/string.h: Likewise.
4668         * include/sys/socket.h: Likewise.
4669         * include/sys/stat.h: Likewise.
4670         * include/sys/statfs.h: Likewise.
4671         * include/sys/statvfs.h: Likewise.
4672         * include/sys/syslog.h: Likewise.
4673         * include/sys/time.h: Likewise.
4674         * include/sys/uio.h: Likewise.
4675         * include/time.h: Likewise.
4676         * include/unistd.h: Likewise.
4677         * include/utmp.h: Likewise.
4678         * include/wchar.h: Likewise.
4679         * include/wctype.h: Likewise.
4680         * inet/aliases.h: Likewise.
4681         * inet/arpa/inet.h: Likewise.
4682         * inet/netinet/ether.h: Likewise.
4683         * inet/netinet/in.h: Likewise.
4684         * intl/libintl.h: Likewise.
4685         * io/bits/fcntl2.h: Likewise.
4686         * io/fcntl.h: Likewise.
4687         * io/ftw.h: Likewise.
4688         * io/sys/poll.h: Likewise.
4689         * io/sys/stat.h: Likewise.
4690         * io/sys/statfs.h: Likewise.
4691         * io/sys/statvfs.h: Likewise.
4692         * io/utime.h: Likewise.
4693         * libio/bits/stdio.h: Likewise.
4694         * libio/bits/stdio2.h: Likewise.
4695         * libio/libio.h: Likewise.
4696         * libio/libioP.h: Likewise.
4697         * libio/stdio.h: Likewise.
4698         * locale/lc-ctype.c: Likewise.
4699         * locale/locale.h: Likewise.
4700         * login/utmp.h: Likewise.
4701         * malloc/arena.c: Likewise.
4702         * malloc/malloc.c: Likewise.
4703         * malloc/malloc.h: Likewise.
4704         * malloc/mcheck.c: Likewise.
4705         * malloc/mtrace.c: Likewise.
4706         * math/bits/mathcalls.h: Likewise.
4707         * math/fenv.h: Likewise.
4708         * math/math_private.h: Likewise.
4709         * misc/bits/error.h: Likewise.
4710         * misc/bits/syslog.h: Likewise.
4711         * misc/err.h: Likewise.
4712         * misc/error.h: Likewise.
4713         * misc/fstab.h: Likewise.
4714         * misc/mntent.h: Likewise.
4715         * misc/regexp.h: Likewise.
4716         * misc/search.h: Likewise.
4717         * misc/sgtty.h: Likewise.
4718         * misc/sys/mman.h: Likewise.
4719         * misc/sys/syslog.h: Likewise.
4720         * misc/sys/uio.h: Likewise.
4721         * misc/sys/xattr.h: Likewise.
4722         * misc/ttyent.h: Likewise.
4723         * nis/rpcsvc/ypclnt.h: Likewise.
4724         * nss/nss.h: Likewise.
4725         * posix/bits/unistd.h: Likewise.
4726         * posix/fnmatch.h: Likewise.
4727         * posix/glob.h: Likewise.
4728         * posix/sched.h: Likewise.
4729         * posix/spawn.h: Likewise.
4730         * posix/sys/wait.h: Likewise.
4731         * posix/unistd.h: Likewise.
4732         * posix/wordexp.h: Likewise.
4733         * pwd/pwd.h: Likewise.
4734         * resolv/netdb.h: Likewise.
4735         * resource/sys/resource.h: Likewise.
4736         * rt/aio.h: Likewise.
4737         * rt/bits/mqueue2.h: Likewise.
4738         * rt/mqueue.h: Likewise.
4739         * shadow/shadow.h: Likewise.
4740         * signal/signal.h: Likewise.
4741         * socket/send.c: Likewise.
4742         * socket/sendto.c: Likewise.
4743         * socket/sys/socket.h: Likewise.
4744         * stdio-common/printf.h: Likewise.
4745         * stdlib/bits/stdlib.h: Likewise.
4746         * stdlib/fmtmsg.h: Likewise.
4747         * stdlib/monetary.h: Likewise.
4748         * stdlib/stdlib.h: Likewise.
4749         * stdlib/ucontext.h: Likewise.
4750         * streams/stropts.h: Likewise.
4751         * string/argz.h: Likewise.
4752         * string/bits/string2.h: Likewise.
4753         * string/string.h: Likewise.
4754         * string/strings.h: Likewise.
4755         * sunrpc/rpc/auth.h: Likewise.
4756         * sunrpc/rpc/auth_des.h: Likewise.
4757         * sunrpc/rpc/clnt.h: Likewise.
4758         * sunrpc/rpc/netdb.h: Likewise.
4759         * sunrpc/rpc/pmap_clnt.h: Likewise.
4760         * sunrpc/rpc/xdr.h: Likewise.
4761         * sysdeps/generic/inttypes.h: Likewise.
4762         * sysdeps/generic/net/if.h: Likewise.
4763         * sysdeps/generic/sys/swap.h: Likewise.
4764         * sysdeps/gnu/net/if.h: Likewise.
4765         * sysdeps/gnu/utmpx.h: Likewise.
4766         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
4767         * sysdeps/i386/i486/bits/string.h: Likewise.
4768         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
4769         * sysdeps/s390/bits/string.h: Likewise.
4770         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
4771         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
4772         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
4773         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
4774         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
4775         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
4776         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
4777         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
4778         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
4779         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
4780         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
4781         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
4782         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
4783         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
4784         * sysdeps/unix/sysv/linux/readv.c: Likewise.
4785         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
4786         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
4787         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
4788         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
4789         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
4790         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
4791         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
4792         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
4793         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
4794         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
4795         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
4796         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
4797         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
4798         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
4799         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
4800         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
4801         * sysvipc/sys/ipc.h: Likewise.
4802         * sysvipc/sys/msg.h: Likewise.
4803         * sysvipc/sys/sem.h: Likewise.
4804         * sysvipc/sys/shm.h: Likewise.
4805         * termios/termios.h: Likewise.
4806         * time/sys/time.h: Likewise.
4807         * time/time.h: Likewise.
4808         * wcsmbs/bits/wchar2.h: Likewise.
4809         * wcsmbs/uchar.h: Likewise.
4810         * wcsmbs/wchar.h: Likewise.
4811         * wctype/wctype.h: Likewise.
4812
4813         [BZ #13551]
4814         * Makeconfig: Remove all but ELF support including AIX support.
4815         * Makerules: Likewise.
4816         * config.h.in: Likewise.
4817         * config.make.in: Likewise.
4818         * configure: Likewise.
4819         * configure.in: Likewise.
4820         * csu/Makefile: Likewise.
4821         * csu/version.c: Likewise.
4822         * debug/Makefile: Likewise.
4823         * dlfcn/Makefile: Likewise.
4824         * elf/Makefile: Likewise.
4825         * extra-lib.mk: Likewise.
4826         * iconv/Makefile: Likewise.
4827         * include/libc-symbols.h: Likewise.
4828         * include/shlib-compat.h: Likewise.
4829         * resolv/Makefile: Likewise.
4830         * resolv/res_libc.c: Likewise.
4831         * rt/Makefile: Likewise.
4832         * sysdeps/i386/asm-syntax.h: Likewise.
4833         * sysdeps/i386/sysdep.h: Likewise.
4834         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
4835         * sysdeps/mach/sysdep.h: Likewise.
4836         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
4837         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
4838         * sysdeps/s390/asm-syntax.h: Likewise.
4839         * sysdeps/s390/s390-32/sysdep.h: Likewise.
4840         * sysdeps/s390/s390-64/sysdep.h: Likewise.
4841         * sysdeps/sh/sysdep.h: Likewise.
4842         * sysdeps/unix/sparc/sysdep.h: Likewise.
4843         * sysdeps/wordsize-32/divdi3.c: Likewise.
4844         * sysdeps/x86_64/sysdep.h: Likewise.
4845
4846         * argp/Versions: Remove _argp_unlock_xxx.
4847
4848         [BZ #13559]
4849         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
4850         * abilist/libBrokenLocale.abilist: Likewise.
4851         * abilist/libanl.abilist: Likewise.
4852         * abilist/libc.abilist: Likewise.
4853         * abilist/libcrypt.abilist: Likewise.
4854         * abilist/libdl.abilist: Likewise.
4855         * abilist/libm.abilist: Likewise.
4856         * abilist/libnsl.abilist: Likewise.
4857         * abilist/libpthread.abilist: Likewise.
4858         * abilist/libresolv.abilist: Likewise.
4859         * abilist/librt.abilist: Likewise.
4860         * abilist/libthread_db.abilist: Likewise.
4861         * abilist/libutil.abilist: Likewise.
4862         * abilist/libnss_db.abilist: New file.
4863
4864         * scripts/abilist.awk: Add support for indirect functions.
4865
4866         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
4867
4868         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
4869
4870         * shlib-versions: Remove entries for ports architectures.
4871
4872         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
4873         files in ports.
4874         * elf/stackguard-macros.h: Remove support for IA-64.
4875         * elf/tst-auditmod1.c: Likewise.
4876         * sysdeps/generic/ldsodefs.h: Likewise.
4877
4878         * sysdeps/unix/sysv/linux/configure.in: Ports should define
4879         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
4880         configure files.
4881
4882         [BZ #13552]
4883         * configure.in: Remove --enable-omitfp support.
4884         * FAQ.in: Adjust.
4885         * config.make.in: Likewise.
4886         * Makeconfig: Likewise.
4887         * manual/install.texi: Likewise.
4888
4889         In case anyone cares, the IA-64 architecture could move to ports.
4890         * sysdeps/ia64/*: Removed.
4891         * sysdeps/unix/sysv/linux/ia64/*: Removed.
4892         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
4893
4894         [BZ #13555]
4895         * configure.in: Remove entries for unsupported architectures.
4896
4897         [BZ #13533]
4898         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
4899         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
4900         routines.
4901         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
4902         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
4903         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
4904         fall back to using wcrtomb.
4905         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
4906         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
4907         renaming.
4908         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
4909         * wcsmbs/tst-c16c32-1.c: New file.
4910
4911         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
4912         local variable.
4913
4914         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
4915
4916         * elf/tst-unique3.cc: Add explicit declaration of gets.
4917         * elf/tst-unique3lib.cc: Likewise.
4918         * elf/tst-unique3lib2.cc: Likewise.
4919         * elf/tst-unique4.cc: Likewise.
4920
4921         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
4922
4923 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
4924
4925         [BZ #13566]
4926         * assert/assert.h (static_assert): Don't define for C++.
4927         * libio/stdio.h (gets): Do declare for C++ <= C++11.
4928         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
4929
4930 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
4931
4932         * iconv/loop.c (single loop): Fix assertion in storing of
4933         remaining bytes.
4934
4935         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
4936
4937 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
4938
4939         * posix/getconf.c: Update copyright year.
4940         * nss/getent.c: Likewise.
4941         * nss/makedb.c: Likewise.
4942         * iconv/iconvconfig.c: Likewise.
4943         * iconv/iconv_prog.c: Likewise.
4944         * elf/ldconfig.c: Likewise.
4945         * elf/pldd.c: Likewise.
4946         * elf/sotruss.ksh: Likewise.
4947         * catgets/gencat.c: Likewise.
4948         * csu/version.c: Likewise.
4949         * elf/ldd.bash.in: Likewise.
4950         * elf/sprof.c (print_version): Likewise.
4951         * locale/programs/locale.c: Likewise.
4952         * locale/programs/localedef.c: Likewise.
4953         * login/programs/pt_chown.c: Likewise.
4954         * nscd/nscd.c (print_version): Likewise.
4955         * debug/xtrace.sh: Likewise.
4956         * malloc/memusage.sh: Likewise.
4957         * malloc/mtrace.pl: Likewise.
4958         * debug/catchsegv.sh: Likewise.
4959
4960 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
4961
4962         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
4963         pure attribute.
4964
4965 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
4966
4967         [BZ #13533]
4968         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
4969         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
4970         transformations.
4971         * iconv/gconv_int.h: Likewise.
4972         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
4973         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
4974         from libc for GLIBC_2.16.
4975         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
4976         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
4977         * wcsmbs/uchar.h: Really define mbstate_t.
4978         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
4979         * wcsmbs/c16rtomb.c: New file.
4980         * wcsmbs/mbrtoc16.c: New file.
4981         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
4982         for C/POSIX locale.
4983         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
4984         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
4985
4986         * wcsmbs/wchar.h: Add missing __restrict.
4987
4988 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
4989
4990         [BZ #13532]
4991         * time/Makefile (routines): Add timespec_get.
4992         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
4993         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
4994         timespec for ISO C11.
4995         * time/timespec_get.c: New file.
4996         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
4997         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
4998
4999         [BZ #13531]
5000         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
5001         * stdlib/stdlib.h: Declare aligned_alloc.
5002         * Versions.def: Add GLIBC_2.16 for libc.
5003         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
5004
5005         [BZ 13527]
5006         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
5007         ISO C11.
5008
5009         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
5010         code.
5011
5012         [BZ #13528]
5013         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
5014
5015         [BZ #13529]
5016         * assert/assert.h (static_assert): Define.
5017
5018         * version.h: Update for 2.16 development version.
5019
5020         [BZ #13526]
5021         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
5022         _ISOC11_SOURCE.
5023
5024         * version.h (RELEASE): Bump for 2.15 release.
5025         * include/features.h (__GLIBC_MINOR__): Bump to 15.
5026
5027         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
5028         Patch by Marek Polacek <mpolacek@redhat.com>.
5029
5030         * bits/byteswap.h: Protect long long constants with __extension__.
5031         * sysdeps/i386/bits/byteswap.h: Likewise.
5032         * sysdeps/ia64/bits/byteswap.h: Likewise.
5033         * sysdeps/s390/bits/byteswap.h: Likewise.
5034         * sysdeps/x86_64/bits/byteswap.h: Likewise.
5035
5036 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5037
5038         [BZ #13540]
5039         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
5040         destination buffer.
5041         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
5042
5043 2011-12-23  Marek Polacek  <polacek@redhat.com>
5044
5045         * elf/dl-addr.c (determine_info): Add inline keyword.
5046         * elf/tst-auditmod4b.c (check_avx): Likewise.
5047         * elf/tst-auditmod6b.c (check_avx): Likewise.
5048         * elf/tst-auditmod6c.c (check_avx): Likewise.
5049         * elf/tst-auditmod7b.c (check_avx): Likewise.
5050
5051 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
5052
5053         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
5054         !__SSE_MATH__.
5055
5056 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5057
5058         [BZ #13540]
5059         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
5060         processing for last bytes.
5061
5062 2011-08-06  Bruno Haible  <bruno@clisp.org>
5063
5064         [BZ #13061]
5065         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
5066         U+0385, not to U+1FEE.
5067
5068         [BZ #13062]
5069         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
5070         entry for U+00A5 U+0301.
5071
5072 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
5073
5074         [BZ #13166]
5075         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
5076         buffer for the output is too small.
5077
5078         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
5079         optimization.
5080
5081         [BZ #13185]
5082         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
5083         SSE flags if possible.
5084
5085 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5086
5087         [BZ #13540]
5088         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
5089         processing for last bytes.
5090
5091 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
5092
5093         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
5094         (syscall-list-default-options, syscall-list-default-condition)
5095         (syscall-list-includes): Define.
5096         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
5097         list of ABIs and options and #if conditions for each ABI.  Do not
5098         handle common syscalls between ABIs specially.
5099         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
5100         Remove.
5101         (syscall-list-variants, syscall-list-32bit-options)
5102         (syscall-list-32bit-condition, syscall-list-64bit-options)
5103         (syscall-list-64bit-condition): Define.
5104         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
5105         (syscall-list-variants, syscall-list-32bit-options)
5106         (syscall-list-32bit-condition, syscall-list-64bit-options)
5107         (syscall-list-64bit-condition): Define.
5108         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
5109         Remove.
5110         (syscall-list-variants, syscall-list-32bit-options)
5111         (syscall-list-32bit-condition, syscall-list-64bit-options)
5112         (syscall-list-64bit-condition): Define.
5113         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
5114         Remove.
5115         (syscall-list-variants, syscall-list-32bit-options)
5116         (syscall-list-32bit-condition, syscall-list-64bit-options)
5117         (syscall-list-64bit-condition): Define.
5118
5119 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
5120
5121         * locale/iso-639.def: Add brx entry.
5122
5123         [BZ #13328]
5124         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
5125         Proposed by Mariusz_Cukr <marcukr@op.pl>.
5126
5127         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
5128         __feraiseexcept_renamed.
5129
5130 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
5131
5132         [BZ #13538]
5133         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
5134         EPOLLET with unsigned values.
5135         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
5136         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
5137
5138         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
5139         to large cancellation.
5140         * math/s_cacoshf.c: Likewise.
5141         * math/s_cacoshl.c: Likewise.
5142
5143 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
5144
5145         [BZ #13305]
5146         [BZ #12786]
5147         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
5148         * math/s_cacoshf.c: Likewise.
5149         * math/s_cacoshl.c: Likewise.
5150
5151 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
5152
5153         [BZ #13439]
5154         * iconv/gconv.h: Define __GCONV_SWAP.
5155         * iconvdata/unicode.c: The swap bit must be stored in __flags.
5156         * iconvdata/utf-16.c: Likewise.
5157         * iconvdata/utf-32.c: Likewise.
5158
5159 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
5160
5161         [BZ #13524]
5162         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
5163         numerator after shifting it by one limb.
5164
5165 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
5166
5167         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
5168         under [__USE_EXTERN_INLINES].
5169
5170 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
5171
5172         [BZ #13446]
5173         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
5174
5175 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5176
5177         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
5178         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
5179         optimized code.
5180         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
5181         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
5182         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
5183         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
5184         for strncasecmp/strncasecmp_l compilation.
5185         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
5186         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
5187
5188 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
5189
5190         [BZ #13484]
5191         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
5192         of __asm__.
5193
5194 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
5195
5196         [BZ #13506]
5197         * time/tzfile.c (__tzfile_read): Check values from file header.
5198
5199 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
5200
5201         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
5202         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
5203         * powerpc/powerpc32/dl-start.S: Likewise.
5204         * powerpc/powerpc32/elf/start.S: Likewise.
5205         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
5206         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
5207         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
5208         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
5209         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
5210         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
5211         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
5212         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
5213         * powerpc/powerpc32/fpu/s_round.S: Likewise.
5214         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
5215         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
5216         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
5217         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
5218         * powerpc/powerpc32/memset.S: Likewise.
5219         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
5220         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
5221         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
5222         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
5223         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
5224         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
5225         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
5226         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
5227         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
5228         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
5229         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
5230         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
5231         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
5232
5233 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5234
5235         * math/libm-test.inc: Added more nearbyint tests.
5236         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
5237         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
5238         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
5239         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
5240
5241 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
5242
5243         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
5244         FD_CLOEXEC.
5245
5246 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5247
5248         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
5249         Add wcscpy-ssse3 wcscpy-c.
5250         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
5251         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
5252         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
5253         * sysdeps/x86_64/wcschr.S: New file.
5254         * sysdeps/x86_64/wcsrchr.S: New file.
5255         * string/test-strcmp.c: Remove checking of wcscmp function for
5256         wrong alignments.
5257         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
5258         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
5259         wcsrchr-sse2 wcsrchr-c.
5260         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
5261         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
5262         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
5263         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
5264         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
5265         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
5266         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
5267         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
5268         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
5269         * wcsmbc/wcschr.c (WCSCHR): New macro.
5270
5271 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5272
5273         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
5274         * wcsmbs/test-wcsrchr.c: New file.
5275         * string/test-strrchr.c: Add wcsrchr support.
5276         (WIDE): New macro.
5277         * wcsmbs/test-wcscpy.c: New file.
5278         * string/test-strcpy.c: Add wcscpy support.
5279         (WIDE): New macro.
5280
5281 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
5282
5283         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
5284         the inner loop.
5285
5286 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
5287
5288         [BZ #13472]
5289         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
5290
5291 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
5292
5293         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
5294         Minor optimizations.
5295
5296         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
5297         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
5298         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
5299
5300 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
5301
5302         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
5303         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
5304         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
5305         for gcc to avoid warnings.
5306         * inet/Makefile (tests): Add tst-checks.
5307         * inet/tst-checks.c: New file.
5308
5309         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
5310         warning.
5311
5312         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
5313         __wmemcmp_sse2.
5314
5315         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
5316         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
5317
5318         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
5319
5320 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
5321
5322         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
5323         problem.
5324
5325         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
5326
5327 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
5328
5329         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
5330         conditional on GCC version.
5331         (__arch_compare_and_exchange_val_8_acq)
5332         (__arch_compare_and_exchange_val_16_acq)
5333         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
5334         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
5335         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
5336
5337 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
5338
5339         * sysdeps/sh/backtrace.c: New file.
5340
5341 2011-12-02  Andreas Schwab  <schwab@redhat.com>
5342
5343         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
5344         parenthesis.
5345
5346 2011-12-01  Andreas Schwab  <schwab@redhat.com>
5347
5348         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
5349         falling back to utime.
5350
5351 2011-11-30  Andreas Schwab  <schwab@redhat.com>
5352
5353         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
5354         expectations for float.
5355
5356 2011-11-29  Andreas Schwab  <schwab@redhat.com>
5357
5358         * locale/weight.h (findidx): Add parameter len.
5359         * locale/weightwc.h (findidx): Likewise.
5360         * posix/fnmatch_loop.c (FCT): Adjust caller.
5361         * posix/regcomp.c (build_equiv_class): Likewise.
5362         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
5363         * posix/regexec.c (check_node_accept_bytes): Likewise.
5364         * string/strcoll_l.c (STRCOLL): Likewise.
5365         * string/strxfrm_l.c (STRXFRM): Likewise.
5366
5367 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
5368
5369         * Makefile.in: Remove CVSOPT handling.
5370         * configure.in: Remove use of AC_REVISION.
5371         * iconvdata/Makefile (distribute): No need to filter out CVS.
5372         * scripts/list-sources.sh: Remove CVS, subversion and monotone
5373         handling.
5374
5375 2011-11-16  Andreas Schwab  <schwab@redhat.com>
5376
5377         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
5378         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
5379         [USE_AS_STRNCASECMP_L]: Likewise.
5380         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
5381         NO_TLS_DIRECT_SEG_REFS.
5382         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
5383         Fix argument offsets for non-PIC.
5384         [USE_AS_STRNCASECMP_L]: Likewise.
5385         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
5386         NO_TLS_DIRECT_SEG_REFS.
5387
5388 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
5389
5390         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
5391         O_CLOEXEC.
5392         * locale/loadlocale.c (_nl_load_locale): Likewise.
5393
5394 2011-11-15  Andreas Schwab  <schwab@redhat.com>
5395
5396         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
5397         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
5398         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
5399         (SYSCALL_GETTIME): Set errno on error.
5400
5401         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
5402         count references to noai6ai_cached.
5403
5404 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
5405
5406         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
5407
5408         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
5409         FD_CLOEXEC for /proc/self/maps.
5410
5411         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
5412         FD_CLOEXEC for /proc/meminfo.
5413
5414         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
5415         gai.conf.
5416
5417         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
5418         FD_CLOEXEC for given file.
5419
5420         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
5421
5422         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
5423         FD_CLOEXEC for /etc/hosts.
5424         (_gethtent): Likewise.
5425
5426         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
5427
5428         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
5429         cancellation and set FD_CLOEXEC for /etc/netgroup.
5430
5431         * nss/nss_files/files-key.c (search): Don't allow cancellation when
5432         reading /etc/publickey.
5433
5434         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
5435         allow cancellation when reading /etc/group.
5436
5437         * nss/nss_files/files-alias.c (internal_setent): Don't allow
5438         cancellation.
5439         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
5440
5441         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
5442         when using data file.
5443
5444         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
5445
5446         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
5447         (write_nis_obj): Use "c" and "e" in fopen.
5448
5449         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
5450
5451         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
5452
5453         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
5454
5455         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
5456
5457         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
5458         locale.alias.
5459
5460         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
5461
5462         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
5463
5464         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
5465
5466         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
5467         file parsing and set FD_CLOEXEC.
5468
5469 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
5470
5471         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
5472
5473 2011-11-14  Andreas Schwab  <schwab@redhat.com>
5474
5475         * malloc/arena.c (arena_get2): Don't call reused_arena when
5476         _int_new_arena failed.
5477
5478 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
5479
5480         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
5481         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
5482         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
5483         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
5484         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
5485         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
5486         to compile strcasecmp and strncasecmp.
5487         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
5488         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
5489
5490         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
5491
5492 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
5493
5494         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
5495         locale-defines.sym to gen-as-const-headers.
5496         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
5497         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
5498         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
5499         to compile strcasecmp and strncasecmp.
5500         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
5501         strcasecmp_l and strncasecmp_l.
5502         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
5503         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
5504         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
5505         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
5506         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
5507         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
5508         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
5509         * sysdeps/i386/i686/multiarch/strncase.S: New file.
5510         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
5511         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
5512         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
5513
5514 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
5515
5516         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
5517         result of SYSDEP_GETTIME_CPU to retval.
5518         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
5519         parameter list to macro.  Remove trailing semicolon.  Adjust users.
5520
5521         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
5522         variable.
5523
5524         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
5525         mantissa words.
5526         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
5527
5528         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
5529         from unused variable.
5530
5531         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
5532         DWARF definitions.
5533         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
5534         for assembling.
5535
5536         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
5537         over namespaces.
5538
5539         * sunrpc/rpc_prot.c (rejected): Fix case value.
5540
5541         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
5542         unsigned long long int to avoid warnings in shift.
5543
5544         * posix/regex_internal.c (re_string_reconstruct): Actually use result
5545         of use of trans.
5546         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
5547         variable tmp.
5548
5549         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
5550         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
5551         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
5552
5553         * nis/nis_table.c (nis_list): Use variable of correct type for
5554         result of __follow_path call.
5555
5556 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5557
5558         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
5559         of math functions ceil, trunc, floor, round, and sqrt, when
5560         avaliable on the platform.
5561         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
5562         name clash.
5563         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
5564         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
5565         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
5566
5567 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
5568
5569         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
5570         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
5571
5572 2011-11-11  Roland McGrath  <roland@hack.frob.com>
5573
5574         * include/unistd.h: Fix __readlink return type.
5575         Reported by Chris Metcalf <cmetcalf@tilera.com>.
5576
5577 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
5578
5579         * stdlib/ucontext.h: Undo last change for makecontext.
5580
5581 2011-11-11  Andreas Schwab  <schwab@redhat.com>
5582
5583         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
5584
5585         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
5586         * setjmp/setjmp.h: Mark functions as non-leaf.
5587         * setjmp/bits/setjmp2.h: Likewise.
5588         * stdlib/ucontext.h: Likewise.
5589
5590 2011-11-10  Andreas Schwab  <schwab@redhat.com>
5591
5592         * malloc/arena.c (_int_new_arena): Don't increment narenas.
5593         (reused_arena): Don't check arena limit.
5594         (arena_get2): Atomically check arena limit.
5595
5596 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
5597
5598         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
5599         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
5600
5601         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
5602         instructions.
5603
5604 2011-11-07  Andreas Schwab  <schwab@redhat.com>
5605
5606         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
5607         handler when locking.
5608
5609         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
5610         Fix size of allocated buffer.
5611
5612 2011-11-04  Andreas Schwab  <schwab@redhat.com>
5613
5614         [BZ #10103]
5615         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
5616         declarations for long double functions.
5617         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
5618
5619         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
5620
5621 2011-11-03  Andreas Schwab  <schwab@redhat.com>
5622
5623         * nscd/nscd.c (main): Don't start AVC thread until credentials are
5624         installed.
5625
5626         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
5627         is disabled.
5628
5629 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5630
5631         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
5632
5633 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
5634
5635         * include/alloca.h (stackinfo_alloca_round): Define.
5636         (extend_alloca): Use it.
5637         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
5638         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
5639         here.
5640
5641         * scripts/check-local-headers.sh: Ignore libaudit.h.
5642
5643         * nscd/Makefile (extra-objs): Make recursively expanded.
5644
5645 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
5646
5647         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
5648         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
5649
5650         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
5651         * posix/tst-rfc3484-2.c: Likewise.
5652         * posix/tst-rfc3484-3.c: Likewise.
5653
5654         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
5655         process_vm_writev.
5656         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
5657         process_vm_writev.
5658         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
5659         process_vm_writev from libc using GLIBC_2.15 version.
5660
5661         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
5662
5663 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
5664
5665         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
5666         stack usage.
5667
5668 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
5669
5670         [BZ #13367]
5671         * nss/getent.c (initgroups_keys): Show error message in case no group
5672         names are given.
5673
5674         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
5675         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
5676         __bump_nl_timestamp.
5677         * nscd/connections (nscd_init): When host database is served open
5678         netlink socket and request notification about configuration changes.
5679         (main_loop_poll): Track netlink file descriptor and bump timestamp
5680         in case data becomes available.
5681         (main_loop_epoll): Likewise.
5682         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
5683         (database_pers_head): Add extra_data fileds.
5684         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
5685         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
5686         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
5687         Adjust caller.
5688         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
5689         in6ai data, call __free_in6ai.
5690         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
5691         Add -DHAVE_NETLINK.
5692         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
5693         interface information.  Reuse previous data if netlink timestamp
5694         is not changed.
5695         (__bump_nl_timestamp): New function.
5696         (__free_in6ai): New function.
5697
5698 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
5699
5700         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
5701         close_not_cancel_no_status here.
5702         (__check_pf): Reorganize code a bit to not call close twice if OOM.
5703
5704 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
5705
5706         [BZ #13276]
5707         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
5708         return value.
5709
5710         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
5711         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
5712         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
5713
5714 2011-07-03  Andreas Jaeger  <aj@suse.de>
5715
5716         [BZ #10709]
5717         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
5718         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
5719         * math/libm-test.inc (sin_test): Add test case.
5720
5721 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
5722
5723         [BZ #13337]
5724         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
5725         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
5726
5727         * elf/chroot_canon.c (chroot_canon): Cleanups.
5728
5729         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
5730
5731         [BZ #13335]
5732         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
5733         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
5734
5735         * string/test-strchr.c: Make usable for strchrnul testing.
5736         * string/test-strchrnul.c: New file.
5737         * string/Makefile (strop-tests): Add strchrnul.
5738
5739         * po/it.po: Update from translation team.
5740         * po/es.po: Likewise.
5741
5742 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
5743
5744         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
5745         the three constants needed as parameters.  Drop the others.
5746         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
5747         __m128i_strloadu_tolower.
5748         Create and initialize variable zero and use it in all the places
5749         where _mm_setzero_si128 was used.
5750
5751         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
5752         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
5753         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
5754         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
5755         anymore.
5756         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
5757         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
5758         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
5759         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
5760         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
5761         __mpranred, __mptan.
5762         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
5763         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
5764         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
5765         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
5766         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
5767         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
5768         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
5769         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
5770         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
5771
5772 2011-10-28  Andreas Schwab  <schwab@redhat.com>
5773
5774         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
5775         redefine if SHARED.
5776         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
5777
5778         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
5779         wide char related routines to wcsmbs subdir.
5780
5781 2011-10-27  Andreas Schwab  <schwab@redhat.com>
5782
5783         [BZ #13344]
5784         * misc/sys/cdefs.h (__THROWNL): Define.
5785         * posix/unistd.h: Use __THREADNL instead of __THREAD
5786         for memory synchronization functions.
5787
5788 2011-10-26  Roland McGrath  <roland@hack.frob.com>
5789
5790         [BZ #13349]
5791         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
5792         doesn't exist.
5793         * manual/stdio.texi (Obstack Streams): Node removed.
5794
5795 2011-10-26  Andreas Schwab  <schwab@redhat.com>
5796
5797         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
5798         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
5799         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
5800
5801         * math/math_private.h (math_force_eval): Allow non-addressable
5802         arguments.
5803         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
5804
5805 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
5806
5807         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
5808         file is not needed.
5809
5810         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
5811         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
5812         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
5813         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
5814         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
5815         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
5816         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
5817         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
5818         Add AVX variants.
5819         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
5820         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
5821         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
5822         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
5823         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
5824         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
5825         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
5826         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
5827         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
5828         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
5829         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
5830         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
5831         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
5832         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
5833         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
5834         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
5835         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
5836         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
5837         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
5838
5839         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
5840         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
5841
5842         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
5843         place.  Use VEX encoding when compiling for AVX.
5844
5845 2011-10-25  Andreas Schwab  <schwab@redhat.com>
5846
5847         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
5848         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
5849
5850         * string/test-strchr.c (do_test): Don't generate NUL bytes.
5851
5852 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
5853
5854         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
5855         useless if() expression.
5856         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
5857         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
5858         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
5859         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
5860         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
5861         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
5862         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
5863         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
5864         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
5865         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
5866         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
5867         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
5868         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
5869         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
5870         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
5871         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
5872         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
5873         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
5874         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
5875
5876         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
5877
5878 2011-10-25  Andreas Schwab  <schwab@redhat.com>
5879
5880         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
5881         condition.
5882         * elf/dl-fini.c (_dl_sort_fini): Likewise.
5883
5884 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
5885
5886         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
5887         .text section.  Avoid duplicate constants.
5888         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
5889         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
5890         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
5891         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
5892         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
5893         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
5894         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
5895         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
5896         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
5897         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
5898         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
5899         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
5900         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
5901         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
5902         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
5903         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
5904         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
5905         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
5906         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
5907         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
5908         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
5909         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
5910         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
5911         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
5912         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
5913         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
5914         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
5915         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
5916         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
5917         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
5918         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
5919         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
5920         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
5921         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
5922         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
5923         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
5924         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
5925         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
5926         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
5927         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
5928         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
5929         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
5930         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
5931         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
5932         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
5933
5934 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
5935
5936         * sysdeps/x86_64/dla.h: Move to ...
5937         * sysdeps/x86_64/fpu/dla.h: ...here.
5938         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
5939         situations.  Use __builtin_fma only for gcc 4.6 and up.
5940
5941         * config.make.in: Add have-mfma4 entry.
5942         * configure.in: Substitute libc_cv_cc_fma4.
5943         * math/Makefile (dbl-only-routines): Add sincostab.
5944         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
5945         Use __sincostab not sincos.
5946         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
5947         name is a macro.
5948         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
5949         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
5950         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
5951         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
5952         using __copysign.
5953         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
5954         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
5955         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
5956         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
5957         and __inv.
5958         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
5959         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
5960         __copysign.
5961         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
5962         define aliases when function name is a macro.
5963         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
5964         sysdeps/ieee754/dbl-64/sincos.tbl.
5965         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
5966         fma4-enabled routines.
5967         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
5968         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
5969         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
5970         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
5971         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
5972         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
5973         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
5974         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
5975         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
5976         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
5977         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
5978         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
5979         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
5980         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
5981         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
5982         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
5983         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
5984         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
5985         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
5986         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
5987         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
5988         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
5989         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
5990         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
5991         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
5992         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
5993         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
5994         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
5995         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
5996         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
5997
5998         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
5999         rename.
6000         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
6001         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
6002         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
6003         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
6004         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
6005         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
6006         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
6007         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
6008
6009 2011-10-24  Andreas Schwab  <schwab@redhat.com>
6010
6011         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
6012
6013 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
6014
6015         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
6016
6017         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
6018         prediction.
6019         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
6020
6021         * string/strnlen.c: Don't define STRNLEN, reverse logic.
6022         Remove unused variable magic_bits.
6023         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
6024
6025         * string/strnlen.c: Define and use STRNLEN macro.
6026         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
6027         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
6028         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
6029         * wcsmbs/wcslen.c: Define and use WCSLEN.
6030         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
6031         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
6032         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
6033         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
6034         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
6035         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
6036         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
6037
6038 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6039
6040         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
6041         strnlen-sse2-no-bsf.
6042         Rename strlen-no-bsf to strlen-sse2-no-bsf.
6043         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
6044         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
6045         Add strnlen support.
6046         (USE_AS_STRNLEN): New macro.
6047         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
6048         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
6049         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
6050         * sysdeps/x86_64/wcslen.S: New file.
6051
6052 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
6053
6054         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
6055         XMM-moves are used for copying on small sizes.
6056
6057 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6058
6059         * wcsmbs/Makefile (strop-tests): Add wcschr.
6060         * wcsmbs/test-wcschr.c: New file.
6061         * string/test-strchr.c: Update.
6062         Add wcschr support.
6063         (WIDE): New macro.
6064
6065 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6066
6067         * wcsmbs/Makefile (strop-tests): Add wcslen.
6068         * wcsmbs/test-wcslen.c: New file.
6069         * string/test-strlen.c: Update.
6070         Add wcslen support.
6071         (WIDE): New macro.
6072
6073 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
6074
6075         * po/it.po: Update from translation team.
6076
6077 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6078
6079         * sysdeps/x86_64/wcscmp.S: Update.
6080         Fix wrong comparison semantics.
6081         wcscmp shall use signed comparison not unsigned.
6082         Don't use substraction to avoid overflow bug.
6083         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
6084         * wcsmbc/wcscmp.c: Likewise.
6085         * string/test-strcmp.c: Likewise.
6086         Add new tests to check cases with negative values.
6087
6088 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
6089
6090         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
6091         * sysdeps/x86_64/dla.h: ...here.  New file.
6092         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
6093         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
6094         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
6095         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
6096         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
6097         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
6098         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
6099         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
6100         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
6101
6102 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
6103
6104         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
6105         __ynl_finite aliases.
6106
6107 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
6108
6109         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6110
6111         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
6112         define DLA_FMA.
6113         [DLA_FMA] (EMULV): Use DLA_FMA.
6114         [DLA_FMA] (MUL12): Use EMULV.
6115         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
6116         that are not needed.
6117         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
6118         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
6119         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
6120         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
6121         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
6122         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
6123         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
6124
6125 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
6126
6127         * math/s_nan.c: Undef __nan.
6128         * math/s_nanf.c: Undef __nanf.
6129         * math/s_nanl.c: Undef __nanl.
6130         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
6131         "math_private.h".
6132
6133 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
6134
6135         * math/s_catan.c: Add branch predictions.
6136         * math/s_catanf.c: Likewise.
6137         * math/s_catanh.c: Likewise.
6138         * math/s_catanhf.c: Likewise.
6139         * math/s_catanhl.c: Likewise.
6140         * math/s_catanl.c: Likewise.
6141         * math/s_cexp.c: Likewise.
6142         * math/s_cexpf.c: Likewise.
6143         * math/s_cexpl.c: Likewise.
6144         * math/s_clog.c: Likewise.
6145         * math/s_clog10.c: Likewise.
6146         * math/s_clog10f.c: Likewise.
6147         * math/s_clog10l.c: Likewise.
6148         * math/s_clogf.c: Likewise.
6149         * math/s_clogl.c: Likewise.
6150         * math/s_csqrt.c: Likewise.
6151         * math/s_csqrtf.c: Likewise.
6152         * math/s_csqrtl.c: Likewise.
6153         * math/s_ctanf.c: Likewise.
6154         * math/s_ctanh.c: Likewise.
6155         * math/s_ctanhf.c: Likewise.
6156         * math/s_ctanhl.c: Likewise.
6157         * math/s_ctanl.c: Likewise.
6158
6159         * math/math_private.h: Define __nan, __nanf, __nanl.
6160         * math/s_cacosh.c: Include <math_private.h>.
6161         * math/s_cacoshl.c: Likewise.
6162         * math/s_casinh.c: Likewise.
6163         * math/s_casinhf.c: Likewise.
6164         * math/s_casinhl.c: Likewise.
6165         * math/s_ccos.c: Rely entire on ccosh.
6166         * math/s_ccosf.c: Rely entire on ccoshf.
6167         * math/s_ccosl.c: Rely entirely on ccoshl.
6168         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
6169         Remove tests for FE_INVALID.
6170         * math/s_ccoshf.c: Likewise.
6171         * math/s_ccoshl.c: Likewise.
6172         * math/s_csin.c: Likewise.
6173         * math/s_csinf.c: Likewise.
6174         * math/s_csinh.c Likewise.
6175         * math/s_csinhf.c: Likewise.
6176         * math/s_csinhl.c: Likewise.
6177         * math/s_csinl.c: Likewise.
6178         * math/s_ctan.c: Likewise.
6179         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
6180         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
6181         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
6182
6183 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
6184
6185         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
6186         compilation problems.
6187
6188         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
6189         __builtin_expect.
6190
6191 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
6192
6193         * sysdeps/i386/configure.in: Test for -mfma4 option.
6194         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
6195         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
6196         COMMON_CPUID_INDEX_80000001.
6197         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
6198         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
6199         use it if FMA3 is not supported.
6200         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
6201
6202         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
6203         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
6204
6205 2011-10-20  Andreas Schwab  <schwab@redhat.com>
6206
6207         [BZ #12892]
6208         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
6209         it would create a cycle with a link time dependency.
6210
6211 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
6212
6213         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
6214         instruction.
6215         * string/Makefile (strop-tests): Add rawmemchr.
6216         * string/test-rawmemchr.c: New file.
6217
6218         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
6219         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
6220         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
6221         when compiling str{,n}casecmp and when AVX is available.  Hook up
6222         new optimized code in initializers.
6223
6224 2011-10-19  Andreas Schwab  <schwab@redhat.com>
6225
6226         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
6227         __feraiseexcept instead of feraiseexcept.
6228
6229 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
6230
6231         * math/math_private.h: Define defaults for libc_fetestexcept and
6232         libc_feupdateenv.
6233         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
6234         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
6235         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
6236         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
6237         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
6238         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
6239         libc_fetestexcept and libc_feupdateenv.
6240
6241         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
6242         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
6243         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
6244         * sysdeps/x86_64/fpu/math_private.h: Define special version of
6245         libc_feholdexcept_setround.
6246
6247         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
6248         Add s_nearbyint-c and s_nearbyintf-c.
6249         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
6250         nearbyintf inlines.
6251         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
6252         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
6253         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
6254         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
6255
6256         * math/math_private.h: Define defaults for libc_fegetround,
6257         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
6258         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
6259         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
6260         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
6261         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
6262         standard functions.
6263         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
6264         Remove comments and hacks for old compiler versions.
6265         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
6266         libc_fegetround, libc_fesetround, libc_feholdexcept, and
6267         libc_feholdexceptl.
6268
6269 2011-10-18  Andreas Schwab  <schwab@redhat.com>
6270
6271         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
6272         (__feraiseexcept_renamed): Add __NTH.
6273         (feraiseexcept): Add __NTH.  Rename local variables to fix
6274         namespace violations.
6275
6276 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
6277
6278         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
6279
6280         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
6281
6282         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
6283         recently added interfaces.
6284         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
6285
6286         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
6287         about macro parameter expansion.
6288
6289         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
6290         __NO_MATH_INLINES is defined.  Cleanups.
6291
6292         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
6293         and __floorf is target has SSE4.1.
6294         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
6295         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
6296         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
6297         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
6298
6299         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
6300         name.
6301         (floorf): Likewise.
6302
6303         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
6304
6305 2011-10-17  Andreas Schwab  <schwab@redhat.com>
6306
6307         * misc/sys/cdefs.h: Fix last change.
6308
6309         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
6310         database lookup.
6311
6312 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
6313
6314         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
6315
6316         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
6317         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
6318         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
6319         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
6320         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
6321         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
6322         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
6323         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
6324         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
6325         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
6326         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
6327         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
6328         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
6329         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
6330         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
6331         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
6332         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
6333         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
6334         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
6335         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
6336         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
6337         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
6338
6339         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
6340         ceil, ceilf, floor, floorf.
6341
6342         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
6343         Perform IRELATIVE relocations last.
6344
6345         * elf/do-rel.h: Add another parameter nrelative, replacing the
6346         local variable with the same name.  Change name of the function
6347         to end in Rel or Rela (uppercase).
6348         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
6349         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
6350         elf_dynamic_do_##reloc function.
6351
6352 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
6353
6354         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
6355         is sufficient, at least on modern CPUs.
6356
6357         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
6358
6359         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
6360         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
6361
6362         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
6363         __expl_finite.
6364         * math/bits/math-finite.h: Add entries for exp.
6365         * math/e_expl.c: Add __*_finite alias.
6366         * sysdeps/i386/fpu/e_exp.S: Likewise.
6367         * sysdeps/i386/fpu/e_expf.S: Likewise.
6368         * sysdeps/i386/fpu/e_expl.c: Likewise.
6369         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
6370         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
6371         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
6372         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
6373         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
6374         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
6375         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
6376
6377         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
6378         is sufficient, at least on modern CPUs.
6379
6380         * ctype/ctype-info.c (__ctype_init): Define.
6381         * include/ctype.h (__ctype_init): Declare.
6382         (__ctype_b_loc): The variable is always initialized.
6383         (__ctype_toupper_loc): Likewise.
6384         (__ctype_tolower_loc): Likewise.
6385         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
6386         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
6387
6388 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
6389
6390         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
6391
6392         * configure.in: Also look in $cxxmachine/include for C++ system
6393         headers.
6394
6395 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6396
6397         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
6398         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
6399         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
6400         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
6401         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
6402         (USE_AS_WMEMCMP): New macro.
6403         Fixing indents.
6404         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
6405         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
6406         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
6407         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
6408         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
6409         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
6410         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
6411         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
6412         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
6413         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
6414         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
6415         (USE_AS_WMEMCMP): New macro.
6416         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
6417         * sysdeps/string/test-memcmp.c: Update.
6418         Fix simple_wmemcmp.
6419         Add new tests.
6420         * wcsmbs/wmemcmp.c: Update.
6421         (WMEMCMP): New macro.
6422         Fix overflow bug.
6423
6424 2011-10-12  Andreas Jaeger  <aj@suse.de>
6425
6426         [BZ #13268]
6427         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
6428
6429 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
6430
6431         * libio/iofwide.c (do_length): Avoid warning.
6432
6433         * ctype/ctype.h (__isctype_f): Add missing __THROW.
6434
6435 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
6436
6437         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
6438
6439         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
6440         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
6441         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
6442         * sysdeps/i386/i686/fpu/e_log.S: New file.
6443         * sysdeps/i386/i686/fpu/e_logf.S: New file.
6444         * sysdeps/i386/i686/fpu/e_logl.S: New file.
6445
6446         * ctype/ctype.h: Add support for inlined isXXX functions when
6447         compiling C++ code.
6448
6449 2011-10-14  Andreas Schwab  <schwab@redhat.com>
6450
6451         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
6452
6453         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
6454
6455 2011-10-13  Roland McGrath  <roland@hack.frob.com>
6456
6457         [BZ #13291]
6458         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
6459
6460 2011-10-13  Andreas Schwab  <schwab@redhat.com>
6461
6462         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
6463         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
6464         feraiseexcept.
6465
6466         * sysdeps/x86_64/memrchr.S: Check for zero size.
6467
6468         * string/stratcliff.c: Add memrchr tests.
6469
6470 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6471
6472         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
6473         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
6474         rawmemchr-sse2 rawmemchr-sse2-bsf.
6475         * sysdeps/i386/i686/multiarch/memchr.S: New file.
6476         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
6477         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
6478         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
6479         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
6480         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
6481         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
6482         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
6483         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
6484         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
6485         * string/memrchr.c (MEMRCHR): New macro.
6486
6487 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
6488
6489         Add integration with gcc's -ffinite-math-only and optimize wrapper
6490         functions in libm.
6491         * Versions.def: Define GLIBC_2.15 version for libm.
6492         * math/Makefile (headers): Add bits/math-finite.h.
6493         * math/bits/math-finite.h: New file.
6494         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
6495         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
6496         * math/e_acoshl.c: Add __*_finite alias.
6497         * math/e_acosl.c: Likewise.
6498         * math/e_asinl.c: Likewise.
6499         * math/e_atan2l.c: Likewise.
6500         * math/e_atanhl.c: Likewise.
6501         * math/e_coshl.c: Likewise.
6502         * math/e_exp10.c: Likewise.
6503         * math/e_exp10f.c: Likewise.
6504         * math/e_exp10l.c: Likewise.
6505         * math/e_exp2l.c: Likewise.
6506         * math/e_fmodl.c: Likewise.
6507         * math/e_gammal_r.c: Likewise.
6508         * math/e_hypotl.c: Likewise.
6509         * math/e_j0l.c: Likewise.
6510         * math/e_j1l.c: Likewise.
6511         * math/e_jnl.c: Likewise.
6512         * math/e_lgammal_r.c: Likewise.
6513         * math/e_log10l.c: Likewise.
6514         * math/e_log2l.c: Likewise.
6515         * math/e_logl.c: Likewise.
6516         * math/e_powl.c: Likewise.
6517         * math/e_sinhl.c: Likewise.
6518         * math/e_sqrtl.c: Likewise.
6519         * math/e_scalb.c: Completely rewritten and optimized.
6520         * math/e_scalbf.c: Likewise.
6521         * math/e_scalbl.c: Likewise.
6522         * math/w_acos.c: Likewise.
6523         * math/w_acosf.c: Likewise.
6524         * math/w_acosl.c: Likewise.
6525         * math/w_acosh.c: Likewise.
6526         * math/w_acoshf.c: Likewise.
6527         * math/w_acoshl.c: Likewise.
6528         * math/w_asin.c: Likewise.
6529         * math/w_asinf.c: Likewise.
6530         * math/w_asinl.c: Likewise.
6531         * math/w_atan2.c: Likewise.
6532         * math/w_atan2f.c: Likewise.
6533         * math/w_atan2l.c: Likewise.
6534         * math/w_atanh.c: Likewise.
6535         * math/w_atanhf.c: Likewise.
6536         * math/w_atanhl.c: Likewise.
6537         * math/w_exp10.c: Likewise.
6538         * math/w_exp10f.c: Likewise.
6539         * math/w_exp10l.c: Likewise.
6540         * math/w_fmod.c: Likewise.
6541         * math/w_fmodf.c: Likewise.
6542         * math/w_fmodl.c: Likewise.
6543         * math/w_j0.c: Likewise.
6544         * math/w_j0f.c: Likewise.
6545         * math/w_j0l.c: Likewise.
6546         * math/w_j1.c: Likewise.
6547         * math/w_j1f.c: Likewise.
6548         * math/w_j1l.c: Likewise.
6549         * math/w_jn.c: Likewise.
6550         * math/w_jnf.c: Likewise.
6551         * math/w_log.c: Likewise.
6552         * math/w_logf.c: Likewise.
6553         * math/w_logl.c: Likewise.
6554         * math/w_log10.c: Likewise.
6555         * math/w_log10f.c: Likewise.
6556         * math/w_log10l.c: Likewise.
6557         * math/w_log2.c: Likewise.
6558         * math/w_log2f.c: Likewise.
6559         * math/w_log2l.c: Likewise.
6560         * math/w_pow.c: Likewise.
6561         * math/w_powf.c: Likewise.
6562         * math/w_powl.c: Likewise.
6563         * math/w_remainder.c: Likewise.
6564         * math/w_remainderf.c: Likewise.
6565         * math/w_remainderl.c: Likewise.
6566         * math/w_scalb.c: Likewise.
6567         * math/w_scalbf.c: Likewise.
6568         * math/w_scalbl.c: Likewise.
6569         * math/w_sqrt.c: Likewise.
6570         * math/w_sqrtf.c: Likewise.
6571         * math/w_sqrtl.c: Likewise.
6572         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
6573         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
6574         used.
6575         * math/math_private.h: Declare __kernel_standard_f.
6576         * math/w_cosh.c: Remove cruft and optimize a bit.
6577         * math/w_coshf.c: Likewise.
6578         * math/w_coshl.c: Likewise.
6579         * math/w_exp2.c: Likewise.
6580         * math/w_exp2f.c: Likewise.
6581         * math/w_exp2l.c: Likewise.
6582         * math/w_hypot.c: Likewise.
6583         * math/w_hypotf.c: Likewise.
6584         * math/w_hypotl.c: Likewise.
6585         * math/w_lgamma.c: Likewise.
6586         * math/w_lgamma_r.c: Likewise.
6587         * math/w_lgammaf.c: Likewise.
6588         * math/w_lgammaf_r.c: Likewise.
6589         * math/w_lgammal.c: Likewise.
6590         * math/w_lgammal_r.c: Likewise.
6591         * math/w_sinh.c: Likewise.
6592         * math/w_sinhf.c: Likewise.
6593         * math/w_sinhl.c: Likewise.
6594         * math/w_tgamma.c: Likewise.
6595         * math/w_tgammaf.c: Likewise.
6596         * math/w_tgammal.c: Likewise.
6597         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
6598         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
6599         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
6600         Minor optimizations.  Pretty printing.  Remove cruft.
6601         * sysdeps/i386/fpu/e_acosf.S: Likewise.
6602         * sysdeps/i386/fpu/e_acosh.S: Likewise.
6603         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
6604         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
6605         * sysdeps/i386/fpu/e_acosl.c: Likewise.
6606         * sysdeps/i386/fpu/e_asin.S: Likewise.
6607         * sysdeps/i386/fpu/e_asinf.S: Likewise.
6608         * sysdeps/i386/fpu/e_atan2.S: Likewise.
6609         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
6610         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
6611         * sysdeps/i386/fpu/e_atanh.S: Likewise.
6612         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
6613         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
6614         * sysdeps/i386/fpu/e_exp10.S: Likewise.
6615         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
6616         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
6617         * sysdeps/i386/fpu/e_exp2.S: Likewise.
6618         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
6619         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
6620         * sysdeps/i386/fpu/e_fmod.S: Likewise.
6621         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
6622         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
6623         * sysdeps/i386/fpu/e_hypot.S: Likewise.
6624         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
6625         * sysdeps/i386/fpu/e_log.S: Likewise.
6626         * sysdeps/i386/fpu/e_log10.S: Likewise.
6627         * sysdeps/i386/fpu/e_log10f.S: Likewise.
6628         * sysdeps/i386/fpu/e_log10l.S: Likewise.
6629         * sysdeps/i386/fpu/e_log2.S: Likewise.
6630         * sysdeps/i386/fpu/e_log2f.S: Likewise.
6631         * sysdeps/i386/fpu/e_log2l.S: Likewise.
6632         * sysdeps/i386/fpu/e_logf.S: Likewise.
6633         * sysdeps/i386/fpu/e_logl.S: Likewise.
6634         * sysdeps/i386/fpu/e_pow.S: Likewise.
6635         * sysdeps/i386/fpu/e_powf.S: Likewise.
6636         * sysdeps/i386/fpu/e_powl.S: Likewise.
6637         * sysdeps/i386/fpu/e_remainder.S: Likewise.
6638         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
6639         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
6640         * sysdeps/i386/fpu/e_scalb.S: Likewise.
6641         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
6642         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
6643         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
6644         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
6645         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
6646         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
6647         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
6648         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
6649         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
6650         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
6651         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
6652         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
6653         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
6654         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
6655         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
6656         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
6657         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
6658         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
6659         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
6660         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
6661         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
6662         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
6663         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
6664         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
6665         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
6666         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
6667         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
6668         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
6669         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
6670         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
6671         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
6672         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
6673         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
6674         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
6675         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
6676         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
6677         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
6678         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
6679         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
6680         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
6681         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
6682         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
6683         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
6684         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
6685         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
6686         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
6687         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
6688         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
6689         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
6690         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
6691         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
6692         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
6693         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
6694         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
6695         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
6696         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
6697         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
6698         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
6699         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
6700         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
6701         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
6702         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
6703         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
6704         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
6705         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
6706         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
6707         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
6708         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
6709         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
6710         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
6711         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
6712         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
6713         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
6714         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
6715         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
6716         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
6717         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
6718         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
6719         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
6720         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
6721         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
6722         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
6723         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
6724         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
6725         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
6726         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
6727         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
6728         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
6729         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
6730         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
6731         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
6732         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
6733         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
6734         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
6735         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
6736         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
6737         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
6738         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
6739         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
6740         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
6741         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
6742         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
6743         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
6744         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
6745         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
6746         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
6747         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
6748         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
6749         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
6750         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
6751         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
6752         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
6753         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
6754         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
6755         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
6756         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
6757         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
6758         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
6759         (__isnanf): Likewise.
6760         (__isinf_ns): Likewise.
6761         (__isinf_nsf): Likewise.
6762         (__finite): Likewise.
6763         (__finitef): Likewise.
6764         (__ieee754_sqrt): Define as macro.
6765         (__ieee754_sqrtf): Define as macro.
6766         (__ieee754_sqrtl): Define as macro.
6767         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
6768         inlined copy.
6769         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
6770         __FINITE_MATH_ONLY__ consistent.
6771         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
6772
6773 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
6774
6775         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
6776         of rawmemchr.
6777
6778         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
6779
6780 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
6781
6782         * po/ja.po: Update from translation team.
6783
6784 2011-10-08  Roland McGrath  <roland@hack.frob.com>
6785
6786         * locale/programs/locarchive.c (prepare_address_space): New function.
6787         (create_archive, enlarge_archive, open_archive): Use it.
6788
6789         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
6790         inside [SHARED], where it is used.
6791
6792         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
6793
6794         * nss/getent.c (netgroup_keys): Remove unused variable.
6795         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
6796
6797 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
6798
6799         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
6800         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
6801         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
6802         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
6803         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
6804         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
6805         * math/Makefile (libm-calls): Add s_isinf_ns.
6806         * math/divtc3.c: Use __isinf_nsl instead of isinf.
6807         * math/multc3.c: Likewise.
6808         * math/s_casin.c: Likewise.
6809         * math/s_casinf.c: Likewise.
6810         * math/s_casinl.c: Likewise.
6811         * math/s_ccos.c: Likewise.
6812         * math/s_ccosf.c: Likewise.
6813         * math/s_ccosl.c: Likewise.
6814         * math/s_ctan.c: Likewise.
6815         * math/s_ctanf.c: Likewise.
6816         * math/s_ctanh.c: Likewise.
6817         * math/s_ctanhf.c: Likewise.
6818         * math/s_ctanhl.c: Likewise.
6819         * math/s_ctanl.c: Likewise.
6820         * math/w_fmod.c: Likewise.
6821         * math/w_fmodf.c: Likewise.
6822         * math/w_fmodl.c: Likewise.
6823         * math/w_remainder.c: Likewise.
6824         * math/w_remainderf.c: Likewise.
6825         * math/w_remainderl.c: Likewise.
6826         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
6827         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
6828         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
6829         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
6830         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
6831         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
6832         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
6833         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
6834
6835         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
6836         of the number.
6837         * stdio-common/printf_fphex.c: Likewise.
6838         * stdio-common/printf_size.c: Likewise.
6839
6840         * math/e_exp10.c: Include math_private.h using <...> not "...".
6841         * math/e_exp10f.c: Likewise.
6842         * math/e_exp10l.c: Likewise.
6843         * math/e_exp2l.c: Likewise.
6844         * math/e_j0l.c: Likewise.
6845         * math/e_j1l.c: Likewise.
6846         * math/e_jnl.c: Likewise.
6847         * math/e_lgammal_r.c: Likewise.
6848         * math/e_rem_pio2l.c: Likewise.
6849         * math/e_scalb.c: Likewise.
6850         * math/e_scalbf.c: Likewise.
6851         * math/e_scalbl.c: Likewise.
6852         * math/k_cosl.c: Likewise.
6853         * math/k_sinl.c: Likewise.
6854         * math/k_tanl.c: Likewise.
6855         * math/s_cacoshf.c: Likewise.
6856         * math/s_catan.c: Likewise.
6857         * math/s_catanf.c: Likewise.
6858         * math/s_catanh.c: Likewise.
6859         * math/s_catanhf.c: Likewise.
6860         * math/s_catanhl.c: Likewise.
6861         * math/s_catanl.c: Likewise.
6862         * math/s_ccosh.c: Likewise.
6863         * math/s_ccoshf.c: Likewise.
6864         * math/s_ccoshl.c: Likewise.
6865         * math/s_cexp.c: Likewise.
6866         * math/s_cexpf.c: Likewise.
6867         * math/s_cexpl.c: Likewise.
6868         * math/s_clog.c: Likewise.
6869         * math/s_clog10.c: Likewise.
6870         * math/s_clog10f.c: Likewise.
6871         * math/s_clog10l.c: Likewise.
6872         * math/s_clogf.c: Likewise.
6873         * math/s_clogl.c: Likewise.
6874         * math/s_csin.c: Likewise.
6875         * math/s_csinf.c: Likewise.
6876         * math/s_csinh.c: Likewise.
6877         * math/s_csinhf.c: Likewise.
6878         * math/s_csinhl.c: Likewise.
6879         * math/s_csinl.c: Likewise.
6880         * math/s_csqrt.c: Likewise.
6881         * math/s_csqrtf.c: Likewise.
6882         * math/s_csqrtl.c: Likewise.
6883         * math/s_ctan.c: Likewise.
6884         * math/s_ctanf.c: Likewise.
6885         * math/s_ctanh.c: Likewise.
6886         * math/s_ctanhf.c: Likewise.
6887         * math/s_ctanhl.c: Likewise.
6888         * math/s_ctanl.c: Likewise.
6889         * math/s_ldexp.c: Likewise.
6890         * math/s_ldexpf.c: Likewise.
6891         * math/s_ldexpl.c: Likewise.
6892         * math/s_significand.c: Likewise.
6893         * math/s_significandf.c: Likewise.
6894         * math/s_significandl.c: Likewise.
6895         * math/w_acos.c: Likewise.
6896         * math/w_acosf.c: Likewise.
6897         * math/w_acosh.c: Likewise.
6898         * math/w_acoshf.c: Likewise.
6899         * math/w_acoshl.c: Likewise.
6900         * math/w_acosl.c: Likewise.
6901         * math/w_asin.c: Likewise.
6902         * math/w_asinf.c: Likewise.
6903         * math/w_asinl.c: Likewise.
6904         * math/w_atan2.c: Likewise.
6905         * math/w_atan2f.c: Likewise.
6906         * math/w_atan2l.c: Likewise.
6907         * math/w_atanh.c: Likewise.
6908         * math/w_atanhf.c: Likewise.
6909         * math/w_atanhl.c: Likewise.
6910         * math/w_cosh.c: Likewise.
6911         * math/w_coshf.c: Likewise.
6912         * math/w_coshl.c: Likewise.
6913         * math/w_dremf.c: Likewise.
6914         * math/w_exp10.c: Likewise.
6915         * math/w_exp10f.c: Likewise.
6916         * math/w_exp10l.c: Likewise.
6917         * math/w_exp2.c: Likewise.
6918         * math/w_exp2f.c: Likewise.
6919         * math/w_fmod.c: Likewise.
6920         * math/w_fmodf.c: Likewise.
6921         * math/w_fmodl.c: Likewise.
6922         * math/w_hypot.c: Likewise.
6923         * math/w_hypotf.c: Likewise.
6924         * math/w_hypotl.c: Likewise.
6925         * math/w_j0.c: Likewise.
6926         * math/w_j0f.c: Likewise.
6927         * math/w_j0l.c: Likewise.
6928         * math/w_j1.c: Likewise.
6929         * math/w_j1f.c: Likewise.
6930         * math/w_j1l.c: Likewise.
6931         * math/w_jn.c: Likewise.
6932         * math/w_jnf.c: Likewise.
6933         * math/w_jnl.c: Likewise.
6934         * math/w_lgamma.c: Likewise.
6935         * math/w_lgamma_r.c: Likewise.
6936         * math/w_lgammaf.c: Likewise.
6937         * math/w_lgammaf_r.c: Likewise.
6938         * math/w_lgammal.c: Likewise.
6939         * math/w_lgammal_r.c: Likewise.
6940         * math/w_log.c: Likewise.
6941         * math/w_log10.c: Likewise.
6942         * math/w_log10f.c: Likewise.
6943         * math/w_log10l.c: Likewise.
6944         * math/w_log2.c: Likewise.
6945         * math/w_log2f.c: Likewise.
6946         * math/w_log2l.c: Likewise.
6947         * math/w_logf.c: Likewise.
6948         * math/w_logl.c: Likewise.
6949         * math/w_pow.c: Likewise.
6950         * math/w_powf.c: Likewise.
6951         * math/w_powl.c: Likewise.
6952         * math/w_remainder.c: Likewise.
6953         * math/w_remainderf.c: Likewise.
6954         * math/w_remainderl.c: Likewise.
6955         * math/w_scalb.c: Likewise.
6956         * math/w_scalbf.c: Likewise.
6957         * math/w_scalbl.c: Likewise.
6958         * math/w_sinh.c: Likewise.
6959         * math/w_sinhf.c: Likewise.
6960         * math/w_sinhl.c: Likewise.
6961         * math/w_sqrt.c: Likewise.
6962         * math/w_sqrtf.c: Likewise.
6963         * math/w_sqrtl.c: Likewise.
6964         * math/w_tgamma.c: Likewise.
6965         * math/w_tgammaf.c: Likewise.
6966         * math/w_tgammal.c: Likewise.
6967
6968         * po/ja.po: Update from translation team.
6969
6970 2011-09-29  Andreas Jaeger  <aj@suse.de>
6971
6972         [BZ #13179]
6973         * sunrpc/netname.c (netname2host): Fix logic.
6974
6975         [BZ #6779]
6976         [BZ #6783]
6977         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
6978         correctly.
6979         * math/w_remainder.c (__remainder): Likewise.
6980         * math/w_remainderf.c (__remainderf): Likewise.
6981         * math/libm-test.inc (remainder_test): Add test cases.
6982
6983 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6984
6985         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
6986         sdiv_qrnnd.
6987
6988 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
6989
6990         * string/test-memcmp.c: Avoid unncessary #defines.
6991         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
6992
6993 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6994
6995         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
6996         Use new sse2 version for core i3 - i7 as it's faster
6997         than sse42 version.
6998         (bit_Prefer_PMINUB_for_stringop): New.
6999         * sysdeps/x86_64/rawmemchr.S: Update.
7000         Replace with faster SSE2 version.
7001         * sysdeps/x86_64/memrchr.S: New file.
7002         * sysdeps/x86_64/memchr.S: Update.
7003         Replace with faster SSE2 version.
7004
7005 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
7006
7007         * elf/dl-load.c (lose): Add cast to avoid warning.
7008
7009 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
7010
7011         * po/ca.po: Update from translation team.
7012
7013         * inet/getnetgrent_r.c: Hook up nscd.
7014         * nscd/Makefile (routines): Add nscd_netgroup.
7015         (nscd-modules): Add netgroupcache.
7016         (CFLAGS-netgroupcache.c): Define.
7017         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
7018         (cache_search): Add const to second parameter.
7019         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
7020         INNETGR.
7021         (dbs): Add netgrdb entry.
7022         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
7023         (verify_persistent_db): Handle netgrdb.
7024         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
7025         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
7026         GETFDNETGR.
7027         (netgroup_response_header): Define.
7028         (innetgroup_response_header): Define.
7029         (datahead): Add netgroup_response_header and innetgroup_response_header
7030         elements.
7031         * nscd/nscd.conf: Add entries for netgroup cache.
7032         * nscd/nscd.h (dbtype): Add netgrdb.
7033         (_PATH_NSCD_NETGROUP_DB): Define.
7034         (netgroup_iov_disabled): Declare.
7035         (xmalloc, xcalloc, xrealloc): Move declarations here.
7036         (cache_search): Adjust prototype.
7037         Add netgroup-related prototypes.
7038         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
7039         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
7040         (__nscd_innetgr): Declare.
7041         * nscd/selinux.c (perms): Use access_vector_t as element type and
7042         add netgroup-related initializers.
7043         * nscd/netgroupcache.c: New file.
7044         * nscd/nscd_netgroup.c: New file.
7045         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
7046         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
7047         For four parameters use innetgr.
7048         * nss/nss_files/files-init.c: Add definition and callback for netgr.
7049         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
7050         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
7051         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
7052
7053         * nscd/connections.c (register_traced_file): Don't register file
7054         for disabled databases.
7055
7056 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
7057
7058         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
7059
7060         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
7061         from tree and freeing node.
7062
7063 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
7064
7065         * nss/nsswitch.c (__nss_database_lookup): Handle
7066         nss_parse_service_list out of memory case.
7067
7068 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
7069
7070         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
7071         out of memory case.
7072
7073 2011-10-04  Andreas Schwab  <schwab@redhat.com>
7074
7075         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
7076         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
7077         pass it down.
7078         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
7079         elf_machine_rela, elf_machine_lazy_rel.
7080         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
7081         (ELF_DYNAMIC_DO_REL): Likewise.
7082         (ELF_DYNAMIC_DO_RELA): Likewise.
7083         (ELF_DYNAMIC_RELOCATE): Likewise.
7084         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
7085         to ELF_DYNAMIC_DO_REL.
7086         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
7087         (dl_main): In trace mode always set __RTLD_NOIFUNC.
7088         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
7089         elf_machine_rela.
7090         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
7091         skip_ifunc, don't call ifunc function if non-zero.
7092         (elf_machine_rela): Likewise.
7093         (elf_machine_lazy_rel): Likewise.
7094         (elf_machine_lazy_rela): Likewise.
7095         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
7096         (elf_machine_lazy_rel): Likewise.
7097         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
7098         Likewise.
7099         (elf_machine_lazy_rel): Likewise.
7100         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
7101         Likewise.
7102         (elf_machine_lazy_rel): Likewise.
7103         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
7104         (elf_machine_lazy_rel): Likewise.
7105         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
7106         (elf_machine_lazy_rel): Likewise.
7107         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
7108         (elf_machine_lazy_rel): Likewise.
7109         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
7110         (elf_machine_lazy_rel): Likewise.
7111         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
7112         (elf_machine_lazy_rel): Likewise.
7113         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
7114         (elf_machine_lazy_rel): Likewise.
7115
7116 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
7117
7118         * nss/nss_files/files-init.c (_nss_files_init): Use static
7119         initialization for all the *_traced_file variables.
7120
7121 2011-09-28  Andreas Schwab  <schwab@redhat.com>
7122
7123         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
7124
7125 2011-09-27  Roland McGrath  <roland@hack.frob.com>
7126
7127         [BZ #13226]
7128         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
7129
7130 2011-09-27  Andreas Schwab  <schwab@redhat.com>
7131
7132         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
7133         Reread the line before reparsing it.
7134
7135 2011-09-26  Andreas Schwab  <schwab@redhat.com>
7136
7137         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
7138
7139 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
7140             Maxim Kuvyrkov  <maxim@codesourcery.com>
7141             Joseph Myers  <joseph@codesourcery.com>
7142
7143         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
7144         if needed for __stack_chk_guard.
7145
7146 2011-09-19  Roland McGrath  <roland@hack.frob.com>
7147
7148         * sysdeps/posix/spawni.c (script_execute): Always define it.
7149         It will be optimized away if unused.
7150         (maybe_script_execute): New function.
7151         (__spawni): Call it.
7152
7153         * Makerules: Don't include tls.make.
7154         (config-tls): Always set to thread.
7155         * tls.make.c: File removed.
7156
7157 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
7158
7159         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
7160         * config.make.in (CPPFLAGS-config): New substituted variable.
7161
7162 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
7163
7164         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
7165
7166         [BZ #13192]
7167         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
7168         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
7169
7170 2011-09-15  Roland McGrath  <roland@hack.frob.com>
7171
7172         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
7173         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
7174         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
7175         (CALL_FAIL): Likewise.
7176         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
7177         (CALL_FAIL): Macro removed.
7178         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
7179
7180 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
7181
7182         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
7183         for __FINITE_MATH_ONLY__ == 1.
7184
7185 2011-09-15  Andreas Schwab  <schwab@redhat.com>
7186
7187         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
7188         __ieee754_sqrt instead of sqrt.
7189         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
7190         __ieee754_sqrtf instead of sqrtf.
7191         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
7192         __floorf instead of floorf.
7193         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
7194         __floorf, __truncf instead of floorf, truncf.
7195
7196 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
7197
7198         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
7199
7200         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
7201         __extern_always_inline.
7202         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
7203         32-bit.
7204
7205 2011-09-14  Andreas Schwab  <schwab@redhat.com>
7206
7207         * elf/rtld.c (dl_main): Also relocate in dependency order when
7208         doing symbol dependency testing.
7209
7210 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
7211
7212         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
7213         Always define `refsym'.
7214
7215 2011-09-13  Andreas Schwab  <schwab@redhat.com>
7216
7217         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
7218         (__FD_ELT): Renamed from __FDELT.
7219         * misc/bits/select2.h (__FD_ELT): Likewise.
7220         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
7221         __FD_MASK instead of __FDELT, __FDMASK.
7222         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
7223         Likewise.
7224         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
7225         Likewise.
7226
7227         * elf/Makefile (gen-ldd): Fix pattern.
7228
7229         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
7230         (init_tls): Likewise.
7231
7232 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
7233
7234         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
7235
7236 2011-09-12  Andreas Schwab  <schwab@redhat.com>
7237
7238         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
7239         `struct cmsghdr *' instead of `void *'.
7240         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
7241         Likewise.
7242
7243 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
7244
7245         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
7246         if non-absolute.
7247         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
7248         ldd_rewrite_script.
7249
7250 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
7251
7252         * configure.in: Remove --with-tls option.
7253         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
7254         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
7255         out in case it is missing.
7256         * sysdeps/ia64/elf/configure.in: Likewise.
7257         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
7258         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
7259         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
7260         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
7261         * sysdeps/sh/elf/configure.in: Likewise.
7262         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
7263         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
7264         * sysdeps/x86_64/elf/configure.in: Likewise.
7265         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
7266         * sysdeps/mach/hurd/tls.h: Likewise.
7267
7268         [BZ #13067]
7269         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
7270
7271         [BZ #13090]
7272         * configure.in: Fix use of AC_INIT.
7273
7274         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
7275
7276 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
7277
7278         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
7279         __set_errno.
7280         * malloc/hooks.c: Likewise.
7281
7282         [BZ #11929]
7283         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
7284         variables statically.
7285         (narenas): Initialize.
7286         (list_lock): Initialize.
7287         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
7288         initializtion of main_arena and list_lock.  Small cleanups.
7289         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
7290         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
7291         Add initializers to main_arena and mp_.
7292         (malloc_state): Remove pagesize member.  Change all users to use
7293         GLRO(dl_pagesize).
7294
7295         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
7296         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
7297         is always initialized.
7298
7299         * malloc/malloc.c: Removed unused configurations and dead code.
7300         * malloc/arena.c: Likewise.
7301         * malloc/hooks.c: Likewise.
7302         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
7303
7304         * include/tls.h: Removed.  USE___THREAD must always be defined.
7305         * bits/libc-tsd.h: Don't handle !USE___THREAD.
7306         * elf/dl-libc.c: Likewise.
7307         * elf/dl-tsd.c: Likewise.
7308         * include/errno.h: Likewise.
7309         * include/netdb.h: Likewise.
7310         * include/resolv.h: Likewise.
7311         * inet/herrno-loc.c: Likewise.
7312         * inet/herrno.c: Likewise.
7313         * malloc/arena.c: Likewise.
7314         * malloc/hooks.c: Likewise.
7315         * malloc/malloc.c: Likewise.
7316         * resolv/res-state.c: Likewise.
7317         * resolv/res_libc.c: Likewise.
7318         * sysdeps/i386/dl-machine.h: Likewise.
7319         * sysdeps/ia64/dl-machine.h: Likewise.
7320         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
7321         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
7322         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
7323         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
7324         * sysdeps/sh/dl-machine.h: Likewise.
7325         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
7326         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
7327         * sysdeps/unix/i386/sysdep.S: Likewise.
7328         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
7329         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
7330         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
7331         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
7332         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
7333         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
7334         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
7335         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
7336         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
7337         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
7338         * sysdeps/unix/x86_64/sysdep.S: Likewise.
7339         * sysdeps/x86_64/dl-machine.h: Likewise.
7340         * tls.make.c: Likewise.
7341
7342         * configure.in: Remove --with-__thread option.  Make tests for
7343         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
7344         tls_model attribute fail if no support is available.  Remove
7345         USE_IN_LIBIO.
7346         * Makeconfig: Adjust for dropped configure option.  All features are
7347         now mandatory.
7348         * Makerules: Likewise.
7349         * Versions.def: Likewise.
7350         * argp/argp-fmtstream.c: Likewise.
7351         * argp/argp-fmtstream.h: Likewise.
7352         * argp/argp-help.c: Likewise.
7353         * assert/assert.c: Likewise.
7354         * config.h.in: Likewise.
7355         * config.make.in: Likewise.
7356         * configure: Likewise.
7357         * configure.in: Likewise.
7358         * csu/Versions: Likewise.
7359         * csu/init.c: Likewise.
7360         * elf/tst-audit2.c: Likewise.
7361         * elf/tst-tls10.c: Likewise.
7362         * elf/tst-tls10.h: Likewise.
7363         * elf/tst-tls11.c: Likewise.
7364         * elf/tst-tls12.c: Likewise.
7365         * elf/tst-tls14.c: Likewise.
7366         * elf/tst-tlsmod11.c: Likewise.
7367         * elf/tst-tlsmod12.c: Likewise.
7368         * elf/tst-tlsmod13.c: Likewise.
7369         * elf/tst-tlsmod13a.c: Likewise.
7370         * elf/tst-tlsmod14a.c: Likewise.
7371         * elf/tst-tlsmod15b.c: Likewise.
7372         * elf/tst-tlsmod16a.c: Likewise.
7373         * elf/tst-tlsmod16b.c: Likewise.
7374         * elf/tst-tlsmod7.c: Likewise.
7375         * elf/tst-tlsmod8.c: Likewise.
7376         * elf/tst-tlsmod9.c: Likewise.
7377         * gmon/gmon.c: Likewise.
7378         * grp/fgetgrent_r.c: Likewise.
7379         * grp/putgrent.c: Likewise.
7380         * hurd/fopenport.c: Likewise.
7381         * include/libc-symbols.h: Likewise.
7382         * include/tls.h: Likewise.
7383         * intl/gettextP.h: Likewise.
7384         * intl/loadinfo.h: Likewise.
7385         * locale/global-locale.c: Likewise.
7386         * locale/localeinfo.h: Likewise.
7387         * mach/devstream.c: Likewise.
7388         * malloc/arena.c: Likewise.
7389         * malloc/set-freeres.c: Likewise.
7390         * misc/err.c: Likewise.
7391         * misc/getttyent.c: Likewise.
7392         * misc/mntent_r.c: Likewise.
7393         * posix/getopt.c: Likewise.
7394         * posix/wordexp.c: Likewise.
7395         * pwd/fgetpwent_r.c: Likewise.
7396         * resolv/Versions: Likewise.
7397         * resolv/res_hconf.c: Likewise.
7398         * shadow/fgetspent_r.c: Likewise.
7399         * shadow/putspent.c: Likewise.
7400         * stdio-common/printf_fphex.c: Likewise.
7401         * stdio-common/tmpfile.c: Likewise.
7402         * stdlib/abort.c: Likewise.
7403         * stdlib/fmtmsg.c: Likewise.
7404         * sunrpc/auth_unix.c: Likewise.
7405         * sunrpc/clnt_perr.c: Likewise.
7406         * sunrpc/clnt_tcp.c: Likewise.
7407         * sunrpc/clnt_udp.c: Likewise.
7408         * sunrpc/clnt_unix.c: Likewise.
7409         * sunrpc/openchild.c: Likewise.
7410         * sunrpc/svc_simple.c: Likewise.
7411         * sunrpc/svc_tcp.c: Likewise.
7412         * sunrpc/svc_udp.c: Likewise.
7413         * sunrpc/svc_unix.c: Likewise.
7414         * sunrpc/xdr.c: Likewise.
7415         * sunrpc/xdr_array.c: Likewise.
7416         * sunrpc/xdr_rec.c: Likewise.
7417         * sunrpc/xdr_ref.c: Likewise.
7418         * sunrpc/xdr_stdio.c: Likewise.
7419
7420 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
7421
7422         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
7423
7424 2011-07-03  Andreas Jaeger  <aj@suse.de>
7425
7426         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
7427         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
7428         regenerate with gen-libm-tests.pl.
7429
7430 2010-05-12  Petr Baudis  <pasky@suse.cz>
7431
7432         [BZ #11589]
7433         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
7434         around j0() zero points by switching to j1().
7435         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
7436         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
7437         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
7438         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
7439
7440 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
7441
7442         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
7443         instead of 0.
7444         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
7445         instead of 0.                              .
7446         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
7447         Patch in part by Pavel Roskin <proski@gnu.org>.
7448
7449         [BZ #13138]
7450         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
7451         realloc.
7452         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
7453         Free memory block if necessary.
7454
7455         [BZ #12847]
7456         * libio/genops.c (INTDEF): For string streams the _lock pointer can
7457         be NULL.  Don't lock in this case.
7458
7459 2011-09-09  Roland McGrath  <roland@hack.frob.com>
7460
7461         * elf/elf.h (ELFOSABI_GNU): New macro.
7462         (ELFOSABI_LINUX): Define to that.
7463
7464 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
7465
7466         * string/strncat.c (strncat): Undef the symbol in case it has been
7467         defined in bits/string.h.
7468
7469 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
7470
7471         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
7472
7473         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
7474         link map.
7475
7476 2011-08-17  Andreas Jaeger  <aj@suse.de>
7477
7478         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
7479
7480 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
7481             Ian Lance Taylor  <iant@google.com>
7482
7483         * math/libm-test.inc (lround_test): New testcase.
7484         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
7485
7486 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
7487
7488         * Makefile: Remove support for automatic cvs check-ins.
7489         * Makerules: Likewise.
7490         * config.make.in: Likewise.
7491         * configure.in: Likewise.
7492         * intl/Makefile: Likewise.
7493         * locale/Makefile: Likewise.
7494         * po/Makefile: Likewise.
7495         * posix/Makefile: Likewise.
7496         * sysdeps/gnu/Makefile: Likewise.
7497         * sysdeps/mach/hurd/Makefile: Likewise.
7498         * sysdeps/sparc/sparc32/Makefile: Likewise.
7499
7500         [BZ #13118]
7501         * posix/Makefile (bug-regex32-ENV): Define.
7502         Patch by John Stanley <jpsinthemix@verizon.net>.
7503
7504         * misc/Makefile (headers): Add bits/select2.h.
7505         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
7506         * misc/bits/select2.h: New file.
7507         * include/bits/select2.h: New file.
7508         * debug/Makefile (routines): Add fdelt_chk.
7509         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
7510         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
7511         FD_ISSET.
7512         * debug/fdelt_chk.c: New file.
7513
7514         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
7515         * wcsmbs/test-wmemcmp.c: Likewise.
7516         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
7517         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
7518
7519 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7520
7521         * string/Makefile (strop-tests): Add memcmp.
7522         * string/test-wmemcmp.c: New file.
7523         * string/test-memcmp.c: Add wmemcmp support.
7524
7525 2011-09-08  Roland McGrath  <roland@hack.frob.com>
7526
7527         [BZ #13153]
7528         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
7529         2011-07-19 change.
7530
7531         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
7532         garbage value in a __mach_port_mod_refs call in the cases of the
7533         task-self and thread-self ports.
7534
7535 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7536
7537         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
7538
7539 2011-09-08  Andreas Schwab  <schwab@redhat.com>
7540
7541         * elf/dl-load.c (lose): Check for non-null L.
7542
7543 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
7544
7545         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
7546
7547         * elf/dl-libc.c (dlerror_run): Pass back error code from
7548         dl_catch_error.
7549
7550         [BZ #13123]
7551         * elf/dl-load.c (lose): Free l_origin if it is valid.
7552
7553         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
7554         names.
7555         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
7556         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
7557         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
7558         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
7559         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
7560         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
7561
7562 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7563
7564         * sysdeps/powerpc/fpu/e_hypot.c: New file.
7565         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
7566         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
7567         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
7568         * sysdeps/powerpc/fpu/k_cosf.c: New file.
7569         * sysdeps/powerpc/fpu/k_sinf.c: New file.
7570         * sysdeps/powerpc/fpu/s_cosf.c: New file.
7571         * sysdeps/powerpc/fpu/s_sinf.c: New file.
7572         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
7573         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
7574
7575 2011-08-15  Alan Modra  <amodra@gmail.com>
7576
7577         [BZ #13092]
7578         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
7579         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
7580         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
7581         ppc_mcount to static-only-routines.
7582         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
7583         __mcount_internal.
7584         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
7585         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
7586
7587 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
7588
7589         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
7590         for finite and infinity parameters.
7591
7592 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
7593
7594         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
7595         and add nop instructions for throughput optimization.
7596         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
7597
7598 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
7599
7600         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
7601         aligned copy for power7 with vector-scalar instructions.
7602         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
7603
7604 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
7605
7606         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
7607         AVX check.
7608
7609 2011-09-07  Andreas Schwab  <schwab@redhat.com>
7610
7611         [BZ #13144]
7612         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
7613         last change.
7614
7615 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
7616
7617         * sysdeps/unix/sysv/linux/x86_64/init-first.c
7618         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
7619         syscall wrapper around clock_gettime in __vdso_clock_gettime.
7620         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
7621         clock_gettime.
7622
7623 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
7624
7625         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
7626         Forgot to demangle the pointer.
7627
7628         * sysdeps/i386/sysdep.h: Define atom_text_section.
7629         * sysdeps/x86_64/sysdep.h: Likewise.
7630         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
7631         section with atom_text_section.
7632         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
7633         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
7634         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
7635         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
7636         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
7637
7638         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
7639         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
7640         already be defined.  Change to take two parameters and don't assign
7641         result to variable.  Adjust all users.
7642         Define INTERNAL_GETTIME if not already defined.
7643         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
7644         call.
7645         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
7646         HAVE_CLOCK_GETTIME_VSYSCALL.
7647         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
7648
7649         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
7650         gettimeofday vsyscall, just use time.
7651
7652 2011-09-06  Andreas Schwab  <schwab@redhat.com>
7653
7654         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
7655         <errno.h>.
7656
7657 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
7658
7659         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
7660         syscall on x86-64.
7661         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
7662         syscall.
7663         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
7664         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
7665         syscall if possible.
7666
7667 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
7668
7669         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
7670         e_ident.  Don't pass to find_mapsXX.
7671         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
7672
7673 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
7674
7675         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
7676         strchr-sse2-no-bsf strrchr-sse2-no-bsf
7677         * sysdeps/x86_64/multiarch/strchr.S: Update.
7678         Check bit_slow_BSF bit.
7679         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
7680         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
7681         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
7682
7683 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
7684
7685         [BZ #13134]
7686         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
7687         before glibc 2.15.
7688         (tryshell): Define.
7689         (__spawni): Change last parameter to be flag.  Test
7690         SPAWN_XFLAGS_USE_PATH flag to use path or not.
7691         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
7692         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
7693         * posix/spawni.c: Likewise.
7694         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
7695         * posix/spawnp.c: Likewise.  Change normal version to use
7696         SPAWN_XFLAGS_USE_PATH.
7697         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
7698         SPAWN_XFLAGS_TRY_SHELL.
7699
7700         [BZ #13150]
7701         * posix/glob.h: Remove gcc 1.x support.
7702
7703         [BZ #13068]
7704         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
7705
7706 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
7707
7708         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
7709         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
7710         strrchr-sse2-bsf
7711         * sysdeps/i386/i686/multiarch/strchr.S: New file.
7712         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
7713         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
7714         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
7715         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
7716         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
7717
7718 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7719
7720         * sysdeps/x86_64/wcscmp.S: New file.
7721
7722         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
7723         wcscmp-c wcscmp-sse2
7724         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
7725         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
7726         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
7727         * wcsmbs/wcscmp.c: Allow renaming.
7728
7729 2011-09-05  David S. Miller  <davem@davemloft.net>
7730
7731         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
7732         stack slot, rather than the struct return pointer slot.
7733         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
7734         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
7735         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
7736         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
7737
7738 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
7739
7740         * po/ja.po: Update from translation team.
7741
7742         [BZ #13144]
7743         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
7744         kernel in 64-bit binaries.
7745
7746 2011-09-01  David S. Miller  <davem@davemloft.net>
7747
7748         * elf/elf.h (HWCAP_SPARC_*): Move to..
7749         * sysdeps/sparc/sysdep.h: this new file and add new values.
7750         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
7751         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
7752         _DL_HWCAP_COUNT to 24.
7753         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
7754         entries.
7755         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
7756         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
7757         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
7758         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
7759         instead of magic constants.
7760         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
7761
7762 2011-08-31  David S. Miller  <davem@davemloft.net>
7763
7764         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
7765         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
7766         Reimplement to do errno handling inline.
7767         (SYSCALL_ERROR_HANDLER): New macro.
7768         (__SYSCALL_STRING): Do not do errno handling in asm.
7769         (__CLONE_SYSCALL_STRING): Delete.
7770         (__INTERNAL_SYSCALL_STRING): Delete.
7771         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
7772         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
7773         (PSEUDO): Reimplement to do errno handling inline.
7774         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
7775         (SYSCALL_ERROR_HANDLER): New macro.
7776         (__SYSCALL_STRING): Do not do errno handling in asm.
7777         (__CLONE_SYSCALL_STRING): Delete.
7778         (__INTERNAL_SYSCALL_STRING): Delete.
7779         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
7780         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
7781         i386.
7782         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
7783         (inline_syscall*): Add 'err' argument.
7784         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
7785         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
7786         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
7787         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
7788
7789         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
7790         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
7791
7792 2011-08-30  Andreas Schwab  <schwab@redhat.com>
7793
7794         * elf/rtld.c (dl_main): Relocate objects in dependency order.
7795
7796 2011-08-29  Jiri Olsa <jolsa@redhat.com>
7797
7798         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
7799         directive.
7800
7801 2011-08-24  David S. Miller  <davem@davemloft.net>
7802
7803         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
7804
7805 2011-08-24  Andreas Schwab  <schwab@redhat.com>
7806
7807         * elf/Makefile: Add rules to build and run unload8 test.
7808         * elf/unload8.c: New file.
7809         * elf/unload8mod1.c: New file.
7810         * elf/unload8mod1x.c: New file.
7811         * elf/unload8mod2.c: New file.
7812         * elf/unload8mod3.c: New file.
7813
7814         * elf/dl-close.c (_dl_close_worker): Reset private search list if
7815         it wasn't used.
7816
7817 2011-08-23  David S. Miller  <davem@davemloft.net>
7818
7819         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
7820         subtract stack bias.
7821         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
7822         %sp not %fp in calculations.
7823         (_JMPBUF_UNWINDS_ADJ): Likewise.
7824
7825         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
7826         (aio_suspend): Call it to force an exception region around the
7827         AIO_MISC_WAIT() invocation.
7828
7829 2011-08-23  Andreas Schwab  <schwab@redhat.com>
7830
7831         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
7832         backslash.
7833
7834 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
7835
7836         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
7837         protection macro.
7838         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
7839         and <dl-machine.h>.
7840         (Elf64_FuncDesc): Remove.
7841
7842 2011-08-22  David S. Miller  <davem@davemloft.net>
7843
7844         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
7845         sigaltstack check, add missing cfi directives.
7846         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
7847         missing cfi directives, and sigaltstack handling.
7848
7849 2011-08-16  Andreas Schwab  <schwab@redhat.com>
7850
7851         [BZ #11724]
7852         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
7853         object is seen twice.
7854         * elf/dl-fini.c (_dl_sort_fini): Likewise.
7855
7856         * elf/Makefile (distribute): Add tst-initorder2.c.
7857         (tests): Add tst-initorder2.
7858         (modules-names): Add tst-initorder2a tst-initorder2b
7859         tst-initorder2c tst-initorder2d.  Add rules to build them.
7860         ($(objpfx)tst-initorder2.out): New rule.
7861         * elf/tst-initorder2.c: New file.
7862         * elf/tst-initorder2.exp: New file.
7863
7864 2011-08-22  Andreas Schwab  <schwab@redhat.com>
7865
7866         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
7867
7868         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
7869         dependencies back to end of function.
7870
7871         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
7872         $(elfobjdir)/ld.so.
7873
7874 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
7875
7876         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
7877         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
7878         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
7879         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
7880         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
7881         of __vdso_gettimeofday.
7882         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
7883         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
7884         attribute_hidden.
7885         (_libc_vdso_platform_setup): Remove initialization of
7886         __vdso_gettimeofday and __vdso_time.
7887
7888 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
7889
7890         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
7891         and fgetc_unlocked.
7892         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
7893         getc_unlocked.
7894
7895         * elf/dl-open.c (add_to_global): Report additions to the global scope
7896         for LD_DEBUG=scopes.
7897         (dl_open_worker): Also print scope of newly loaded dependencies.
7898         (_dl_show_scope): Indicate if there is no scope.
7899
7900         [BZ #13114]
7901         * stdio-common/Makefile (tests): Add bug24.
7902         * stdio-common/bug24.c: New file.
7903
7904 2011-08-19  Andreas Jaeger  <aj@suse.de>
7905
7906         [BZ #13114]
7907         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
7908         non-existant file when using close-on-exec mode.
7909
7910 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
7911
7912         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
7913         the very first instruction.
7914
7915         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
7916         the CFI state in the end.
7917         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
7918         inclusion of dl-trampoline.h.
7919         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
7920
7921 2011-08-19  Andreas Schwab  <schwab@redhat.com>
7922
7923         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
7924         expectations for long double.
7925
7926         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
7927         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
7928
7929 2011-08-14  David S. Miller  <davem@davemloft.net>
7930
7931         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
7932         artificual limit depends upon the system page size.
7933
7934 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
7935
7936         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
7937         * resolv/Makefile: Define CFLAGS-libresolv.
7938
7939 2011-08-17  Andreas Schwab  <schwab@redhat.com>
7940
7941         * nss/makedb.c (compute_tables): Make variables used in nested
7942         function static.
7943
7944 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
7945
7946         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
7947         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
7948         if buffer was too small.
7949
7950         * elf/pldd.c (main): Attach to all threads in the process.
7951         Rewrite /proc handling to use *at functions.
7952
7953 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
7954
7955         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
7956         specifies first scope to show.
7957         (dl_open_worker): Update callers.  Move printing scope of new
7958         object to before the relocation.
7959         * elf/rtld.c (dl_main): Update _dl_show_scope call.
7960         * sysdeps/generic/ldsodefs.h: Update declaration.
7961
7962         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
7963         string for the scope number.
7964
7965 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
7966
7967         * nscd/servicescache.c (cache_addserv): Make sure written is always
7968         initialized.
7969
7970 2011-08-14  Roland McGrath  <roland@hack.frob.com>
7971
7972         * sysdeps/i386/i486/bits/atomic.h
7973         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
7974         statement expression, so as to suppress "set but not used" warning.
7975         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
7976
7977         * string/strncat.c (STRNCAT): Use prototype definition.
7978
7979         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
7980         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
7981         -Iprograms here.
7982         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
7983         (localedef-modules): Add localedef.
7984         (locale-modules): Add locale.
7985
7986         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
7987         * elf/rtld.c (dl_main): Invert order of assignment in last change,
7988         to avoid a warning.
7989
7990 2011-08-14  David S. Miller  <davem@davemloft.net>
7991
7992         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
7993         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
7994
7995 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
7996
7997         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
7998         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
7999         * elf/rtld.c (dl_main): Set l_name of vDSO.
8000         Call _dl_show_scope when DL_DEBUG_SCOPES.
8001         (process_dl_debug): Recognize scopes flag and also set it for all.
8002         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
8003         Declare _dl_show_scope.
8004
8005         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
8006         (do_dlopen): Pass caller_dlopen to dl_open.
8007         (__libc_dlopen_mode): Initialize caller_dlopen.
8008
8009         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
8010         of libc.  Make tolower call locale-independent.  Optimize a bit by
8011         using isdigit instead of isalnum.
8012         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
8013
8014 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
8015
8016         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
8017         was a dependency or dynamically loaded.
8018
8019 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
8020
8021         * intl/l10nflist.c: Allow architecture-specific pop function.
8022         * sysdeps/x86_64/l10nflist.c: New file.
8023
8024         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
8025         classification.
8026
8027 2011-08-10  Andreas Schwab  <schwab@redhat.com>
8028
8029         * include/dirent.h: Add libc_hidden_proto for scandirat and
8030         scandirat64.  Don't declare __scandirat64.
8031         * dirent/scandirat.c: Add libc_hidden_def.
8032         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
8033         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
8034
8035 2011-08-10  David S. Miller  <davem@davemloft.net>
8036
8037         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
8038         enum.
8039         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
8040         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
8041         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
8042
8043 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
8044
8045         * Versions.def [libc]: Add GLIBC_2.15.
8046         * dirent/Makefile (routines): Add scandirat and scandirat64.
8047         * dirent/Versions [libc]: Export scandirat and scandirat64 for
8048         GLIBC_2.15.
8049         * dirent/dirent.h: Declare scandirat and scandirat64.
8050         * dirent/scandirat.c: New file.
8051         * dirent/scandirat64.c: New file.
8052         * sysdeps/wordsize-64/scandirat.c: New file.
8053         * sysdeps/wordsize-64/scandirat64.c: New file.
8054         * dirent/opendir.c: Define opendirat.
8055         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
8056         using scandirat.
8057         * dirent/scandir64.c: Adjust for scandir.c change.
8058         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
8059         __scandirat64, and __scandir_cancel_handler.
8060         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
8061         additional parameter and use openat instead of open (outside of ld.so).
8062         Add new __opendir as wrapper around __opendirat.
8063         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
8064         here without requiring old scandirat implementation.
8065
8066 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
8067
8068         * dirent/scandir.c (cancel_handler): Renamed to
8069         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
8070         defined.  Adjust users.
8071         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
8072         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
8073
8074 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
8075
8076         * string/test-string.h (IMPL): Use __STRING to expand name and then
8077         stringify it.
8078
8079         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
8080         of cleanups.
8081
8082 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8083
8084         * string/Makefile: Update.
8085         (strop-tests): Append strncat.
8086         * string/test-wcscmp.c: New file.
8087         New comprehensive test for wcscmp.
8088         * string/test-strcmp.c: Update.
8089         (WIDE): New define.
8090
8091 2011-07-22  Andreas Schwab  <schwab@redhat.com>
8092
8093         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
8094         line.
8095
8096 2011-07-26  Andreas Schwab  <schwab@redhat.com>
8097
8098         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
8099         encoding to ACE if AI_IDN.
8100
8101 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
8102
8103         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
8104         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
8105
8106 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
8107
8108         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
8109         Fix overflow bug in strncat.
8110         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
8111
8112         * string/test-strncat.c: Update.
8113         Add new tests for checking overflow bugs.
8114
8115 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
8116
8117         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
8118         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
8119         * sysdeps/i386/i686/multiarch/strcat.S: New file.
8120         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
8121         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
8122         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
8123         * sysdeps/i386/i686/multiarch/strncat.S: New file.
8124         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
8125         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
8126
8127         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
8128         (USE_AS_STRCAT): Define.
8129         Add strcat and strncat support.
8130         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
8131
8132 2011-07-25  Andreas Schwab  <schwab@redhat.com>
8133
8134         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
8135         __n bigger than INT_MAX+1.
8136         (__strncmp_g): Likewise.
8137
8138 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
8139
8140         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
8141         * libio/stido.h: Likewise.
8142
8143         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
8144         (AF_NFC): Define.
8145         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
8146         (AF_NFC): Define.
8147
8148         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
8149         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
8150         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
8151         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
8152         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
8153
8154         [BZ #13021]
8155         * scripts/test-installation.pl: Don't expect libnss_test1 to be
8156         installed.
8157
8158         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
8159         typo.
8160         (_dl_x86_64_save_sse): Likewise.
8161
8162 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
8163
8164         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
8165         OSXSAVE.
8166         (_dl_x86_64_save_sse): Likewise.
8167
8168         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
8169
8170         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
8171
8172 2011-07-21  Andreas Schwab  <schwab@redhat.com>
8173
8174         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
8175         change.
8176         (_dl_x86_64_save_sse): Use correct AVX check.
8177
8178 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8179
8180         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
8181         bug in strncpy/strncat.
8182         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
8183
8184 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
8185
8186         * string/tester.c (test_strcat): Add tests for different alignments
8187         of source and destination.
8188         (test_strncat): Likewise.
8189
8190 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
8191
8192         [BZ #12852]
8193         * posix/glob.c (glob): Check passed in values before using them in
8194         expressions to avoid some overflows.
8195         (glob_in_dir): Likewise.
8196
8197         [BZ #13007]
8198         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
8199         check for AVX enablement so that we don't crash with old kernels and
8200         new hardware.
8201         * elf/tst-audit4.c: Add same checks here.
8202         * elf/tst-audit6.c: Likewise.
8203
8204         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
8205
8206 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
8207
8208         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
8209
8210 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
8211
8212         * po/cs.po: Update from translation team.
8213         * po/bg.po: Likewise.
8214
8215 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
8216
8217         * misc/sys/cdefs.h: Add support for const attribute.
8218         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
8219         to gnu_dev_{major,minor,makedev} functions.
8220
8221 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
8222
8223         * intl/dcigettext.c (get_output_charset): Add missing bracket.
8224
8225 2011-07-20  Andreas Schwab  <schwab@redhat.com>
8226
8227         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
8228         strlen results.
8229
8230 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8231
8232         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
8233         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
8234         register in order to avoid conflicts with the soft frame pointer
8235         being held in r11 when necessary.
8236         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
8237         (INTERNAL_VSYSCALL_NCS): Likewise.
8238
8239 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
8240
8241         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
8242         * elf/dl-fini.c (_dl_fini): Adjust caller.
8243         * elf/dl-close.c (_dl_close_worker): Likewise.
8244         * sysdeps/generic/ldsodefs.h: Adjust declaration.
8245
8246 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
8247
8248         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
8249         "aux_cache->nlibs < 0".
8250
8251         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
8252         in the reload-count case.
8253
8254 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
8255
8256         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
8257         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
8258         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
8259         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
8260         * sysdeps/x86_64/multiarch/strcat.S: New file.
8261         * sysdeps/x86_64/multiarch/strncat.S: New file.
8262         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
8263         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
8264         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
8265         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
8266         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
8267         (USE_AS_STRCAT): Define.
8268         Add strcat and strncat support.
8269         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
8270         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
8271         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
8272         * string/strncat.c: Update.
8273         (USE_AS_STRNCAT): Define.
8274         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
8275         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
8276         and i7.
8277         * sysdeps/x86_64/multiarch/init-arch.h
8278         (bit_Prefer_PMINUB_for_stringop): New.
8279         (index_Prefer_PMINUB_for_stringop): Likewise.
8280         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
8281         bit_Prefer_PMINUB_for_stringop.
8282
8283 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
8284
8285         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
8286         buffer64.
8287         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
8288         of casting of buffer.
8289         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
8290         buffer32 and buffer64.
8291         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
8292         writes instead of casting of buffer.
8293         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
8294         buffer32.
8295         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
8296         casting of buffer.
8297
8298 2011-07-19  Andreas Schwab  <schwab@redhat.com>
8299
8300         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
8301
8302 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
8303
8304         * nscd/nscd.c (termination_handler): Don't do anything for a database
8305         if it has not yet been initialized.
8306
8307 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
8308
8309         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
8310
8311 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
8312
8313         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
8314
8315 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
8316
8317         * po/nl.po: Update from translation team.
8318         * po/sv.po: Likewise.
8319
8320 2011-07-16  Roland McGrath  <roland@hack.frob.com>
8321
8322         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
8323         now disallowed by GCC.
8324
8325         * configure.in (use-default-link): Default to yes if a test -shared
8326         link meets our qualifications.
8327         * configure: Regenerated.
8328
8329         * config.make.in (output-format): New variable.
8330         * configure.in: Check for ld --print-output-format support.
8331         * configure: Regenerated.
8332         * Makerules ($(common-objpfx)format.lds)
8333         [$(output-format) != unknown]: Just use $(output-format),
8334         instead of the linker-script munging.
8335
8336 2011-07-14  Roland McGrath  <roland@hack.frob.com>
8337
8338         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
8339         of $(common-objpfx)shlib.lds.
8340         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
8341
8342         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
8343         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
8344
8345         * configure.in (-z relro check): Adjust test code to add a large
8346         writable data section after it.
8347         * configure: Regenerated.
8348
8349 2011-07-11  Roland McGrath  <roland@hack.frob.com>
8350
8351         * configure.in (-z relro check): Fix test code to make the variable
8352         truly const.
8353         * configure: Regenerated.
8354
8355 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
8356
8357         * nscd/nscd.h (struct traced_file): Define.
8358         (struct database_dyn): Remove inotify_descr, reset_res, and filename
8359         elements.  Add traced_files.
8360         (inotify_fd): Declare.
8361         (register_traced_file): Declare.
8362         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
8363         (inotify_fd): Export.
8364         (resolv_conf_descr): Remove.
8365         (nscd_init): Move inotify descriptor creation to main.
8366         Don't register files for notification here.
8367         (register_traced_file): New function.
8368         (invalidate_cache): Don't use reset_res to determine whether to call
8369         res_init, go through the list of registered files.
8370         (main_loop_poll): The inotify descriptors are now stored in the
8371         structures for the traced files.
8372         (main_loop_epoll): Likewise
8373         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
8374         to __nss_disable_nscd.
8375         * nscd/cache.c (prune_cache): There is no single inotify descriptor
8376         for a database anymore.  Check the records for all the registered
8377         files instead.
8378         * nss/Makefile (libnss_files-routines): Add files-init.
8379         (libnss_db-routines): Add db-init.
8380         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
8381         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
8382         * nss/nss_db/db-init.c: New file.
8383         * nss/nss_files/files-init.c: New file.
8384         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
8385         __nss_lookup_function.
8386         (__nss_lookup_function): Call nss_load_library.
8387         (nss_load_all_libraries): New function.
8388         (__nss_disable_nscd): Take parameter with callback function for files
8389         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
8390         used for the cached services.
8391         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
8392         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
8393         options for features to all the files in nscd.
8394
8395         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
8396
8397 2011-07-10  Roland McGrath  <roland@hack.frob.com>
8398
8399         * csu/elf-init.c (__libc_csu_init): Comment typo.
8400
8401 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
8402
8403         * po/pl.po: Update from translation team.
8404         * po/ja.po: Likewise.
8405         * po/ru.po: Likewise.
8406         * po/ko.po: Likewise.
8407         * po/fr.po: Likewise.
8408
8409 2011-07-09  Roland McGrath  <roland@hack.frob.com>
8410
8411         * configure.in (.ctors/.dtors header and trailer check):
8412         Use an empirical test on a built program.
8413         * configure: Regenerated.
8414
8415         * configure.in (-z relro check): Use an empirical test on a built DSO.
8416         Detect, but do not require, on ia64.
8417         * configure: Regenerated.
8418
8419         * configure.in (READELF): Find it with AC_CHECK_TOOL.
8420         Update tests that use readelf to use $READELF instead.
8421         * configure: Regenerated.
8422
8423 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
8424
8425         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
8426         if the result is not used.
8427
8428 2011-07-05  Andreas Jaeger  <aj@suse.de>
8429
8430         [BZ#9696]
8431         * stdlib/tst-strtod.c: Add testcase.
8432
8433 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
8434
8435         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
8436         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
8437         The latter has a higher limit.  Take additional parameter to pass to
8438         the new function.
8439         (__pathconf): Pass file to __statfs_link_max.
8440         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
8441         __statfs_link_max.
8442         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
8443         __statfs_link_max.
8444
8445         [BZ #12868]
8446         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
8447         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
8448         Handle Lustre.
8449         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
8450         (__statfs_filesize_max): Likewise.
8451         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
8452
8453 2011-07-05  Andreas Jaeger  <aj@suse.de>
8454
8455         * resolv/res_comp.c (dn_skipname): Remove unused variable.
8456
8457 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
8458
8459         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
8460         `status' variable.
8461         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
8462         Likewise.
8463
8464 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
8465
8466         * Makefile (strop-tests): Add strncat.
8467         * string/test-strncat.c: New file.
8468
8469 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
8470
8471         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
8472
8473 2011-06-21  Andreas Jaeger  <aj@suse.de>
8474
8475         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
8476         Copy rule from iconvdata/Makefile.
8477
8478 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
8479
8480         [BZ #12922]
8481         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
8482         but no long options are defined, just return 'W'.
8483
8484 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
8485
8486         [BZ #9696]
8487         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
8488
8489 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
8490
8491         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
8492         netgroups to read.
8493         (innetgr): Likewise.
8494
8495 2011-07-05  Roland McGrath  <roland@hack.frob.com>
8496
8497         * config.make.in (install_root): Default to $(DESTDIR).
8498
8499 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
8500
8501         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
8502
8503 2011-07-02  Roland McGrath  <roland@hack.frob.com>
8504
8505         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
8506
8507         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
8508         containing directory rather than embedding absolute directory names.
8509
8510         * scripts/check-local-headers.sh: Rewritten using awk.
8511         Match by word, not by line.  Print error messages for matches.
8512         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
8513
8514         * Makerules [shlib-lds-flags empty]:
8515         ($(common-objpfx)libc_pic.opts): New target.
8516         ($(common-objpfx)libc_pic.os.clean): New target.
8517         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
8518
8519         * config.make.in (OBJCOPY): New variable.
8520         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
8521         * configure: Regenerated.
8522
8523         * config.make.in (use-default-link): New variable.
8524         * configure.in (use_default_link): Grok --with-default-link to set it.
8525         * configure: Regenerated.
8526         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
8527         (shlib-lds, shlib-lds-flags): Define to empty.
8528
8529         * Makerules (shlib-lds): New variable.
8530         (shlib-lds-flags): New variable.
8531         (build-shlib, build-moduile, build-module-asneeded): Use it.
8532         ($(common-objpfx)libc.so): Use $(shlib-lds).
8533         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
8534         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
8535
8536         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
8537         DT_FLAGS/DT_FLAGS_1 with zero flags.
8538
8539         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
8540         linker script munging.
8541
8542 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
8543
8544         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
8545         as 128-bit value.
8546         * crypt/sha512.c (sha512_process_block): Perform total addition using
8547         128-bit if possible.
8548         (__sha512_finish_ctx): Likewise.
8549         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
8550         as 64-bit value.
8551         * crypt/sha256.c (SWAP64): Define.
8552         (sha256_process_block): Perform total addition using 64-bit if
8553         possible.
8554         (__sha256_finish_ctx): Likewise.
8555
8556 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
8557
8558         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
8559         * nscd/initgrcache.c (addinitgroupsX): Likewise.
8560         * nscd/hstcache.c (cache_addhst): Likewise.
8561         * nscd/grpcache.c (cache_addgr): Likewise.
8562         * nscd/aicache.c (addhstaiX): Likewise
8563         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
8564
8565 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
8566
8567         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
8568         * nscd/initgrcache.c (addinitgroupsX): Likewise.
8569         * nscd/hstcache.c (cache_addhst): Likewise.
8570         * nscd/grpcache.c (cache_addgr): Likewise.
8571         * nscd/aicache.c (addhstaiX): Likewise
8572
8573 2011-07-01  Andreas Schwab  <schwab@redhat.com>
8574
8575         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
8576         domain only when needed.
8577
8578 2011-06-30  Andreas Schwab  <schwab@redhat.com>
8579
8580         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
8581         is always restored.
8582
8583 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
8584
8585         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
8586         are re-adding the entry.
8587         * nscd/servicescache.c (cache_addserv): Likewise.
8588
8589 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
8590
8591         * sysdeps/generic/dl-irel.h: fix protection against multiple
8592         inclusions.
8593         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
8594
8595 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
8596
8597         [BZ #12935]
8598         * malloc/memusage.sh: Fix quoting in message.
8599         * debug/xtrace.sh: Likewise.
8600
8601         * configure.in: Remove support for --experimental-malloc option, make
8602         it the default.
8603         * config.make.in: Likewise.
8604         * malloc/Makefile: Likewise.
8605
8606 2011-06-27  Andreas Schwab  <schwab@redhat.com>
8607
8608         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
8609         two-byte characters.
8610
8611 2011-06-27  Roland McGrath  <roland@hack.frob.com>
8612
8613         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
8614         AC_CACHE_CHECK invocation.
8615         * configure: Regenerated.
8616
8617         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
8618
8619 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
8620
8621         [BZ #12350]
8622         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
8623         bit from old_res_options.
8624
8625         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
8626
8627         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
8628         value type for setfct.
8629
8630 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
8631
8632         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
8633         __gettimeofday instead of gettimeofday.
8634
8635 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
8636
8637         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
8638
8639 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
8640
8641         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
8642
8643         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
8644         info.
8645
8646 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
8647
8648         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
8649         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
8650         strcpy-sse2-unaligned strncpy-sse2-unaligned
8651         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
8652         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
8653         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
8654         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
8655         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
8656         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
8657         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
8658         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
8659         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
8660         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
8661         (STRCPY): Support SSE2 and SSSE3 versions.
8662
8663 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
8664
8665         [BZ #12874]
8666         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
8667         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
8668         kernels which artificially limit size of requests.
8669
8670 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
8671
8672         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
8673         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
8674         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
8675         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
8676         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
8677         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
8678         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
8679         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
8680         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
8681         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
8682         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
8683         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
8684         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
8685         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
8686         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
8687         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
8688         Enable unaligned load optimization for Intel Core i3, i5 and i7
8689         processors.
8690         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
8691         Define.
8692         (index_Fast_Unaligned_Load): Define.
8693         (HAS_FAST_UNALIGNED_LOAD): Define.
8694
8695 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
8696
8697         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
8698
8699 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
8700
8701         [BZ #12907]
8702         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
8703         until it is clear that the information is realy needed.
8704         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
8705
8706 2011-06-22  Andreas Schwab  <schwab@redhat.com>
8707
8708         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
8709
8710 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
8711
8712         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
8713         /sys/devices/system/cpu/online if it is usable.
8714
8715         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
8716         reading the information from the /proc filesystem to once a second.
8717
8718 2011-06-21  Andreas Jaeger  <aj@suse.de>
8719
8720         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
8721         NULL after inclusion of kernel headers.
8722
8723 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
8724
8725         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
8726         calls to internal_setent.
8727
8728         [BZ #12885]
8729         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
8730         addresses using gethostbyname4_r ignore IPv4 addresses.
8731
8732         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
8733         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
8734
8735         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
8736
8737 2011-06-20  David S. Miller  <davem@davemloft.net>
8738
8739         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
8740         inclusions.
8741         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
8742
8743         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
8744         (elf_irel): Use it.
8745         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
8746         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
8747         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
8748         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
8749         * sysdeps/x86_64/dl-irel.h: Likewise.
8750
8751         * elf/dl-runtime.c: Use elf_ifunc_invoke.
8752         * elf/dl-sym.c: Likewise.
8753
8754 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
8755
8756         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
8757         need to dereference resplen2.
8758
8759 2011-06-14  Andreas Schwab  <schwab@redhat.com>
8760
8761         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
8762
8763 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
8764
8765         * Makeconfig: Define vardbdir and inst_vardbdir.
8766         * nss/Makefile: Add rules to install db-Makefile.
8767
8768         * nss/nss_db/db-XXX.c: Cleanup.
8769
8770         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
8771         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
8772         GLIBC_PRIVATE.
8773         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
8774         * nss/makedb.c: Implement -g option to specify that value strings
8775         are generated and should not be added to table iterated over for
8776         get*ent calls.
8777         * nss/nss_db/db-initgroups.c: New file.
8778
8779         * nss/getent.c: Add support for initgroups lookups through getgrouplist
8780         interface.
8781
8782         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
8783         (internal_getgrouplist): Adjust to name change.
8784         Update use_initgroups_entry if this is not the first call.
8785         * nss/databases.def: Add initgroups entry.
8786
8787         * nss/makedb.c (compute_tables): Check result of multiple hash table
8788         sizes to minimize maximum chain length.
8789
8790 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
8791
8792         * Versions.def: Add entry for libnss_db.
8793         * shlib-versions: Likewise.
8794         * nss/Makefile: Add rules to build libnss_db.
8795         * nss/Versions: Add libnss_db information.  Organize libnss_files
8796         entries better.
8797         * nss/db-Makefile: Add gshadow support.  Change rules for the new
8798         makedb progra.  Some minor improvements to generate smaller files.
8799         * nss/nss_db/nss_db.h: Move NSS database header data structures to
8800         here from...
8801         * nss/makedb.c: ...here.
8802         Improve database format to be smaller and require less memory at
8803         runtime.
8804         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
8805         db anymore.
8806         * nss/nss_db/db-netgrp.c: Likewise.
8807         * nss/nss_db/db-open.c: Likewise.
8808         * nss/nss_files/flies-XXX.x: Adjust comments.
8809         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
8810         * nss/nss_files/files-grp.c: Likewise.
8811         * nss/nss_files/files-hosts.c: Likewise.
8812         * nss/nss_files/files-network.c: Likewise.
8813         * nss/nss_files/files-proto.c: Likewise.
8814         * nss/nss_files/files-pwd.c: Likewise.
8815         * nss/nss_files/files-rpc.c: Likewise.
8816         * nss/nss_files/files-service.c: Likewise.
8817         * nss/nss_files/files-sgrp.c: Likewise.
8818         * nss/nss_files/files-spwd.c: Likewise.
8819         * nss/nss_db/db-alias.c: Removed.
8820         * nss/nss_db/dummy-db.h: Removed.
8821
8822 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
8823
8824         * nss/makedb.c: Rewritten to not use database library.
8825         * nss/Makefile: Update to build new makedb program.
8826
8827 2011-06-14  Andreas Jaeger  <aj@suse.de>
8828
8829         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
8830         memset declaration.
8831
8832 2011-06-10  Andreas Schwab  <schwab@redhat.com>
8833
8834         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
8835         tmpbuf.
8836
8837 2011-06-10  Roland McGrath  <roland@hack.frob.com>
8838
8839         * Makerules (shlib.lds): Fail if the linker script comes out empty.
8840         * elf/Makefile ($(objpfx)ld.so): Likewise.
8841
8842         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
8843         Don't list ld.so twice in dependencies.
8844
8845         * posix/bug-regex31.c: Include <stdlib.h>.
8846
8847         * nscd/hstcache.c (cache_addhst): Remove unused variable.
8848
8849         * nis/nss_compat/compat-spwd.c
8850         (getspent_next_nss_netgr): Remove unused variable.
8851         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
8852
8853         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
8854         nonmembers" output to use the right array.
8855
8856         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
8857
8858         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
8859
8860         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
8861         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
8862         * catgets/gencat.c (read_input_file): Likewise.
8863         * locale/programs/locarchive.c (enlarge_archive): Likewise.
8864
8865         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
8866         variable definition inside #if's controlling its use.
8867
8868         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
8869
8870         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
8871
8872         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
8873
8874         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
8875         unreachable code.
8876
8877         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
8878
8879         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
8880         * configure: Regenerated.
8881
8882         * Makerules: Revert last change.
8883         * elf/Makefile: Likewise.
8884
8885 2011-06-09  Roland McGrath  <roland@hack.frob.com>
8886
8887         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
8888         * elf/Makefile ($(objpfx)librtld.os): Likewise.
8889         (reloc-link): Likewise.
8890
8891 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
8892
8893         * elf/Makefile: Add rules to build pldd.
8894         * elf/pldd.c: New file.
8895         * elf/pldd-xx.c: New file.
8896
8897 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
8898
8899         * version.h: Update for 2.15 development version.
8900
8901 2011-06-07  David S. Miller  <davem@davemloft.net>
8902
8903         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
8904         ifuncs.
8905         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
8906         elf_machine_lazy_rel): Likewise.
8907         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
8908         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
8909         elf_machine_lazy_rel): Likewise.
8910         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
8911         dl_hwcap via passed in argument.
8912         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
8913         Likewise.
8914
8915 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8916
8917         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
8918
8919 2011-06-06  Roland McGrath  <roland@hack.frob.com>
8920
8921         [BZ #12849]
8922         * manual/fdl-1.1.texi: New file, verbatim from:
8923         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
8924         * manual/lgpl-2.1.texi: New file, verbatim from:
8925         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
8926         * manual/Makefile (licenses): New variable, list those new file names.
8927         (texis): Use it.
8928         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
8929
8930         * manual/fdl.texi: File removed.
8931         * manual/lesser.texi: File removed.
8932         * manual/libc.texinfo (Copying, Documentation License):
8933         Use new @include file names, put @appendix directive before @include.
8934
8935 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
8936
8937         [BZ #12841]
8938         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
8939         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
8940         (mq_open): Add __NTH.
8941
8942 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
8943
8944         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
8945         Assume Intel Core i3/i5/i7 processor if AVX is available.
8946
8947 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
8948
8949         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
8950         typo.
8951
8952 2011-05-31  Andreas Schwab  <schwab@redhat.com>
8953
8954         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
8955         memory.  Use alloca_account.  Fix memory leak when retrying.
8956
8957 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
8958
8959         * version.h (RELEASE): Bump for 2.14 release.
8960         * include/features.h (__GLIBC_MINOR__): Bump to 14.
8961
8962         * config.make.in (RANLIB): Remove entry.
8963
8964 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
8965
8966         * po/Makefile (po-sed-cmd): Add ksh to extensions.
8967         (libc.pot): Work around missing support for .ksh extension in xgettext.
8968
8969         [BZ #12684]
8970         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
8971         if both request failed.
8972         (send_dg): In case of server errors clear resplen or *resplen2.
8973
8974         [BZ #12454]
8975         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
8976         when there are multiple maps.
8977         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
8978         (_dl_fini): Remove test here.
8979
8980         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
8981
8982 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
8983
8984         [BZ #12350]
8985         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
8986         bit from old_res_options.
8987         (gaih_inet): Likewise.
8988
8989         [BZ #11099]
8990         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
8991         as signed.
8992
8993         * resolv/res_init.c (res_setoptions): Make the code more compact.
8994
8995         [BZ #11558]
8996         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
8997         set RES_USEVC.
8998
8999         [BZ #11634]
9000         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
9001
9002         * malloc/malloc.h: Mark malloc hook variables as deprecated.
9003
9004         [BZ #11781]
9005         * malloc/malloc.h: Declare malloc hook variables as volatile.
9006
9007         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
9008         in last patch.
9009
9010         [BZ #11799]
9011         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
9012         raise in the comment.
9013         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
9014         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
9015         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
9016
9017 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
9018
9019         [BZ #12811]
9020         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
9021         grow the buffers more if it already has to be sufficient.
9022         (build_wcs_upper_buffer): Likewise.
9023         * posix/regexec.c (check_matching): Likewise.
9024         (clean_state_log_if_needed): Likewise.
9025         (extend_buffers): Don't enlarge buffers beyond size of the input
9026         buffer.
9027         Patches mostly by Emil Wojak <emil@wojak.eu>.
9028         * posix/bug-regex32.c: New file.
9029         * posix/Makefile (tests): Add bug-regex32.
9030
9031         * locale/findlocale.c (_nl_find_locale): Return right away if
9032         _nl_explode_name failed.
9033         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
9034
9035         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
9036
9037         * debug/xtrace.sh: Unify messages.
9038         * malloc/memusage.sh: Likewise.
9039
9040         [BZ #12813]
9041         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
9042         time symbol from vDSO.  Substitute with vsyscall if not available.
9043         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
9044         __vdso_time.
9045
9046         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
9047         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
9048         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
9049         Add sendmmsg and internal_sendmmsg.
9050         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
9051         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
9052         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
9053
9054         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
9055         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
9056         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
9057
9058 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
9059
9060         [BZ #12813]
9061         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
9062         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
9063         available.
9064         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
9065         __vdso_getcpu.
9066
9067         [BZ #12814]
9068         * iconvdata/Makefile (tests): Add bug-iconv9.
9069         * iconvdata/bug-iconv9.c: New file.
9070
9071 2011-05-27  Andreas Schwab  <schwab@redhat.com>
9072
9073         [BZ #12814]
9074         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
9075
9076 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
9077
9078         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
9079         (struct user_regs_struct): Change intcs field back to cs.
9080
9081 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
9082
9083         * po/ja.po: Update from translation team.
9084
9085 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
9086
9087         [BZ #12795]
9088         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
9089         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
9090
9091 2011-05-20  Andreas Schwab  <schwab@redhat.com>
9092
9093         * stdlib/longlong.h: Update from GCC.
9094
9095 2011-05-23  Andreas Schwab  <schwab@redhat.com>
9096
9097         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
9098         parameter name.
9099         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
9100         Add parameter name.
9101         (__sysconf): Pass it down.
9102
9103 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
9104
9105         [BZ #12671]
9106         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
9107         some situations.
9108         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
9109         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
9110         add in in __libc_use_alloca calls.  Adjust callers.
9111         (glob): Use malloc in some situations.
9112
9113         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
9114         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
9115         pltexit.
9116
9117 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
9118
9119         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
9120         and CLOCK_BOOTTIME_ALARM.
9121
9122         [BZ #12782]
9123         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
9124         is returned.
9125
9126         * string/_strerror.c (__strerror_r): Print negative errors as signed
9127         numbers.
9128
9129         [BZ #12777]
9130         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
9131         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
9132         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
9133
9134         * configure.in: Fix typo in redirection and correct removal of test
9135         files in two cases.
9136
9137         [BZ #12788]
9138         * locale/setlocale.c (new_composite_name): Fix test to check for
9139         identical name of all categories.
9140
9141         [BZ #12792]
9142         * libio/filedoalloc.c (local_isatty): New function.
9143         (_IO_file_doallocate): Use local_isatty.
9144         * stdio-common/perror.c (perror): In case a new stream is used
9145         forward the stream error.
9146         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
9147         error flag.
9148
9149 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
9150
9151         [BZ #11869]
9152         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
9153         alloca.
9154         * include/alloca.h (extend_alloca_account): Define.
9155
9156         [BZ #11857]
9157         * posix/regex.h: Fix comments with documentation of user-accessible
9158         fields after compilation and describe correct free'ing of pattern
9159         after re_compile_pattern.
9160         Patch by Reuben Thomas <rrt@sc3d.org>.
9161
9162 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
9163
9164         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
9165         and -mno-altivec to prevent the compiler from using Altivec and/or
9166         VSX instructions when the corresponding registers are not available.
9167
9168 2011-05-19  Andreas Schwab  <schwab@redhat.com>
9169
9170         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
9171
9172 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
9173
9174         * libio/freopen.c (freopen): Use __dup2, not dup2.
9175         * libio/freopen64.c (freopen64): Likewise.
9176
9177 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
9178
9179         [BZ #12775]
9180         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
9181         * math/Makefile (tests): Add test-powl.
9182         (CFLAGS-test-powl.c): Define.
9183         * math/test-powl.c: New file.
9184
9185 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
9186
9187         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
9188
9189 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
9190
9191         [BZ #11837]
9192         * iconvdata/gb18030.c: Update to GB18020-2005.
9193
9194 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
9195
9196         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
9197         RE_SYNTAX_POSIX_AWK): Update to match recent development.
9198         Patch by Aharon Robbins <arnold@skeeve.com>.
9199
9200         [BZ #11892]
9201         * stdlib/putenv.c (putenv): Don't always create copy of the variable
9202         on the stack.
9203
9204         [BZ #11895]
9205         * misc/pselect.c (__pselect): Handle timeout value errors hidden
9206         through underflows.
9207
9208         [BZ #12766]
9209         * misc/error.c (error_at_line): Ensure file_name and old_file_name
9210         point to strings before performing equality test for error_one_per_line
9211         mode.
9212
9213         [BZ #11697]
9214         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
9215
9216         [BZ #11820]
9217         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
9218         (struct user_fpregs_struct): Avoid __uint*_t types.
9219
9220         [BZ #6420]
9221         * malloc/mtrace.c (tr_where): Add additional parameter to point to
9222         symbol info.  Use it instead of calling _dl_addr locally.
9223         (lock_and_info): New function.
9224         (tr_freehook): Call lock_and_info and pass symbol info as additional
9225         parameter to tr_where.
9226         (tr_mallochook): Likewise.
9227         (tr_reallochook): Likewise.
9228         (tr_memalignhook): Likewise.
9229
9230         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
9231         used and couldn't be at all thread-safe.
9232
9233 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
9234
9235         * libio/freopen.c (freopen): Don't close old file descriptor
9236         before the new one is opened.  Instead dup the new file descriptor
9237         to the old one after the new stream is created.
9238         * libio/freopen64.c (freopen64): Likewise.
9239         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
9240         * libio/fileops.c (_IO_new_file_close_it): Handle new
9241         _IO_FLAGS2_NOCLOSE flag.
9242         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
9243         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
9244         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
9245         _IO_FLAGS2_NOCLOSE flag.
9246         * include/unistd.h: Add hidden_proto for dup3.
9247         Define __have_dup3.
9248         * io/dup3.c: Define hidden symbol.
9249         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
9250
9251         [BZ #7101]
9252         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
9253         when an incomplete long option is used.
9254         * posix/tst-getopt_long1.c: New file.
9255         * posix/Makefile (tests): Add tst-getopt_long1.
9256
9257         [BZ #10138]
9258         * scripts/config.guess: Update from autoconf-2.68.
9259         * scripts/config.sub: Likewise.
9260
9261         [BZ #10157]
9262         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
9263         tests into ...
9264         (has_cpuclock): ...this.  New function.
9265         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
9266         macro here based on has_cpuclock code.
9267
9268         [BZ #10149]
9269         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
9270         First byte (not low byte) is now always NUL.
9271         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
9272
9273         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
9274         Use non-cancelable interfaces.
9275
9276         [BZ #9809]
9277         * locale/iso-639.def: Add entry for Sorani.
9278
9279         [BZ #11901]
9280         * include/stdlib.h: Move include protection to the right place.
9281         Define abort_msg_s.  Declare __abort_msg with it.
9282         * stdlib/abort.c (__abort_msg): Adjust type.
9283         * assert/assert.c (__assert_fail_base): New function.  Majority
9284         of code from __assert_fail.  Allocate memory for __abort_msg with
9285         mmap.
9286         (__assert_fail): Now call __assert_fail_base.
9287         * assert/assert-perr.c: Remove bulk of implementation.  Use
9288         __assert_fail_base.
9289         * include/assert.hL Declare __assert_fail_base.
9290         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
9291         mmap.
9292         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
9293
9294 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
9295
9296         [BZ #11952]
9297         [BZ #12453]
9298         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
9299         until all modules are registered in the DTV.
9300         * elf/Makefile: Add rules to build and run tst-tls19.
9301         * elf/tst-tls19.c: New file.
9302         * elf/tst-tls19mod1.c: New file.
9303         * elf/tst-tls19mod2.c: New file.
9304         * elf/tst-tls19mod3.c: New file.
9305         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
9306
9307         [BZ #12083]
9308         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
9309         correctly.
9310
9311         [BZ #12601]
9312         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
9313         two-byte sequence errors.
9314         * iconvdata/Makefile (tests): Add bug-iconv8.
9315         * iconvdata/bug-iconv8.c: New file.
9316
9317         [BZ #12626]
9318         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
9319         buf2 definition.
9320
9321         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
9322
9323         [BZ #12432]
9324         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
9325         (dummy_getcfa): New function.
9326         (init): Get _Unwind_GetCFA address, use dummy if not found.
9327         (backtrace_helper): In recursion check, also check whether CFA changes.
9328         (__backtrace): Completely initialize arg.
9329
9330         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
9331         storing incomplete byte sequence in state object.  Avoid testing for
9332         guaranteed too small input if we know there is enough data available.
9333
9334 2011-05-11  Andreas Schwab  <schwab@redhat.com>
9335
9336         * Makeconfig (+link-pie): Indent.
9337         * Rules (binaries-pie): Define if $(have-fpie) and
9338         $(build-shared).
9339         (binaries-shared): Also filter out $(binaries-pie).
9340         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
9341         * nscd/Makefile (others-pie): Add nscd.
9342         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
9343         ($(objpfx)nscd): Remove command override.
9344         * login/Makefile (others-pie): Add pt_chown.
9345         ($(objpfx)pt_chown): Remove command override.
9346         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
9347         remove command overrides.
9348
9349 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
9350
9351         * libio/tst_putwc.c: Fix error messages.
9352
9353         [BZ #12724]
9354         * libio/fileops.c (_IO_new_file_close_it): Always flush when
9355         currently writing and seek to current position when not.
9356         * libio/Makefile (tests): Add bug-fclose1.
9357         * libio/bug-fclose1.c: New file.
9358
9359 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
9360
9361         [BZ #12511]
9362         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
9363         don't set DF_1_NODELETE here.
9364         (do_lookup_x): When entering new entry test for copy relocation
9365         and if necessary set DF_1_NODELETE flag.
9366         * elf/tst-unique4.cc: New file.
9367         * elf/tst-unique4.h: New file.
9368         * elf/tst-unique4lib.cc: New file.
9369         * elf/Makefile: Add rules to build and run tst-unique4.
9370         Patch by Piotr Bury <pbury@goahead.com>.
9371
9372 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
9373
9374         [BZ #12052]
9375         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
9376
9377         [BZ #12625]
9378         * misc/mntent_r.c (addmntent): Flush the stream after the output
9379
9380         [BZ #12393]
9381         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
9382         (is_trusted_path_normalize): Skip initial colon.  Append slash
9383         to empty buffer.  Duplicate is_trusted_path code but allow
9384         constructed patch to be prefix.
9385         (is_dst): Allow $ORIGIN followed by /.
9386         (_dl_dst_substitute): Correct clearing of check_for_trusted.
9387         Correct testing of result of is_trusted_path_normalize
9388         (decompose_rpath): Fix warning.
9389
9390 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
9391
9392         [BZ #11257]
9393         * grp/initgroups.c (internal_getgrouplist): When we found the service
9394         list through the initgroups entry in nsswitch.conf do not always
9395         continue on a successful lookup.  Don't always use the
9396         __nss_group_database value if it is set.
9397         * nss/nsswitch.conf (initgroups): Change action for successful db
9398         lookup to continue for compatibility.
9399
9400 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
9401
9402         [BZ #11532]
9403         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
9404         and CP774 modules.
9405         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
9406         and CP774 modules.
9407         * iconvdata/tst-tables.sh: Likewise.
9408         * iconvdata/cp770.c: New file.
9409         * iconvdata/cp771.c: New file.
9410         * iconvdata/cp772.c: New file.
9411         * iconvdata/cp773.c: New file.
9412         * iconvdata/cp774.c: New file.
9413         * iconvdata/testdata/CP770: New file.
9414         * iconvdata/testdata/CP770..UTF8: New file.
9415         * iconvdata/testdata/CP771: New file.
9416         * iconvdata/testdata/CP771..UTF8: New file.
9417         * iconvdata/testdata/CP772: New file.
9418         * iconvdata/testdata/CP772..UTF8: New file.
9419         * iconvdata/testdata/CP773: New file.
9420         * iconvdata/testdata/CP773..UTF8: New file.
9421         * iconvdata/testdata/CP774: New file.
9422         * iconvdata/testdata/CP774..UTF8: New file.
9423
9424         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
9425         END CHARMAP line.
9426         * iconvdata/gen-8bit-gap.sh: Likewise.
9427         * iconvdata/gen-8bit.sh: Likewise.
9428
9429         * locale/iso-639.def: Add ary entry.
9430
9431         [BZ #11258]
9432         * locale/C-translit.h.in: Add U20A1 transliteration.
9433
9434         [BZ #12178]
9435         * locale/iso-639.def: Add wae entry.
9436         Patch by Kevin Bortis <bortis@translate-wae.ch>.
9437
9438         [BZ #12545]
9439         * locale/programs/localedef.c (construct_output_path): Use ssize_t
9440         for n.
9441
9442         [BZ #12711]
9443         * locale/C-translit.h.in: Add entry for U20B9.
9444         Patch by pravin.d.s@gmail.com.
9445
9446 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
9447
9448         [BZ #12713]
9449         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
9450         ENAMETOOLONG use generic getcwd.
9451         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
9452         in rtld.  Use *stat64.
9453         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
9454         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
9455         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
9456         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
9457         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
9458         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
9459         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
9460         __fstatat64 macros.
9461         * include/dirent.h: Add libc_hidden_proto for rewinddir.
9462         * dirent/rewinddir.c: Add libc_hidden_def.
9463         * sysdeps/mach/hurd/rewinddir.c: Likewise.
9464         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
9465
9466         * include/dirent.h (__alloc_dir): Add flags parameter.
9467         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
9468         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
9469         __alloc_dir.
9470         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
9471         from fdopendir if O_CLOEXEC is already set.
9472
9473 2011-03-15  Alan Modra  <amodra@gmail.com>
9474
9475         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
9476         l_tls_firstbyte_offset non-zero.  Save padding offset in
9477         l_tls_firstbyte_offset for later use.
9478         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
9479         freeing static tls block.
9480
9481 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
9482
9483         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
9484         where #ifdef was intended.  The intent is to prevent ARG_MAX from
9485         being defined by the kernel headers.
9486
9487 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
9488
9489         [BZ #12734]
9490         * resolv/resolv.h: Define RES_NOTLDQUERY.
9491         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
9492         no-tld-query and set RES_NOTLDQUERY.
9493         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
9494         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
9495         modern BIND to search name as TLD unless forbidden.
9496
9497 2011-05-07  Petr Baudis  <pasky@suse.cz>
9498             Ulrich Drepper  <drepper@gmail.com>
9499
9500         [BZ #12393]
9501         * elf/dl-load.c (fillin_rpath): Move trusted path check...
9502         (is_trusted_path): ...to here.
9503         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
9504         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
9505         using is_trusted_path_normalize() in setuid scripts.
9506
9507 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
9508
9509         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
9510         __BEGIN/__END_DECLS.
9511
9512 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
9513
9514         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
9515         NSS_STATUS_NOTFOUND if no record was found.
9516
9517 2011-05-05  Andreas Schwab  <schwab@redhat.com>
9518
9519         * sunrpc/Makefile (headers): Add rpc/netdb.h.
9520         (headers-not-in-tirpc): Remove rpc/netdb.h
9521         * resolv/netdb.h: Revert last change.
9522
9523 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
9524
9525         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
9526         circular dependency between libgcc.a and libc.a.
9527
9528 2011-05-05  Andreas Schwab  <schwab@redhat.com>
9529
9530         * resolv/netdb.h: Don't include <rpc/netdb.h>.
9531         * nis/Makefile: Don't install rpcsvc/*.
9532         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
9533         instead of <rpc/types.h>.
9534         (MAXHOSTNAMELEN): Define.
9535
9536 2011-05-03  Andreas Schwab  <schwab@redhat.com>
9537
9538         * elf/ldconfig.c (add_dir): Don't crash on empty path.
9539
9540 2011-04-28  Maciej Babinski  <mbabinski@google.com>
9541
9542         [BZ #12714]
9543         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
9544         gethostbyname4_r when IPv6 results are possible.
9545
9546 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
9547
9548         [BZ #12723]
9549         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
9550         _PC_PIPE_BUF handling.
9551
9552 2011-04-30  Bruno Haible  <bruno@clisp.org>
9553
9554         [BZ #12717]
9555         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
9556         * resolv/netdb.h (getnameinfo): Change type of flags parameter
9557         to 'int'.
9558         * inet/getnameinfo.c (getnameinfo): Likewise.
9559
9560 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
9561
9562         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
9563         to groups setting in database lookup.
9564         * nss/nsswitch.conf: Add initgroups entry.
9565
9566 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
9567
9568         [BZ #12685]
9569         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
9570         mode string.
9571         Patch by Eric Blake <eblake@redhat.com>.
9572
9573 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
9574
9575         * sunrpc/Makefile (need-export-routines): Add svc_run.
9576         (routines): Remove svc_run.
9577         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
9578         * sunrpc/clnt_perr.c (clnt_perrno): Export.
9579         * sunrpc/svc_run.c (svc_run): Likewise.
9580         * sunrpc/svc_udp.c (svcudp_create): Likewise.
9581
9582 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
9583
9584         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
9585         problem in reallocation in last patch.
9586
9587 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
9588
9589         * sunrpc/Makefile: Move inclusion of Rules.
9590
9591 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
9592
9593         * nss/nss_files/files-initgroups.c: New file.
9594         * nss/Makefile (libnss_files-routines): Add files-initgroups.
9595         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
9596         _nss_files_initgroups_dyn.
9597
9598 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
9599
9600         * elf/elf.h (R_ARM_IRELATIVE): Define.
9601
9602 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
9603
9604         * po/ru.po: Update from translation team.
9605
9606 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
9607
9608         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
9609         dependencies.
9610
9611 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
9612
9613         [BZ #12653]
9614         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
9615         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
9616         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
9617         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
9618         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
9619
9620 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
9621
9622         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
9623         differing bytes.
9624         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
9625         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
9626         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
9627
9628 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
9629
9630         [BZ #12420]
9631         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
9632         storing it.
9633         * stdlib/bug-getcontext.c: New file.
9634         * stdlib/Makefile: Add rules to build and run bug-getcontext.
9635
9636 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9637
9638         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
9639         instructions into .machine "z9-109".
9640         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
9641         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
9642
9643 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9644
9645         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
9646         between environment variables and auxiliary vector.
9647
9648 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
9649
9650         * Makefile: Add rules to build linkobj/libc.so.
9651         * include/libc-symbols.h: Define libc_hidden_nolink.
9652         * include/rpc/auth.h: Mark functions which are to be hidden.
9653         * include/rpc/auth_des.h: Likewise.
9654         * include/rpc/auth_unix.h: Likewise.
9655         * include/rpc/clnt.h: Likewise.
9656         * include/rpc/des_crypt.h: Likewise.
9657         * include/rpc/key_prot.h: Likewise.
9658         * include/rpc/pmap_clnt.h: Likewise.
9659         * include/rpc/pmap_prot.h: Likewise.
9660         * include/rpc/pmap_rmt.h: Likewise.
9661         * include/rpc/rpc_msg.h: Likewise.
9662         * include/rpc/svc.h: Likewise.
9663         * include/rpc/svc_auth.h: Likewise.
9664         * include/rpc/xdr.h: Likewise.
9665         * nis/Makefile: Link all DSOs against linkobj/libc.so.
9666         * nss/Makefile: Likewise.
9667         * sunrpc/Makefile: Don't install headers.  Build library with normal
9668         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
9669         * sunrpc/auth_des.c: Hide exported symbols by default, export some
9670         for the compat linking library.  Remove use of INTDEF/INTUSE.
9671         * sunrpc/auth_none.c: Likewise.
9672         * sunrpc/auth_unix.c: Likewise.
9673         * sunrpc/authdes_prot.c: Likewise.
9674         * sunrpc/authuxprot.c: Likewise.
9675         * sunrpc/clnt_gen.c: Likewise.
9676         * sunrpc/clnt_perr.c: Likewise.
9677         * sunrpc/clnt_raw.c: Likewise.
9678         * sunrpc/clnt_simp.c: Likewise.
9679         * sunrpc/clnt_tcp.c: Likewise.
9680         * sunrpc/clnt_udp.c: Likewise.
9681         * sunrpc/clnt_unix.c: Likewise.
9682         * sunrpc/des_crypt.c: Likewise.
9683         * sunrpc/des_soft.c: Likewise.
9684         * sunrpc/get_myaddr.c: Likewise.
9685         * sunrpc/key_call.c: Likewise.
9686         * sunrpc/key_prot.c: Likewise.
9687         * sunrpc/netname.c: Likewise.
9688         * sunrpc/pm_getmaps.c: Likewise.
9689         * sunrpc/pm_getport.c: Likewise.
9690         * sunrpc/pmap_clnt.c: Likewise.
9691         * sunrpc/pmap_prot.c: Likewise.
9692         * sunrpc/pmap_prot2.c: Likewise.
9693         * sunrpc/pmap_rmt.c: Likewise.
9694         * sunrpc/publickey.c: Likewise.
9695         * sunrpc/rpc_cmsg.c: Likewise.
9696         * sunrpc/rpc_common.c: Likewise.
9697         * sunrpc/rpc_dtable.c: Likewise.
9698         * sunrpc/rpc_prot.c: Likewise.
9699         * sunrpc/rpc_thread.c: Likewise.
9700         * sunrpc/rtime.c: Likewise.
9701         * sunrpc/svc.c: Likewise.
9702         * sunrpc/svc_auth.c: Likewise.
9703         * sunrpc/svc_authux.c: Likewise.
9704         * sunrpc/svc_raw.c: Likewise.
9705         * sunrpc/svc_run.c: Likewise.
9706         * sunrpc/svc_simple.c: Likewise.
9707         * sunrpc/svc_tcp.c: Likewise.
9708         * sunrpc/svc_udp.c: Likewise.
9709         * sunrpc/svc_unix.c: Likewise.
9710         * sunrpc/svcauth_des.c: Likewise.
9711         * sunrpc/xcrypt.c: Likewise.
9712         * sunrpc/xdr.c: Likewise.
9713         * sunrpc/xdr_array.c: Likewise.
9714         * sunrpc/xdr_float.c: Likewise.
9715         * sunrpc/xdr_intXX_t.c: Likewise.
9716         * sunrpc/xdr_mem.c: Likewise.
9717         * sunrpc/xdr_rec.c: Likewise.
9718         * sunrpc/xdr_ref.c: Likewise.
9719         * sunrpc/xdr_sizeof.c: Likewise.
9720         * sunrpc/xdr_stdio.c: Likewise.
9721
9722 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
9723
9724         [BZ #12650]
9725         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
9726         * sysdeps/ia64/dl-tls.h: Likewise.
9727         * sysdeps/powerpc/dl-tls.h: Likewise.
9728         * sysdeps/s390/dl-tls.h: Likewise.
9729         * sysdeps/sh/dl-tls.h: Likewise.
9730         * sysdeps/sparc/dl-tls.h: Likewise.
9731         * sysdeps/x86_64/dl-tls.h: Likewise.
9732         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
9733
9734 2011-03-14  Andreas Schwab  <schwab@redhat.com>
9735
9736         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
9737         rpath element also skip the following colon.
9738         (expand_dynamic_string_token): Add is_path parameter and pass
9739         down to DL_DST_REQUIRED and _dl_dst_substitute.
9740         (decompose_rpath): Call expand_dynamic_string_token with
9741         non-zero is_path.  Ignore empty rpaths.
9742         (_dl_map_object_from_fd): Call expand_dynamic_string_token
9743         with zero is_path.
9744
9745 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
9746
9747         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
9748         Make cancelable.
9749
9750 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
9751
9752         [BZ #12655]
9753         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
9754         Patch by Filipe David Manana <fdmanana@apache.org>.
9755
9756 2011-04-07  Andreas Schwab  <schwab@redhat.com>
9757
9758         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
9759         Maintain aligned stack.
9760         (CHECK_RSP): Remove unused macro.
9761
9762 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
9763
9764         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
9765         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
9766
9767 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
9768
9769         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
9770
9771         * include/features.h: Mention __USE_XOPEN2K8 in comment.
9772
9773 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
9774
9775         [BZ #12518]
9776         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
9777         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
9778         * sysdeps/x86_64/memmove.c: New file.
9779         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
9780         (memcpy): Renamed to ...
9781         (__new_memcpy): This.
9782         (memcpy): Provide GLIBC_2_14 memcpy.
9783         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
9784         (memcpy): Provide GLIBC_2_2_5 memcpy.
9785
9786 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
9787
9788         [BZ #12631]
9789         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
9790
9791 2011-03-30  Andreas Schwab  <schwab@redhat.com>
9792
9793         * misc/syncfs.c: New file.
9794         * misc/Makefile (routines): Add syncfs.
9795         * posix/unistd.h: Declare syncfs.
9796         * sysdeps/unix/syscalls.list: Add syncfs.
9797
9798 2011-04-01  Andreas Schwab  <schwab@redhat.com>
9799
9800         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
9801         open_by_handle_at.
9802         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
9803         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9804         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9805         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9806         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
9807         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
9808         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9809
9810 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
9811
9812         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
9813         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9814         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9815         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9816         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9817         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
9818         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9819
9820         * io/Makefile: Compile fallocate.c, fallocate64.c, and
9821         sync_file_range.c with -fexceptions.
9822         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
9823         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
9824         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
9825         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
9826         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
9827         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
9828         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
9829         sync_file_range as cancellation point
9830         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
9831         now a wrapper around __call_sync_file_range with cancellation handling.
9832         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
9833         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
9834         function name to __call_sync_file_range.
9835         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
9836         Add call_sync_file_range.
9837
9838 2011-04-01  Andreas Schwab  <schwab@redhat.com>
9839
9840         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
9841         bits/timex.h.
9842
9843 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
9844
9845         * iconv/iconv.h: Fix typo in comment.
9846         * io/fcntl.h: Likewise.
9847         * libio/stdio.h: Likewise.
9848         * posix/spawn.h: Likewise.
9849         * posix/unistd.h: Likewise.
9850         * stdlib/stdlib.h: Likewise.
9851         * time/time.h: Likewise.
9852         * wcsmbs/wchar.h: Likewise.
9853
9854         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
9855         open_by_handle): Add.
9856         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
9857         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
9858         Augment a few comments.
9859         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9860         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9861         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9862         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
9863         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9864         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
9865         open_by_handle.
9866
9867         * io/fcntl.h (AT_EMPTY_PATH): Define.
9868
9869 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
9870
9871         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
9872         * sysdeps/unix/sysv/linux/bits/time.h: New file.
9873         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
9874         to...
9875         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
9876         * Versions.def: Add GLIBC_2.14.
9877         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
9878         Export.
9879
9880 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
9881
9882         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
9883         round counter.
9884         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
9885
9886 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
9887
9888         [BZ #12597]
9889         * string/test-strncmp.c (do_page_test): New function.
9890         (check2): Likewise.
9891         (test_main): Call check2.
9892         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
9893
9894 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
9895
9896         [BZ #12587]
9897         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
9898         Handle cache information in CPU leaf 4.
9899         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
9900
9901 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
9902
9903         [BZ #12583]
9904         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
9905         character representation.
9906         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
9907
9908 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
9909
9910         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
9911         END(__isnan) to END(__isnanf) to match function entry point/label
9912         EALIGN(__isnanf,...).
9913
9914 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
9915
9916         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
9917
9918 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
9919
9920         [BZ #12510]
9921         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
9922         copy from the symbol referenced in the relocation to initialize the
9923         used variable.
9924         Patch by Piotr Bury <pbury@goahead.com>.
9925         * elf/Makefile: Add rules to build and tst-unique3.
9926         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
9927         * elf/tst-unique3.cc: New file.
9928         * elf/tst-unique3.h: New file.
9929         * elf/tst-unique3lib.cc: New file.
9930         * elf/tst-unique3lib2.cc: New file.
9931
9932         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
9933
9934 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
9935
9936         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
9937         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
9938         to _start.
9939
9940 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
9941
9942         * elf/dl-load.c (_dl_map_object): If we are looking for the first
9943         to-be-loaded object along a path to loader is ld.so.
9944
9945 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
9946             Ulrich Drepper  <drepper@gmail.com>
9947
9948         * sysdeps/x86_64/memset.S: After aligning destination, code
9949         branches to different locations depending on the value of
9950         misalignment, when multiarch is enabled. Fix this.
9951
9952 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
9953
9954         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
9955         Set _x86_64_preferred_memory_instruction for AMD processsors.
9956         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
9957         Set bit_Prefer_SSE_for_memop for AMD processors.
9958
9959 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
9960
9961         * libio/fmemopen.c (fmemopen): Optimize a bit.
9962
9963 2011-03-03  Andreas Schwab  <schwab@redhat.com>
9964
9965         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
9966
9967 2011-03-03  Roland McGrath  <roland@redhat.com>
9968
9969         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
9970
9971 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
9972
9973         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
9974         __bzero_ultra1 instead of __memset_ultra1.
9975
9976 2011-02-23  Andreas Schwab  <schwab@redhat.com>
9977             Ulrich Drepper  <drepper@gmail.com>
9978
9979         [BZ #12509]
9980         * include/link.h (struct link_map): Add l_orig_initfini.
9981         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
9982         returning unsuccessfully.
9983         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
9984         close of a file loaded at startup, restore the original l_initfini
9985         list.
9986         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
9987         list, store the pointer.
9988         * elf/Makefile ($(objpfx)noload-mem): New rule.
9989         (noload-ENV): Define.
9990         (tests): Add $(objpfx)noload-mem.
9991         * elf/noload.c: Include <memcheck.h>.
9992         (main): Call mtrace.  Close all opened handles.
9993
9994 2011-02-17  Andreas Schwab  <schwab@redhat.com>
9995
9996         [BZ #12454]
9997         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
9998         dependencies are missing.
9999
10000 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10001
10002         Fix __if_freereq crash: Unlike the generic version which uses free,
10003         Hurd needs munmap.
10004         * sysdeps/mach/hurd/ifreq.h: New file.
10005
10006 2011-01-27  Petr Baudis  <pasky@suse.cz>
10007             Ulrich Drepper  <drepper@gmail.com>
10008
10009         [BZ 12445]#
10010         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
10011         to extend_alloca().
10012         * stdio-common/bug23.c: New file.
10013         * stdio-common/Makefile (tests): Add bug23.
10014
10015 2010-09-28  Andreas Schwab  <schwab@redhat.com>
10016             Ulrich Drepper  <drepper@gmail.com>
10017
10018         [BZ #12489]
10019         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
10020         before performing relro protection.  At old place add assertion
10021         to make sure nothing changed.
10022
10023 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
10024             Glauber de Oliveira Costa  <glommer@gmail.com>
10025
10026         * elf/elf.h: Add new ARM TLS relocs.
10027
10028 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
10029
10030         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
10031         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
10032         cast from r3.
10033         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
10034         'tests' variable.
10035         * sysdeps/wordsize-64/tst-writev.c: New file.
10036
10037 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
10038
10039         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
10040         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
10041         insns in _dl_start to prevent a TOC reference before relocs are
10042         resolved.
10043
10044 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
10045
10046         [BZ #12469]
10047         * Makeconfig: Remove RANLIB definition.
10048         * Makerules: Don't use RANLIB.
10049         * aclocal.m4: Remove ranlib test.
10050         * configure.in: No need to check for ranlib.
10051         * elf/rtld-Rules: Don't use RANLIB.
10052
10053 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10054
10055         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
10056         protection macro.
10057         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
10058         inclusion protection macro.
10059
10060         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
10061         SIGRTMIN and SIGRTMAX and print information in that case only when
10062         SIGRTMIN is defined.
10063
10064 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
10065
10066         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
10067         arginfo fn returning -1.
10068
10069         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
10070         and thousands string is zero terminated.
10071
10072 2011-02-03  Andreas Schwab  <schwab@redhat.com>
10073
10074         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
10075         sysdeps/unix/sysv/linux/bits/socket.h.
10076
10077 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10078
10079         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
10080         (__CPU_COUNT): Remove old macros.
10081         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
10082         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
10083         (__CPU_ALLOC, __CPU_FREE): Add macros.
10084         (__sched_cpualloc, __sched_cpufree): Add declarations.
10085
10086 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
10087
10088         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
10089         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
10090         * nscd/aicache.c (addhstaiX): Return timeout of added value.
10091         (readdhstai): Return value of addhstaiX call.
10092         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
10093         (addgrbyX): Return value returned by cache_addgr.
10094         (readdgrbyname): Return value returned by addgrbyX.
10095         (readdgrbygid): Likewise.
10096         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
10097         (addpwbyX): Return value returned by cache_addpw.
10098         (readdpwbyname): Return value returned by addhstbyX.
10099         (readdpwbyuid): Likewise.
10100         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
10101         (addservbyX): Return value returned by cache_addserv.
10102         (readdservbyname): Return value returned by addservbyX:
10103         (readdservbyport): Likewise.
10104         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
10105         (addhstbyX): Return value returned by cache_addhst.
10106         (readdhstbyname): Return value returned by addhstbyX.
10107         (readdhstbyaddr): Likewise.
10108         (readdhstbynamev6): Likewise.
10109         (readdhstbyaddrv6): Likewise.
10110         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
10111         (readdinitgroups): Return value returned by addinitgroupsX.
10112         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
10113         (prune_cache): Keep track of timeout value of re-added entries.
10114         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
10115         * nscd/nscd.h: Adjust prototypes of readd* functions.
10116
10117 2011-02-04  Roland McGrath  <roland@redhat.com>
10118
10119         * nis/nis_server.c (nis_servstate): Use the right name for 0.
10120         (nis_stats): Likewise.
10121         * nis/nis_modify.c (nis_modify): Likewise.
10122         * nis/nis_remove.c (nis_remove): Likewise.
10123         * nis/nis_add.c (nis_add): Likewise.
10124
10125         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
10126
10127         * posix/fnmatch_loop.c: Add some consts.
10128
10129         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
10130
10131 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
10132
10133         [BZ #12460]
10134         * config.make.in (config-cflags-novzeroupper): Define.
10135         * configure.in: Substitute libc_cv_cc_novzeroupper.
10136         * elf/Makefile (AVX-CFLAGS): Define.
10137         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
10138         (CFLAGS-tst-auditmod4a.c): Likewise.
10139         (CFLAGS-tst-auditmod4b.c): Likewise.
10140         (CFLAGS-tst-auditmod6b.c): Likewise.
10141         (CFLAGS-tst-auditmod6c.c): Likewise.
10142         (CFLAGS-tst-auditmod7b.c): Likewise.
10143         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
10144
10145 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
10146
10147         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
10148         function to the callback.
10149         Patch partly by Jiri Olsa <jolsa@redhat.com>.
10150
10151 2011-02-02  Andreas Schwab  <schwab@redhat.com>
10152
10153         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
10154         of errno.
10155
10156 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
10157
10158         [BZ #11724]
10159         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
10160         of constructors.
10161         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
10162         of destructors.
10163         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
10164
10165         [BZ #11724]
10166         * elf/Makefile: Add rules to build and run new test.
10167         * elf/tst-initorder.c: New file.
10168         * elf/tst-initorder.exp: New file.
10169         * elf/tst-initordera1.c: New file.
10170         * elf/tst-initordera2.c: New file.
10171         * elf/tst-initordera3.c: New file.
10172         * elf/tst-initordera4.c: New file.
10173         * elf/tst-initorderb1.c: New file.
10174         * elf/tst-initorderb2.c: New file.
10175         * elf/tst-order-a1.c: New file.
10176         * elf/tst-order-a2.c: New file.
10177         * elf/tst-order-a3.c: New file.
10178         * elf/tst-order-a4.c: New file.
10179         * elf/tst-order-b1.c: New file.
10180         * elf/tst-order-b2.c: New file.
10181         * elf/tst-order-main.c: New file.
10182         New test case by George Gensure <werkt0@gmail.com>.
10183
10184 2010-10-01  Andreas Schwab  <schwab@redhat.com>
10185
10186         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
10187         decoding ACE if AI_CANONIDN.
10188
10189 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
10190
10191         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
10192
10193 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
10194
10195         * version.h (RELEASE): Bump for 2.13 release.
10196         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
10197
10198         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
10199
10200         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
10201         MADV_NOHUGEPAGE.
10202         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
10203         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
10204         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
10205         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
10206         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
10207         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
10208
10209         * posix/getconf.c: Update copyright year.
10210         * catgets/gencat.c: Likewise.
10211         * csu/version.c: Likewise.
10212         * debug/catchsegv.sh: Likewise.
10213         * debug/xtrace.sh: Likewise.
10214         * elf/ldconfig.c: Likewise.
10215         * elf/ldd.bash.in: Likewise.
10216         * elf/sprof.c (print_version): Likewise.
10217         * iconv/iconv_prog.c: Likewise.
10218         * iconv/iconvconfig.c: Likewise.
10219         * locale/programs/locale.c: Likewise.
10220         * locale/programs/localedef.c: Likewise.
10221         * malloc/memusage.sh: Likewise.
10222         * malloc/mtrace.pl: Likewise.
10223         * nscd/nscd.c (print_version): Likewise.
10224         * nss/getent.c: Likewise.
10225
10226         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
10227         PF_CAIF, and PF_ALG.
10228         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
10229
10230 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
10231
10232         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
10233         (modules-names): Use them.
10234         (ifunc-test-modules, ifunc-pie-tests): Define.
10235         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
10236         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
10237         (test-extras): Likewise.
10238         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
10239         $(compile-command.c).
10240         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
10241         (all-built-dso): Define.
10242         (check-textrel.out, check-execstack.out): Depend on it.
10243
10244         * configure.in: Don't override --enable-multi-arch.
10245
10246 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
10247
10248         [BZ #6812]
10249         * nscd/hstcache.c (tryagain): Define.
10250         (cache_addhst): Return tryagain not notfound for temporary errors.
10251         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
10252         failed.
10253
10254 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
10255
10256         [BZ #10563]
10257         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
10258         to make the syscall.
10259         * sysdeps/unix/sysv/linux/setgroups.c: New file.
10260
10261         [BZ #12378]
10262         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
10263         and fall back to matching as normal character if the string ends before
10264         the matching ']' is found.  This is what POSIX requires.
10265         * posix/testfnm.c: Adjust test result.
10266         * posix/globtest.sh: Adjust test result.  Add new test.
10267         * posix/tst-fnmatch.input: Likewise.
10268         * posix/tst-fnmatch2.c: Add new test.
10269
10270 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
10271
10272         * elf/Makefile (check-execstack): Revert last change.  Depend on
10273         check-execstack.h.
10274         (check-execstack.h): New target.
10275         (generated): Add check-execstack.h.
10276         * elf/check-execstack.c: Include "check-execstack.h".
10277         (main): Revert last change.
10278         (handle_file): Return zero if GNU_STACK is absent and
10279         DEFAULT_STACK_PERMS doesn't include PF_X.
10280
10281 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
10282
10283         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
10284         in child fails because the descriptor is already closed.
10285         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
10286         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
10287         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
10288
10289         [BZ #12397]
10290         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
10291         syscall.
10292
10293         [BZ #10484]
10294         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
10295         temporary buffer used to handle multi lookups locally.
10296         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
10297
10298 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
10299
10300         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
10301         loader is ld.so.
10302
10303 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
10304
10305         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
10306         alignment for SSE2.
10307
10308 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
10309
10310         [BZ #12394]
10311         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
10312         characters.  When rounding increased number of integer digits recompute
10313         number of groups.
10314         * stdio-common/tst-grouping.c: New file.
10315         * stdio-common/Makefile: Add rules to build and run tst-grouping.
10316
10317 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
10318
10319         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
10320         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
10321
10322         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
10323         void.
10324         * bits/select.h: Likewise.
10325
10326 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
10327
10328         * po/ja.po: Update from translation team.
10329
10330 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
10331
10332         [BZ #11155]
10333         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
10334         implementation just like for lxstat, fxstatat, et al.
10335
10336 2010-12-27  Jim Meyering  <meyering@redhat.com>
10337
10338         [BZ #12348]
10339         * posix/regexec.c (build_trtable): Return failure indication upon
10340         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
10341
10342 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
10343
10344         [BZ #12201]
10345         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
10346         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
10347         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
10348         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
10349
10350         [BZ #12207]
10351         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
10352
10353         [BZ #12204]
10354         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
10355         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
10356
10357 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
10358
10359         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
10360         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
10361         script has SORT_BY_INIT_PRIORITY.
10362         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
10363         NO_CTORS_DTORS_SECTIONS is defined.
10364         * elf/soinit.c: Likewise.
10365         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
10366         NO_CTORS_DTORS_SECTIONS is defined.
10367         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
10368         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
10369         * sysdeps/sh/init-first.c: Likewise.
10370         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
10371
10372 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
10373
10374         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
10375         always use the slow path.
10376
10377 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
10378
10379         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
10380         similar rule which adds the sysdep directories to the header search in
10381         order to pick up the correct platform stackinfo.h.
10382         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
10383         perform test if it is, otherwise return successfully without testing.
10384         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
10385         DEFAULT_STACK_PERMS define in stackinfo.h.
10386         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
10387         defined in stackinfo.h.
10388         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
10389         DEFAULT_STACK_PERMS defined in stackinfo.h.
10390         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
10391         * sysdeps/ia64/stackinfo.h: Likewise.
10392         * sysdeps/s390/stackinfo.h: Likewise.
10393         * sysdeps/sh/stackinfo.h: Likewise.
10394         * sysdeps/sparc/stackinfo.h: Likewise.
10395         * sysdeps/x86_64/stackinfo.h: Likewise.
10396         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
10397         PF_X for powerpc64.  Retain PF_X for powerpc32.
10398
10399 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
10400
10401         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
10402         accurately.
10403         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
10404         GETDENTS_64BIT_ALIGNED.
10405
10406 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
10407
10408         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
10409
10410 2010-12-10  Andreas Schwab  <schwab@redhat.com>
10411
10412         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
10413         _GNU_SOURCE.
10414
10415         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
10416         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
10417         Remove __restrict.
10418         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
10419         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
10420
10421 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
10422
10423         [BZ #11655]
10424         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
10425         are initialized.
10426
10427 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
10428
10429         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
10430
10431 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
10432
10433         * po/it.po: Update from translation team.
10434
10435 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
10436
10437         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
10438         unused codes.
10439
10440 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
10441
10442         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
10443
10444 2010-11-24  Andreas Schwab  <schwab@redhat.com>
10445
10446         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
10447         specially.
10448         (gaih_getanswer_slice): Likewise.
10449
10450 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
10451
10452         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
10453
10454 2010-05-31  Petr Baudis  <pasky@suse.cz>
10455
10456         [BZ #11149]
10457         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
10458         silently even in the chroot mode.
10459
10460 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
10461
10462         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
10463         last patch a bit.  Pretty printing
10464
10465 2010-05-31  Petr Baudis <pasky@suse.cz>
10466
10467         [BZ #10085]
10468         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
10469         initialization of skip_initgroups_dyn.
10470
10471 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
10472
10473         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
10474         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
10475
10476 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
10477
10478         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
10479
10480 2010-11-11  Andreas Schwab  <schwab@redhat.com>
10481
10482         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
10483         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
10484         (tst-fnmatch-ENV): Set MALLOC_TRACE.
10485         ($(objpfx)tst-fnmatch-mem): New rule.
10486         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
10487         * posix/tst-fnmatch.c (main): Call mtrace.
10488
10489 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
10490
10491         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
10492         Support Intel processor model 6 and model 0x2c.
10493
10494 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
10495
10496         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
10497           signed comparison.
10498
10499 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
10500
10501         [BZ #12205]
10502         * string/test-strncasecmp.c (check_result): New function.
10503         (do_one_test): Use it.
10504         (check1): New function.
10505         (test_main): Use it.
10506         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
10507         Support strcasecmp and strncasecmp.
10508
10509 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
10510
10511         [BZ #12194]
10512         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
10513         * sysdeps/x86_64/bits/byteswap.h: Likewise.
10514
10515 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
10516
10517         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
10518         IFUNC support.
10519         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
10520         memset-x86-64.
10521         * sysdeps/x86_64/multiarch/bzero.S: New file.
10522         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
10523         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
10524         * sysdeps/x86_64/multiarch/memset.S: New file.
10525         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
10526         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
10527         Set bit_Prefer_SSE_for_memop for Intel processors.
10528         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
10529         Define.
10530         (index_Prefer_SSE_for_memop): Define.
10531         (HAS_PREFER_SSE_FOR_MEMOP): Define.
10532
10533 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
10534
10535         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
10536         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
10537
10538 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
10539
10540         [BZ #12191]
10541         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
10542         (__x86_64_raw_data_cache_size_half): Likewise.
10543         (__x86_64_raw_shared_cache_size): Likewise.
10544         (__x86_64_raw_shared_cache_size_half): Likewise.
10545
10546         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
10547         (__x86_64_raw_data_cache_size_half): Likewise.
10548         (__x86_64_raw_shared_cache_size): Likewise.
10549         (__x86_64_raw_shared_cache_size_half): Likewise.
10550         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
10551         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
10552         and __x86_64_raw_shared_cache_size_half.  Round
10553         __x86_64_data_cache_size_half, __x86_64_data_cache_size
10554         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
10555         to multiple of 256 bytes.
10556
10557 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
10558
10559         [BZ #12167]
10560         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
10561         of inacessible symlinks.  Verify result of symlink before returning it.
10562         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
10563         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
10564
10565 2010-10-28  Erich Ritz  <erichritz@gmail.com>
10566
10567         * math/math.h (isinf): Fix typo in comment.
10568
10569 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
10570
10571         * po/da.po: Update from translation team.
10572
10573 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
10574
10575         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
10576         is added to the list.
10577
10578 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10579             Ulrich Drepper  <drepper@gmail.com>
10580
10581         * elf/dl-object.c (_dl_new_object): Don't append the new object to
10582         the global list here.  Move code to...
10583         (_dl_add_to_namespace_list): ...here.  New function.
10584         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
10585         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
10586         * elf/dl-load.c (lose): Don't remove the element from the list.
10587         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
10588         (_dl_map_object): Likewise.
10589
10590 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
10591
10592         [BZ #12159]
10593         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
10594         into all bytes of SSE register.
10595         Patch by Richard Li <richardpku@gmail.com>.
10596
10597 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
10598
10599         [BZ #12140]
10600         * malloc/malloc.c (_int_free): Fill correct number of bytes when
10601         perturbing.
10602
10603 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
10604
10605         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
10606         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
10607         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
10608         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
10609         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
10610         submachine.
10611         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
10612
10613 2010-10-22  Andreas Schwab  <schwab@redhat.com>
10614
10615         * include/dlfcn.h (__RTLD_SECURE): Define.
10616         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
10617         mode & __RTLD_SECURE instead.
10618         (open_path): Rename preloaded parameter to secure.
10619         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
10620         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
10621         * elf/dl-deps.c (openaux): Likewise.
10622         * elf/rtld.c (struct map_args): Remove is_preloaded.
10623         (map_doit): Don't use it.
10624         (dl_main): Likewise.
10625         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
10626         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
10627
10628 2010-09-09  Andreas Schwab  <schwab@redhat.com>
10629
10630         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
10631         (sysd-rules-targets): Remove duplicates.
10632         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
10633         rtld-%.$o dependency.
10634
10635 2010-10-18  Andreas Schwab  <schwab@redhat.com>
10636
10637         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
10638         _dl_map_object do it.
10639
10640 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
10641
10642         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
10643         fast fma builtins, define the macros in the C99 standard.
10644         (FP_FAST_FMAF): Likewise.
10645         (FP_FAST_FMAL): Likewise.
10646         * sysdeps/x86_64/bits/mathdef.h: Likewise.
10647
10648         * bits/mathdef.h: Update copyright year.
10649         * sysdeps/powerpc/bits/mathdef.h: Likewise.
10650
10651 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
10652
10653         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
10654         builtins, define the macros in the C99 standard.
10655         (FP_FAST_FMAF): Likewise.
10656         (FP_FAST_FMAL): Likewise.
10657         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
10658         multiply/add.
10659         (FP_FAST_FMAF): Likewise.
10660
10661 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
10662
10663         [BZ #3268]
10664         * math/libm-test.inc (fma_test): Some new testcases.
10665         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
10666         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
10667         y and infinite z.  Do multiplication by C already in long double.
10668         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
10669         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
10670         y and infinite z.  Do bitwise or of inexact bit into u.d.
10671         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
10672         * sysdeps/i386/fpu/s_fmaf.S: Removed.
10673         * sysdeps/i386/fpu/s_fma.S: Removed.
10674         * sysdeps/i386/fpu/s_fmal.S: Removed.
10675
10676 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
10677
10678         [BZ #3268]
10679         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
10680         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
10681         computation is not scheduled after fetestexcept.  Fix value
10682         of minimum denormal long double.
10683
10684 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
10685
10686         [BZ #3268]
10687         * math/libm-test.inc (fma_test): Add some more tests.
10688         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
10689         correctly.
10690
10691 2010-10-15  Andreas Schwab  <schwab@redhat.com>
10692
10693         * scripts/data/localplt-s390-linux-gnu.data: New file.
10694         * scripts/data/localplt-s390x-linux-gnu.data: New file.
10695
10696 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
10697
10698         [BZ #3268]
10699         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
10700         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
10701         instead of dbl-64.
10702         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
10703         inlines.
10704         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
10705         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
10706         if one of x and y is very large and the other is subnormal.
10707         * sysdeps/s390/fpu/s_fmaf.c: New file.
10708         * sysdeps/s390/fpu/s_fma.c: New file.
10709         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
10710         * sysdeps/powerpc/fpu/s_fma.S: New file.
10711         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
10712         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
10713         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
10714
10715 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
10716
10717         [BZ #3268]
10718         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
10719         fma tests.
10720         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
10721         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
10722         * sysdeps/i386/i686/multiarch/s_fma.c: Include
10723         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
10724         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
10725         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
10726         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
10727
10728 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
10729
10730         [BZ #12078]
10731         * posix/regcomp.c (parse_branch): One more memory leak plugged.
10732         * posix/bug-regex31.input: Add test case.
10733
10734 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
10735
10736         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
10737         * posix/bug-regex31.input: New file.
10738
10739         [BZ #12078]
10740         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
10741         (parse_sub_exp): Fix last change, use postorder.
10742
10743         * posix/bug-regex31.c: New file.
10744         * posix/Makefile: Add rules to build and run bug-regex31.
10745
10746         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
10747
10748         [BZ #12078]
10749         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
10750
10751         [BZ #12108]
10752         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
10753         to have entries in sys_siglist.
10754
10755         [BZ #12093]
10756         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
10757         be NULL.
10758
10759 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
10760
10761         [BZ #3268]
10762         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
10763         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
10764         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
10765         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
10766         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
10767         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
10768         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
10769         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
10770         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
10771         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
10772         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
10773         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
10774         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
10775         * math/ftestexcept.c (fetestexcept): Likewise.
10776         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
10777         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
10778         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
10779         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
10780         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
10781         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
10782         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
10783
10784 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
10785
10786         [BZ #12107]
10787         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
10788         newline.
10789
10790 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
10791
10792         * string/bug-strstr1.c: New file.
10793         * string/Makefile: Add rules to build and run bug-strstr1.
10794
10795 2010-10-05  Eric Blake  <eblake@redhat.com>
10796
10797         [BZ #12092]
10798         * string/str-two-way.h (two_way_long_needle): Always clear memory
10799         when skipping input due to the shift table.
10800
10801 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
10802
10803         [BZ #12005]
10804         * malloc/mcheck.c: Handle large requests.
10805
10806         [BZ #12077]
10807         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
10808         for strncmp and strncasecmp.
10809         * string/stratcliff.c: Add tests for strcmp and strncmp.
10810         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
10811
10812 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
10813
10814         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
10815         __set_fpscr.
10816
10817 2010-09-30  Andreas Jaeger  <aj@suse.de>
10818
10819         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
10820         (CGROUP_SUPER_MAGIC): Define.
10821         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
10822         Handle btrfs and cgroup file systems.
10823         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
10824         Likewise.
10825
10826 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
10827
10828         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
10829         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
10830
10831 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10832
10833         [BZ #12067]
10834         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
10835         trying to locate the ELF header.
10836
10837 2010-09-27  Andreas Schwab  <schwab@redhat.com>
10838
10839         [BZ #11611]
10840         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
10841         Mask out sign-bit copies when constructing f_fsid.
10842
10843 2010-09-24  Petr Baudis <pasky@suse.cz>
10844
10845         * debug/stack_chk_fail_local.c: Add missing licence exception.
10846         * debug/warning-nop.c: Likewise.
10847
10848 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
10849
10850         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
10851         implementing getdents64 using getdents syscall, set d_type if
10852         __ASSUME_GETDENTS32_D_TYPE.
10853
10854 2010-09-16  Andreas Schwab  <schwab@redhat.com>
10855
10856         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
10857         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
10858
10859 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
10860
10861         [BZ #12037]
10862         * posix/unistd.h: Undo change of feature selection for ftruncate from
10863         2010-01-11.
10864
10865 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
10866
10867         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
10868         detection.
10869
10870 2010-09-20  Andreas Schwab  <schwab@redhat.com>
10871
10872         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
10873         fanotify_mark.
10874         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
10875
10876 2010-09-14  Andreas Schwab  <schwab@redhat.com>
10877
10878         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
10879         variables after CHECK_SP call.
10880         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
10881
10882 2010-09-13  Andreas Schwab  <schwab@redhat.com>
10883             Ulrich Drepper  <drepper@redhat.com>
10884
10885         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
10886         re-relocationg ld.so.
10887         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
10888         _dl_init_paths call.
10889         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
10890         here anymore.
10891
10892 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
10893
10894         * resolv/res_init.c (__res_vinit): Count the default server we added.
10895
10896 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
10897             Ulrich Drepper  <drepper@redhat.com>
10898
10899         [BZ #11968]
10900         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
10901         (____longjmp_chk): Use %ebx for saving value across system call.
10902         Add unwind info.
10903
10904 2010-09-06  Andreas Schwab  <schwab@redhat.com>
10905
10906         * manual/Makefile: Don't mix pattern rules with normal rules.
10907
10908 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
10909
10910         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
10911         operation.
10912         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
10913         * libio/iofopncook.c (_IO_cookie_init): Likewise.
10914         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
10915         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
10916         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
10917         Likewise.
10918
10919 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
10920
10921         [BZ #11979]
10922         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
10923         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
10924
10925 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
10926
10927         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
10928         * sysdeps/x86_64/addmul_1.S: Likewise.
10929         * sysdeps/x86_64/lshift.S: Likewise.
10930         * sysdeps/x86_64/mul_1.S: Likewise.
10931         * sysdeps/x86_64/rshift.S: Likewise.
10932         * sysdeps/x86_64/sub_n.S: Likewise.
10933         * sysdeps/x86_64/submul_1.S: Likewise.
10934
10935 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10936
10937         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
10938         Define __sched_param instead of SCHED_* and sched_param when
10939         <bits/sched.h> is included with __need_schedparam defined.
10940         * bits/sched.h [__need_schedparam]
10941         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
10942         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
10943         (__defined_schedparam): Define to 1.
10944         (__sched_param): New structure, identical to sched_param.
10945         (__need_schedparam): Undefine.
10946
10947 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
10948
10949         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
10950         (epoll_create1): Declare.
10951
10952         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
10953
10954 2010-08-31  Andreas Schwab  <schwab@redhat.com>
10955
10956         [BZ #7066]
10957         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
10958         shifting retval into place.
10959
10960 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
10961
10962         * nis/rpcsvc/nis.h: Update copyright notice.
10963         * nis/rpcsvc/nis.x: Likewise.
10964         * nis/rpcsvc/nis_callback.h: Likewise.
10965         * nis/rpcsvc/nis_callback.x: Likewise.
10966         * nis/rpcsvc/nis_object.x: Likewise.
10967         * nis/rpcsvc/nis_tags.h: Likewise.
10968         * nis/rpcsvc/yp.h: Likewise.
10969         * nis/rpcsvc/yp.x: Likewise.
10970         * nis/rpcsvc/ypupd.h: Likewise.
10971         * nis/yp_xdr.c: Likewise.
10972         * nis/ypupdate_xdr.c: Likewise.
10973
10974         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
10975         mainly the body of pmap_getport.  Add parameters to specify timeouts.
10976         (pmap_getport): Use __libc_rpc_getport.
10977         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
10978         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
10979         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
10980
10981 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
10982
10983         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
10984         fanotify_mark.
10985
10986 2010-08-27  Roland McGrath  <roland@redhat.com>
10987
10988         * sysdeps/i386/i686/multiarch/Makefile
10989         (CFLAGS-varshift.c): New variable.
10990
10991 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
10992
10993         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
10994         * sysdeps/i386/i686/multiarch/varshift.c: New file.
10995
10996         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
10997
10998         * sysdeps/x86_64/strlen.S: Minimal code improvement.
10999
11000 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
11001
11002         * sysdeps/x86_64/strlen.S: Unroll the loop.
11003         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
11004         strlen-sse2 strlen-sse2-bsf.
11005         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
11006         __strlen_no_bsf if bit_Slow_BSF is set.
11007         (__strlen_sse42): Removed.
11008         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
11009         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
11010
11011 2010-08-25  Roland McGrath  <roland@redhat.com>
11012
11013         * sysdeps/x86_64/multiarch/varshift.S: File removed.
11014         * sysdeps/x86_64/multiarch/varshift.c: New file.
11015         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
11016         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
11017         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
11018         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
11019
11020 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
11021
11022         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
11023         strlen-sse2 strlen-sse2-bsf.
11024         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
11025         __strlen_sse2_bsf if bit_Slow_BSF is unset.
11026         (__strlen_sse2): Removed.
11027         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
11028         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
11029         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
11030         bit_Slow_BSF for Atom.
11031         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
11032         (index_Slow_BSF): Define.
11033         (HAS_SLOW_BSF): Define.
11034
11035 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
11036
11037         [BZ #10851]
11038         * resolv/res_init.c (__res_vinit): When no server address at all
11039         is given default to loopback.
11040
11041 2010-08-24  Roland McGrath  <roland@redhat.com>
11042
11043         * configure.in: Remove config-name.h generation.
11044         * configure: Regenerated.
11045         * config-name.in: File removed.
11046         * scripts/config-uname.sh: New file.
11047         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
11048         ($(objdir)config-name.h): New target.
11049
11050         * sunrpc/rpc_parse.h: Avoid nested comment.
11051
11052 2010-08-24  Richard Henderson  <rth@redhat.com>
11053             Ulrich Drepper  <drepper@redhat.com>
11054             H.J. Lu  <hongjiu.lu@intel.com>
11055
11056         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
11057         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
11058         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
11059         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
11060         _mm_alignr_epi8 with _mm_loadu_si128.
11061         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
11062         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
11063         (__m128i_shift_right): Removed.
11064         * sysdeps/i386/i686/multiarch/varshift.h: New file.
11065         * sysdeps/i386/i686/multiarch/varshift.S: New file.
11066         * sysdeps/x86_64/multiarch/varshift.h: New file.
11067         * sysdeps/x86_64/multiarch/varshift.S: New file.
11068
11069 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
11070
11071         * configure.in: Move assembler checks to before sysdep dir checking.
11072
11073 2010-08-20  Petr Baudis  <pasky@suse.cz>
11074
11075         * LICENSES: Sync the sunrpc license.
11076
11077 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
11078
11079         * sunrpc/auth_des.c: Update copyright notice once again.
11080         * sunrpc/auth_none.c: Likewise.
11081         * sunrpc/auth_unix.c: Likewise.
11082         * sunrpc/authdes_prot.c: Likewise.
11083         * sunrpc/authuxprot.c: Likewise.
11084         * sunrpc/bindrsvprt.c: Likewise.
11085         * sunrpc/clnt_gen.c: Likewise.
11086         * sunrpc/clnt_perr.c: Likewise.
11087         * sunrpc/clnt_raw.c: Likewise.
11088         * sunrpc/clnt_simp.c: Likewise.
11089         * sunrpc/clnt_tcp.c: Likewise.
11090         * sunrpc/clnt_udp.c: Likewise.
11091         * sunrpc/clnt_unix.c: Likewise.
11092         * sunrpc/des_crypt.c: Likewise.
11093         * sunrpc/des_soft.c: Likewise.
11094         * sunrpc/get_myaddr.c: Likewise.
11095         * sunrpc/getrpcport.c: Likewise.
11096         * sunrpc/key_call.c: Likewise.
11097         * sunrpc/key_prot.c: Likewise.
11098         * sunrpc/openchild.c: Likewise.
11099         * sunrpc/pm_getmaps.c: Likewise.
11100         * sunrpc/pm_getport.c: Likewise.
11101         * sunrpc/pmap_clnt.c: Likewise.
11102         * sunrpc/pmap_prot.c: Likewise.
11103         * sunrpc/pmap_prot2.c: Likewise.
11104         * sunrpc/pmap_rmt.c: Likewise.
11105         * sunrpc/rpc/auth.h: Likewise.
11106         * sunrpc/rpc/auth_unix.h: Likewise.
11107         * sunrpc/rpc/clnt.h: Likewise.
11108         * sunrpc/rpc/des_crypt.h: Likewise.
11109         * sunrpc/rpc/key_prot.h: Likewise.
11110         * sunrpc/rpc/netdb.h: Likewise.
11111         * sunrpc/rpc/pmap_clnt.h: Likewise.
11112         * sunrpc/rpc/pmap_prot.h: Likewise.
11113         * sunrpc/rpc/pmap_rmt.h: Likewise.
11114         * sunrpc/rpc/rpc.h: Likewise.
11115         * sunrpc/rpc/rpc_des.h: Likewise.
11116         * sunrpc/rpc/rpc_msg.h: Likewise.
11117         * sunrpc/rpc/svc.h: Likewise.
11118         * sunrpc/rpc/svc_auth.h: Likewise.
11119         * sunrpc/rpc/types.h: Likewise.
11120         * sunrpc/rpc/xdr.h: Likewise.
11121         * sunrpc/rpc_clntout.c: Likewise.
11122         * sunrpc/rpc_cmsg.c: Likewise.
11123         * sunrpc/rpc_common.c: Likewise.
11124         * sunrpc/rpc_cout.c: Likewise.
11125         * sunrpc/rpc_dtable.c: Likewise.
11126         * sunrpc/rpc_hout.c: Likewise.
11127         * sunrpc/rpc_main.c: Likewise.
11128         * sunrpc/rpc_parse.c: Likewise.
11129         * sunrpc/rpc_parse.h: Likewise.
11130         * sunrpc/rpc_prot.c: Likewise.
11131         * sunrpc/rpc_sample.c: Likewise.
11132         * sunrpc/rpc_scan.c: Likewise.
11133         * sunrpc/rpc_scan.h: Likewise.
11134         * sunrpc/rpc_svcout.c: Likewise.
11135         * sunrpc/rpc_tblout.c: Likewise.
11136         * sunrpc/rpc_util.c: Likewise.
11137         * sunrpc/rpc_util.h: Likewise.
11138         * sunrpc/rpcinfo.c: Likewise.
11139         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
11140         * sunrpc/rpcsvc/key_prot.x: Likewise.
11141         * sunrpc/rpcsvc/klm_prot.x: Likewise.
11142         * sunrpc/rpcsvc/mount.x: Likewise.
11143         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
11144         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
11145         * sunrpc/rpcsvc/rex.x: Likewise.
11146         * sunrpc/rpcsvc/rstat.x: Likewise.
11147         * sunrpc/rpcsvc/rusers.x: Likewise.
11148         * sunrpc/rpcsvc/sm_inter.x: Likewise.
11149         * sunrpc/rpcsvc/spray.x: Likewise.
11150         * sunrpc/rpcsvc/yppasswd.x: Likewise.
11151         * sunrpc/rtime.c: Likewise.
11152         * sunrpc/svc.c: Likewise.
11153         * sunrpc/svc_auth.c: Likewise.
11154         * sunrpc/svc_authux.c: Likewise.
11155         * sunrpc/svc_raw.c: Likewise.
11156         * sunrpc/svc_run.c: Likewise.
11157         * sunrpc/svc_simple.c: Likewise.
11158         * sunrpc/svc_tcp.c: Likewise.
11159         * sunrpc/svc_udp.c: Likewise.
11160         * sunrpc/svc_unix.c: Likewise.
11161         * sunrpc/svcauth_des.c: Likewise.
11162         * sunrpc/xcrypt.c: Likewise.
11163         * sunrpc/xdr.c: Likewise.
11164         * sunrpc/xdr_array.c: Likewise.
11165         * sunrpc/xdr_float.c: Likewise.
11166         * sunrpc/xdr_mem.c: Likewise.
11167         * sunrpc/xdr_rec.c: Likewise.
11168         * sunrpc/xdr_ref.c: Likewise.
11169         * sunrpc/xdr_sizeof.c: Likewise.
11170         * sunrpc/xdr_stdio.c: Likewise.
11171
11172         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
11173         handling.
11174
11175 2010-08-19  Andreas Schwab  <schwab@redhat.com>
11176
11177         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
11178
11179 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
11180
11181         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
11182         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
11183         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
11184         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
11185         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
11186         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
11187         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
11188         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
11189         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
11190         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
11191         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
11192         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
11193         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
11194         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
11195
11196 2010-07-26  Anton Blanchard  <anton@samba.org>
11197
11198         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
11199         * malloc/arena.c (heap_trim): Likewise.
11200
11201 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
11202
11203         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
11204         here.  Not...
11205         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
11206         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
11207
11208 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
11209
11210         * sysdeps/i386/elf/Makefile: New file.
11211
11212 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
11213
11214         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
11215         from fanotify_init.
11216         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
11217         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
11218
11219 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
11220
11221         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
11222         of strncasecmp_l.
11223         * sysdeps/multiarch/strcmp.S: Likewise.
11224
11225 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
11226
11227         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
11228         strncase_l-nonascii.
11229         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
11230         Add strncase_l-ssse3.
11231         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
11232         * sysdeps/x86_64/strcmp.S: Likewise.
11233         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
11234         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
11235         * sysdeps/x86_64/strncase.S: New file.
11236         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
11237         * sysdeps/x86_64/strncase_l.S: New file.
11238         * string/Makefile (strop-tests): Add strncasecmp.
11239         * string/test-strncasecmp.c: New file.
11240
11241         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
11242         warning.
11243
11244         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
11245         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
11246
11247 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
11248
11249         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
11250
11251 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
11252
11253         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
11254         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
11255         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
11256
11257 2010-05-01  Alan Modra  <amodra@gmail.com>
11258
11259         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
11260         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
11261         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
11262         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
11263         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
11264         tidying.  Don't tail-call __sigjmp_save for static lib.
11265         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
11266         save location.
11267         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
11268         (CALL_MCOUNT): Add eh info, and nop after bl.
11269         (TAIL_CALL_SYSCALL_ERROR): New macro.
11270         (PSEUDO_RET): Use it.
11271         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
11272         Correct save location of integer regs and cr.
11273         (_dl_profile_resolve): Correct cr save location.  Delete nops
11274         after bl when SHARED.  Reduce cfi size a little by better
11275         placement of cfi directives.
11276         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
11277         make a stack frame.  Instead use parm save area as a temp.
11278         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
11279         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
11280         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
11281         Don't make a stack frame for parent, use parm save area.
11282         Increase child stack frame to 112 bytes.  Don't save unused reg,
11283         and adjust reg usage.  Set up cfi on error recovery and
11284         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
11285         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
11286         (__makecontext): Add dummy nop after jump to exit.
11287         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
11288         Use correct parm save area and cr save, reduce stack frame.
11289         Correct cfi for possible PSEUDO_RET frame setup.
11290         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
11291         Branch to local label emitted by PSEUDO_RET rather than
11292         __syscall_error.
11293
11294 2010-08-12  Andreas Schwab  <schwab@redhat.com>
11295
11296         [BZ #11904]
11297         * locale/programs/locale.c (print_assignment): New function.
11298         (show_locale_vars): Use it.
11299
11300 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
11301
11302         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
11303         field.
11304         (struct statfs64): Likewise.
11305         (_STATFS_F_FLAGS): Define.
11306         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
11307         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
11308         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
11309         (ST_VALID): Define locally.
11310         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
11311         __statvfs_getflags, use the provided value.
11312         * sysdeps/unix/sysv/linux/kernel-features.h: Define
11313         __ASSUME_STATFS_F_FLAGS.
11314
11315         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
11316
11317         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
11318         Add sys/fanotify.h.
11319         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
11320         fanotify_mask for GLIBC_2.13.
11321         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
11322         fanotify_init and fanotify_mark.
11323         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
11324         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
11325
11326         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
11327         Add prlimit.
11328         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
11329         prlimit64 for GLIBC_2.13.
11330         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
11331         prlimit64.
11332         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
11333         syscall.
11334         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
11335         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
11336         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
11337         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
11338         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
11339         add prlimit alias.
11340         * sysdeps/unix/sysv/linux/prlimit.c: New file.
11341
11342         [BZ #11903]
11343         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
11344         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
11345
11346         * nss/Makefile: Add rules to build and run tst-nss-test1.
11347         * shlib-versions: Add entry for libnss_test1.
11348         * nss/nss_test1.c: New file.
11349         * nss/tst-nss-test1.c: New file.
11350
11351         * nss/nsswitch.c (__nss_database_custom): Define new variable.
11352         (__nss_configure_lookup): Set appropriate entry in
11353         __nss_configure_lookup to true.
11354         * nss/nsswitch.h: Define enum with indeces of databases in
11355         databases and __nss_database_custom arrays.  Declare
11356         __nss_database_custom.
11357         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
11358         to avoid using nscd when custom rules are installed.
11359         * nss/getXXbyYY_r.c: Likewise.
11360         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
11361
11362         * nss/nss_files/files-parse.c: Whitespace fixes.
11363
11364 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
11365
11366         [BZ #11883]
11367         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
11368         * posix/fnmatch_loop.c: Likewise.
11369
11370 2010-07-17  Andi Kleen  <ak@linux.intel.com>
11371
11372         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
11373         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
11374         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
11375         * Versions.def [GLIBC_2.13]: Add.
11376
11377 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
11378
11379         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
11380         Also fail if tpwd after pwuid call is NULL.
11381
11382 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11383
11384         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
11385         when converting to ms.
11386
11387 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11388
11389         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
11390         EOPNOTSUPP errors with ENOTTY.
11391         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
11392         EOPNOTSUPP errors with ENOTTY.
11393
11394 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
11395
11396         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
11397         Add strcasecmp_l-ssse3.
11398         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
11399         strcasecmp.
11400         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
11401         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
11402         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
11403
11404 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
11405
11406         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
11407
11408         * string/Makefile (strop-tests): Add strcasecmp.
11409         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
11410         strcasecmp_l-nonascii.
11411         (gen-as-const-headers): Add locale-defines.sym.
11412         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
11413         * sysdeps/x86_64/strcasecmp.S: New file.
11414         * sysdeps/x86_64/strcasecmp_l.S: New file.
11415         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
11416         * sysdeps/x86_64/locale-defines.sym: New file.
11417         * string/test-strcasecmp.c: New file.
11418
11419         * string/test-strcasestr.c: Test both ends of the range of characters.
11420         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
11421
11422 2010-07-29  Roland McGrath  <roland@redhat.com>
11423
11424         [BZ #11856]
11425         * manual/locale.texi (Yes-or-No Questions): Fix example code.
11426
11427 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
11428
11429         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
11430         for ld.so.
11431
11432 2010-07-27  Andreas Schwab  <schwab@redhat.com>
11433
11434         * manual/memory.texi (Malloc Tunable Parameters): Document
11435         M_PERTURB.
11436
11437 2010-07-26  Roland McGrath  <roland@redhat.com>
11438
11439         [BZ #11840]
11440         * configure.in (-fgnu89-inline check): Set and substitute
11441         gnu89_inline, not libc_cv_gnu89_inline.
11442         * configure: Regenerated.
11443         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
11444
11445 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
11446
11447         * string/test-strnlen.c: New file.
11448         * string/Makefile (strop-tests): Add strnlen.
11449         * string/tester.c (test_strnlen): Add a few more test cases.
11450         * string/tst-strlen.c: Better error reporting.
11451
11452         * sysdeps/x86_64/strnlen.S: New file.
11453
11454 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
11455
11456         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
11457         lower-latency instructions.
11458
11459 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
11460
11461         * string/test-strcasestr.c: New file.
11462         * string/test-strstr.c: New file.
11463         * string/Makefile (strop-tests): Add strstr and strcasestr.
11464         * string/str-two-way.h: Don't undefine MAX.
11465         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
11466
11467 2010-07-21  Andreas Schwab  <schwab@redhat.com>
11468
11469         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
11470         strcasestr-nonascii.
11471         (CFLAGS-strcasestr-nonascii.c): Define.
11472         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
11473         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
11474         Remove unused attribute.
11475
11476 2010-07-20  Roland McGrath  <roland@redhat.com>
11477
11478         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
11479         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
11480         ld.so.cache was broken.  With it, there is no way to disable dsocaps
11481         like LD_HWCAP_MASK can disable hwcaps.
11482
11483 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
11484
11485         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
11486
11487 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
11488
11489         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
11490         call in strcasestr.
11491         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
11492         __strcasestr_sse42_nonascii.
11493         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
11494         strcasestr-nonascii.c.
11495         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
11496
11497 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
11498
11499         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
11500         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
11501         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
11502         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
11503
11504 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
11505
11506         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
11507         fcntl.
11508
11509 2010-07-06  Andreas Schwab  <schwab@redhat.com>
11510
11511         [BZ #11577]
11512         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
11513         dl_signal_cerror.
11514
11515 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
11516
11517         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
11518         _PC_PIPE_BUF using F_GETPIPE_SZ.
11519
11520 2010-07-05  Roland McGrath  <roland@redhat.com>
11521
11522         * manual/arith.texi (Rounding Functions): Fix rint description
11523         implicit in round description.
11524
11525 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
11526
11527         * elf/Makefile: Fix linking for a few tests to make recent linker
11528         happy.
11529
11530 2010-06-30  Andreas Schwab  <schwab@redhat.com>
11531
11532         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
11533         $(common-objpfx)libc_nonshared.a.
11534
11535 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
11536
11537         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
11538         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
11539         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
11540         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
11541         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
11542         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
11543         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
11544         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
11545         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
11546         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
11547         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
11548         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
11549         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
11550         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
11551         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
11552         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
11553         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
11554         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
11555         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
11556         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
11557         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
11558         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
11559         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
11560         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
11561         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
11562         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
11563         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
11564         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
11565         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
11566         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
11567         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
11568         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
11569         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
11570         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
11571         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
11572         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
11573         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
11574         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
11575         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
11576         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
11577         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
11578         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
11579         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
11580         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
11581         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
11582         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
11583         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
11584         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
11585
11586 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
11587
11588         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
11589         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
11590         * string/memmove.c (memmove): Renamed to ...
11591         (MEMMOVE): ...this.  Default to memmove.
11592         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
11593         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
11594         (END_CHK): Define.
11595         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
11596         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
11597         mempcpy-ssse3-back memmove-ssse3-back.
11598         * sysdeps/x86_64/multiarch/bcopy.S: New file .
11599         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
11600         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
11601         * sysdeps/x86_64/multiarch/memcpy.S: New file.
11602         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
11603         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
11604         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
11605         * sysdeps/x86_64/multiarch/memmove.c: New file.
11606         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
11607         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
11608         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
11609         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
11610         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
11611         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
11612         Define.
11613         (index_Fast_Copy_Backward): Define.
11614         (HAS_ARCH_FEATURE): Define.
11615         (HAS_FAST_REP_STRING): Define.
11616         (HAS_FAST_COPY_BACKWARD): Define.
11617
11618 2010-06-21  Andreas Schwab  <schwab@redhat.com>
11619
11620         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
11621         Restore proper fallback handling.
11622
11623 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
11624
11625         [BZ #11701]
11626         * posix/group_member.c (__group_member): Correct checking loop.
11627
11628         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
11629         OOM in getpwuid_r correctly.  Return error number when the caller
11630         should return, otherwise -1.
11631         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
11632         call returning > 0 value.
11633         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
11634
11635 2010-06-07  Andreas Schwab  <schwab@redhat.com>
11636
11637         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
11638         libc_nonshared.a from targets in modules-names.
11639
11640 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
11641
11642         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
11643         requires it.
11644
11645 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
11646
11647         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
11648         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
11649         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
11650         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
11651
11652 2010-06-02  Andreas Schwab  <schwab@redhat.com>
11653
11654         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
11655
11656 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
11657
11658         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
11659         and F_GETPIPE_SZ.
11660         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
11661         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
11662         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
11663         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
11664         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
11665         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
11666
11667 2010-06-14  Roland McGrath  <roland@redhat.com>
11668
11669         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
11670
11671 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
11672
11673         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
11674         __REDIRECT followed by __THROW.
11675         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
11676         * posix/getopt.h (getopt): Likewise.
11677
11678 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
11679
11680         * hurd/lookup-at.c (__file_name_lookup_at): Accept
11681         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
11682         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
11683         in AT_FLAGS.
11684         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
11685         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
11686
11687 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
11688
11689         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
11690
11691 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
11692
11693         [BZ #11640]
11694         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
11695         Properly check family and model.
11696
11697 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
11698
11699         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
11700
11701 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
11702
11703         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
11704
11705 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
11706
11707         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
11708         symbol reference.
11709
11710 2010-05-19  Andreas Schwab  <schwab@redhat.com>
11711
11712         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
11713         symbol reference.
11714
11715 2010-05-21  Andreas Schwab  <schwab@redhat.com>
11716
11717         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
11718         and internal_recvmmsg.
11719         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
11720         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
11721         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
11722         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
11723
11724         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
11725         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
11726         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
11727
11728 2010-05-20  Andreas Schwab  <schwab@redhat.com>
11729
11730         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
11731
11732 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
11733
11734         POWER7 optimizations.
11735         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
11736         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
11737
11738 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
11739
11740         * version.h: Update for 2.13 development version.
11741
11742 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
11743
11744         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
11745         exceptions.  Return 0.
11746
11747 2010-05-07  Roland McGrath  <roland@redhat.com>
11748
11749         * elf/ldconfig.c (main): Add a const.
11750
11751 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
11752
11753         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
11754         (args_options): Add no-idn option.
11755         (ahosts_keys_int): Add idn_flags to ai_flags.
11756         (parse_option): Handle 'i' option to clear idn_flags.
11757
11758         * malloc/malloc.c (_int_free): Possible race in the most recently
11759         added check.  Only act on the data if no current modification
11760         happened.
11761
11762 See ChangeLog.17 for earlier changes.