422e69203d54909ee6a1ba36f05d7c947e039e1a
[platform/upstream/glibc.git] / ChangeLog
1 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
2
3         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
4         (sysdep_headers): Remove variable.
5         [termio.h not in sysdep_headers] (generated): Likewise.
6         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
7         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
8         * sysdeps/unix/sysv/tcdrain.c: Likewise.
9         * sysdeps/unix/sysv/tcflow.c: Likewise.
10         * sysdeps/unix/sysv/tcflush.c: Likewise.
11         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
12         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
13         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
14         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
15         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
16
17         * sysdeps/unix/siglist.c: Remove file.
18
19         * sysdeps/unix/getppid.S: Remove file.
20
21         * sysdeps/unix/mkdir.c: Remove file.
22         * sysdeps/unix/rmdir.c: Likewise.
23
24 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
25
26         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
27         ERR_MAX value.
28         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
29         errlist-compat value.
30
31 2012-04-18  David S. Miller  <davem@davemloft.net>
32
33         * sysdeps/generic/memcopy.h (reg_char): Delete.
34         * debug/strcat_chk.c: Use char, not reg_char.
35         * debug/strcpy_chk.c: Likewise.
36         * debug/strncat_chk.c: Likewise.
37         * debug/strncpy_chk.c: Likewise.
38         * string/memchr.c: Likewise.
39         * string/memrchr.c: Likewise.
40         * string/rawmemchr.c: Likewise.
41         * string/strcat.c: Likewise.
42         * string/strchr.c: Likewise.
43         * string/strchrnul.c: Likewise.
44         * string/strcmp.c: Likewise.
45         * string/strcpy.c: Likewise.
46         * string/strncat.c: Likewise.
47         * string/strncmp.c: Likewise.
48         * string/strncpy.c: Likewise.
49
50 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
51
52         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
53         __builtin_memcopy is called when src and dest ranges are known to not
54         overlap.
55
56 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
57
58         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
59         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
60         fwd_align_merge macro call.
61         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
62         bwd_align_merge macro call.
63         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
64
65 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
66
67         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
68         bwd_align_merge macros.
69         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
70         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
71         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
72
73 2012-04-18  David S. Miller  <davem@davemloft.net>
74
75         * sysdeps/sparc/sparc64/memcopy.h: Delete.
76
77 2012-04-18  Andreas Jaeger  <aj@suse.de>
78
79         [BZ# 6794]
80         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
81         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
82         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
83
84         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
85         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
86         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
87
88         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
89         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
90         Adjust for changed ldbl-128 files.
91
92         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
93         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
94         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
95
96 2012-04-17  David S. Miller  <davem@davemloft.net>
97
98         * sysdeps/sparc/sparc32/memcopy.h: Delete.
99
100 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
101
102         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
103         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
104         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
105         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
106         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
107         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
108
109 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
110
111         [BZ #6794]
112         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
113         * math/libm-test.inc: Add ilogb errno and exception tests.
114         * math/w_ilogb.c: New file: ilogb wrapper.
115         * math/w_ilogbf.c: New file: ilogbf wrapper.
116         * math/w_ilogbl.c: New file: ilogbl wrapper.
117         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
118         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
119         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
120         exception being thrown with 0.0 as argument.
121         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
122         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
123         exception being thrown with 0.0 as argument.
124         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
125         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
126         exception being thrown with 0.0 as argument.
127         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
128         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
129         exception being thrown with 0.0 as argument.
130         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
131         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
132         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
133         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
134         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
135         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
136         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
137         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
138         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
139
140 2012-04-17  Petr Baudis  <pasky@ucw.cz>
141
142         * include/sys/uio.h: Change __vector to __iovec to avoid clash
143         with altivec.
144
145 2012-04-16  Marek Polacek  <polacek@redhat.com>
146
147         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
148
149 2012-04-16  Marek Polacek  <polacek@redhat.com>
150
151         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
152         operands of fdivp instruction.
153
154 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
155
156         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
157         * elf/tst-auditmod3b.c: Likewise.
158         * elf/tst-auditmod4b.c: Likewise.
159         * elf/tst-auditmod5b.c: Likewise.
160         * elf/tst-auditmod6b.c: Likewise.
161         * elf/tst-auditmod6c.c: Likewise.
162         * elf/tst-auditmod7b.c: Likewise.
163         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
164         * sysdeps/x86_64/preconfigure.in: Likewise.
165         * sysdeps/x86_64/preconfigure: Regenerated.
166
167 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
168
169         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
170         __ILP32__.
171
172 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
173
174         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
175         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
176
177 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
178
179         [BZ #13973]
180         * locale/iso-639.def: Fix gl language name. Spotted by
181         Yaron Shahrabani.
182
183 2012-04-12  Roland McGrath  <roland@hack.frob.com>
184
185         [BZ #2074]
186         * libio/libio.h (__io_write_fn): Update comment.
187
188 2012-04-12  Petr Baudis  <pasky@ucw.cz>
189
190         [BZ #2074]
191         * stdio.texi (Hook Functions): The user provided writer function
192         is not allowed to return -1.
193
194 2012-04-11  David S. Miller  <davem@davemloft.net>
195
196         * sysdeps/sparc/fpu/libm-test-ulps: Update.
197
198 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
199
200         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
201         Add a leading slash to rtkaio.
202
203 2012-04-11  Jim Meyering  <meyering@redhat.com>
204
205         [BZ #11959]
206         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
207         It is not necessarily an error to ignore fwrite's return
208         value.  One can reliably use ferror to test for errors after
209         the fact.
210
211 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
212
213         * bits/types.h (__snseconds_t): New type.
214         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
215
216         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
217         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
218         (__SNSECONDS_T_TYPE): Likewise.
219         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
220         (__SNSECONDS_T_TYPE): Likewise.
221         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
222         (__SNSECONDS_T_TYPE): Likewise.
223
224 2012-04-10  Andreas Jaeger  <aj@suse.de>
225
226         [BZ #2636]
227         * manual/time.texi (Processor Time): Return type of times is
228         elapsed real time since an arbitrary point in the past.
229         (CPU Time): Move CLK_TCK from here...
230         (Processor Time): ...to here.  Correct description.
231         * manual/conf.texi (Constants for Sysconf): Correct description of
232         _SC_CLK_TCK.
233
234 2012-04-10  David S. Miller  <davem@davemloft.net>
235
236         [BZ #13967]
237         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
238         where the is a gap between DT_REL(A) and DT_JMPREL.
239
240 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
241
242         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
243         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
244         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
245
246 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
247
248         * elf/dl-support.c (_dl_inhibit_cache): New variable.
249         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
250         (dl_main): Handle --inhibit-cache.
251         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
252         _dl_inhibit_cache.
253         * elf/dl-load.c (_dl_map_object): Use it.
254         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
255
256 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
257
258         [BZ #13872]
259         * sysdeps/i386/fpu/e_powl.S (p78): New object.
260         (__ieee754_powl): Saturate large exponents rather than testing for
261         overflow of y*log2(x).
262         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
263         * math/libm-test.inc (pow_test): Do not permit spurious overflow
264         exceptions.
265
266         [BZ #11521]
267         * math/s_ctan.c: Include <float.h>.
268         (__ctan): Avoid internal overflow or cancellation in calculating
269         denominator.
270         * math/s_ctanf.c: Likewise.
271         * math/s_ctanl.c: Likewise.
272         * math/s_ctanh.c: Likewise.
273         * math/s_ctanhf.c: Likewise.
274         * math/s_ctanhl.c: Likewise.
275         * math/libm-test.inc (ctan_test): Add more tests.
276         (ctanh_test): Likewise.
277         * sysdeps/i386/fpu/libm-test-ulps: Update.
278         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
279
280 2012-04-09  Andreas Jaeger  <aj@suse.de>
281
282         [BZ #6894]
283         * manual/filesys.texi (Directory Entries): Mention that d_namlen
284         is an optional BSD extension.
285
286         [BZ #10254]
287         * manual/stdio.texi (Opening Streams): Document additional fopen
288         parameters.
289
290 2012-04-09  Roland McGrath  <roland@hack.frob.com>
291
292         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
293         %eax without telling the compiler.
294
295 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
296
297         [BZ # 13963]
298         * manual/install.texi: Use sourceware.org.
299
300 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
301
302         [BZ #13873]
303         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
304         (__ieee754_pow): Generate overflow and underflow using huge*huge
305         and tiny*tiny rather than just returning constant infinity or zero
306         for large exponents.
307         * math/libm-test.inc (pow_test): Require overflow exceptions for
308         applicable cases of large exponents.
309
310         [BZ #706]
311         * sysdeps/i386/fpu/e_pow.S (p10): New object.
312         (__ieee754_pow): Use iterative multiplication algorithm only for
313         integer exponents with absolute value below 1024.  Check for odd
314         integer exponents when using algorithm for real exponents.
315         * math/libm-test.inc (pow_test): Add more tests.
316         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
317
318 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
319
320         [BZ #13705]
321         * math/libm-test.inc (exp_test): Do not allow overflow exception
322         on underflow test.
323
324 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
325
326         [BZ #13705]
327         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
328         instead of __kernel_standard_f.
329
330 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
331
332         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
333         * sysdeps/x86_64/memset_chk.S: Likewise.
334
335 2012-04-08  Andreas Jaeger  <aj@suse.de>
336
337         [BZ #10153]
338         * manual/startup.texi (Environment Access): Describe return value
339         for putenv and setenv.
340
341         [BZ #6895]
342         * manual/filesys.texi (Directory Entries): Add description for
343         DT_LNK.
344
345         [BZ #6890]
346         * manual/filesys.texi (Directory Entries): Clarify that it's file
347         system not operating system in the description of DT_UNKNOWN.
348
349         [BZ #6578]
350         * manual/syslog.texi (closelog): Fix reference, it's openlog.
351
352 2012-04-08  Stephen Compall  <s11@member.fsf.org>
353
354         [BZ #6649]
355         * manual/llio.texi (Opening and Closing Files): Add cross
356         reference to explain mode argument.
357
358 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
359
360         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
361         * sysdeps/x86_64/memset_chk.S: Likewise.
362
363 2012-04-07  David S. Miller  <davem@davemloft.net>
364
365         * elf/elf.h (R_SPARC_WDISP10): Define.
366         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
367         R_SPARC_SIZE32.
368         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
369         R_SPARC_SIZE64 and R_SPARC_H34.
370
371 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
372
373         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
374         conditions and remove no longer applicable assertion.
375
376 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
377
378         * bits/byteswap.h: Include <features.h>.
379         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
380         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
381
382 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
383
384         * bits/byteswap.h (__bswap_16): Removed.
385         Include <bits/byteswap-16.h> to get __bswap_16.
386         * sysdeps/i386/bits/byteswap.h: Likewise.
387         * sysdeps/s390/bits/byteswap.h: Likewise.
388         * sysdeps/x86_64/bits/byteswap.h: Likewise.
389         * bits/byteswap-16.h: New file.
390         * sysdeps/i386/bits/byteswap-16.h: Likewise.
391         * sysdeps/s390/bits/byteswap-16.h: Likewise.
392         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
393         * string/Makefile (headers): Add bits/byteswap-16.h.
394
395 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
396
397         [BZ #13895]
398         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
399         extra indirection.
400         * nss/Makefile (tests-static, tests): Add tst-nss-static.
401         * nss/tst-nss-static.c: New.
402
403 2012-04-06  Robert Millan  <rmh@gnu.org>
404
405         [BZ #6486]
406         * manual/llio.texi (File Position Primitive): lseek
407         refers to WHENCE when it really means OFFSET.
408
409 2012-04-06  Andreas Jaeger  <aj@suse.de>
410
411         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
412         strncmp declarations.
413
414         * abilist/libc.abilist: Add __poll and __ppoll.
415
416 2012-04-05  David S. Miller  <davem@davemloft.net>
417
418         * scripts/check-local-headers.sh: Accept a host triplet in the
419         path matched by the exclude regexp.
420
421         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
422         definition.
423         * sysdeps/powerpc/powerpc32/dl-machine.h
424         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
425         * sysdeps/s390/s390-32/dl-machine.h
426         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
427         * sysdeps/sparc/sparc32/dl-machine.h
428         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
429         * sysdeps/sparc/sparc64/dl-machine.h
430         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
431
432         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
433         lazy binding.
434         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
435         undefined symbol errors.
436
437         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
438         DT_NEEDED entries.
439
440 2012-04-05  Michael Matz  <matz@suse.de>
441
442         [BZ #13592]
443         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
444
445 2012-04-05  Andreas Jaeger  <aj@suse.de>
446
447         [BZ #13908]
448         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
449         comment.
450
451 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
452
453         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
454         which ROUND is no valid rounding mode.
455
456 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
457
458         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
459         read again.
460         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
461
462 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
463
464         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
465         an exception using FPU order intentionally.
466
467 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
468
469         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
470         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
471         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
472         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
473
474 2012-04-05  Simon Josefsson  <simon@josefsson.org>
475
476         [BZ #12340]
477         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
478         EINVAL when BUFLEN is too smal.
479
480 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
481
482         [BZ #13553]
483         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
484         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
485
486 2012-04-03  Andreas Jaeger  <aj@suse.de>
487
488         [BZ #13938]
489         * manual/setjmp.texi (System V contexts): Fix sentence.
490
491         [BZ #13926]
492         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
493         New macro for this case.
494         [!__GNUC__] (__bswap_64): New inline function for this case.
495         * sysdeps/x86_64/bits/byteswap.h: Likewise.
496         * bits/byteswap.h: Likewise.
497         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
498         ull, guard with __GLIBC_HAVE_LONG_LONG.
499
500         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
501         __GLIBC_HAVE_LONG_LONG.
502
503         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
504         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
505
506 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
507
508         [BZ #13691]
509         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
510         inptr and inend, rather than using last_ch.
511
512 2012-04-02  David S. Miller  <davem@davemloft.net>
513
514         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
515         * stdio-common/printf-parse.h (read_int): Change return type to
516         'int', return -1 on INT_MAX overflow.
517         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
518         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
519         overflows INT_MAX.  Check for overflow of in-format-string precision
520         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
521         SIZE_MAX not INT_MAX for integer overflow test.
522         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
523         skip the construct in the format string but do not record anything.
524         * stdio-common/bug22.c: Adjust to test both width/prevision
525         INT_MAX overflow as well as total length INT_MAX overflow.  Check
526         explicitly for proper errno values.
527
528 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
529
530         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
531         CHAR_MAX.
532         * string/test-strcmp.c [! WIDE]: Likewise.
533         * time/tst-mktime2.c: Likewise for INT_MAX.
534         * string/test-string.h: #include <sys/param.h> for MIN.
535
536         * csu/init-first.c (__libc_init_first): Call __ctype_init.
537         * sysdeps/i386/init-first.c (init): Likewise.
538         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
539         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
540         * sysdeps/sh/init-first.c (init): Likewise.
541
542 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
543
544         * po/ru.po: Update from translation team.
545         * po/vi.po: Likewise.
546
547 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
548
549         * resolv/nss_dns/dns-host.c: Merge copyright years.
550
551 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
552
553         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
554         Optimize memcpy with prefetch if
555         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
556         src, dst pointers have unequal 16 byte alignments.
557
558 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
559
560         [BZ #13928]
561         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
562         from a CNAME entry and return the minimum ttl for the query.
563         (gaih_getanswer_slice): Likewise.
564
565 2012-03-30  Jeff Law  <law@redhat.com>
566
567         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
568         due to long keys.
569         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
570         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
571
572         * resolv/nss_dns/dns-host.c: Update copyright year.
573
574 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
575
576         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
577         requests to save a system call.  Fix check that all bytes are sent.
578
579         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
580         comments for sendmmsg.
581
582 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
583
584         [BZ #13691]
585         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
586         with only 1 character between 0x0041 and 0x01b0.
587         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
588         * wcsmbs/tst-mbsnrtowcs.c: New file.
589
590 2012-03-29  David S. Miller  <davem@davemloft.net>
591
592         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
593         small copies by hand.
594
595 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
596
597         [BZ #13761]
598         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
599         _nss_compat_initgroups_dyn): Fall back to malloc/free
600         for large group memberships.
601
602 2012-03-28  David S. Miller  <davem@davemloft.net>
603
604         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
605         that branches into memcpy.
606         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
607         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
608         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
609         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
610         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
611         bits.
612         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
613         implementation too.
614         * sysdeps/sparc/mempcpy.S: New file.
615
616         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
617         the IFUNC routine in the libc case.
618         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
619
620         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
621         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
622         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
623         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
624         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
625         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
626         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
627         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
628
629         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
630         loop to 256 bytes instead of 64 bytes and fix test signedness.
631
632         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
633         * sysdeps/sparc/sparc32/Makefile: rather than here...
634         * sysdeps/sparc/sparc64/Makefile: and here.
635
636 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
637
638         * malloc/mallocbug.c: Avoid warnings about unused variables.
639
640 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
641
642         [BZ #13760]
643         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
644         in the right place. Discard and retry query if response is
645         larger than input buffer size.
646
647 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
648
649         [BZ #369]
650         [BZ #2678]
651         [BZ #3866]
652         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
653         x for large integer exponent.
654         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
655         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
656         sign of result as needed afterwards.
657         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
658         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
659         result for underflowing pow the same as for overflow.
660         (__kernel_standard_l): Handle powl overflow and underflow here
661         rather than calling __kernel_standard.
662         * math/libm-test.inc (pow_test): Add more tests.
663
664         [BZ #3868]
665         [BZ #13879]
666         [BZ #13910]
667         [BZ #13911]
668         [BZ #13912]
669         [BZ #13913]
670         [BZ #13915]
671         [BZ #13916]
672         [BZ #13917]
673         [BZ #13918]
674         [BZ #13919]
675         [BZ #13920]
676         [BZ #13921]
677         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
678         * sysdeps/ieee754/k_standard.c: Include <float.h>.
679         (__kernel_standard_l): New function.
680         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
681         __kernel_standard.
682         * math/w_acosl.c (__acosl): Likewise.
683         * math/w_asinl.c (__asinl): Likewise.
684         * math/w_atan2l.c (__atan2l): Likewise.
685         * math/w_atanhl.c (__atanhl): Likewise.
686         * math/w_coshl.c (__coshl): Likewise.
687         * math/w_exp10l.c (__exp10l): Likewise.
688         * math/w_exp2l.c (__exp2l): Likewise.
689         * math/w_fmodl.c (__fmodl): Likewise.
690         * math/w_hypotl.c (__hypotl): Likewise.
691         * math/w_j0l.c (__j0l, __y0l): Likewise.
692         * math/w_j1l.c (__j1l, __y1l): Likewise.
693         * math/w_jnl.c (__jnl, __ynl): Likewise.
694         * math/w_lgammal.c (__lgammal): Likewise.
695         * math/w_log10l.c (__log10l): Likewise.
696         * math/w_log2l.c (__log2l): Likewise.
697         * math/w_logl.c (__logl): Likewise.
698         * math/w_powl.c (__powl): Likewise.
699         * math/w_remainderl.c (__remainderl): Likewise.
700         * math/w_scalbl.c (sysv_scalbl): Likewise.
701         * math/w_sinhl.c (__sinhl): Likewise.
702         * math/w_sqrtl.c (__sqrtl): Likewise.
703         * math/w_tgammal.c (__tgammal): Likewise.
704         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
705         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
706         * math/libm-test.inc (acos_test): Add more tests.
707         (acosh_test): Likewise.
708         (asin_test): Likewise.
709         (atanh_test): Likewise.
710         (exp_test): Likewise.
711         (exp10_test): Likewise.
712         (exp2_test): Likewise.
713         (expm1_test): Likewise.
714         (lgamma_test): Likewise.
715         (log_test): Likewise.
716         (log10_test): Likewise.
717         (log1p_test): Likewise.
718         (log2_test): Likewise.
719         (pow_test): Do not allow some spurious overflow exceptions.
720         (sqrt_test): Add more tests.
721         (tgamma_test): Likewise.
722         (y0_test): Likewise.
723         (y1_test): Likewise.
724         (yn_test): Likewise.
725
726 2012-03-27  Anton Blanchard  <anton@samba.org>
727
728         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
729         MAP_HUGETLB.
730         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
731         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
732         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
733
734 2012-03-27  David S. Miller  <davem@davemloft.net>
735
736         * conform/Makefile: Run run-conformtest.sh using $(BASH).
737
738         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
739         have-as-vis3 check.
740
741 2012-03-27  Andreas Jaeger  <aj@suse.de>
742
743         * sysdeps/x86_64/elf/configure.in: Moved to ...
744         * sysdeps/x86_64/configure.in: ... here.
745         * sysdeps/x86_64/elf/start.S: Moved to ...
746         * sysdeps/x86_64/start.S: ... here.
747         * sysdeps/x86_64/elf/configure: Delete.
748
749         * sysdeps/x86_64/configure.in: Merge contents from
750         sysdeps/i386/configure.in (without i686 check).
751
752         * sysdeps/i386/elf/Versions: Merge into ...
753         * sysdeps/i386/Versions: ... this.
754         * sysdeps/i386/elf/Versions: Delete file.
755         * sysdeps/i386/elf/start.S: Moved to ...
756         * sysdeps/i386/start.S: ...here.
757         * sysdeps/i386/elf/configure.in: Merge into...
758         * sysdeps/i386/configure.in: ...here.
759         * sysdeps/i386/elf/configure.in: Delete file.
760         * sysdeps/i386/elf/configure: Delete file.
761
762         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
763         * debug/backtracesyms.c: ... here.
764         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
765         * debug/backtracesymsfd.c: ... here.
766         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
767         * sysdeps/generic/ifunc-sel.h: ... here.
768
769         * sysdeps/unix/i386/start.c: Delete file.
770         * sysdeps/unix/sparc/start.c: Delete file.
771         * sysdeps/unix/start.c: Delete file.
772
773         * sysdeps/sh/elf/configure.in: Moved to ...
774         * sysdeps/sh/configure.in: ... here.
775         * sysdeps/sh/elf/start.S: Moved to ...
776         * sysdeps/sh/start.S: ... here.
777         * sysdeps/sh/elf/configure: Delete file.
778
779         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
780         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
781         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
782         * sysdeps/powerpc/powerpc64/entry.h: ... here.
783         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
784         * sysdeps/powerpc/powerpc64/start.S: here.
785         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
786         * sysdeps/powerpc/powerpc64/Makefile: ... this.
787         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
788         * sysdeps/powerpc/powerpc64/configure.in: ... this.
789         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
790
791         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
792         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
793         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
794         * sysdeps/powerpc/powerpc32/start.S: ... here.
795         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
796         * sysdeps/powerpc/powerpc32/configure.in: ... this.
797         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
798
799         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
800         * sysdeps/powerpc/ifunc-sel.h: ... here.
801         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
802         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
803
804         * sysdeps/sparc/elf/configure.in: Moved to ...
805         * sysdeps/sparc/configure.in: ... here.
806         * sysdeps/sparc/elf/configure: Delete file.
807         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
808         * sysdeps/sparc/sparc32/start.S: ... here.
809         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
810         * sysdeps/sparc/sparc64/start.S: ... here.
811         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
812         * sysdeps/sparc/sparc32/Makefile: ... this.
813         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
814         * sysdeps/sparc/sparc64/Makefile: ... this.
815
816         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
817         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
818         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
819         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
820         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
821         * sysdeps/s390/s390-32/setjmp.S: ... here.
822         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
823         * sysdeps/s390/s390-32/configure.in: ... here.
824         * sysdeps/s390/s390-32/elf/configure: Delete file.
825         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
826         * sysdeps/s390/s390-32/start.S: ... here.
827
828         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
829         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
830         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
831         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
832         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
833         * sysdeps/s390/s390-64/setjmp.S: ... here.
834         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
835         * sysdeps/s390/s390-64/configure.in: ... here
836         * sysdeps/s390/s390-64/elf/configure: Delete file.
837         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
838         * sysdeps/s390/s390-64/start.S: ... here.
839         * sysdeps/s390/s390-64/elf/configure: Delete.
840
841         * configure.in: Remove support for elf directories in sysdeps.
842
843         * configure: Regenerated.
844         * sysdeps/i386/configure: Regenerated.
845         * sysdeps/powerpc/powerpc32/configure: Regenerated.
846         * sysdeps/powerpc/powerpc64/configure: Regenerated.
847         * sysdeps/s390/s390-32/configure: Regenerated.
848         * sysdeps/s390/s390-64/configure: Regenerated.
849         * sysdeps/sh/configure: Regenerated.
850         * sysdeps/sparc/configure: Regenerated.
851         * sysdeps/x86_64/configure: Regenerated.
852
853 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
854
855         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
856
857         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
858         denormal result into account.
859
860 2012-03-25  Roland McGrath  <roland@hack.frob.com>
861
862         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
863         Reported by Allan McRae <allan@archlinux.org>.
864
865 2012-03-23  Jeff Law  <law@redhat.com>
866
867         * nss/getnssent.c (__nss_getent): Fix typo.
868
869 2012-03-23  David S. Miller  <davem@davemloft.net>
870
871         * sysdeps/sparc/fpu/libm-test-ulps: Update.
872
873 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
874
875         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
876         to pad to uint64_t for each field.
877         (dl_tls_index): Replace unsigned long with uint64_t.
878
879 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
880         Paul Pluzhnikov  <ppluzhnikov@google.com>
881
882         [BZ #6528]
883         * grp/Makefile (otherlibs): Don't set it.
884         * inet/Makefile (otherlibs): Likewise.
885         * login/Makefile (otherlibs): Likewise.
886         * nscd/Makefile (otherlibs): Likewise.
887         * posix/Makefile (otherlibs): Likewise.
888         * pwd/Makefile (otherlibs): Likewise.
889         * rt/Makefile (otherlibs): Likewise.
890         * sunrpc/Makefile (otherlibs): Likewise.
891         * nss/Makefile (otherlibs): Likewise.
892         Add libnss_files to routines and static-only-routines.
893         ($(objpfx)getent): Remove rule.
894         * resolv/Makefile: Add libnss_dns and libresolv to routines and
895         static-only-routines.
896
897 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
898
899         [BZ #13892]
900         * math/s_cexp.c: Include <float.h>.
901         (__cexp): Handle exp result overflowing not necessarily
902         overflowing both real and imaginary parts of result.
903         * math/s_cexpf.c: Likewise.
904         * math/s_cexpl.c: Likewise.
905         * math/libm-test.inc (cexp_test): Add more tests.
906         * sysdeps/i386/fpu/libm-test-ulps: Update.
907         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
908
909 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
910
911         * include/link.h (ELFW): New macro.
912         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
913         Replace ELF64_R_TYPE with ELFW(R_TYPE).
914
915 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
916
917         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
918         with uint64_t.
919
920 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
921
922         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
923         declaration.
924         (struct La_x32_retval): Likewise.
925
926 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
927
928         * sysdeps/x86_64/preconfigure.in: New file.
929         * sysdeps/x86_64/preconfigure: New generated file.
930
931 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
932
933         [BZ #13824]
934         * math/e_exp2l.c: Include <float.h>.
935         (__ieee754_exp2l): Handle overflow and underflow cases
936         separately.  Only pass fractional part of argument to
937         __ieee754_expl.
938         * math/libm-test.inc (exp2_test): Add more tests.
939
940         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
941         negating x to take absolute value.
942         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
943         Likewise.
944         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
945         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
946         Likewise.
947         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
948         computing low part if x was negated.
949         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
950
951 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
952
953         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
954         la_x32_gnu_pltexit.
955         (pltexit): Cast int_retval to ptrdiff_t.
956         * elf/tst-auditmod3b.c: Likewise.
957         * elf/tst-auditmod4b.c: Likewise.
958         * elf/tst-auditmod5b.c: Likewise.
959         * elf/tst-auditmod6b.c: Likewise.
960         * elf/tst-auditmod6c.c: Likewise.
961         * elf/tst-auditmod7b.c: Likewise.
962
963         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
964         and x32_gnu_pltexit.
965
966         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
967         __ELF_NATIVE_CLASS.
968         (La_x32_regs): New macro.
969         (La_x32_retval): Likewise.
970         (la_x32_gnu_pltenter): New function prototype.
971         (la_x32_gnu_pltexit): Likewise.
972
973 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
974
975         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
976         exponent.
977
978         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
979
980         * configure.in (libc_cv_cc_nofma): Check for option to disable
981         generation of FMA instructions.
982         * configure: Regenerate.
983         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
984         * sysdeps/ieee754/dbl-64/Makefile: New file.
985         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
986         Remove brandred-fma4.
987         (CFLAGS-brandred-fma4.c): Remove.
988         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
989         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
990         define.
991         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
992         define.
993
994 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
995
996         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
997         LLONG_MAX != LONG_MAX.
998         (_itoa_word): Use _ITOA_WORD_TYPE on value.
999         (_fitoa_word): Likewise.
1000         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
1001         LLONG_MAX != LONG_MAX.
1002         * stdio-common/_itowa.h: Include <_itoa.h>.
1003         (_itowa_word): Use _ITOA_WORD_TYPE on value.
1004         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
1005         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
1006         only if not defined.
1007         (_ITOA_WORD_TYPE): Likewise.
1008         (_itoa_word): Use _ITOA_WORD_TYPE on value.
1009         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
1010
1011 2012-03-21  David S. Miller  <davem@davemloft.net>
1012
1013         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1014
1015 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
1016
1017         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
1018         of x86_64 when setting libc_cv_slibdir, libdir and
1019         libc_cv_localedir.
1020         * sysdeps/unix/sysv/linux/configure: Regenerated.
1021
1022 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
1023
1024         * manual/lang.texi (Old Varargs): Remove section.
1025         (How Variadic): Update menu.
1026         (va_start): Do not mention varargs.h.
1027
1028 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
1029             Joseph Myers  <joseph@codesourcery.com>
1030
1031         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
1032         link test.
1033         * configure: Regenerated.
1034
1035 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
1036
1037         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
1038         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
1039         conformtest.pl
1040
1041 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
1042
1043         * NOTES: Remove.
1044         * Makefile (files-for-dist): Remove NOTES.
1045         (NOTES): Remove rule.
1046         * README: Don't refer to NOTES.
1047         * manual/creature.texi: Don't include macros.texi.
1048         * manual/intro.texi (creature.texi): Remove comment referring to
1049         NOTES.
1050
1051         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
1052         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
1053         * configure: Regenerated.
1054         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
1055         LIBC_TRY_CC_OPTION.
1056         (libc_cv_as_i686): Likewise.
1057         (libc_cv_cc_avx): Likewise.
1058         (libc_cv_cc_sse2avx): Likewise.
1059         (libc_cv_cc_fma4): Likewise.
1060         (libc_cv_cc_novzeroupper): Likewise.
1061         * sysdeps/i386/configure: Regenerated.
1062
1063         [BZ #13883]
1064         * sysdeps/i386/fpu/s_cexp.S: Remove.
1065         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
1066         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
1067         * math/libm-test.inc (cexp_test): Add more tests.
1068         * sysdeps/i386/fpu/libm-test-ulps: Update.
1069         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1070
1071 2012-03-21  Allan McRae  <allan@archlinux.org>
1072
1073         * timezone/Makefile: Do not install iso3166.tab and zone.tab
1074
1075 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
1076
1077         [BZ #13871]
1078         * math/w_exp2.c: Do not include <float.h>.
1079         (o_threshold, u_threshold): Remove.
1080         (__exp2): Calculate result before checking finiteness and calling
1081         __kernel_standard.
1082         * math/w_exp2f.c: Likewise.
1083         * math/w_exp2l.c: Likewise.
1084         * math/libm-test.inc (exp2_test): Require overflow exception for
1085         1e6 input.
1086
1087         [BZ #3866]
1088         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
1089         range of signed 64-bit integers before using fistpll.  Remove
1090         checks for whether integers fit in mantissa bits.
1091         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
1092         the range of signed 32-bit integers before using fistpl.  Remove
1093         checks for whether integers fit in mantissa bits.
1094         * sysdeps/i386/fpu/e_powl.S (p64): New object.
1095         (__ieee754_powl): Test for y outside the range of signed 64-bit
1096         integers before using fistpll.  Reduce 64-bit values to 63-bit
1097         ones as needed.
1098         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
1099         divide-by-zero is raised for zero to large negative powers.
1100         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
1101         (__ieee754_powl): Test for y outside the range of signed 64-bit
1102         integers before using fistpll.  Reduce 64-bit values to 63-bit
1103         ones as needed.
1104         * math/libm-test.inc (pow_test): Add more tests.
1105
1106 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
1107
1108         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
1109         <stdio-common/_itoa.h>.
1110         * debug/segfault.c: Likewise.
1111         * elf/dl-cache.c: Likewise.
1112         * elf/dl-minimal.c: Likewise.
1113         * elf/dl-misc.c: Likewise.
1114         * elf/dl-sysdep.c: Likewise.
1115         * elf/dl-version.c: Likewise.
1116         * elf/rtld.c: Likewise.
1117         * hurd/hurdsock.c: Likewise.
1118         * hurd/lookup-retry.c: Likewise.
1119         * malloc/malloc.c: Likewise.
1120         * malloc/mtrace.c: Likewise.
1121         * nscd/nscd_getgr_r.c: Likewise.
1122         * nscd/nscd_getpw_r.c: Likewise.
1123         * nscd/nscd_getserv_r.c: Likewise.
1124         * posix/getopt_init.c: Likewise.
1125         * posix/wordexp.c: Likewise.
1126         * stdio-common/_itoa.c: Likewise.
1127         * stdio-common/printf_fphex.c: Likewise.
1128         * stdio-common/vfprintf.c: Likewise.
1129         * string/_strerror.c: Likewise.
1130         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
1131         * sysdeps/i386/i686/hp-timing.h: Likewise.
1132         * sysdeps/mach/_strerror.c: Likewise.
1133         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
1134         * sysdeps/mach/hurd/sethostid.c: Likewise.
1135         * sysdeps/mach/hurd/xmknodat.c: Likewise.
1136         * sysdeps/mach/xpg-strerror.c: Likewise.
1137         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
1138         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
1139         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
1140         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
1141         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
1142         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
1143         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
1144         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
1145         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
1146         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
1147         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
1148         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
1149         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
1150         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
1151         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
1152         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
1153         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
1154         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
1155         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
1156         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
1157         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
1158
1159         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
1160
1161         * stdio-common/_itoa.h: Moved to ...
1162         * sysdeps/generic/_itoa.h: Here.
1163
1164         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
1165
1166         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
1167         instead of "_itoa.h" and "_itowa.h".
1168         * stdio-common/vfprintf.: Likewise.
1169
1170 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
1171
1172         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
1173         <bits/wordsize.h>.
1174         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
1175         (__signbit): Likwise.
1176         (llrintf): Likwise.
1177         (llrint): Likwise.
1178
1179 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
1180
1181         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
1182         __WORDSIZE != 64.
1183
1184 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
1185
1186         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
1187         OVERFLOW_EXCEPTION_OK.
1188         * math/libm-test.inc ("Philosophy"): Update comment about
1189         exception testing.
1190         (OVERFLOW_EXCEPTION): Define.
1191         (OVERFLOW_EXCEPTION_OK): Likewise.
1192         (INVALID_EXCEPTION_OK): Renumber.
1193         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
1194         (IGNORE_ZERO_INF_SIGN): Likewise.
1195         (test_exceptions): Handle FE_OVERFLOW.
1196         (exp10_test): Expect overflow exceptions.
1197         (exp2_test): Likewise.
1198         (expm1_test): Likewise.
1199         (nextafter_test): Likewise.
1200         (pow_test): Likewise.
1201         (scalbn_test): Likewise.
1202         (scalbln_test): Likewise.
1203
1204 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
1205
1206         * sysdeps/x86_64/bits/atomic.h
1207         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
1208         64bit integer.
1209         (atomic_exchange_acq): Likewise.
1210         (__arch_exchange_and_add_body): Likewise.
1211         (__arch_add_body): Likewise.
1212         (atomic_add_negative): Likewise.
1213         (atomic_add_zero): Likewise.
1214
1215 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
1216
1217         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
1218         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
1219
1220 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
1221
1222         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
1223         Check __x86_64__ instead of __WORDSIZE.
1224
1225 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
1226
1227         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
1228
1229 2012-03-19  David S. Miller  <davem@davemloft.net>
1230
1231         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1232
1233         * sysdeps/sparc/fpu/fenv_private.h: New file.
1234         * sysdeps/sparc/fpu/math_private.h: Use it.
1235         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
1236         Remove.
1237         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
1238         (libc_feholdexcept_setroundl): Remove.
1239         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
1240         Remove.
1241         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
1242         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
1243
1244 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
1245
1246         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
1247         int64_t instead of long int.
1248         (INSERT_WORDS64): Likwise.
1249
1250 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
1251
1252         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
1253         _Unwind_GetCFA return to _Unwind_Ptr first.
1254
1255 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
1256
1257         [BZ #13629]
1258         * math/s_clog.c: Include <float.h>.
1259         (__clog): Scale large or subnormal inputs.
1260         * math/s_clogf.c: Likewise.
1261         * math/s_clogl.c: Likewise.
1262         * math/s_clog10.c: Include <float.h>.
1263         (M_LOG10_2): Define.
1264         (__clog10): Scale large or subnormal inputs.
1265         * math/s_clog10f.c: Likewise.
1266         * math/s_clog10l.c: Likewise.
1267         * math/libm-test.inc (clog_test): Add more tests.
1268         (clog10_test): Likewise.
1269         * sysdeps/i386/fpu/libm-test-ulps: Update.
1270         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1271
1272         [BZ #11451]
1273         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
1274         x and y.
1275         * math/libm-test.inc (atan2_test): Add another test.
1276
1277         * Makerules (common-objdir-compile): Remove.
1278         * sysdeps/unix/Makefile (config-generated): Do not add
1279         $(unix-generated) to variable.
1280         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
1281         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
1282         Remove rule.
1283         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
1284         Likewise.
1285         [generic bits/local_lim.h] (before-compile): Do not append to
1286         variable.
1287         [generic bits/local_lim.h] (common-generated): Likewise.
1288         [generic sys/param.h] (before-compile): Do not append to variable.
1289         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
1290         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
1291         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
1292         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
1293         include.
1294         [generic sys/param.h] (sys/param.h-includes): Remove variable.
1295         [generic sys/param.h] (sys/param.h-includes): Remove rule.
1296         [generic sys/param.h] ($(addprefix
1297         $(common-objpfx),$(sys/param.h-includes))): Likewise.
1298         [generic sys/param.h] (common-generated): Do not append to
1299         variable.
1300         [generic sys/param.h] (sysdep_headers): Likewise.
1301         [generic bits/errno.h] (before-compile): Do not append to
1302         variable.
1303         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
1304         rule.
1305         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
1306         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
1307         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
1308         [generic bits/errno.h] (common-generated): Do not append to
1309         variable.
1310         [generic bits/ioctls.h] (before-compile): Do not append to
1311         variable.
1312         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
1313         rule.
1314         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
1315         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
1316         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
1317         rule.
1318         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
1319         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
1320         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
1321         [generic bits/ioctls.h] (common-generated): Do not append to
1322         variable.
1323         [generic sys/syscall.h] (syscall.h): Remove variable.
1324         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
1325         rule.
1326         [generic sys/syscall.h] (before-compile): Do not append to
1327         variable.
1328         [generic sys/syscall.h] (common-generated): Likewise.
1329         * sysdeps/unix/errnos-tmpl.c: Remove file.
1330         * sysdeps/unix/errnos.awk: Likewise.
1331         * sysdeps/unix/ioctls-tmpl.c: Likewise.
1332         * sysdeps/unix/ioctls.awk: Likewise.
1333         * sysdeps/unix/mk-local_lim.c: Likewise.
1334         * sysdeps/unix/snarf-ioctls: Likewise.
1335
1336 2012-03-19  Richard Henderson  <rth@twiddle.net>
1337
1338         * sysdeps/i386/fpu/fenv_private.h: New file.
1339         * sysdeps/i386/fpu/math_private.h: Use it.
1340         (math_opt_barrier, math_force_eval): Remove.
1341         (libc_feholdexcept_setround_53bit): Remove.
1342         (libc_feupdateenv_53bit): Remove.
1343         * sysdeps/x86_64/fpu/math_private.h: Likewise.
1344         (math_opt_barrier, math_force_eval): Remove.
1345         (libc_feholdexcept): Remove.
1346         (libc_feholdexcept_setround): Remove.
1347         (libc_fetestexcept, libc_fesetenv): Remove.
1348         (libc_feupdateenv_test): Remove.
1349         (libc_feupdateenv, libc_feholdsetround): Remove.
1350         (libc_feresetround): Remove.
1351
1352         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
1353         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
1354
1355         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
1356         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
1357         (libc_feupdateenv_testl): New.
1358         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
1359         (libc_feupdateenv_testf): New.
1360         (libc_feupdateenv): Use libc_feupdateenv_test.
1361         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
1362         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
1363
1364         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
1365         (libc_feholdsetroundf, libc_feholdsetroundl): New.
1366         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
1367         (libc_feresetround_noex): New.
1368         (libc_feresetround_noexf): New.
1369         (libc_feresetround_noexl): New.
1370         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
1371         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
1372         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
1373         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
1374         SET_RESTORE_ROUND.
1375         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
1376         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
1377         (__cos): Likewise.
1378         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
1379         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
1380         SET_RESTORE_ROUND_NOEX.
1381         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
1382         SET_RESTORE_ROUND_NOEXF.
1383         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
1384         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
1385         (libc_feholdsetroundf): New.
1386         (libc_feresetround, libc_feresetroundf): New.
1387
1388         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
1389         (libc_feholdexcept_setround_53bit): Convert from macro to function.
1390         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
1391
1392         * sysdeps/generic/math_private.h: Include <fenv.h>.
1393         (default_libc_feholdexcept): New.
1394         (default_libc_feholdexcept_setround): New.
1395         (default_libc_fesetenv, default_libc_feupdateenv): New.
1396         (libc_feholdexcept): Only define if undefined.
1397         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
1398         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
1399         (libc_feholdexcept_setroundl): Likewise.
1400         (libc_feholdexcept_setround_53bit): Likewise.
1401         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
1402         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
1403         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
1404         (libc_feupdateenv_53bit): Likewise.
1405         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
1406         (libc_feholdexcept): Convert from macro to inline function.
1407         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
1408         (libc_fesetenv, libc_feupdateenv): Likewise.
1409
1410         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
1411         not previously defined.
1412         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
1413         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
1414         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
1415         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
1416         * sysdeps/ieee754/flt-32/math_private.h: New file.
1417         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
1418         math_private.h below SET_FLOAT_WORD.
1419         (__isnan, __isinf_ns, __finite): Remove.
1420         (__isnanf, __isinf_nsf, __finitef): Remove.
1421
1422 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
1423
1424         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1425
1426 2012-03-17  David S. Miller  <davem@davemloft.net>
1427
1428         [BZ #6471]
1429         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
1430         for 2.16.
1431
1432 2012-03-16  David S. Miller  <davem@davemloft.net>
1433
1434         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
1435         warnings.
1436
1437         [BZ #6471]
1438         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
1439         properly.
1440         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
1441         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
1442         sysdep_routines when subdir is sysvipc.
1443         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
1444         __getshmlba helper.
1445
1446         * sysdeps/sparc/fpu/libm-test/ulps: Update.
1447
1448 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
1449
1450         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
1451         [__LP64__].
1452
1453 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
1454
1455         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
1456         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
1457         (__lround): Renamed to ...
1458         (__llround): This.  Replace long int with long long int.
1459         Define lround functions as aliases of llround functions.
1460         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
1461
1462 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
1463
1464         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
1465         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
1466         adresses to uintptr_t.  Replace "long int" and "unsigned long
1467         int" with "greg_t" on va_arg.
1468
1469 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
1470
1471         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
1472         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
1473
1474         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
1475         Move e_machine check before EI_CLASS check.  Handle x32
1476         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
1477         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
1478         SKIP_EM_IA_64 and include
1479         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
1480
1481         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
1482         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
1483         (add_system_dir): New macro.
1484
1485         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
1486         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
1487
1488 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
1489
1490         [BZ #2551]
1491         [BZ #2552]
1492         [BZ #2553]
1493         [BZ #2554]
1494         [BZ #2562]
1495         [BZ #2563]
1496         [BZ #2565]
1497         [BZ #2566]
1498         [BZ #2576]
1499         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
1500         (y0): Likewise.
1501         * math/w_j0f.c (j0f): Likewise.
1502         (y0f): Likewise.
1503         * math/w_j0l.c (__j0l): Likewise.
1504         (__y0l): Likewise.
1505         * math/w_j1.c (j1): Likewise.
1506         (y1): Likewise.
1507         * math/w_j1f.c (j1f): Likewise.
1508         (y1f): Likewise.
1509         * math/w_j1l.c (__j1l): Likewise.
1510         (__y1l): Likewise.
1511         * math/w_jn.c (jn): Likewise.
1512         (yn): Likewise.
1513         * math/w_jnf.c (jnf): Likewise.
1514         (ynf): Likewise.
1515         * math/w_jnl.c (__jnl): Likewise.
1516         (__ynl): Likewise.
1517         * math/libm-test.inc (j0_test): Add more tests.
1518         (j1_test): Likewise.
1519         (jn_test): Likewise.  Add trailing semicolon to existing test.
1520         (y0_test): Likewise.
1521         (y1_test): Likewise.
1522         * sysdeps/i386/fpu/libm-test-ulps: Update.
1523         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1524
1525         [BZ #13851]
1526         [BZ #13854]
1527         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
1528         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
1529         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
1530         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
1531         (__tanl): Set errno for infinite argument.
1532         * sysdeps/i386/fpu/mptan.c: Remove.
1533         * sysdeps/i386/fpu/s_tan.S: Likewise.
1534         * sysdeps/i386/fpu/s_tanl.S: Likewise.
1535         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
1536         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
1537         * math/libm-test.inc (tan_test): Add more tests and enable more
1538         tests for double and long double.
1539         * sysdeps/i386/fpu/libm-test-ulps: Update.
1540         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1541
1542 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
1543
1544         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
1545         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
1546
1547 2012-03-16  Roland McGrath  <roland@hack.frob.com>
1548
1549         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
1550         * configure.in: Use it for both main tree and add-ons.
1551         * configure: Regenerated.
1552
1553 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
1554
1555         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
1556
1557 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
1558
1559         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
1560         in comment.
1561
1562         [BZ #13851]
1563         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
1564         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
1565         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
1566         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
1567         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
1568         infinite argument.
1569         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
1570         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
1571         != 0 for prec == 2.
1572         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
1573         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
1574         * sysdeps/i386/fpu/s_cosl.S: Likewise.
1575         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
1576         * sysdeps/i386/fpu/s_sinl.S: Likewise.
1577         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
1578         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
1579         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
1580         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
1581         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
1582         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
1583         * math/libm-test.inc (cos_test): Add more tests and enable more
1584         tests for long double.
1585         (sin_test): Likewise.
1586         (sincos_test): Likewise.
1587         * sysdeps/i386/fpu/libm-test-ulps: Update.
1588         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1589
1590 2012-03-16  David S. Miller  <davem@davemloft.net>
1591
1592         * sysdeps/sparc/fpu/math_private.h: New file.
1593
1594 2012-03-15  David S. Miller  <davem@davemloft.net>
1595
1596         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
1597         file.
1598         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
1599         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
1600         file.
1601         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
1602         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
1603         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
1604         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
1605         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
1606         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
1607         sysdep routines.
1608         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
1609
1610         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
1611         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
1612
1613         * sysdeps/sparc/sparc-ifunc.h: New file.
1614         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
1615         sparc-ifunc.h
1616         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
1617         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
1618         Likewise.
1619         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
1620         Likewise.
1621         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
1622         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
1623         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
1624         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
1625         Likewise.
1626         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
1627         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
1628         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
1629         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
1630         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
1631         Likewise.
1632         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
1633         Likewise.
1634         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
1635         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
1636         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
1637         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
1638         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
1639         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
1640         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
1641         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
1642         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
1643         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
1644         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
1645         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
1646         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
1647         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
1648         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
1649         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
1650         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
1651         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
1652         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
1653         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
1654         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
1655         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
1656         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
1657         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
1658
1659 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
1660
1661         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
1662         scaling.
1663         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1664
1665 2012-03-15  Andreas Jaeger  <aj@suse.de>
1666
1667         [BZ #13852]
1668         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
1669         ieee754/flt-32 implementation for sin, cos and sincos.
1670         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
1671         * sysdeps/i386/fpu/s_cosf.S: Likewise.
1672         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
1673         * sysdeps/i386/fpu/s_sinf.S: Likewise.
1674         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
1675         ieee754/flt-32 implementation for tan.
1676
1677         * math/libm-test.inc (cos_test): Enable some large input tests for
1678         float as well
1679         (sin_test): Likewise.
1680         (sincos_test): Likewise.
1681         (tan_test): Add tests for large input.
1682
1683         * sysdeps/i386/fpu/libm-test-ulps: Update.
1684
1685 2012-03-15  Andreas Jaeger  <aj@suse.de>
1686
1687         [BZ #13658]
1688         * math/libm-test.inc (cos_test): Add more test cases.
1689         (sin_test): Likewise.
1690         (sincos_test): Likewise.
1691
1692 2012-03-15  Andreas Jaeger  <aj@suse.de>
1693
1694         [BZ #13837]
1695         * math/libm-test.inc (cos_test): Add a test case for large input
1696         value.
1697         (sin_test): Likewise.
1698         (sincos_test): Likewise.
1699
1700 2012-03-15  Andreas Jaeger  <aj@suse.de>,
1701         Joseph Myers  <joseph@codesourcery.com>
1702
1703         [BZ #13658]
1704         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
1705         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
1706         * sysdeps/i386/fpu/branred.c: Likewise.
1707         * sysdeps/i386/fpu/dosincos.c: Likewise.
1708         * sysdeps/i386/fpu/mpa.c: Likewise.
1709         * sysdeps/i386/fpu/s_cos.S: Likewise.
1710         * sysdeps/i386/fpu/s_sin.S: Likewise.
1711         * sysdeps/i386/fpu/s_sincos.S: Likewise.
1712         * sysdeps/i386/fpu/sincos32.c: Likewise.
1713
1714         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
1715         Define.
1716         (libc_feupdateenv_53bit): Define.
1717         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
1718         Define.
1719         (libc_feupdateenv_53bit): Define.
1720
1721         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
1722         53 bit (without extend i386 double precision).
1723
1724         * math/libm-test.inc (sincos_test): Add tests for large input.
1725         (sin): Likewise.
1726         (cos): Likewise.
1727
1728         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
1729
1730 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
1731
1732         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1733
1734 2012-03-15  David S. Miller  <davem@davemloft.net>
1735
1736         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
1737         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
1738         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
1739         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
1740         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
1741         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
1742         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
1743         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
1744         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
1745         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
1746         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
1747         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
1748         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
1749         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
1750         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
1751         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
1752         file.
1753         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
1754         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
1755         file.
1756         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
1757         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
1758         file.
1759         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
1760         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
1761         file.
1762         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
1763         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
1764         fmin/fmax sysdep routines.
1765         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
1766
1767 2012-03-14  David S. Miller  <davem@davemloft.net>
1768
1769         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
1770         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
1771         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
1772         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
1773         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
1774         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
1775         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
1776         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
1777         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
1778         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
1779         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
1780         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
1781         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
1782         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
1783         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
1784         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
1785         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
1786         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
1787         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
1788         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
1789         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
1790         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
1791         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
1792         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
1793         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
1794         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
1795         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
1796         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
1797         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
1798         routines.
1799         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
1800         file.
1801         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
1802         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
1803         file.
1804         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
1805         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
1806         file.
1807         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
1808         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
1809         file.
1810         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
1811         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
1812         file.
1813         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
1814         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
1815         file.
1816         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
1817         file.
1818         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
1819         file.
1820         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
1821         file.
1822         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
1823         New file.
1824         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
1825         file.
1826         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
1827         file.
1828         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
1829         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
1830         file.
1831         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
1832         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
1833         file.
1834         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
1835         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
1836         file.
1837         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
1838         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
1839         VIS3 routines.
1840
1841         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
1842         New file.
1843
1844         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1845
1846         * sysdeps/sparc/configure.in: New file.
1847         * sysdeps/sparc/configure: Generate.
1848         * configure.in (libc_cv_sparc_as_vis3): Substitute.
1849         * configure: Regenerate.
1850         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
1851         * config.make.in (have-as-vis3): New.
1852         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
1853         available use -Av9d instead of -Av9a.
1854         * sysdeps/sparc/sparc64/Makefile: Likewise.
1855         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
1856         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
1857         New file.
1858         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
1859         file.
1860         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
1861         New file.
1862         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
1863         file.
1864         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
1865         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
1866         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
1867         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
1868         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
1869
1870         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
1871         fzeros/fnegs to load 0x80000000 into a float register instead of
1872         using the stack.
1873         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
1874
1875 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
1876
1877         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1878         bits/syscall.h.
1879         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
1880         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
1881         ($(inst_includedir)/bits/syscall.h): Remove rule.
1882         ($(objpfx)bits/syscall.d): Include instead of
1883         $(objpfx)syscall-list.d.
1884         (generated): Change syscall-list.h and syscall-list.d to
1885         bits/syscall.h and bits/syscall.d.
1886
1887 2012-03-14  Roland McGrath  <roland@hack.frob.com>
1888
1889         [BZ #13846]
1890         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
1891
1892 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
1893
1894         [BZ #13841]
1895         * math/s_csqrt.c: Include <float.h>.
1896         (__csqrt): Scale large or subnormal inputs.
1897         * math/s_csqrtf.c: Likewise.
1898         * math/s_csqrtl.c: Likewise.
1899         * math/libm-test.inc (csqrt_test): Add more tests.
1900         * sysdeps/i386/fpu/libm-test-ulps: Update.
1901         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1902
1903         [BZ #13840]
1904         * math/libm-test.inc (hypot_test): Add more tests.
1905
1906 2012-03-13  David S. Miller  <davem@davemloft.net>
1907
1908         [BZ #13840]
1909         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
1910         double-precision for the calculation instead of scaling.
1911
1912 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
1913
1914         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
1915         manipulate bits before adding and subtracting TWO52[sx].
1916         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
1917         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
1918         Likewise.
1919         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
1920
1921 2012-03-13  David S. Miller  <davem@davemloft.net>
1922
1923         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
1924         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
1925         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
1926         rtld-global-offsets.h
1927         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
1928
1929         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
1930         large parameters.
1931
1932         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
1933
1934         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
1935         'err' in the ifdef scope in which it is actually used.
1936
1937         * nss/nss_db/db-init.c: Include string.h
1938
1939 2012-03-12  David S. Miller  <davem@davemloft.net>
1940
1941         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
1942         masking out of the most significant byte of random value used.
1943         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
1944         Fix coding style in previous change.
1945
1946         * sysdeps/unix/sysv/linux/kernel-features.h
1947         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
1948         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
1949         expression.
1950         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
1951         later.
1952
1953 2012-03-11  David S. Miller  <davem@davemloft.net>
1954
1955         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
1956         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
1957         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
1958         for 'resultvar' otherwise things get truncated on 64-bit.
1959
1960         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
1961         Fix masking out of the most significant byte of random value used.
1962
1963         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1964
1965 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
1966
1967         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1968
1969 2012-03-09  David S. Miller  <davem@davemloft.net>
1970
1971         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
1972         variables with appropriate CPP guards.
1973         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
1974         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
1975         on resulting framesize and the management of the outregs buffer for pltexit.
1976         Preserve floating point return values across _dl_call_pltexit call.
1977         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
1978         framesize and the management of the outregs buffer for pltexit.
1979         Preserve floating point return values across _dl_call_pltexit
1980         call.
1981         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
1982         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
1983         (print_exit): Fix format string for return register value.
1984
1985 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
1986
1987         * sunrpc/Makefile (others): Add rpcgen.
1988         ($(objpfx)rpcgen): Remove special build rule and dependency on
1989         libc.
1990         * sunrpc/rpcgen.c: New file.
1991
1992 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
1993
1994         [BZ #13673]
1995         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
1996         * stdio-common/bug-vfprintf-nargs.c: Likewise.
1997         * sysdeps/i386/crti.S: Likewise.
1998         * sysdeps/i386/crtn.S: Likewise.
1999         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
2000         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
2001         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
2002         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
2003         * sysdeps/sh/crti.S: Likewise.
2004         * sysdeps/sh/crtn.S: Likewise.
2005         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
2006
2007         [BZ #13673]
2008         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
2009         with URL.
2010         * locale/programs/locfile-kw.gperf: Likewise.
2011         * locale/programs/charmap-kw.h: Regenerated.
2012         * locale/programs/locfile-kw.h: Likewise.
2013
2014         [BZ #13673]
2015         * intl/plural.y: Replace FSF snail mail address with URL.
2016         * intl/plural.c: Regenerated.
2017
2018 2012-03-09  Richard Henderson  <rth@twiddle.net>
2019
2020         * include/math_private.h: Remove file.
2021         * math/math_private.h: Move file ...
2022         * sysdeps/generic/math_private.h: ... here.
2023
2024         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
2025         * sysdeps/powerpc/fpu/math_private.h: Likewise.
2026         * sysdeps/x86_64/fpu/math_private.h: Likewise.
2027
2028         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
2029         and <math_private.h>.
2030         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
2031         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
2032         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
2033         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
2034         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
2035         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
2036         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
2037         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
2038         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
2039         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
2040         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
2041         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
2042         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
2043         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
2044         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
2045         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
2046         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
2047         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
2048         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
2049         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
2050         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
2051         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
2052         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
2053         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
2054         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
2055         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
2056         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
2057         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
2058         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
2059         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
2060         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
2061         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
2062         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
2063         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
2064         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
2065         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
2066         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
2067         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
2068         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
2069         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
2070         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
2071         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
2072         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
2073         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
2074         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
2075         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
2076         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
2077         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
2078         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
2079         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
2080         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
2081         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
2082         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
2083         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
2084         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
2085         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
2086         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
2087         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
2088         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
2089         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
2090         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2091         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
2092         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2093         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
2094         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
2095         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
2096         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
2097         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
2098         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
2099         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
2100         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
2101         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
2102         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
2103         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
2104         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
2105         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
2106         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
2107         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
2108         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
2109         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
2110         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
2111         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
2112         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
2113         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
2114         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
2115         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
2116         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
2117         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
2118         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
2119         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
2120         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
2121         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
2122         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
2123         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
2124         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
2125         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
2126         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
2127         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
2128         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
2129         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
2130         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
2131         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
2132         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
2133         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
2134         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
2135         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
2136         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
2137         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
2138         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
2139         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
2140         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
2141         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
2142         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
2143         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
2144         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
2145         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
2146         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
2147         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
2148         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
2149         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
2150         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
2151         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
2152         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
2153         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
2154         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
2155         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
2156         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
2157         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
2158         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
2159         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
2160         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
2161         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
2162         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
2163         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
2164         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
2165         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
2166         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
2167         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
2168         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
2169         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
2170         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
2171         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
2172         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
2173         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
2174         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
2175         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
2176         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
2177         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
2178         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
2179         * sysdeps/ieee754/k_standard.c: Likewise.
2180         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
2181         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
2182         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
2183         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
2184         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
2185         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
2186         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
2187         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
2188         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
2189         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
2190         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
2191         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
2192         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
2193         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
2194         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
2195         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
2196         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
2197         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
2198         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
2199         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
2200         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
2201         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
2202         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
2203         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
2204         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
2205         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
2206         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
2207         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
2208         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
2209         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
2210         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
2211         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
2212         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
2213         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
2214         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
2215         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
2216         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
2217         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
2218         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
2219         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
2220         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
2221         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
2222         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
2223         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
2224         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
2225         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
2226         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
2227         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
2228         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
2229         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
2230         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
2231         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
2232         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
2233         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
2234         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
2235         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
2236         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
2237         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
2238         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
2239         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
2240         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
2241         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
2242         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
2243         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
2244         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
2245         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
2246         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
2247         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
2248         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
2249         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
2250         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
2251         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
2252         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
2253         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
2254         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
2255         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
2256         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
2257         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
2258         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
2259         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
2260         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
2261         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
2262         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
2263         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
2264         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
2265         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
2266         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
2267         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
2268         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
2269         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
2270         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
2271         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
2272         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
2273         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
2274         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
2275         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
2276         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
2277         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
2278         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
2279         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
2280         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
2281         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
2282         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
2283         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
2284         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
2285         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
2286         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
2287         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
2288         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
2289         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
2290         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
2291         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
2292         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
2293         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
2294         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
2295         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
2296         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
2297         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
2298         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
2299         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
2300         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
2301         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
2302         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
2303         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
2304         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
2305         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
2306         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
2307         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
2308         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
2309         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
2310         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
2311         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
2312         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
2313         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
2314         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
2315         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
2316         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
2317         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
2318         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
2319         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
2320         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
2321         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
2322         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
2323         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
2324         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
2325         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
2326         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
2327         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
2328         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
2329         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
2330         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
2331         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
2332         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
2333         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
2334         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
2335         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
2336         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
2337         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
2338         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
2339         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
2340         * sysdeps/ieee754/s_lib_version.c: Likewise.
2341         * sysdeps/ieee754/s_matherr.c: Likewise.
2342         * sysdeps/ieee754/s_signgam.c: Likewise.
2343         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
2344         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
2345         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
2346         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
2347         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
2348         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
2349         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
2350         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
2351         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
2352         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
2353         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
2354         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
2355         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
2356         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
2357         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
2358         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
2359         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
2360         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
2361         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
2362         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
2363         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
2364
2365 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
2366
2367         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
2368         * sunrpc/rpc_main.c: Likewise.
2369         * sunrpc/rpc_svcout.c: Likewise.
2370
2371 2012-03-09  David S. Miller  <davem@davemloft.net>
2372
2373         * include/math_private.h: New file.
2374
2375 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
2376
2377         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
2378         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
2379         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
2380         from <bits/socket_type.h>.
2381         (enum __socket_type): Don't define here.
2382         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
2383         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2384         bits/socket_type.h.
2385
2386         [BZ #13566]
2387         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
2388         checking __USE_GNU.
2389
2390         * Makerules ($(inst_includedir)/%.h): New rule.
2391         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
2392         (install-others): Remove variable setting.
2393         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
2394
2395 2012-03-08  Richard Henderson  <rth@twiddle.net>
2396
2397         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
2398         from macro to inline function; merge with the
2399         !__LIBC_INTERNAL_MATH_INLINES version.
2400         (__ieee754_sqrtf): Likewise.
2401
2402         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
2403         to inline function.
2404         (__rintf, __floor, __floorf): Likewise.
2405
2406         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
2407         macro to inline function.
2408         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
2409
2410         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
2411         not <math/math_private.h>.
2412
2413 2012-03-08  David S. Miller  <davem@davemloft.net>
2414
2415         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
2416         copyright year.
2417         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
2418
2419 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
2420
2421         * resolv/gai_misc.c (handle_requests): Fix struct timespec
2422         normalization.
2423         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
2424         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
2425
2426 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
2427
2428         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
2429         be defined individually, they must be defined as a block.  Define
2430         S for printing a string instead of hidint the different by using a
2431         macro for adding the 'l'.
2432         * stdio-common/tst-fphex-wide.c: Adjust.
2433
2434 2012-03-07  Marek Polacek  <polacek@redhat.com>
2435
2436         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
2437
2438 2012-03-08  Marek Polacek  <polacek@redhat.com>
2439
2440         [BZ #13806]
2441         * stdio-common/Makefile (tests): Add tst-fphex-wide.
2442         * stdio-common/tst-fphex.c: Define a few macros to make the
2443         test reusable.  Use them.
2444         * stdio-common/tst-fphex-wide.c: New file.
2445
2446 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
2447
2448         [BZ #6911]
2449         * manual/macros.texi (gnusystems): New macro.
2450         (nongnusystems): Likewise.
2451         (gnulinuxhurdsystems): Likewise.
2452         (gnuhurdsystems): Likewise..
2453         (gnulinuxsystems): Likewise.
2454         * manual/charset.texi: Use new macros or @theglibc{} to refer to
2455         variants of the GNU system, not "GNU system".
2456         * manual/conf.texi: Likewise.
2457         * manual/errno.texi: Likewise.  Update example of errno macro
2458         expansion.
2459         * manual/filesys.texi: Likewise.
2460         (getumask): Document as specific to GNU/Hurd.
2461         * manual/install.texi: Likewise.  Reword some references to
2462         GNU/Linux.
2463         * manual/intro.texi: Likewise.
2464         * manual/io.texi: Likewise.
2465         (File Name Portability): Detail which constraints are inapplicable
2466         to all GNU systems and which are only inapplicable to GNU/Hurd.
2467         * manual/job.texi: Likewise.
2468         * manual/llio.texi: Likewise.
2469         (O_NOCTTY): Document as present on GNU/Linux.
2470         * manual/maint.texi: Likewise.
2471         * manual/memory.texi: Likewise.
2472         * manual/pattern.texi: Likewise.
2473         * manual/pipe.texi: Likewise.
2474         * manual/process.texi: Likewise.
2475         * manual/resource.texi: Likewise.
2476         (RUSAGE_CHILDREN): Remove statement about specifying a particular
2477         child on GNU/Hurd.
2478         * manual/setjmp.texi: Likewise.
2479         * manual/signal.texi: Likewise.
2480         * manual/startup.texi: Likewise.
2481         * manual/stdio.texi: Likewise.
2482         * manual/terminal.texi: Likewise.
2483         (ONLCR): Document as POSIX.
2484         (OXTABS): Document availability on GNU/Linux as XTABS.
2485         (ONOEOT): Document availability separately from other bits.
2486         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
2487         * manual/time.texi: Likewise.
2488         * manual/users.texi: Likewise.
2489         * INSTALL: Regenerated.
2490         * sysdeps/gnu/errlist.c: Regenerated.
2491
2492         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
2493         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
2494         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
2495         puts.
2496         * configure: Regenerated.
2497
2498 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
2499
2500         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
2501         default includes instead of AC_HEADER_CHECK.
2502         * sysdeps/i386/configure: Regenerated.
2503
2504         [BZ #10716]
2505         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
2506         * math/s_cacoshf.c (__cacoshf): Likewise.
2507         * math/s_cacoshl.c (__cacoshl): Likewise.
2508         * math/s_casinh.c (__casinh): Set signs of result from argument.
2509         * math/s_casinhf.c (__casinhf): Likewise.
2510         * math/s_casinhl.c (__casinhl): Likewise.
2511         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
2512         (casinh_test): Add more tests.
2513         * sysdeps/i386/fpu/libm-test-ulps: Update.
2514         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2515
2516 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
2517
2518         * po/zh_TW.po: Update from translation team.
2519
2520         * login/Makefile (distribute): Remove variable.
2521         * catgets/Makefile: Likewise.
2522         * mach/Makefile: Likewise.
2523         * malloc/Makefile: Likewise.
2524         * misc/Makefile: Likewise.
2525         * iconv/Makefile: Likewise.
2526         * nscd/Makefile: Likewise.
2527         * hurd/Makefile: Likewise.
2528         * manual/Makefile: Likewise.
2529         * locale/Makefile: Likewise.
2530         * intl/Makefile: Likewise.
2531         * conform/Makefile: Likewise.
2532         * nss/Makefile: Likewise.
2533         * time/Makefile: Likewise.
2534         * soft-fp/Makefile: Likewise.
2535         * dirent/Makefile: Likewise.
2536         * gmon/Makefile: Likewise.
2537         * po/Makefile: Likewise.
2538         * rt/Makefile: Likewise.
2539         * socket/Makefile: Likewise.
2540         * math/Makefile: Likewise.
2541         * signal/Makefile: Likewise.
2542         * debug/Makefile: Likewise.
2543         * elf/Makefile: Likewise.
2544         * timezone/Makefile: Likewise.
2545         * stdlib/Makefile: Likewise.
2546         * iconvdata/Makefile: Likewise.
2547         * sunrpc/Makefile: Likewise.
2548         * io/Makefile: Likewise.
2549         * argp/Makefile: Likewise.
2550         * inet/Makefile: Likewise.
2551         * hesiod/Makefile: Likewise.
2552         * grp/Makefile: Likewise.
2553         * csu/Makefile: Likewise.
2554         * wctype/Makefile: Likewise.
2555         * crypt/Makefile: Likewise.
2556         * libio/Makefile: Likewise.
2557         * string/Makefile: Likewise.
2558         * nis/Makefile: Likewise.
2559         * resolv/Makefile: Likewise.
2560         * stdio-common/Makefile: Likewise.
2561         * wcsmbs/Makefile: Likewise.
2562         * dlfcn/Makefile: Likewise.
2563         * posix/Makefile: Likewise.
2564
2565         * timezone/Makefile: Don't install timezone files, just the programs
2566         and scripts.
2567
2568 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
2569
2570         * nss/databases.def: Add missing gshadow entry.
2571
2572         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
2573
2574 2012-03-06  Marek Polacek  <polacek@redhat.com>
2575
2576         [BZ #13726]
2577         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
2578         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
2579         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
2580         * stdio-common/tst-long-dbl-fphex.c: New file.
2581
2582 2012-03-06  David S. Miller  <davem@davemloft.net>
2583
2584         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
2585         (set_obp_int): New function.
2586         (get_obp_int): New function.
2587         (__get_clockfreq_via_dev_openprom): Likewise.
2588         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
2589         Avoid unused variable warnings on 'val' and use builtin_expect.
2590         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
2591         __builtin_expect.
2592         (INLINE_CLONE_SYSCALL): Likewise.
2593
2594 2012-03-05  David S. Miller  <davem@davemloft.net>
2595
2596         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2597
2598 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
2599
2600         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2601
2602         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
2603         only for |x| >= 40.
2604         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
2605
2606 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
2607
2608         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
2609         Replace gettimeofday with __vdso_gettimeofday.
2610
2611         * sysdeps/unix/sysv/linux/x86_64/init-first.c
2612         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
2613         __vdso_clock_gettime and __vdso_getcpu.
2614
2615         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
2616         time with __vdso_time.
2617
2618 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
2619
2620         * manual/lang.texi (size_t): Note types to which size_t may be
2621         equivalent with the GNU C Library, but do not describe when
2622         differences between them are significant.
2623
2624 2012-03-05  Andreas Jaeger  <aj@suse.de>
2625
2626         * sysdeps/i386/fpu/libm-test-ulps: Update.
2627
2628 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
2629
2630         [BZ #3976]
2631         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
2632         (__ieee754_pow): Save and restore rounding mode and use
2633         round-to-nearest for main computations.
2634         * math/libm-test.inc (pow_test_tonearest): New function.
2635         (pow_test_towardzero): Likewise.
2636         (pow_test_downward): Likewise.
2637         (pow_test_upward): Likewise.
2638         (main): Call the new functions.
2639         * sysdeps/i386/fpu/libm-test-ulps: Update.
2640         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2641
2642         [BZ #3976]
2643         * math/libm-test.inc (cosh_test_tonearest): New function.
2644         (cosh_test_towardzero): Likewise.
2645         (cosh_test_downward): Likewise.
2646         (cosh_test_upward): Likewise.
2647         (sinh_test_tonearest): Likewise.
2648         (sinh_test_towardzero): Likewise.
2649         (sinh_test_downward): Likewise.
2650         (sinh_test_upward): Likewise.
2651         (main): Call the new functions.
2652         * sysdeps/i386/fpu/libm-test-ulps: Update.
2653         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2654
2655 2012-03-05  Tom de Vries  <tom@codesourcery.com>
2656
2657         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
2658         default stack guard is set in last bytes.
2659         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
2660
2661 2012-03-05  Kees Cook  <keescook@chromium.org>
2662
2663         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
2664
2665         [BZ #13656]
2666         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
2667         possibly allocate from heap instead of stack.
2668         * stdio-common/bug-vfprintf-nargs.c: New file.
2669         * stdio-common/Makefile (tests): Add nargs overflow test.
2670
2671 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
2672
2673         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2674
2675 2012-03-03  Marek Polacek  <polacek@redhat.com>
2676
2677         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
2678         * math/math_private.h: Likewise.
2679         * stdlib/tst-strtod.c: Likewise.
2680         * sysdeps/i386/i486/bits/atomic.h: Likewise.
2681         * sysdeps/x86_64/bits/atomic.h: Likewise.
2682
2683 2012-03-02  David S. Miller  <davem@davemloft.net>
2684
2685         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
2686         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
2687         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
2688         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
2689         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
2690         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
2691         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
2692         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
2693
2694 2012-03-02  Roland McGrath  <roland@hack.frob.com>
2695
2696         [BZ #13792]
2697         * manual/examples/README: New file, says the example source files
2698         can be used under GPL>=2.
2699         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
2700         line containing just "*/".
2701         * manual/examples/add.c: Add copyright header (GPL>=2).
2702         * manual/examples/argp-ex1.c: Likewise.
2703         * manual/examples/argp-ex2.c: Likewise.
2704         * manual/examples/argp-ex3.c: Likewise.
2705         * manual/examples/argp-ex4.c: Likewise.
2706         * manual/examples/atexit.c: Likewise.
2707         * manual/examples/db.c: Likewise.
2708         * manual/examples/dir.c: Likewise.
2709         * manual/examples/dir2.c: Likewise.
2710         * manual/examples/execinfo.c: Likewise.
2711         * manual/examples/filecli.c: Likewise.
2712         * manual/examples/filesrv.c: Likewise.
2713         * manual/examples/fmtmsgexpl.c: Likewise.
2714         * manual/examples/genpass.c: Likewise.
2715         * manual/examples/inetcli.c: Likewise.
2716         * manual/examples/inetsrv.c: Likewise.
2717         * manual/examples/isockad.c: Likewise.
2718         * manual/examples/longopt.c: Likewise.
2719         * manual/examples/memopen.c: Likewise.
2720         * manual/examples/memstrm.c: Likewise.
2721         * manual/examples/mkfsock.c: Likewise.
2722         * manual/examples/mkisock.c: Likewise.
2723         * manual/examples/mygetpass.c: Likewise.
2724         * manual/examples/pipe.c: Likewise.
2725         * manual/examples/popen.c: Likewise.
2726         * manual/examples/rprintf.c: Likewise.
2727         * manual/examples/search.c: Likewise.
2728         * manual/examples/select.c: Likewise.
2729         * manual/examples/setjmp.c: Likewise.
2730         * manual/examples/sigh1.c: Likewise.
2731         * manual/examples/sigusr.c: Likewise.
2732         * manual/examples/stpcpy.c: Likewise.
2733         * manual/examples/strdupa.c: Likewise.
2734         * manual/examples/strftim.c: Likewise.
2735         * manual/examples/strncat.c: Likewise.
2736         * manual/examples/subopt.c: Likewise.
2737         * manual/examples/swapcontext.c: Likewise.
2738         * manual/examples/termios.c: Likewise.
2739         * manual/examples/testopt.c: Likewise.
2740         * manual/examples/testpass.c: Likewise.
2741         * manual/examples/timeval_subtract.c: Likewise.
2742
2743         [BZ #13792]
2744         * manual/time.texi (Elapsed Time): Move timeval_subtract example
2745         function to ...
2746         * manual/timeval_subtract.c.texi: ... here, new file.
2747
2748 2012-03-02  David S. Miller  <davem@davemloft.net>
2749
2750         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
2751
2752 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
2753
2754         [BZ #3976]
2755         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
2756         (__sin): Save and restore rounding mode and use round-to-nearest
2757         for all computations.
2758         (__cos): Save and restore rounding mode and use round-to-nearest
2759         for all computations.
2760         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
2761         <fenv.h>.
2762         (tan): Save and restore rounding mode and use round-to-nearest for
2763         all computations.
2764         * math/libm-test.inc (cos_test_tonearest): New function.
2765         (cos_test_towardzero): Likewise.
2766         (cos_test_downward): Likewise.
2767         (cos_test_upward): Likewise.
2768         (sin_test_tonearest): Likewise.
2769         (sin_test_towardzero): Likewise.
2770         (sin_test_downward): Likewise.
2771         (sin_test_upward): Likewise.
2772         (tan_test_tonearest): Likewise.
2773         (tan_test_towardzero): Likewise.
2774         (tan_test_downward): Likewise.
2775         (tan_test_upward): Likewise.
2776         (main): Call the new functions.
2777         * sysdeps/i386/fpu/libm-test-ulps: Update.
2778         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2779
2780         [BZ #10135]
2781         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
2782         small n, then large n, before computing and testing k+n.
2783         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
2784         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
2785         Likewise.
2786         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
2787         Likewise.
2788         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
2789         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
2790         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
2791         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
2792         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
2793         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
2794         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
2795         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
2796         * math/libm-test.inc (scalbn_test): Add more tests.
2797         (scalbln_test): Likewise.
2798
2799         * manual/filesys.texi (mode_t): Describe constraints on size and
2800         signedness, not exact equivalence to a particular type.
2801         (ino_t): Likewise.
2802         (ino64_t): Likewise.
2803         (dev_t): Likewise.
2804         (nlink_t): Likewise.
2805         (blkcnt_t): Likewise.
2806         (blkcnt64_t): Likewise.
2807         * manual/llio.texi (off_t): Likewise.
2808
2809         [BZ #3976]
2810         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
2811         (__ieee754_exp): Save and restore rounding mode and use
2812         round-to-nearest for all computations.
2813         * math/libm-test.inc (exp_test_tonearest): New function.
2814         (exp_test_towardzero): Likewise.
2815         (exp_test_downward): Likewise.
2816         (exp_test_upward): Likewise.
2817         (main): Call the new functions.
2818         * sysdeps/i386/fpu/libm-test-ulps: Update.
2819         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2820
2821 2012-03-01  Chris Demetriou  <cgd@google.com>
2822
2823         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
2824         have predictable order.
2825
2826 2012-03-01  David S. Miller  <davem@davemloft.net>
2827
2828         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
2829
2830         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
2831         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
2832         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
2833         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
2834
2835         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
2836         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
2837         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
2838         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
2839         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
2840         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
2841         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
2842         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
2843         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
2844
2845         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2846
2847         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
2848         * sysdeps/sparc/fpu/libm-test-ulps: to here.
2849         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
2850
2851         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
2852         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
2853         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
2854         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
2855         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
2856         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
2857         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
2858         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
2859         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
2860         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
2861         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
2862         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
2863         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
2864         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
2865         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
2866         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
2867         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
2868         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
2869         * sysdeps/sparc/elf/configure: Regenerated.
2870
2871 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
2872
2873         * configure.in (AS, LD): Require binutils 2.20 or later.
2874         * configure: Regenerated.
2875         * manual/install.texi (Tools for Compilation): Give binutils 2.20
2876         as required minimum version.
2877         * INSTALL: Regenerated.
2878
2879         [BZ #2541]
2880         [BZ #4108]
2881         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
2882         before squaring exponent.
2883         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
2884         bottom long double and 27 bits of top long double before squaring
2885         exponent.
2886         * math/libm-test.inc (erfc_test): Add more tests.
2887         * sysdeps/i386/fpu/libm-test-ulps: Update.
2888         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
2889         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2890
2891 2012-03-01  Kai Tietz  <ktietz@redhat.com>
2892
2893         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
2894         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
2895         containing bit-fields.
2896         * soft-fp/extended.h (_FP_UNION_E): Likewise.
2897         * soft-fp/single.h (_FP_UNION_S): Likewise.
2898         * soft-fp/double.h (_FP_UNION_D): Likewise.
2899
2900 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
2901
2902         [BZ #13786]
2903         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
2904         not include ../strcmp.S.
2905         [USE_AS_STRNCASECMP_L]: Likewise.
2906         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
2907         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
2908         * sysdeps/i386/i686/multiarch/strncase_l-c.c
2909         (__strncasecmp_l_ia32): Define as alias to
2910         __strncasecmp_l_nonascii.
2911
2912         [BZ #5794]
2913         * math/libm-test.inc (expm1_test): Add test for bug 5794.
2914         * sysdeps/i386/fpu/libm-test-ulps: Update.
2915         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2916
2917         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
2918         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2919
2920 2012-02-29  Jeff Law  <law@redhat.com>
2921
2922         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
2923         out of bounds read.
2924
2925 2012-02-29  Marek Polacek  <polacek@redhat.com>
2926
2927         [BZ #13706]
2928         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
2929         * elf/Makefile: Add rules to run tst-unused-dep.out.
2930
2931 2012-02-28  David S. Miller  <davem@davemloft.net>
2932
2933         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
2934         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
2935         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
2936         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
2937         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
2938         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
2939
2940 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
2941
2942         * math/libm-test.inc (llround_test): Move one test from
2943         lround_test.  Use TEST_f_L in moved test.
2944         (lround_test): Move misplaced test to llround_test.  Add testcase
2945         from bug 2561.
2946
2947 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
2948
2949         * sysdeps/x86_64/fpu/e_expf.S: New file.
2950         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
2951
2952 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
2953
2954         [BZ #13637]
2955         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
2956         of remain_len that may cause incomplete multi-byte character and
2957         false match.
2958         * posix/bug-regex33.c: New file.
2959         * posix/Makefile (tests): Add bug-regex33.
2960
2961 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
2962
2963         * manual/macros.texi: New file.
2964         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
2965         * manual/libc.texinfo: Include macros.texi.
2966         * manual/creatute.texi: Likewise.
2967         * manual/install.texi: Likewise.
2968         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
2969         @glibcadj{} in references to the GNU C Library.
2970         * manual/charset.texi: Likewise.
2971         * manual/conf.texi: Likewise.
2972         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
2973         when not using those macros.
2974         * manual/creature.texi: Likewise.
2975         * manual/crypt.texi: Likewise.
2976         * manual/errno.texi: Likewise.
2977         * manual/filesys.texi: Likewise.
2978         * manual/header.texi: Likewise.
2979         * manual/install.texi: Likewise.
2980         * manual/intro.texi: Likewise.
2981         * manual/io.texi: Likewise.
2982         * manual/job.texi: Likewise.
2983         * manual/lang.texi: Likewise.
2984         * manual/libc.texiinfo: Likewise.
2985         * manual/llio.texi: Likewise.
2986         * manual/locale.texi: Likewise.
2987         * manual/maint.texi: Likewise.
2988         * manual/math.texi: Likewise.
2989         * manual/memory.texi: Likewise.
2990         * manual/message.texi: Likewise.
2991         * manual/nss.texi: Likewise.
2992         * manual/pattern.texi: Likewise.
2993         * manual/process.texi: Likewise.
2994         * manual/resource.texi: Likewise.
2995         * manual/search.texi: Likewise.
2996         * manual/setjmp.texi: Likewise.
2997         * manual/signal.texi: Likewise.
2998         * manual/socket.texi: Likewise.
2999         * manual/startup.texi: Likewise.
3000         * manual/stdio.texi: Likewise.
3001         * manual/string.texi: Likewise.
3002         * manual/sysinfo.texi: Likewise.
3003         * manual/syslog.texi: Likewise.
3004         * manual/terminal.texi: Likewise.
3005         * manual/time.texi: Likewise.
3006         * manual/users.texi: Likewise.
3007         * INSTALL: Regenerated.
3008         * NOTES: Regenerated.
3009         * sysdeps/gnu/errlist.c: Regenerated.
3010
3011 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
3012
3013         * include/dirent.h: Include <dirstream.h> before
3014         <dirent/dirent.h>.
3015
3016 2012-02-28  David S. Miller  <davem@davemloft.net>
3017
3018         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
3019         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
3020         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
3021         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
3022
3023 2012-02-27  David S. Miller  <davem@davemloft.net>
3024
3025         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
3026         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
3027         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
3028         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
3029
3030         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
3031         frame pointer instead of stack pointer relative arg slot.
3032         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
3033         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
3034         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
3035
3036 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
3037
3038         [BZ #3992]
3039         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
3040
3041 2012-02-27  David S. Miller  <davem@davemloft.net>
3042
3043         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
3044         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
3045         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
3046         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
3047         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
3048         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
3049         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
3050         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
3051
3052 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
3053
3054         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
3055         later.  Allow versions 5-9.
3056         * configure: Regenerated.
3057         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
3058         required minimum version and 4.6 as recommended version.  Do not
3059         mention bugs in GCC 2.7 and 2.8.
3060         * INSTALL: Regenerated.
3061
3062 2012-02-27  David S. Miller  <davem@davemloft.net>
3063
3064         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
3065         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
3066         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
3067         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
3068         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
3069         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
3070         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
3071         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
3072
3073         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
3074         manipulate bits before adding and subtracting TWO112[sx].
3075         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
3076
3077 2012-02-27  Roland McGrath  <roland@hack.frob.com>
3078
3079         [BZ #13775]
3080         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
3081         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
3082         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
3083         being in POSIX, because they are in 1003.1-2008.
3084
3085         * rt/tst-aio.c: Include <fcntl.h>.
3086         * rt/tst-aio7.c: Likewise.
3087         * rt/tst-aio64.c: Likewise.
3088
3089         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
3090
3091 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
3092
3093         * manual/install.texi (--with-headers): Describe headers as
3094         interface headers, not private headers.
3095         (Specific advice for GNU/Linux systems): Describe use of headers
3096         from "make headers_install", not private headers from older
3097         kernels.
3098         * INSTALL: Regenerated.
3099         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
3100         Change to 2.6.19.
3101         * sysdeps/unix/sysv/linux/configure: Regenerated.
3102
3103         * manual/llio.texi (fclean): Remove documentation.
3104
3105         * manual/Makefile (libc-texi-generated): New variable.  Include
3106         version.texi.
3107         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
3108         $(libc-texi-generated), not duplicated list of files.
3109         (version.texi, stamp-version): New rules.
3110         (realclean): Remove $(libc-texi-generated), not individual files
3111         from that list.  Do not remove dir-add.texinfo.
3112         * manual/libc.texinfo: Comment out uses of edition numbers and
3113         references to printed manual.  Remove last-updated dates.
3114         (EDITION): Comment out.
3115         (ISBN): Likewise.
3116         (VERSION, UPDATED): Remove.
3117         (version.texi): Include.
3118
3119 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
3120
3121         * sysdeps/posix/spawni.c: Include <signal.h>.
3122         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
3123         * sysdeps/pthread/aio_fsync.c: Likewise.
3124
3125 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
3126
3127         * conform/Makefile (tests): Run only when not cross-compiling and
3128         when fast-check is not defined.
3129
3130         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
3131         * conform/data/limits.h-data: Fixes for POSIX2008.
3132         * conform/run-conformtest.sh: Run all tests.
3133         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
3134         headers.
3135         * include/bits/dlfcn.h: Likewise.
3136         * include/langinfo.h: Likewise.
3137         * include/monetary.h: Likewise.
3138         * include/sys/poll.h: Likewise.
3139
3140         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
3141         for __USE_GNU.
3142         * posix/spawn.h: Define __need_sigset_t.
3143         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
3144         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
3145         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
3146         to get sigevent_t only.
3147         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
3148         only for __USE_GNU.
3149         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
3150         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
3151         process_vm_writev only for __USE_GNU.
3152         * termios/termios.h: Declare tcgetsid also for POSIX2008.
3153
3154         * conform/Makefile: For now ignore errors from run-conformtest.
3155         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
3156         POSIX to avoid namespace pollution.  Don't prepend headers.
3157         * conform/data/aio.h-data: Fixes for POSIX testing.
3158         * conform/data/fcntl.h-data: Likewise.
3159         * conform/data/glob.h-data: Likewise.
3160         * conform/data/grp.h-data: Likewise.
3161         * conform/data/pthread.h-data: Likewise.
3162         * conform/data/pwd.h-data: Likewise.
3163         * conform/data/signal.h-data: Likewise.
3164         * conform/data/spawn.h-data: Likewise.
3165         * conform/data/stdio.h-data: Likewise.
3166         * conform/data/stdlib.h-data: Likewise.
3167         * conform/data/stropts.h-data: Likewise.
3168         * conform/data/sys/mman.h-data: Likewise.
3169         * conform/data/sys/stat.h-data: Likewise.
3170         * conform/data/sys/types.h-data: Likewise.
3171         * conform/data/sys/wait.h-data: Likewise.
3172         * conform/data/time.h-data: Likewise.
3173         * conform/data/unistd.h-data: Likewise.
3174         * conform/data/utime.h-data: Likewise.
3175
3176         * io/sys/stat.h: fchmod was always in POSIX.
3177         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
3178         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
3179         * rt/aio.h: Define __need_timespec before including <time.h>.
3180         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
3181         struct.  Add forward declaration of pthread_attr_t and use it in
3182         sigevent.
3183         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
3184         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
3185         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
3186         always remove CLK_TCK definition.
3187
3188 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
3189
3190         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
3191
3192 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
3193
3194         * conform/run-conformtest.sh: New file.
3195         * conform/Makefile: Run run-conformtest for tests.
3196         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
3197         support.
3198
3199         * conform/data/uchar.h-data: New file.
3200         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
3201         * conform/data/arpa/inet.h-data: Likewise.
3202         * conform/data/assert.h-data: Likewise.
3203         * conform/data/complex.h-data: Likewise.
3204         * conform/data/cpio.h-data: Likewise.
3205         * conform/data/ctype.h-data: Likewise.
3206         * conform/data/dirent.h-data: Likewise.
3207         * conform/data/dlfcn.h-data: Likewise.
3208         * conform/data/errno.h-data: Likewise.
3209         * conform/data/fcntl.h-data: Likewise.
3210         * conform/data/float.h-data: Likewise.
3211         * conform/data/fmtmsg.h-data: Likewise.
3212         * conform/data/fnmatch.h-data: Likewise.
3213         * conform/data/ftw.h-data: Likewise.
3214         * conform/data/glob.h-data: Likewise.
3215         * conform/data/grp.h-data: Likewise.
3216         * conform/data/iconv.h-data: Likewise.
3217         * conform/data/inttypes.h-data: Likewise.
3218         * conform/data/langinfo.h-data: Likewise.
3219         * conform/data/libgen.h-data: Likewise.
3220         * conform/data/limits.h-data: Likewise.
3221         * conform/data/locale.h-data: Likewise.
3222         * conform/data/math.h-data: Likewise.
3223         * conform/data/monetary.h-data: Likewise.
3224         * conform/data/mqueue.h-data: Likewise.
3225         * conform/data/ndbm.h-data: Likewise.
3226         * conform/data/net/if.h-data: Likewise.
3227         * conform/data/netdb.h-data: Likewise.
3228         * conform/data/netinet/in.h-data: Likewise.
3229         * conform/data/nl_types.h-data: Likewise.
3230         * conform/data/poll.h-data: Likewise.
3231         * conform/data/pthread.h-data: Likewise.
3232         * conform/data/pwd.h-data: Likewise.
3233         * conform/data/regex.h-data: Likewise.
3234         * conform/data/sched.h-data: Likewise.
3235         * conform/data/search.h-data: Likewise.
3236         * conform/data/semaphore.h-data: Likewise.
3237         * conform/data/setjmp.h-data: Likewise.
3238         * conform/data/signal.h-data: Likewise.
3239         * conform/data/spawn.h-data: Likewise.
3240         * conform/data/stdarg.h-data: Likewise.
3241         * conform/data/stdio.h-data: Likewise.
3242         * conform/data/stdlib.h-data: Likewise.
3243         * conform/data/string.h-data: Likewise.
3244         * conform/data/strings.h-data: Likewise.
3245         * conform/data/stropts.h-data: Likewise.
3246         * conform/data/sys/ipc.h-data: Likewise.
3247         * conform/data/sys/mman.h-data: Likewise.
3248         * conform/data/sys/msg.h-data: Likewise.
3249         * conform/data/sys/resource.h-data: Likewise.
3250         * conform/data/sys/select.h-data: Likewise.
3251         * conform/data/sys/sem.h-data: Likewise.
3252         * conform/data/sys/shm.h-data: Likewise.
3253         * conform/data/sys/socket.h-data: Likewise.
3254         * conform/data/sys/stat.h-data: Likewise.
3255         * conform/data/sys/statvfs.h-data: Likewise.
3256         * conform/data/sys/time.h-data: Likewise.
3257         * conform/data/sys/timeb.h-data: Likewise.
3258         * conform/data/sys/times.h-data: Likewise.
3259         * conform/data/sys/types.h-data: Likewise.
3260         * conform/data/sys/uio.h-data: Likewise.
3261         * conform/data/sys/un.h-data: Likewise.
3262         * conform/data/sys/utsname.h-data: Likewise.
3263         * conform/data/sys/wait.h-data: Likewise.
3264         * conform/data/syslog.h-data: Likewise.
3265         * conform/data/tar.h-data: Likewise.
3266         * conform/data/termios.h-data: Likewise.
3267         * conform/data/utime.h-data: Likewise.
3268         * conform/data/utmpx.h-data: Likewise.
3269         * conform/data/varargs.h-data: Likewise.
3270         * conform/data/wchar.h-data: Likewise.
3271         * conform/data/wctype.h-data: Likewise.
3272         * conform/data/wordexp.h-data: Likewise.
3273
3274         * include/stropts.h: New file.
3275         * include/uchar.h: New file.
3276         * include/aio.h: Changes to allow conformtest.pl to use the headers.
3277         * include/assert.h: Likewise.
3278         * include/ctype.h: Likewise.
3279         * include/dirent.h: Likewise.
3280         * include/dlfcn.h: Likewise.
3281         * include/fcntl.h: Likewise.
3282         * include/fnmatch.h: Likewise.
3283         * include/glob.h: Likewise.
3284         * include/grp.h: Likewise.
3285         * include/libio.h: Likewise.
3286         * include/locale.h: Likewise.
3287         * include/math.h: Likewise.
3288         * include/net/if.h: Likewise.
3289         * include/netdb.h: Likewise.
3290         * include/netinet/in.h: Likewise.
3291         * include/pthread.h: Likewise.
3292         * include/pwd.h: Likewise.
3293         * include/regex.h: Likewise.
3294         * include/sched.h: Likewise.
3295         * include/search.h: Likewise.
3296         * include/setjmp.h: Likewise.
3297         * include/signal.h: Likewise.
3298         * include/stdio.h: Likewise.
3299         * include/stdlib.h: Likewise.
3300         * include/string.h: Likewise.
3301         * include/sys/cdefs.h: Likewise.
3302         * include/sys/mman.h: Likewise.
3303         * include/sys/msg.h: Likewise.
3304         * include/sys/resource.h: Likewise.
3305         * include/sys/select.h: Likewise.
3306         * include/sys/socket.h: Likewise.
3307         * include/sys/stat.h: Likewise.
3308         * include/sys/statvfs.h: Likewise.
3309         * include/sys/time.h: Likewise.
3310         * include/sys/times.h: Likewise.
3311         * include/sys/uio.h: Likewise.
3312         * include/sys/utsname.h: Likewise.
3313         * include/sys/wait.h: Likewise.
3314         * include/termios.h: Likewise.
3315         * include/time.h: Likewise.
3316         * include/ulimit.h: Likewise.
3317         * include/unistd.h: Likewise.
3318         * include/utime.h: Likewise.
3319         * include/wchar.h: Likewise.
3320         * include/wctype.h: Likewise.
3321         * include/wordexp.h: Likewise.
3322
3323         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
3324
3325         * time/time.h: TIME_UTC must be a macro.
3326         Make timespec_get available for ISO C11 only as well.
3327
3328 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
3329
3330         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
3331         Reported by Peng Haitao <penght@cn.fujitsu.com>.
3332
3333 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
3334
3335         * configure.in: Use -o not -a in test for unsupported multi-arch.
3336
3337 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
3338
3339         * manual/texinfo.tex: Update to version 2012-01-19.16.
3340
3341 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
3342
3343         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
3344
3345 2012-02-24  Roland McGrath  <roland@hack.frob.com>
3346
3347         [BZ #13738]
3348         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
3349         * manual/fdl-1.3.texi: New file.
3350         * manual/fdl-1.1.texi: File removed.
3351
3352         [BZ #13738]
3353         * manual/libc.texinfo (FDL_VERSION): New @set.
3354         Use it for mention of FDL in cover text.
3355         (Documentation License): Use it in @include file name.
3356
3357 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
3358             Roland McGrath  <roland@hack.frob.com>
3359
3360         [BZ #5461]
3361         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
3362         not LONG_LONG_MAX and LONG_LONG_MIN.
3363         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
3364         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
3365         name.
3366         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
3367
3368 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
3369
3370         [BZ #2547]
3371         [BZ #11365]
3372         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
3373         manipulate bits before adding and subtracting TWO23[sx].
3374         * math/libm-test.inc (nearbyint_test): Add more tests.
3375
3376 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
3377
3378         [BZ #2548]
3379         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
3380         bits before adding and subtracting TWO23[sx].
3381         * math/libm-test.inc (rint_test): Add more tests.
3382         (rint_test_tonearest): Likewise.
3383         (rint_test_towardzero): Likewise.
3384         (rint_test_downward): Likewise.
3385         (rint_test_upward: Likewise.
3386
3387 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
3388
3389         [BZ #10110]
3390         * include/stdc-predef.h: New file.  Extracted from features.h.
3391         * include/features.h: Include stdc-predef.h.
3392         * Makefile (headers): Add stdc-predef.h.
3393         * CONFORMANCE (Compiler limitations): Update.
3394
3395 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
3396
3397         * manual/libc.texinfo (VERSION, UPDATED): Revert.
3398
3399 2012-02-21  David S. Miller  <davem@davemloft.net>
3400
3401         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
3402         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
3403
3404 2012-02-20  David S. Miller  <davem@davemloft.net>
3405
3406         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
3407         using a normal save/restore sequence, rather than allocating a
3408         dummy stack frame just to store a frame pointer and restore.
3409         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
3410
3411 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
3412
3413         * manual/install.texi: Fix stray word in line-wrapped comment.
3414
3415 2012-02-20  David S. Miller  <davem@davemloft.net>
3416
3417         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
3418         both binutils and gcc support GOTDATA.
3419
3420         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
3421         "rd %pc" in the PIC register setup sequences.
3422
3423         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
3424         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
3425         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
3426         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
3427         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
3428         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
3429         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
3430         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
3431         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
3432         (SYSCALL_ERROR_HANDLER): Likewise.
3433         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
3434         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
3435         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
3436         (SYSCALL_ERROR_HANDLER): Likewise.
3437
3438         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
3439         (HAVE_GCC_GOTDATA): New.
3440         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
3441         relocation support in both binutils and gcc.
3442         * sysdeps/sparc/elf/configure: Regenerate.
3443
3444         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
3445         * sysdeps/sparc/sparc32/elf/configure: Delete.
3446         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
3447         * sysdeps/sparc/sparc64/elf/configure: Delete.
3448         * sysdeps/sparc/elf/configure.in: New file.
3449         * sysdeps/sparc/elf/configure: Generate.
3450
3451         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
3452         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
3453         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
3454         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
3455         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
3456
3457 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
3458
3459         * manual/install.texi: Do not mention specific glibc version
3460         numbers.
3461         * manual/libc.texinfo (VERSION, UPDATED): Update.
3462         (@copying): Use @copyright{} and range of years.
3463
3464 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
3465
3466         [BZ #13695]
3467         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
3468         [crti.S not in sysdirs] (generated): Do not append.
3469         [crti.S not in sysdirs] (omit-deps): Likewise.
3470         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
3471         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
3472         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
3473         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
3474         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
3475         Likewise.
3476         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
3477         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
3478         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
3479         * csu/defs.awk: Remove file.
3480         * sysdeps/generic/initfini.c: Likewise.
3481         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
3482         variable.
3483         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
3484         Likewise.
3485
3486 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
3487
3488         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
3489         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
3490         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
3491         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
3492         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
3493         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
3494         <bits/epoll.h>.
3495         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
3496         (__EPOLL_PACKED): Define to empty if not defined by
3497         <bits/epoll.h>.
3498         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
3499         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3500         bits/epoll.h.
3501
3502 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
3503
3504         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
3505         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
3506         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
3507         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
3508         <bits/timerfd.h>.
3509         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
3510         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3511         bits/timerfd.h.
3512
3513 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
3514
3515         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
3516         in C locale.
3517         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
3518         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
3519         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
3520         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3521
3522 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
3523
3524         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
3525         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
3526
3527 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
3528
3529         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
3530         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
3531         defined.
3532         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
3533         Likewise.
3534         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
3535         entry for 2.16.
3536
3537 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
3538
3539         * math/w_acos.c: Use non-signaling floating-point comparisons.
3540         * math/w_acosf.c: Likewise.
3541         * math/w_acosh.c: Likewise.
3542         * math/w_acoshf.c: Likewise.
3543         * math/w_acoshl.c: Likewise.
3544         * math/w_acosl.c: Likewise.
3545         * math/w_asin.c: Likewise.
3546         * math/w_asinf.c: Likewise.
3547         * math/w_asinl.c: Likewise.
3548         * math/w_atanh.c: Likewise.
3549         * math/w_atanhf.c: Likewise.
3550         * math/w_atanhl.c: Likewise.
3551         * math/w_exp2.c: Likewise.
3552         * math/w_exp2f.c: Likewise.
3553         * math/w_exp2l.c: Likewise.
3554         * math/w_j0.c: Likewise.
3555         * math/w_j0f.c: Likewise.
3556         * math/w_j0l.c: Likewise.
3557         * math/w_j1.c: Likewise.
3558         * math/w_j1f.c: Likewise.
3559         * math/w_j1l.c: Likewise.
3560         * math/w_jn.c: Likewise.
3561         * math/w_jnf.c: Likewise.
3562         * math/w_log.c: Likewise.
3563         * math/w_log10.c: Likewise.
3564         * math/w_log10f.c: Likewise.
3565         * math/w_log10l.c: Likewise.
3566         * math/w_log2.c: Likewise.
3567         * math/w_log2f.c: Likewise.
3568         * math/w_log2l.c: Likewise.
3569         * math/w_logf.c: Likewise.
3570         * math/w_logl.c: Likewise.
3571         * math/w_sqrt.c: Likewise.
3572         * math/w_sqrtf.c: Likewise.
3573         * math/w_sqrtl.c: Likewise.
3574         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
3575         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
3576         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
3577         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
3578         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
3579
3580 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
3581
3582         [BZ #9739]
3583         * manual/string.texi (strnlen): Use correct parameter name in
3584         equivalent expression.
3585
3586 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
3587
3588         [BZ #11174]
3589         * manual/users.texi (seteuid): Consistently use neweuid for
3590         argument name.
3591
3592 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
3593
3594         [BZ #13704]
3595         * manual/nss.texi (Services in the NSS configuration): Correct
3596         list of services in example configuration file.
3597
3598 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
3599
3600         [BZ #11322]
3601         * manual/arith.texi: Remove statements about negative zero
3602         behaving identically to zero.
3603
3604 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
3605
3606         [BZ #5993]
3607         * manual/install.texi: Do not document upgrading from libc5.
3608
3609 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
3610
3611         [BZ #4596]
3612         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
3613
3614 2012-02-18  David S. Miller  <davem@davemloft.net>
3615
3616         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
3617         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
3618         %o7 across the call.
3619         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
3620         instead.
3621         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
3622         SETUP_PIC_REG_LEAF.
3623         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
3624         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
3625         * sysdeps/sparc/crtn.S: Likewise.
3626
3627 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
3628
3629         * aout/Makefile: Remove.
3630
3631 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
3632
3633         [BZ #13058]
3634         * manual/examples/argp-ex1.c (main): Format definition in GNU
3635         style.
3636         * manual/examples/argp-ex2.c (main): Likewise.
3637         * manual/examples/argp-ex3.c (main): Likewise.
3638         * manual/examples/argp-ex4.c (main): Likewise.
3639         * manual/examples/longopt.c (main): Use new-style prototype
3640         definition.
3641         * manual/examples/strncat.c (main): Specify return type and use
3642         (void) for arguments.
3643         * manual/examples/subopt.c (main): Use char **argv argument.
3644
3645 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
3646
3647         [BZ #5077]
3648         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
3649         rounding modes.
3650
3651 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
3652
3653         [BZ #6907]
3654         * manual/string.texi (strchr): Change when strchrnul is
3655         recommended.
3656
3657 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
3658
3659         [BZ #174]
3660         * manual/locale.texi (setlocale): Document LOCPATH.
3661
3662 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
3663
3664         [BZ #10210]
3665         * manual/process.texi (execle): Move @dots{} before last argument.
3666
3667 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
3668
3669         [BZ #12047]
3670         * manual/charset.texi (Generic Charset Conversion): Fix typo
3671         (LC_TYPE -> LC_CTYPE).
3672
3673 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
3674
3675         [BZ #5805]
3676         * manual/arith.texi (scalbn): Use @var{} on parameter names.
3677         (scalbnf): Likewise.
3678         (scalbnl): Likewise.
3679         (scalbln): Likewise.
3680         (scalblnf): Likewise.
3681         (scalblnl): Likewise.
3682         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
3683         (vwarnx): Likewise.
3684         (verr): Likewise.
3685         (verrx): Likewise.
3686         * manual/filesys.texi (telldir): Use braces around return type.
3687         * manual/llio.texi (mmap): Add space after comma.
3688         (mmap64): Likewise.
3689         * manual/math.texi (jn): Use @var{} on parameter names.
3690         (jnf): Likewise.
3691         (jnl): Likewise.
3692         (yn): Likewise.
3693         (ynf): Likewise.
3694         (ynl): Likewise.
3695         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
3696         line.
3697         * manual/resource.texi (ulimit): Use @dots{} instead of literal
3698         "...".
3699         (sched_get_priority_min): Remove semicolon on @deftypefun line.
3700         (sched_get_priority_max): Likewise.
3701         * manual/signal.texi (sigvec): Add space after comma.
3702         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
3703         names.
3704         (if_indextoname): Likewise.
3705         (if_freenameindex): Likewise.
3706         (sendto): Use ',' instead of '.' in prototype.
3707         * manual/startup.texi (syscall): Use @dots{} instead of literal
3708         "...".
3709         * manual/stdio.texi (__fpending): Separate initial words of
3710         paragraph from @deftypefun line.
3711         * manual/syslog.texi (syslog): Use @dots{} instead of literal
3712         "...".
3713         (vsyslog): Use @var{} on parameter names.
3714         * manual/terminal.texi (stty): Use @var{} on parameter names.
3715         * manual/users.texi (getutmp): Use @var{} on parameter names.
3716         (getutmpx): Likewise.
3717
3718 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
3719
3720         [BZ #6884]
3721         * manual/stdio.texi (fopen): Fix typos in description of
3722         ",ccs=STRING".
3723
3724 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
3725
3726         [BZ #4026]
3727         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
3728         get clock_id definition.
3729
3730 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
3731
3732         [BZ #4822]
3733         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
3734         (madvise): Cast every argument to void on its own.
3735
3736 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
3737
3738         [BZ #9902]
3739         * manual/startup.texi (Exit Status): Fix typo.
3740
3741 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
3742
3743         [BZ #10140]
3744         * manual/examples/argp-ex1.c: Include <stdlib.h>.
3745         * manual/examples/argp-ex2.c: Likewise.
3746         * manual/examples/argp-ex3.c: Likewise.
3747
3748 2012-02-16  Richard Henderson  <rth@redhat.com>
3749
3750         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
3751         * sysdeps/s390/s390-32/initfini.c: Remove.
3752         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
3753         * sysdeps/s390/s390-64/initfini.c: Remove.
3754
3755 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3756
3757         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
3758         compiler output for sysdeps/generic/initfini.c.
3759         * sysdeps/sh/elf/initfini.c: Remove file.
3760
3761 2012-02-16  David S. Miller  <davem@davemloft.net>
3762
3763         [BZ #11494]
3764         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
3765
3766         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
3767         * sysdeps/sparc/crti.S: New file.
3768         * sysdeps/sparc/crtn.S: New file.
3769         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
3770         * sysdeps/sparc/sparc64/Makefile: Likewise.
3771
3772 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
3773
3774         [BZ #3335]
3775         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
3776
3777 2012-02-15  Roland McGrath  <roland@hack.frob.com>
3778
3779         [BZ #4822]
3780         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
3781
3782         * mach/devstream.c (cookie_io_functions_t): Macro removed.
3783         (write, read, close): Likewise.
3784         Patch by Aurelien Jarno <aurelien@aurel32.net>.
3785
3786 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
3787
3788         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
3789         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
3790         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
3791         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
3792         <bits/signalfd.h>.
3793         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
3794         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3795         bits/signalfd.h.
3796
3797 2012-02-14  Marek Polacek  <polacek@redhat.com>
3798
3799         * sysdeps/x86_64/crti.S: New file.
3800         * sysdeps/x86_64/crtn.S: New file.
3801         * sysdeps/x86_64/elf/initfini.c: Remove file.
3802
3803 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
3804
3805         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
3806         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
3807         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
3808         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
3809         <bits/inotify.h>.
3810         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
3811         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3812         bits/inotify.h.
3813
3814 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
3815
3816         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
3817         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
3818         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
3819         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
3820         <bits/eventfd.h>.
3821         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
3822         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3823         bits/eventfd.h.
3824
3825 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
3826
3827         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
3828         __feraiseexcept instead of feraiseexcept.
3829
3830         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
3831         nanosleep invocations.
3832         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
3833         strings, and add error checking for a nanosleep invocations.
3834
3835 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
3836
3837         Replace FSF snail mail address with URLs, as per GNU coding standards.
3838         Most of the snail mail addresses were wrong anyway, and omitting
3839         them makes the source code easier to maintain.  Almost all of the
3840         changes are to license notices and to locale LC_IDENTIFICATION
3841         addresses, except for this one:
3842         * manual/libc.texinfo: In "Published by", give the FSF's URL,
3843         not its snail mail address.
3844
3845 2012-02-09  Richard Henderson  <rth@twiddle.net>
3846
3847         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
3848         of kernel-features.h.
3849
3850         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
3851
3852 2012-02-08  Marek Polacek  <polacek@redhat.com>
3853
3854         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
3855         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
3856         * sysdeps/gnu/_G_config.h: Likewise.
3857         * sysdeps/generic/_G_config.h: Likewise.
3858
3859 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
3860
3861         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
3862         tests.
3863         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3864
3865         * sysdeps/powerpc/powerpc32/crti.S: New file.
3866         * sysdeps/powerpc/powerpc32/crtn.S: New file.
3867         * sysdeps/powerpc/powerpc64/crti.S: New file.
3868         * sysdeps/powerpc/powerpc64/crtn.S: New file.
3869
3870         * Makeconfig (have-initfini): Don't set.
3871         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
3872         * configure.in (nopic_initfini): Don't substitute.
3873         * config.h.in (HAVE_INITFINI): Don't #undef.
3874         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
3875         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
3876
3877 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
3878
3879         Support crti.S and crtn.S provided directly by architectures.
3880         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
3881         [crti.S in sysdirs] (omit-deps): Likewise.
3882         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
3883         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
3884         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
3885         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
3886         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
3887         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
3888         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
3889         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
3890         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
3891         compiler output for sysdeps/generic/initfini.c.
3892         * sysdeps/i386/elf/Makefile: Remove file.
3893         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
3894
3895 2012-02-07  Marek Polacek  <polacek@redhat.com>
3896
3897         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
3898         * sysdeps/gnu/_G_config.h: Likewise.
3899         * sysdeps/mach/hurd/_G_config.h: Likewise.
3900
3901 2012-02-07  Marek Polacek  <polacek@redhat.com>
3902
3903         * math/Makefile (tests): Add tst-CMPLX2.
3904         * math/tst-CMPLX2.c: New file.
3905
3906 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
3907
3908         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
3909
3910         * math/libm-test.inc (jn_test): Add missing L suffix.
3911
3912 2012-02-06  Marek Polacek  <polacek@redhat.com>
3913
3914         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
3915         * sysdeps/i386/fpu/e_powf.S: Likewise.
3916         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
3917         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
3918         * sysdeps/i386/fpu/e_acosh.S: Likewise.
3919         * sysdeps/i386/fpu/e_pow.S: Likewise.
3920         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
3921         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
3922         * sysdeps/i386/fpu/s_expm1.S: Likewise.
3923         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
3924         * sysdeps/i386/fpu/e_log2.S: Likewise.
3925         * sysdeps/i386/fpu/e_log2l.S: Likewise.
3926         * sysdeps/i386/fpu/e_scalb.S: Likewise.
3927         * sysdeps/i386/fpu/e_powl.S: Likewise.
3928         * sysdeps/i386/fpu/s_log1p.S: Likewise.
3929         * sysdeps/i386/fpu/e_log10f.S: Likewise.
3930         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
3931         * sysdeps/i386/fpu/e_logl.S: Likewise.
3932         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
3933         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
3934         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
3935         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
3936         * sysdeps/i386/fpu/e_log2f.S: Likewise.
3937         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
3938         * sysdeps/i386/fpu/e_log.S: Likewise.
3939         * sysdeps/i386/fpu/s_cexp.S: Likewise.
3940         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
3941         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
3942         * sysdeps/i386/fpu/e_logf.S: Likewise.
3943         * sysdeps/i386/fpu/e_log10l.S: Likewise.
3944         * sysdeps/i386/fpu/e_atanh.S: Likewise.
3945         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
3946         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
3947         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
3948         * sysdeps/i386/fpu/e_log10.S: Likewise.
3949         * sysdeps/i386/fpu/s_frexp.S: Likewise.
3950         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
3951         * sysdeps/i386/fpu/s_asinh.S: Likewise.
3952         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
3953         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
3954         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
3955         * sysdeps/i386/asm-syntax.h: Likewise.
3956         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
3957         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
3958         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
3959         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
3960         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
3961         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
3962         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
3963         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
3964         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
3965         * sysdeps/powerpc/sysdep.h: Likewise.
3966         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
3967         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
3968
3969 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
3970
3971         [BZ #411]
3972         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
3973
3974 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
3975
3976         * sysdeps/i386/sysdep.h: Include <features.h>.
3977         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
3978         version.
3979
3980 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
3981
3982         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
3983         Define.
3984         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
3985         LOAD_PIC_REG_STR.
3986
3987 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
3988
3989         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
3990         (SETUP_PIC_REG): Use GET_PC_THUNK.
3991         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
3992         macro.
3993
3994 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
3995
3996         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
3997         for non-PIC compilation.
3998         (SETUP_PIC_REG): Add .p2align directive.
3999         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
4000         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
4001         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
4002         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
4003         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
4004         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
4005         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
4006         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
4007         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
4008         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
4009         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
4010         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
4011         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
4012         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
4013         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
4014         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
4015         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
4016         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
4017         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
4018         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
4019         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
4020         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
4021         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
4022         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
4023         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
4024         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
4025         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
4026         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
4027         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
4028         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
4029         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
4030         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
4031         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
4032         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
4033         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
4034         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
4035         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
4036         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
4037         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
4038         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
4039         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
4040
4041 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
4042
4043         * math/tst-CMPLX.c: Include <stdio.h>.
4044
4045 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
4046
4047         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
4048         float.
4049         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
4050         * sysdeps/sparc/bits/mathdef.h: Likewise.
4051
4052 2012-01-31  Marek Polacek  <polacek@redhat.com>
4053
4054         * libio/libio.h: Don't define _PARAMS.
4055         * locale/programs/config.h: Don't define PARAMS.
4056         * stdlib/strtol_l.c: Likewise.
4057         (__strtol_l): Remove PARAMS from the prototype.
4058
4059 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
4060
4061         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
4062         names.  Just use the correct names.  Remove unnecessary wrapper
4063         functions.
4064         * malloc/arena.c: Likewise.
4065         * malloc/hooks.c: Likewise.
4066
4067         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
4068         ARENA_TEST says not to.  Simplify test for creation of a new arena.
4069         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
4070
4071 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
4072
4073         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
4074         into tail calls.
4075         (update_get_addr): New function.
4076         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
4077         GET_ADDR_MODULE parameter.
4078
4079 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
4080
4081         * crypt/cert.c: Remove __STDC__ conditionals.
4082         * crypt/crypt-entry.c: Likewise.
4083         * crypt/crypt_util.c: Likewise.
4084         * libio/filedoalloc.c: Likewise.
4085         * libio/fileops.c: Likewise.
4086         * libio/genops.c: Likewise.
4087         * libio/iofclose.c: Likewise.
4088         * libio/iofdopen.c: Likewise.
4089         * libio/iofopen.c: Likewise.
4090         * libio/iofopen64.c: Likewise.
4091         * libio/iogetdelim.c: Likewise.
4092         * libio/iopopen.c: Likewise.
4093         * libio/obprintf.c: Likewise.
4094         * libio/oldfileops.c: Likewise.
4095         * libio/oldiofclose.c: Likewise.
4096         * libio/oldiofdopen.c: Likewise.
4097         * libio/oldiofopen.c: Likewise.
4098         * libio/oldiopopen.c: Likewise.
4099         * libio/wfiledoalloc.c: Likewise.
4100         * libio/wgenops.c: Likewise.
4101         * locale/programs/xmalloc.c: Likewise.
4102         * misc/syslog.c: Likewise.
4103         * stdio-common/xbug.c: Likewise.
4104         * string/memchr.c: Likewise.
4105         * string/memcmp.c: Likewise.
4106         * string/memrchr.c: Likewise.
4107         * string/rawmemchr.c: Likewise.
4108         * sysdeps/posix/getcwd.c: Likewise.
4109         * time/strftime_l.c: Likewise.
4110
4111 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
4112
4113         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
4114         * config.make.in (config-cflags-sse2avx): Define.
4115         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
4116         Fix typo.
4117
4118 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
4119
4120         * scripts/config.guess: Update from upstream config git repository.
4121         * scripts/config.sub: Likewise.
4122
4123 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
4124
4125         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
4126         (EM_NUM): Update.
4127         (R_TILEPRO_*, R_TILEGX_*): New macros.
4128
4129         * scripts/firstversions.awk: Fix bug in version range handling.
4130
4131         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
4132
4133         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
4134
4135         * include/sys/epoll.h: New file.
4136         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
4137         libc_hidden_def.
4138
4139 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
4140
4141         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
4142         Avoid unnecessary __WORDSIZE == 64 test.
4143         (fmaxf): Use VEX format if possible.
4144         (fmax): Likewise.
4145         (fminf): Likewise.
4146         (fmin): Likewise.
4147
4148         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
4149         * math/math_private.h: Remove libc_fegetround* and
4150         libc_fesetround*.
4151         * sysdeps/i386/configure.in: Check for -msse2avx.
4152         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
4153         also if SSE2AVX is defined.
4154         Remove libc_fegetround* and libc_fesetround*.
4155         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
4156         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
4157         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
4158         of HAS_YMM_USABLE.
4159         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
4160         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
4161         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
4162         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
4163         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
4164
4165         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
4166
4167 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4168
4169         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
4170         size is not set.
4171         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
4172
4173 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
4174
4175         [BZ #13618]
4176         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
4177         relocation.
4178         * Makeconfig (libm): Define.
4179         * elf/Makefile: Add rules to build and run tst-relsort1.
4180         * elf/tst-relsort1.c: New file.
4181         * elf/tst-relsort1mod1.c: New file.
4182         * elf/tst-relsort1mod2.c: New file.
4183
4184 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
4185
4186         * math/s_ldexp.c: Remove __STDC__ conditionals.
4187         * math/s_ldexpf.c: Likewise.
4188         * math/s_ldexpl.c: Likewise.
4189         * math/s_nextafter.c: Likewise.
4190         * math/s_nexttowardf.c: Likewise.
4191         * math/s_significand.c: Likewise.
4192         * math/s_significandf.c: Likewise.
4193         * math/s_significandl.c: Likewise.
4194         * math/w_jnl.c: Likewise.
4195         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
4196         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
4197         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
4198         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
4199         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
4200         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
4201         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
4202         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
4203         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
4204         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
4205         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
4206         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
4207         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
4208         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
4209         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
4210         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
4211         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
4212         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
4213         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
4214         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
4215         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
4216         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
4217         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
4218         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
4219         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
4220         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
4221         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
4222         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
4223         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
4224         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
4225         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
4226         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
4227         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
4228         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
4229         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
4230         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
4231         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
4232         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
4233         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
4234         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
4235         * sysdeps/ieee754/k_standard.c: Likewise.
4236         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
4237         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
4238         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
4239         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
4240         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
4241         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
4242         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
4243         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
4244         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
4245         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
4246         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
4247         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
4248         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
4249         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
4250         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
4251         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
4252         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
4253         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
4254         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
4255         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
4256         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
4257         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
4258         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
4259         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
4260         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
4261         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
4262         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
4263         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
4264         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
4265         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
4266         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
4267         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
4268         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
4269         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
4270         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
4271         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
4272         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
4273         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
4274         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
4275         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
4276         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
4277         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
4278         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
4279         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
4280         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
4281         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
4282         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
4283         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
4284         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
4285         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
4286         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
4287         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
4288         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
4289         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
4290         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
4291         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
4292         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
4293         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
4294         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
4295         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
4296         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
4297         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
4298         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
4299         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
4300         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
4301         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
4302         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
4303         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
4304         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
4305         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
4306         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
4307         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
4308         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
4309         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
4310         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
4311         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
4312         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
4313         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
4314         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
4315         * sysdeps/ieee754/s_matherr.c: Likewise.
4316         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
4317         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
4318         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
4319         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
4320
4321 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
4322
4323         * crypt/md5.h: Remove __STDC__ conditionals.
4324         * libio/libioP.h: Likewise.
4325         * locale/programs/config.h: Likewise.
4326         * sysdeps/generic/sysdep.h: Likewise.
4327         * sysdeps/i386/asm-syntax.h: Likewise.
4328         * sysdeps/s390/asm-syntax.h: Likewise.
4329         * sysdeps/unix/sysdep.h: Likewise.
4330         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
4331         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
4332
4333 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
4334
4335         * libio/libio.h: Remove __STDC__ conditionals.
4336         * malloc/obstack.h: Likewise.
4337         * math/complex.h: Likewise.
4338         * math/math.h: Likewise.
4339         * sysdeps/generic/_G_config.h: Likewise.
4340         * sysdeps/gnu/_G_config.h: Likewise.
4341         * sysdeps/mach/hurd/_G_config.h: Likewise.
4342         * sysdeps/powerpc/bits/mathdef.h: Likewise.
4343         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
4344         * sysdeps/sparc/bits/mathdef.h: Likewise.
4345
4346 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
4347
4348         [BZ #13583]
4349         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
4350         Clean up HAS_* macros.
4351         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
4352         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
4353         possible.
4354         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
4355         HAS_AVX.
4356         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
4357         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
4358         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
4359         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
4360         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
4361
4362 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
4363
4364         * elf/tst-unique3.cc (gets): Remove declaration.
4365         * elf/tst-unique3lib.cc (gets): Likewise.
4366         * elf/tst-unique3lib2.cc (gets): Likewise.
4367         * elf/tst-unique4.cc (gets): Likewise.
4368
4369 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
4370
4371         * include/stdio.h: Add C++ protection.  Add gets declarations and
4372         definitions.
4373         * debug/tst-chk1.c: Don't declare gets here.
4374         * stdio-common/tst-gets.c: Likewise.
4375
4376 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
4377
4378         * posix/glob: Remove directory.
4379
4380 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
4381
4382         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
4383
4384 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
4385
4386         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
4387         of the non-standard EPFNOSUPPORT.
4388
4389 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4390
4391         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
4392         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
4393         ANYWHERE set to 1 only on KERN_NO_SPACE error.
4394
4395 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
4396
4397         * wcsmbs/uchar.h: Test __STDC_VERSION__.
4398
4399 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
4400
4401         * nscd/aicache.c (addhstaiX): Do not cache negative results of
4402         transient errors.
4403         * nscd/grpcache.c (cache_addgr): Likewise.
4404         * nscd/hstcache.c (cache_addhst): Likewise.
4405         * nscd/initgrcache.c (addinitgroupsX): Likewise.
4406         * nscd/pwdcache.c (cache_addpw): Likewise.
4407         * nscd/servicescache.c (cache_addserv): Likewise.
4408
4409 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
4410
4411         * malloc/malloc.c: Various cleanups.
4412         * malloc/hooks.c: Likewise.
4413
4414         * stdlib/Makefile (tests): Add bug-fmtmsg1.
4415         * stdlib/bug-fmtmsg1.c: New file.
4416
4417         * stdlib/fmtmsg.c (init): Add missing unlock.
4418         Patch by Peng Haitao <penght@cn.fujitsu.com>.
4419
4420 2012-01-12  Marek Polacek  <polacek@redhat.com>
4421
4422         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
4423         and _GNU_SOURCE.
4424
4425 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
4426
4427         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
4428         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
4429         macro to ensure uniqueness of label name.
4430         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
4431         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
4432
4433 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
4434
4435         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
4436
4437         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
4438         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
4439         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
4440         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
4441
4442 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
4443
4444         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
4445
4446         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
4447         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
4448         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
4449
4450         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
4451
4452         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
4453         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
4454         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
4455         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
4456
4457         * math/bits/math-finite.h: Add ldexp support.
4458
4459 2012-01-10  Marek Polacek  <polacek@redhat.com>
4460
4461         * locale/programs/localedef.h (show_archive_content): Add noreturn
4462         attribute.
4463
4464 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
4465
4466         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
4467
4468 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
4469
4470         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
4471
4472         * io/Makefile (headers): Add bits/poll2.h.
4473
4474 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
4475
4476         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
4477         typo #include statement.
4478
4479 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
4480
4481         * include/sys/cdefs.h: Define __attribute_alloc_size.
4482         * catgets/gencat.c: Add alloc_size attribute and apply consistently
4483         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
4484         * elf/pldd.c: Likewise.
4485         * iconv/iconv_charmap.c: Likewise.
4486         * iconv/iconvconfig.c: Likewise.
4487         * iconv/strtab.c: Likewise.
4488         * locale/programs/locale.c: Likewise.
4489         * locale/programs/localedef.h: Likewise.
4490         * locale/programs/simple-hash.c: Likewise.
4491         * nscd/nscd.h: Likewise.
4492         * nss/makedb.c: Likewise.
4493         * sysdeps/generic/ldconfig.h: Likewise.
4494         * locale/programs/localedef.c: Remove xmalloc prototype.
4495         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
4496
4497 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
4498
4499         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
4500         appropriate.
4501
4502 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
4503
4504         * math/Makefile (tests): Add tst-CMPLX.
4505         * math/tst-CMPLX.c: New file.
4506
4507         * math/complex.h (CMPLXL): Fix typo.
4508
4509         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
4510         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
4511         GLIBC_2.16.
4512         * debug/tst-chk1.c: Add poll and ppoll tests.
4513         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
4514         * include/sys/poll.h: Add hidden proto for ppoll.
4515         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
4516         * sysdeps/mach/hurd/ppoll.c: Likewise.
4517         * io/ppoll.c: Likewise.
4518         * debug/poll_chk.c: New file.
4519         * debug/ppoll_chk.c: New file.
4520         * include/bits/poll2.h: New file.
4521         * io/bits/poll2.h: New file.
4522
4523         [BZ #1350]
4524         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
4525
4526         * configure.in: static is always set to yes.  Remove.
4527         * config.make.in: Don't set build-static.
4528         * Makeconfig: Remove use of build-static.
4529         * dlfcn/Makefile: Likewise.
4530         * elf/Makefile: Likewise.
4531         * math/Makefile: Likewise.
4532         * misc/Makefile: Likewise.
4533         * nptl/Makefile: Likewise.
4534         * sysdeps/mach/hurd/Makefile: Likewise.
4535
4536         * configure.in: PWD_P is not used anymore.
4537         * config.make.in: Remove PWD_P entry.
4538
4539         * configure.in: Remove last remnants of RANLIB.
4540         No need to check for signed size_t anymore.
4541         Don't set libc_commonpagesize and libc_relro_required here for Alpha
4542         and IA-64.
4543         Remove __builtin_expect test because we require at least gcc 3.4.
4544         * aclocal.m4: Likewise.
4545
4546         * wcsmbs/mbrtoc16.c: Implement using towc function.
4547         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
4548         * wcsmbs/wcsmbsload.c: Likewise.
4549         * iconv/gconv_simple.c: Likewise.
4550         * iconv/gconv_int.h: Likewise.
4551         * iconv/gconv_builtin.h: Likewise.
4552         * iconv/iconv_prog.c: Remove CHAR16 handling.
4553
4554         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
4555
4556         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
4557
4558         * configure.in: Remove --with-elf and --enable-bounded options.
4559         Dont set base_machine for ia64.  More non-ELF conditions removed.
4560         Remove testing and setting of leading underscore information.
4561         * config.make.in (build-bounded): Set to no.
4562         * config.h.in: Remove NO_UNDERSCORES entry.
4563         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
4564         them.
4565         * csu/start.c: Remove !NO_UNDERSCORE code.
4566         * locale/localeinfo.h: Likewise.
4567         * sysdeps/generic/machine-gmon.h: Likewise.
4568         * sysdeps/generic/sysdep.h: Likewise.
4569         * sysdeps/i386/sysdep.h: Likewise.
4570         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
4571         * sysdeps/mach/sysdep.h: Likewise.
4572         * sysdeps/s390/s390-32/sysdep.h: Likewise.
4573         * sysdeps/s390/s390-64/sysdep.h: Likewise.
4574         * sysdeps/sh/sysdep.h: Likewise.
4575         * sysdeps/sparc/sparc32/alloca.S: Likewise.
4576         * sysdeps/unix/i386/sysdep.S: Likewise.
4577         * sysdeps/unix/sparc/start.c: Likewise.
4578         * sysdeps/unix/sparc/sysdep.S: Likewise.
4579         * sysdeps/unix/sparc/sysdep.h: Likewise.
4580         * sysdeps/unix/start.c: Likewise.
4581         * sysdeps/unix/x86_64/sysdep.S: Likewise.
4582         * sysdeps/x86_64/sysdep.h: Likewise.
4583
4584 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
4585
4586         [BZ #13553]
4587         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
4588         for non-gcc.
4589         * argp/argp-fmtstream.h: Use const instead __const.
4590         * argp/argp.h: Likewise.
4591         * assert/assert.h: Likewise.
4592         * bits/fenv.h: Likewise.
4593         * bits/sched.h: Likewise.
4594         * bits/sigset.h: Likewise.
4595         * bits/sigthread.h: Likewise.
4596         * catgets/nl_types.h: Likewise.
4597         * conform/data/pthread.h-data: Likewise.
4598         * crypt/crypt-private.h: Likewise.
4599         * crypt/crypt.h: Likewise.
4600         * crypt/crypt_util.c: Likewise.
4601         * ctype/ctype.h: Likewise.
4602         * debug/execinfo.h: Likewise.
4603         * debug/mbsnrtowcs_chk.c: Likewise.
4604         * debug/mbsrtowcs_chk.c: Likewise.
4605         * debug/wcsnrtombs_chk.c: Likewise.
4606         * debug/wcsrtombs_chk.c: Likewise.
4607         * debug/wcstombs_chk.c: Likewise.
4608         * dirent/dirent.h: Likewise.
4609         * dlfcn/dlfcn.h: Likewise.
4610         * elf/neededtest4.c: Likewise.
4611         * grp/grp.h: Likewise.
4612         * gshadow/gshadow.h: Likewise.
4613         * iconv/gconv.h: Likewise.
4614         * iconv/gconv_int.h: Likewise.
4615         * iconv/gconv_simple.c: Likewise.
4616         * iconv/iconv.h: Likewise.
4617         * iconv/loop.c: Likewise.
4618         * iconv/skeleton.c: Likewise.
4619         * include/aio.h: Likewise.
4620         * include/aliases.h: Likewise.
4621         * include/argz.h: Likewise.
4622         * include/arpa/inet.h: Likewise.
4623         * include/assert.h: Likewise.
4624         * include/dirent.h: Likewise.
4625         * include/dlfcn.h: Likewise.
4626         * include/execinfo.h: Likewise.
4627         * include/fcntl.h: Likewise.
4628         * include/fenv.h: Likewise.
4629         * include/glob.h: Likewise.
4630         * include/grp.h: Likewise.
4631         * include/libintl.h: Likewise.
4632         * include/mntent.h: Likewise.
4633         * include/netdb.h: Likewise.
4634         * include/pwd.h: Likewise.
4635         * include/rpc/netdb.h: Likewise.
4636         * include/sched.h: Likewise.
4637         * include/search.h: Likewise.
4638         * include/shadow.h: Likewise.
4639         * include/signal.h: Likewise.
4640         * include/stdio.h: Likewise.
4641         * include/stdlib.h: Likewise.
4642         * include/string.h: Likewise.
4643         * include/sys/socket.h: Likewise.
4644         * include/sys/stat.h: Likewise.
4645         * include/sys/statfs.h: Likewise.
4646         * include/sys/statvfs.h: Likewise.
4647         * include/sys/syslog.h: Likewise.
4648         * include/sys/time.h: Likewise.
4649         * include/sys/uio.h: Likewise.
4650         * include/time.h: Likewise.
4651         * include/unistd.h: Likewise.
4652         * include/utmp.h: Likewise.
4653         * include/wchar.h: Likewise.
4654         * include/wctype.h: Likewise.
4655         * inet/aliases.h: Likewise.
4656         * inet/arpa/inet.h: Likewise.
4657         * inet/netinet/ether.h: Likewise.
4658         * inet/netinet/in.h: Likewise.
4659         * intl/libintl.h: Likewise.
4660         * io/bits/fcntl2.h: Likewise.
4661         * io/fcntl.h: Likewise.
4662         * io/ftw.h: Likewise.
4663         * io/sys/poll.h: Likewise.
4664         * io/sys/stat.h: Likewise.
4665         * io/sys/statfs.h: Likewise.
4666         * io/sys/statvfs.h: Likewise.
4667         * io/utime.h: Likewise.
4668         * libio/bits/stdio.h: Likewise.
4669         * libio/bits/stdio2.h: Likewise.
4670         * libio/libio.h: Likewise.
4671         * libio/libioP.h: Likewise.
4672         * libio/stdio.h: Likewise.
4673         * locale/lc-ctype.c: Likewise.
4674         * locale/locale.h: Likewise.
4675         * login/utmp.h: Likewise.
4676         * malloc/arena.c: Likewise.
4677         * malloc/malloc.c: Likewise.
4678         * malloc/malloc.h: Likewise.
4679         * malloc/mcheck.c: Likewise.
4680         * malloc/mtrace.c: Likewise.
4681         * math/bits/mathcalls.h: Likewise.
4682         * math/fenv.h: Likewise.
4683         * math/math_private.h: Likewise.
4684         * misc/bits/error.h: Likewise.
4685         * misc/bits/syslog.h: Likewise.
4686         * misc/err.h: Likewise.
4687         * misc/error.h: Likewise.
4688         * misc/fstab.h: Likewise.
4689         * misc/mntent.h: Likewise.
4690         * misc/regexp.h: Likewise.
4691         * misc/search.h: Likewise.
4692         * misc/sgtty.h: Likewise.
4693         * misc/sys/mman.h: Likewise.
4694         * misc/sys/syslog.h: Likewise.
4695         * misc/sys/uio.h: Likewise.
4696         * misc/sys/xattr.h: Likewise.
4697         * misc/ttyent.h: Likewise.
4698         * nis/rpcsvc/ypclnt.h: Likewise.
4699         * nss/nss.h: Likewise.
4700         * posix/bits/unistd.h: Likewise.
4701         * posix/fnmatch.h: Likewise.
4702         * posix/glob.h: Likewise.
4703         * posix/sched.h: Likewise.
4704         * posix/spawn.h: Likewise.
4705         * posix/sys/wait.h: Likewise.
4706         * posix/unistd.h: Likewise.
4707         * posix/wordexp.h: Likewise.
4708         * pwd/pwd.h: Likewise.
4709         * resolv/netdb.h: Likewise.
4710         * resource/sys/resource.h: Likewise.
4711         * rt/aio.h: Likewise.
4712         * rt/bits/mqueue2.h: Likewise.
4713         * rt/mqueue.h: Likewise.
4714         * shadow/shadow.h: Likewise.
4715         * signal/signal.h: Likewise.
4716         * socket/send.c: Likewise.
4717         * socket/sendto.c: Likewise.
4718         * socket/sys/socket.h: Likewise.
4719         * stdio-common/printf.h: Likewise.
4720         * stdlib/bits/stdlib.h: Likewise.
4721         * stdlib/fmtmsg.h: Likewise.
4722         * stdlib/monetary.h: Likewise.
4723         * stdlib/stdlib.h: Likewise.
4724         * stdlib/ucontext.h: Likewise.
4725         * streams/stropts.h: Likewise.
4726         * string/argz.h: Likewise.
4727         * string/bits/string2.h: Likewise.
4728         * string/string.h: Likewise.
4729         * string/strings.h: Likewise.
4730         * sunrpc/rpc/auth.h: Likewise.
4731         * sunrpc/rpc/auth_des.h: Likewise.
4732         * sunrpc/rpc/clnt.h: Likewise.
4733         * sunrpc/rpc/netdb.h: Likewise.
4734         * sunrpc/rpc/pmap_clnt.h: Likewise.
4735         * sunrpc/rpc/xdr.h: Likewise.
4736         * sysdeps/generic/inttypes.h: Likewise.
4737         * sysdeps/generic/net/if.h: Likewise.
4738         * sysdeps/generic/sys/swap.h: Likewise.
4739         * sysdeps/gnu/net/if.h: Likewise.
4740         * sysdeps/gnu/utmpx.h: Likewise.
4741         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
4742         * sysdeps/i386/i486/bits/string.h: Likewise.
4743         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
4744         * sysdeps/s390/bits/string.h: Likewise.
4745         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
4746         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
4747         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
4748         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
4749         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
4750         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
4751         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
4752         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
4753         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
4754         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
4755         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
4756         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
4757         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
4758         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
4759         * sysdeps/unix/sysv/linux/readv.c: Likewise.
4760         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
4761         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
4762         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
4763         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
4764         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
4765         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
4766         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
4767         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
4768         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
4769         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
4770         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
4771         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
4772         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
4773         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
4774         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
4775         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
4776         * sysvipc/sys/ipc.h: Likewise.
4777         * sysvipc/sys/msg.h: Likewise.
4778         * sysvipc/sys/sem.h: Likewise.
4779         * sysvipc/sys/shm.h: Likewise.
4780         * termios/termios.h: Likewise.
4781         * time/sys/time.h: Likewise.
4782         * time/time.h: Likewise.
4783         * wcsmbs/bits/wchar2.h: Likewise.
4784         * wcsmbs/uchar.h: Likewise.
4785         * wcsmbs/wchar.h: Likewise.
4786         * wctype/wctype.h: Likewise.
4787
4788         [BZ #13551]
4789         * Makeconfig: Remove all but ELF support including AIX support.
4790         * Makerules: Likewise.
4791         * config.h.in: Likewise.
4792         * config.make.in: Likewise.
4793         * configure: Likewise.
4794         * configure.in: Likewise.
4795         * csu/Makefile: Likewise.
4796         * csu/version.c: Likewise.
4797         * debug/Makefile: Likewise.
4798         * dlfcn/Makefile: Likewise.
4799         * elf/Makefile: Likewise.
4800         * extra-lib.mk: Likewise.
4801         * iconv/Makefile: Likewise.
4802         * include/libc-symbols.h: Likewise.
4803         * include/shlib-compat.h: Likewise.
4804         * resolv/Makefile: Likewise.
4805         * resolv/res_libc.c: Likewise.
4806         * rt/Makefile: Likewise.
4807         * sysdeps/i386/asm-syntax.h: Likewise.
4808         * sysdeps/i386/sysdep.h: Likewise.
4809         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
4810         * sysdeps/mach/sysdep.h: Likewise.
4811         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
4812         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
4813         * sysdeps/s390/asm-syntax.h: Likewise.
4814         * sysdeps/s390/s390-32/sysdep.h: Likewise.
4815         * sysdeps/s390/s390-64/sysdep.h: Likewise.
4816         * sysdeps/sh/sysdep.h: Likewise.
4817         * sysdeps/unix/sparc/sysdep.h: Likewise.
4818         * sysdeps/wordsize-32/divdi3.c: Likewise.
4819         * sysdeps/x86_64/sysdep.h: Likewise.
4820
4821         * argp/Versions: Remove _argp_unlock_xxx.
4822
4823         [BZ #13559]
4824         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
4825         * abilist/libBrokenLocale.abilist: Likewise.
4826         * abilist/libanl.abilist: Likewise.
4827         * abilist/libc.abilist: Likewise.
4828         * abilist/libcrypt.abilist: Likewise.
4829         * abilist/libdl.abilist: Likewise.
4830         * abilist/libm.abilist: Likewise.
4831         * abilist/libnsl.abilist: Likewise.
4832         * abilist/libpthread.abilist: Likewise.
4833         * abilist/libresolv.abilist: Likewise.
4834         * abilist/librt.abilist: Likewise.
4835         * abilist/libthread_db.abilist: Likewise.
4836         * abilist/libutil.abilist: Likewise.
4837         * abilist/libnss_db.abilist: New file.
4838
4839         * scripts/abilist.awk: Add support for indirect functions.
4840
4841         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
4842
4843         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
4844
4845         * shlib-versions: Remove entries for ports architectures.
4846
4847         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
4848         files in ports.
4849         * elf/stackguard-macros.h: Remove support for IA-64.
4850         * elf/tst-auditmod1.c: Likewise.
4851         * sysdeps/generic/ldsodefs.h: Likewise.
4852
4853         * sysdeps/unix/sysv/linux/configure.in: Ports should define
4854         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
4855         configure files.
4856
4857         [BZ #13552]
4858         * configure.in: Remove --enable-omitfp support.
4859         * FAQ.in: Adjust.
4860         * config.make.in: Likewise.
4861         * Makeconfig: Likewise.
4862         * manual/install.texi: Likewise.
4863
4864         In case anyone cares, the IA-64 architecture could move to ports.
4865         * sysdeps/ia64/*: Removed.
4866         * sysdeps/unix/sysv/linux/ia64/*: Removed.
4867         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
4868
4869         [BZ #13555]
4870         * configure.in: Remove entries for unsupported architectures.
4871
4872         [BZ #13533]
4873         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
4874         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
4875         routines.
4876         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
4877         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
4878         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
4879         fall back to using wcrtomb.
4880         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
4881         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
4882         renaming.
4883         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
4884         * wcsmbs/tst-c16c32-1.c: New file.
4885
4886         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
4887         local variable.
4888
4889         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
4890
4891         * elf/tst-unique3.cc: Add explicit declaration of gets.
4892         * elf/tst-unique3lib.cc: Likewise.
4893         * elf/tst-unique3lib2.cc: Likewise.
4894         * elf/tst-unique4.cc: Likewise.
4895
4896         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
4897
4898 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
4899
4900         [BZ #13566]
4901         * assert/assert.h (static_assert): Don't define for C++.
4902         * libio/stdio.h (gets): Do declare for C++ <= C++11.
4903         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
4904
4905 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
4906
4907         * iconv/loop.c (single loop): Fix assertion in storing of
4908         remaining bytes.
4909
4910         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
4911
4912 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
4913
4914         * posix/getconf.c: Update copyright year.
4915         * nss/getent.c: Likewise.
4916         * nss/makedb.c: Likewise.
4917         * iconv/iconvconfig.c: Likewise.
4918         * iconv/iconv_prog.c: Likewise.
4919         * elf/ldconfig.c: Likewise.
4920         * elf/pldd.c: Likewise.
4921         * elf/sotruss.ksh: Likewise.
4922         * catgets/gencat.c: Likewise.
4923         * csu/version.c: Likewise.
4924         * elf/ldd.bash.in: Likewise.
4925         * elf/sprof.c (print_version): Likewise.
4926         * locale/programs/locale.c: Likewise.
4927         * locale/programs/localedef.c: Likewise.
4928         * login/programs/pt_chown.c: Likewise.
4929         * nscd/nscd.c (print_version): Likewise.
4930         * debug/xtrace.sh: Likewise.
4931         * malloc/memusage.sh: Likewise.
4932         * malloc/mtrace.pl: Likewise.
4933         * debug/catchsegv.sh: Likewise.
4934
4935 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
4936
4937         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
4938         pure attribute.
4939
4940 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
4941
4942         [BZ #13533]
4943         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
4944         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
4945         transformations.
4946         * iconv/gconv_int.h: Likewise.
4947         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
4948         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
4949         from libc for GLIBC_2.16.
4950         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
4951         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
4952         * wcsmbs/uchar.h: Really define mbstate_t.
4953         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
4954         * wcsmbs/c16rtomb.c: New file.
4955         * wcsmbs/mbrtoc16.c: New file.
4956         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
4957         for C/POSIX locale.
4958         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
4959         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
4960
4961         * wcsmbs/wchar.h: Add missing __restrict.
4962
4963 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
4964
4965         [BZ #13532]
4966         * time/Makefile (routines): Add timespec_get.
4967         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
4968         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
4969         timespec for ISO C11.
4970         * time/timespec_get.c: New file.
4971         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
4972         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
4973
4974         [BZ #13531]
4975         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
4976         * stdlib/stdlib.h: Declare aligned_alloc.
4977         * Versions.def: Add GLIBC_2.16 for libc.
4978         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
4979
4980         [BZ 13527]
4981         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
4982         ISO C11.
4983
4984         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
4985         code.
4986
4987         [BZ #13528]
4988         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
4989
4990         [BZ #13529]
4991         * assert/assert.h (static_assert): Define.
4992
4993         * version.h: Update for 2.16 development version.
4994
4995         [BZ #13526]
4996         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
4997         _ISOC11_SOURCE.
4998
4999         * version.h (RELEASE): Bump for 2.15 release.
5000         * include/features.h (__GLIBC_MINOR__): Bump to 15.
5001
5002         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
5003         Patch by Marek Polacek <mpolacek@redhat.com>.
5004
5005         * bits/byteswap.h: Protect long long constants with __extension__.
5006         * sysdeps/i386/bits/byteswap.h: Likewise.
5007         * sysdeps/ia64/bits/byteswap.h: Likewise.
5008         * sysdeps/s390/bits/byteswap.h: Likewise.
5009         * sysdeps/x86_64/bits/byteswap.h: Likewise.
5010
5011 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5012
5013         [BZ #13540]
5014         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
5015         destination buffer.
5016         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
5017
5018 2011-12-23  Marek Polacek  <polacek@redhat.com>
5019
5020         * elf/dl-addr.c (determine_info): Add inline keyword.
5021         * elf/tst-auditmod4b.c (check_avx): Likewise.
5022         * elf/tst-auditmod6b.c (check_avx): Likewise.
5023         * elf/tst-auditmod6c.c (check_avx): Likewise.
5024         * elf/tst-auditmod7b.c (check_avx): Likewise.
5025
5026 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
5027
5028         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
5029         !__SSE_MATH__.
5030
5031 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5032
5033         [BZ #13540]
5034         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
5035         processing for last bytes.
5036
5037 2011-08-06  Bruno Haible  <bruno@clisp.org>
5038
5039         [BZ #13061]
5040         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
5041         U+0385, not to U+1FEE.
5042
5043         [BZ #13062]
5044         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
5045         entry for U+00A5 U+0301.
5046
5047 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
5048
5049         [BZ #13166]
5050         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
5051         buffer for the output is too small.
5052
5053         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
5054         optimization.
5055
5056         [BZ #13185]
5057         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
5058         SSE flags if possible.
5059
5060 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5061
5062         [BZ #13540]
5063         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
5064         processing for last bytes.
5065
5066 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
5067
5068         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
5069         (syscall-list-default-options, syscall-list-default-condition)
5070         (syscall-list-includes): Define.
5071         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
5072         list of ABIs and options and #if conditions for each ABI.  Do not
5073         handle common syscalls between ABIs specially.
5074         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
5075         Remove.
5076         (syscall-list-variants, syscall-list-32bit-options)
5077         (syscall-list-32bit-condition, syscall-list-64bit-options)
5078         (syscall-list-64bit-condition): Define.
5079         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
5080         (syscall-list-variants, syscall-list-32bit-options)
5081         (syscall-list-32bit-condition, syscall-list-64bit-options)
5082         (syscall-list-64bit-condition): Define.
5083         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
5084         Remove.
5085         (syscall-list-variants, syscall-list-32bit-options)
5086         (syscall-list-32bit-condition, syscall-list-64bit-options)
5087         (syscall-list-64bit-condition): Define.
5088         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
5089         Remove.
5090         (syscall-list-variants, syscall-list-32bit-options)
5091         (syscall-list-32bit-condition, syscall-list-64bit-options)
5092         (syscall-list-64bit-condition): Define.
5093
5094 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
5095
5096         * locale/iso-639.def: Add brx entry.
5097
5098         [BZ #13328]
5099         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
5100         Proposed by Mariusz_Cukr <marcukr@op.pl>.
5101
5102         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
5103         __feraiseexcept_renamed.
5104
5105 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
5106
5107         [BZ #13538]
5108         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
5109         EPOLLET with unsigned values.
5110         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
5111         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
5112
5113         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
5114         to large cancellation.
5115         * math/s_cacoshf.c: Likewise.
5116         * math/s_cacoshl.c: Likewise.
5117
5118 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
5119
5120         [BZ #13305]
5121         [BZ #12786]
5122         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
5123         * math/s_cacoshf.c: Likewise.
5124         * math/s_cacoshl.c: Likewise.
5125
5126 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
5127
5128         [BZ #13439]
5129         * iconv/gconv.h: Define __GCONV_SWAP.
5130         * iconvdata/unicode.c: The swap bit must be stored in __flags.
5131         * iconvdata/utf-16.c: Likewise.
5132         * iconvdata/utf-32.c: Likewise.
5133
5134 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
5135
5136         [BZ #13524]
5137         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
5138         numerator after shifting it by one limb.
5139
5140 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
5141
5142         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
5143         under [__USE_EXTERN_INLINES].
5144
5145 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
5146
5147         [BZ #13446]
5148         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
5149
5150 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5151
5152         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
5153         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
5154         optimized code.
5155         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
5156         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
5157         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
5158         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
5159         for strncasecmp/strncasecmp_l compilation.
5160         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
5161         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
5162
5163 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
5164
5165         [BZ #13484]
5166         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
5167         of __asm__.
5168
5169 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
5170
5171         [BZ #13506]
5172         * time/tzfile.c (__tzfile_read): Check values from file header.
5173
5174 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
5175
5176         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
5177         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
5178         * powerpc/powerpc32/dl-start.S: Likewise.
5179         * powerpc/powerpc32/elf/start.S: Likewise.
5180         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
5181         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
5182         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
5183         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
5184         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
5185         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
5186         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
5187         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
5188         * powerpc/powerpc32/fpu/s_round.S: Likewise.
5189         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
5190         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
5191         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
5192         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
5193         * powerpc/powerpc32/memset.S: Likewise.
5194         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
5195         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
5196         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
5197         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
5198         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
5199         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
5200         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
5201         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
5202         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
5203         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
5204         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
5205         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
5206         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
5207
5208 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5209
5210         * math/libm-test.inc: Added more nearbyint tests.
5211         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
5212         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
5213         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
5214         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
5215
5216 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
5217
5218         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
5219         FD_CLOEXEC.
5220
5221 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5222
5223         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
5224         Add wcscpy-ssse3 wcscpy-c.
5225         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
5226         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
5227         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
5228         * sysdeps/x86_64/wcschr.S: New file.
5229         * sysdeps/x86_64/wcsrchr.S: New file.
5230         * string/test-strcmp.c: Remove checking of wcscmp function for
5231         wrong alignments.
5232         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
5233         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
5234         wcsrchr-sse2 wcsrchr-c.
5235         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
5236         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
5237         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
5238         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
5239         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
5240         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
5241         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
5242         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
5243         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
5244         * wcsmbc/wcschr.c (WCSCHR): New macro.
5245
5246 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5247
5248         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
5249         * wcsmbs/test-wcsrchr.c: New file.
5250         * string/test-strrchr.c: Add wcsrchr support.
5251         (WIDE): New macro.
5252         * wcsmbs/test-wcscpy.c: New file.
5253         * string/test-strcpy.c: Add wcscpy support.
5254         (WIDE): New macro.
5255
5256 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
5257
5258         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
5259         the inner loop.
5260
5261 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
5262
5263         [BZ #13472]
5264         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
5265
5266 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
5267
5268         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
5269         Minor optimizations.
5270
5271         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
5272         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
5273         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
5274
5275 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
5276
5277         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
5278         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
5279         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
5280         for gcc to avoid warnings.
5281         * inet/Makefile (tests): Add tst-checks.
5282         * inet/tst-checks.c: New file.
5283
5284         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
5285         warning.
5286
5287         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
5288         __wmemcmp_sse2.
5289
5290         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
5291         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
5292
5293         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
5294
5295 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
5296
5297         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
5298         problem.
5299
5300         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
5301
5302 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
5303
5304         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
5305         conditional on GCC version.
5306         (__arch_compare_and_exchange_val_8_acq)
5307         (__arch_compare_and_exchange_val_16_acq)
5308         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
5309         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
5310         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
5311
5312 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
5313
5314         * sysdeps/sh/backtrace.c: New file.
5315
5316 2011-12-02  Andreas Schwab  <schwab@redhat.com>
5317
5318         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
5319         parenthesis.
5320
5321 2011-12-01  Andreas Schwab  <schwab@redhat.com>
5322
5323         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
5324         falling back to utime.
5325
5326 2011-11-30  Andreas Schwab  <schwab@redhat.com>
5327
5328         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
5329         expectations for float.
5330
5331 2011-11-29  Andreas Schwab  <schwab@redhat.com>
5332
5333         * locale/weight.h (findidx): Add parameter len.
5334         * locale/weightwc.h (findidx): Likewise.
5335         * posix/fnmatch_loop.c (FCT): Adjust caller.
5336         * posix/regcomp.c (build_equiv_class): Likewise.
5337         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
5338         * posix/regexec.c (check_node_accept_bytes): Likewise.
5339         * string/strcoll_l.c (STRCOLL): Likewise.
5340         * string/strxfrm_l.c (STRXFRM): Likewise.
5341
5342 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
5343
5344         * Makefile.in: Remove CVSOPT handling.
5345         * configure.in: Remove use of AC_REVISION.
5346         * iconvdata/Makefile (distribute): No need to filter out CVS.
5347         * scripts/list-sources.sh: Remove CVS, subversion and monotone
5348         handling.
5349
5350 2011-11-16  Andreas Schwab  <schwab@redhat.com>
5351
5352         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
5353         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
5354         [USE_AS_STRNCASECMP_L]: Likewise.
5355         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
5356         NO_TLS_DIRECT_SEG_REFS.
5357         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
5358         Fix argument offsets for non-PIC.
5359         [USE_AS_STRNCASECMP_L]: Likewise.
5360         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
5361         NO_TLS_DIRECT_SEG_REFS.
5362
5363 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
5364
5365         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
5366         O_CLOEXEC.
5367         * locale/loadlocale.c (_nl_load_locale): Likewise.
5368
5369 2011-11-15  Andreas Schwab  <schwab@redhat.com>
5370
5371         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
5372         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
5373         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
5374         (SYSCALL_GETTIME): Set errno on error.
5375
5376         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
5377         count references to noai6ai_cached.
5378
5379 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
5380
5381         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
5382
5383         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
5384         FD_CLOEXEC for /proc/self/maps.
5385
5386         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
5387         FD_CLOEXEC for /proc/meminfo.
5388
5389         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
5390         gai.conf.
5391
5392         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
5393         FD_CLOEXEC for given file.
5394
5395         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
5396
5397         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
5398         FD_CLOEXEC for /etc/hosts.
5399         (_gethtent): Likewise.
5400
5401         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
5402
5403         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
5404         cancellation and set FD_CLOEXEC for /etc/netgroup.
5405
5406         * nss/nss_files/files-key.c (search): Don't allow cancellation when
5407         reading /etc/publickey.
5408
5409         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
5410         allow cancellation when reading /etc/group.
5411
5412         * nss/nss_files/files-alias.c (internal_setent): Don't allow
5413         cancellation.
5414         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
5415
5416         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
5417         when using data file.
5418
5419         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
5420
5421         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
5422         (write_nis_obj): Use "c" and "e" in fopen.
5423
5424         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
5425
5426         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
5427
5428         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
5429
5430         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
5431
5432         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
5433         locale.alias.
5434
5435         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
5436
5437         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
5438
5439         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
5440
5441         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
5442         file parsing and set FD_CLOEXEC.
5443
5444 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
5445
5446         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
5447
5448 2011-11-14  Andreas Schwab  <schwab@redhat.com>
5449
5450         * malloc/arena.c (arena_get2): Don't call reused_arena when
5451         _int_new_arena failed.
5452
5453 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
5454
5455         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
5456         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
5457         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
5458         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
5459         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
5460         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
5461         to compile strcasecmp and strncasecmp.
5462         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
5463         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
5464
5465         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
5466
5467 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
5468
5469         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
5470         locale-defines.sym to gen-as-const-headers.
5471         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
5472         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
5473         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
5474         to compile strcasecmp and strncasecmp.
5475         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
5476         strcasecmp_l and strncasecmp_l.
5477         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
5478         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
5479         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
5480         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
5481         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
5482         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
5483         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
5484         * sysdeps/i386/i686/multiarch/strncase.S: New file.
5485         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
5486         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
5487         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
5488
5489 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
5490
5491         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
5492         result of SYSDEP_GETTIME_CPU to retval.
5493         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
5494         parameter list to macro.  Remove trailing semicolon.  Adjust users.
5495
5496         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
5497         variable.
5498
5499         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
5500         mantissa words.
5501         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
5502
5503         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
5504         from unused variable.
5505
5506         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
5507         DWARF definitions.
5508         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
5509         for assembling.
5510
5511         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
5512         over namespaces.
5513
5514         * sunrpc/rpc_prot.c (rejected): Fix case value.
5515
5516         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
5517         unsigned long long int to avoid warnings in shift.
5518
5519         * posix/regex_internal.c (re_string_reconstruct): Actually use result
5520         of use of trans.
5521         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
5522         variable tmp.
5523
5524         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
5525         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
5526         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
5527
5528         * nis/nis_table.c (nis_list): Use variable of correct type for
5529         result of __follow_path call.
5530
5531 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5532
5533         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
5534         of math functions ceil, trunc, floor, round, and sqrt, when
5535         avaliable on the platform.
5536         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
5537         name clash.
5538         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
5539         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
5540         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
5541
5542 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
5543
5544         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
5545         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
5546
5547 2011-11-11  Roland McGrath  <roland@hack.frob.com>
5548
5549         * include/unistd.h: Fix __readlink return type.
5550         Reported by Chris Metcalf <cmetcalf@tilera.com>.
5551
5552 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
5553
5554         * stdlib/ucontext.h: Undo last change for makecontext.
5555
5556 2011-11-11  Andreas Schwab  <schwab@redhat.com>
5557
5558         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
5559
5560         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
5561         * setjmp/setjmp.h: Mark functions as non-leaf.
5562         * setjmp/bits/setjmp2.h: Likewise.
5563         * stdlib/ucontext.h: Likewise.
5564
5565 2011-11-10  Andreas Schwab  <schwab@redhat.com>
5566
5567         * malloc/arena.c (_int_new_arena): Don't increment narenas.
5568         (reused_arena): Don't check arena limit.
5569         (arena_get2): Atomically check arena limit.
5570
5571 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
5572
5573         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
5574         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
5575
5576         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
5577         instructions.
5578
5579 2011-11-07  Andreas Schwab  <schwab@redhat.com>
5580
5581         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
5582         handler when locking.
5583
5584         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
5585         Fix size of allocated buffer.
5586
5587 2011-11-04  Andreas Schwab  <schwab@redhat.com>
5588
5589         [BZ #10103]
5590         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
5591         declarations for long double functions.
5592         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
5593
5594         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
5595
5596 2011-11-03  Andreas Schwab  <schwab@redhat.com>
5597
5598         * nscd/nscd.c (main): Don't start AVC thread until credentials are
5599         installed.
5600
5601         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
5602         is disabled.
5603
5604 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5605
5606         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
5607
5608 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
5609
5610         * include/alloca.h (stackinfo_alloca_round): Define.
5611         (extend_alloca): Use it.
5612         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
5613         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
5614         here.
5615
5616         * scripts/check-local-headers.sh: Ignore libaudit.h.
5617
5618         * nscd/Makefile (extra-objs): Make recursively expanded.
5619
5620 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
5621
5622         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
5623         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
5624
5625         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
5626         * posix/tst-rfc3484-2.c: Likewise.
5627         * posix/tst-rfc3484-3.c: Likewise.
5628
5629         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
5630         process_vm_writev.
5631         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
5632         process_vm_writev.
5633         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
5634         process_vm_writev from libc using GLIBC_2.15 version.
5635
5636         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
5637
5638 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
5639
5640         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
5641         stack usage.
5642
5643 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
5644
5645         [BZ #13367]
5646         * nss/getent.c (initgroups_keys): Show error message in case no group
5647         names are given.
5648
5649         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
5650         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
5651         __bump_nl_timestamp.
5652         * nscd/connections (nscd_init): When host database is served open
5653         netlink socket and request notification about configuration changes.
5654         (main_loop_poll): Track netlink file descriptor and bump timestamp
5655         in case data becomes available.
5656         (main_loop_epoll): Likewise.
5657         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
5658         (database_pers_head): Add extra_data fileds.
5659         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
5660         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
5661         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
5662         Adjust caller.
5663         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
5664         in6ai data, call __free_in6ai.
5665         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
5666         Add -DHAVE_NETLINK.
5667         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
5668         interface information.  Reuse previous data if netlink timestamp
5669         is not changed.
5670         (__bump_nl_timestamp): New function.
5671         (__free_in6ai): New function.
5672
5673 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
5674
5675         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
5676         close_not_cancel_no_status here.
5677         (__check_pf): Reorganize code a bit to not call close twice if OOM.
5678
5679 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
5680
5681         [BZ #13276]
5682         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
5683         return value.
5684
5685         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
5686         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
5687         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
5688
5689 2011-07-03  Andreas Jaeger  <aj@suse.de>
5690
5691         [BZ #10709]
5692         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
5693         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
5694         * math/libm-test.inc (sin_test): Add test case.
5695
5696 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
5697
5698         [BZ #13337]
5699         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
5700         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
5701
5702         * elf/chroot_canon.c (chroot_canon): Cleanups.
5703
5704         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
5705
5706         [BZ #13335]
5707         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
5708         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
5709
5710         * string/test-strchr.c: Make usable for strchrnul testing.
5711         * string/test-strchrnul.c: New file.
5712         * string/Makefile (strop-tests): Add strchrnul.
5713
5714         * po/it.po: Update from translation team.
5715         * po/es.po: Likewise.
5716
5717 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
5718
5719         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
5720         the three constants needed as parameters.  Drop the others.
5721         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
5722         __m128i_strloadu_tolower.
5723         Create and initialize variable zero and use it in all the places
5724         where _mm_setzero_si128 was used.
5725
5726         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
5727         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
5728         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
5729         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
5730         anymore.
5731         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
5732         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
5733         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
5734         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
5735         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
5736         __mpranred, __mptan.
5737         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
5738         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
5739         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
5740         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
5741         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
5742         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
5743         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
5744         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
5745         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
5746
5747 2011-10-28  Andreas Schwab  <schwab@redhat.com>
5748
5749         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
5750         redefine if SHARED.
5751         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
5752
5753         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
5754         wide char related routines to wcsmbs subdir.
5755
5756 2011-10-27  Andreas Schwab  <schwab@redhat.com>
5757
5758         [BZ #13344]
5759         * misc/sys/cdefs.h (__THROWNL): Define.
5760         * posix/unistd.h: Use __THREADNL instead of __THREAD
5761         for memory synchronization functions.
5762
5763 2011-10-26  Roland McGrath  <roland@hack.frob.com>
5764
5765         [BZ #13349]
5766         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
5767         doesn't exist.
5768         * manual/stdio.texi (Obstack Streams): Node removed.
5769
5770 2011-10-26  Andreas Schwab  <schwab@redhat.com>
5771
5772         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
5773         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
5774         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
5775
5776         * math/math_private.h (math_force_eval): Allow non-addressable
5777         arguments.
5778         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
5779
5780 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
5781
5782         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
5783         file is not needed.
5784
5785         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
5786         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
5787         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
5788         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
5789         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
5790         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
5791         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
5792         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
5793         Add AVX variants.
5794         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
5795         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
5796         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
5797         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
5798         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
5799         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
5800         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
5801         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
5802         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
5803         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
5804         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
5805         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
5806         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
5807         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
5808         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
5809         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
5810         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
5811         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
5812         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
5813
5814         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
5815         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
5816
5817         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
5818         place.  Use VEX encoding when compiling for AVX.
5819
5820 2011-10-25  Andreas Schwab  <schwab@redhat.com>
5821
5822         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
5823         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
5824
5825         * string/test-strchr.c (do_test): Don't generate NUL bytes.
5826
5827 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
5828
5829         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
5830         useless if() expression.
5831         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
5832         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
5833         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
5834         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
5835         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
5836         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
5837         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
5838         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
5839         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
5840         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
5841         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
5842         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
5843         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
5844         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
5845         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
5846         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
5847         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
5848         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
5849         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
5850
5851         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
5852
5853 2011-10-25  Andreas Schwab  <schwab@redhat.com>
5854
5855         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
5856         condition.
5857         * elf/dl-fini.c (_dl_sort_fini): Likewise.
5858
5859 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
5860
5861         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
5862         .text section.  Avoid duplicate constants.
5863         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
5864         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
5865         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
5866         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
5867         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
5868         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
5869         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
5870         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
5871         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
5872         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
5873         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
5874         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
5875         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
5876         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
5877         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
5878         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
5879         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
5880         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
5881         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
5882         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
5883         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
5884         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
5885         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
5886         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
5887         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
5888         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
5889         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
5890         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
5891         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
5892         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
5893         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
5894         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
5895         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
5896         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
5897         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
5898         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
5899         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
5900         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
5901         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
5902         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
5903         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
5904         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
5905         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
5906         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
5907         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
5908
5909 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
5910
5911         * sysdeps/x86_64/dla.h: Move to ...
5912         * sysdeps/x86_64/fpu/dla.h: ...here.
5913         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
5914         situations.  Use __builtin_fma only for gcc 4.6 and up.
5915
5916         * config.make.in: Add have-mfma4 entry.
5917         * configure.in: Substitute libc_cv_cc_fma4.
5918         * math/Makefile (dbl-only-routines): Add sincostab.
5919         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
5920         Use __sincostab not sincos.
5921         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
5922         name is a macro.
5923         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
5924         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
5925         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
5926         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
5927         using __copysign.
5928         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
5929         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
5930         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
5931         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
5932         and __inv.
5933         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
5934         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
5935         __copysign.
5936         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
5937         define aliases when function name is a macro.
5938         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
5939         sysdeps/ieee754/dbl-64/sincos.tbl.
5940         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
5941         fma4-enabled routines.
5942         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
5943         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
5944         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
5945         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
5946         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
5947         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
5948         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
5949         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
5950         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
5951         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
5952         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
5953         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
5954         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
5955         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
5956         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
5957         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
5958         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
5959         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
5960         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
5961         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
5962         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
5963         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
5964         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
5965         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
5966         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
5967         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
5968         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
5969         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
5970         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
5971         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
5972
5973         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
5974         rename.
5975         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
5976         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
5977         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
5978         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
5979         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
5980         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
5981         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
5982         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
5983
5984 2011-10-24  Andreas Schwab  <schwab@redhat.com>
5985
5986         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
5987
5988 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
5989
5990         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
5991
5992         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
5993         prediction.
5994         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
5995
5996         * string/strnlen.c: Don't define STRNLEN, reverse logic.
5997         Remove unused variable magic_bits.
5998         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
5999
6000         * string/strnlen.c: Define and use STRNLEN macro.
6001         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
6002         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
6003         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
6004         * wcsmbs/wcslen.c: Define and use WCSLEN.
6005         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
6006         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
6007         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
6008         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
6009         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
6010         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
6011         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
6012
6013 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6014
6015         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
6016         strnlen-sse2-no-bsf.
6017         Rename strlen-no-bsf to strlen-sse2-no-bsf.
6018         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
6019         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
6020         Add strnlen support.
6021         (USE_AS_STRNLEN): New macro.
6022         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
6023         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
6024         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
6025         * sysdeps/x86_64/wcslen.S: New file.
6026
6027 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
6028
6029         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
6030         XMM-moves are used for copying on small sizes.
6031
6032 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6033
6034         * wcsmbs/Makefile (strop-tests): Add wcschr.
6035         * wcsmbs/test-wcschr.c: New file.
6036         * string/test-strchr.c: Update.
6037         Add wcschr support.
6038         (WIDE): New macro.
6039
6040 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6041
6042         * wcsmbs/Makefile (strop-tests): Add wcslen.
6043         * wcsmbs/test-wcslen.c: New file.
6044         * string/test-strlen.c: Update.
6045         Add wcslen support.
6046         (WIDE): New macro.
6047
6048 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
6049
6050         * po/it.po: Update from translation team.
6051
6052 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6053
6054         * sysdeps/x86_64/wcscmp.S: Update.
6055         Fix wrong comparison semantics.
6056         wcscmp shall use signed comparison not unsigned.
6057         Don't use substraction to avoid overflow bug.
6058         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
6059         * wcsmbc/wcscmp.c: Likewise.
6060         * string/test-strcmp.c: Likewise.
6061         Add new tests to check cases with negative values.
6062
6063 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
6064
6065         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
6066         * sysdeps/x86_64/dla.h: ...here.  New file.
6067         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
6068         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
6069         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
6070         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
6071         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
6072         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
6073         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
6074         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
6075         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
6076
6077 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
6078
6079         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
6080         __ynl_finite aliases.
6081
6082 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
6083
6084         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6085
6086         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
6087         define DLA_FMA.
6088         [DLA_FMA] (EMULV): Use DLA_FMA.
6089         [DLA_FMA] (MUL12): Use EMULV.
6090         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
6091         that are not needed.
6092         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
6093         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
6094         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
6095         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
6096         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
6097         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
6098         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
6099
6100 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
6101
6102         * math/s_nan.c: Undef __nan.
6103         * math/s_nanf.c: Undef __nanf.
6104         * math/s_nanl.c: Undef __nanl.
6105         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
6106         "math_private.h".
6107
6108 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
6109
6110         * math/s_catan.c: Add branch predictions.
6111         * math/s_catanf.c: Likewise.
6112         * math/s_catanh.c: Likewise.
6113         * math/s_catanhf.c: Likewise.
6114         * math/s_catanhl.c: Likewise.
6115         * math/s_catanl.c: Likewise.
6116         * math/s_cexp.c: Likewise.
6117         * math/s_cexpf.c: Likewise.
6118         * math/s_cexpl.c: Likewise.
6119         * math/s_clog.c: Likewise.
6120         * math/s_clog10.c: Likewise.
6121         * math/s_clog10f.c: Likewise.
6122         * math/s_clog10l.c: Likewise.
6123         * math/s_clogf.c: Likewise.
6124         * math/s_clogl.c: Likewise.
6125         * math/s_csqrt.c: Likewise.
6126         * math/s_csqrtf.c: Likewise.
6127         * math/s_csqrtl.c: Likewise.
6128         * math/s_ctanf.c: Likewise.
6129         * math/s_ctanh.c: Likewise.
6130         * math/s_ctanhf.c: Likewise.
6131         * math/s_ctanhl.c: Likewise.
6132         * math/s_ctanl.c: Likewise.
6133
6134         * math/math_private.h: Define __nan, __nanf, __nanl.
6135         * math/s_cacosh.c: Include <math_private.h>.
6136         * math/s_cacoshl.c: Likewise.
6137         * math/s_casinh.c: Likewise.
6138         * math/s_casinhf.c: Likewise.
6139         * math/s_casinhl.c: Likewise.
6140         * math/s_ccos.c: Rely entire on ccosh.
6141         * math/s_ccosf.c: Rely entire on ccoshf.
6142         * math/s_ccosl.c: Rely entirely on ccoshl.
6143         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
6144         Remove tests for FE_INVALID.
6145         * math/s_ccoshf.c: Likewise.
6146         * math/s_ccoshl.c: Likewise.
6147         * math/s_csin.c: Likewise.
6148         * math/s_csinf.c: Likewise.
6149         * math/s_csinh.c Likewise.
6150         * math/s_csinhf.c: Likewise.
6151         * math/s_csinhl.c: Likewise.
6152         * math/s_csinl.c: Likewise.
6153         * math/s_ctan.c: Likewise.
6154         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
6155         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
6156         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
6157
6158 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
6159
6160         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
6161         compilation problems.
6162
6163         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
6164         __builtin_expect.
6165
6166 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
6167
6168         * sysdeps/i386/configure.in: Test for -mfma4 option.
6169         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
6170         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
6171         COMMON_CPUID_INDEX_80000001.
6172         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
6173         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
6174         use it if FMA3 is not supported.
6175         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
6176
6177         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
6178         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
6179
6180 2011-10-20  Andreas Schwab  <schwab@redhat.com>
6181
6182         [BZ #12892]
6183         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
6184         it would create a cycle with a link time dependency.
6185
6186 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
6187
6188         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
6189         instruction.
6190         * string/Makefile (strop-tests): Add rawmemchr.
6191         * string/test-rawmemchr.c: New file.
6192
6193         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
6194         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
6195         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
6196         when compiling str{,n}casecmp and when AVX is available.  Hook up
6197         new optimized code in initializers.
6198
6199 2011-10-19  Andreas Schwab  <schwab@redhat.com>
6200
6201         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
6202         __feraiseexcept instead of feraiseexcept.
6203
6204 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
6205
6206         * math/math_private.h: Define defaults for libc_fetestexcept and
6207         libc_feupdateenv.
6208         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
6209         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
6210         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
6211         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
6212         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
6213         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
6214         libc_fetestexcept and libc_feupdateenv.
6215
6216         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
6217         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
6218         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
6219         * sysdeps/x86_64/fpu/math_private.h: Define special version of
6220         libc_feholdexcept_setround.
6221
6222         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
6223         Add s_nearbyint-c and s_nearbyintf-c.
6224         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
6225         nearbyintf inlines.
6226         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
6227         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
6228         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
6229         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
6230
6231         * math/math_private.h: Define defaults for libc_fegetround,
6232         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
6233         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
6234         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
6235         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
6236         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
6237         standard functions.
6238         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
6239         Remove comments and hacks for old compiler versions.
6240         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
6241         libc_fegetround, libc_fesetround, libc_feholdexcept, and
6242         libc_feholdexceptl.
6243
6244 2011-10-18  Andreas Schwab  <schwab@redhat.com>
6245
6246         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
6247         (__feraiseexcept_renamed): Add __NTH.
6248         (feraiseexcept): Add __NTH.  Rename local variables to fix
6249         namespace violations.
6250
6251 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
6252
6253         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
6254
6255         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
6256
6257         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
6258         recently added interfaces.
6259         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
6260
6261         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
6262         about macro parameter expansion.
6263
6264         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
6265         __NO_MATH_INLINES is defined.  Cleanups.
6266
6267         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
6268         and __floorf is target has SSE4.1.
6269         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
6270         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
6271         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
6272         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
6273
6274         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
6275         name.
6276         (floorf): Likewise.
6277
6278         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
6279
6280 2011-10-17  Andreas Schwab  <schwab@redhat.com>
6281
6282         * misc/sys/cdefs.h: Fix last change.
6283
6284         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
6285         database lookup.
6286
6287 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
6288
6289         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
6290
6291         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
6292         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
6293         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
6294         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
6295         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
6296         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
6297         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
6298         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
6299         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
6300         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
6301         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
6302         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
6303         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
6304         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
6305         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
6306         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
6307         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
6308         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
6309         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
6310         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
6311         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
6312         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
6313
6314         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
6315         ceil, ceilf, floor, floorf.
6316
6317         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
6318         Perform IRELATIVE relocations last.
6319
6320         * elf/do-rel.h: Add another parameter nrelative, replacing the
6321         local variable with the same name.  Change name of the function
6322         to end in Rel or Rela (uppercase).
6323         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
6324         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
6325         elf_dynamic_do_##reloc function.
6326
6327 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
6328
6329         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
6330         is sufficient, at least on modern CPUs.
6331
6332         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
6333
6334         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
6335         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
6336
6337         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
6338         __expl_finite.
6339         * math/bits/math-finite.h: Add entries for exp.
6340         * math/e_expl.c: Add __*_finite alias.
6341         * sysdeps/i386/fpu/e_exp.S: Likewise.
6342         * sysdeps/i386/fpu/e_expf.S: Likewise.
6343         * sysdeps/i386/fpu/e_expl.c: Likewise.
6344         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
6345         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
6346         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
6347         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
6348         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
6349         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
6350         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
6351
6352         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
6353         is sufficient, at least on modern CPUs.
6354
6355         * ctype/ctype-info.c (__ctype_init): Define.
6356         * include/ctype.h (__ctype_init): Declare.
6357         (__ctype_b_loc): The variable is always initialized.
6358         (__ctype_toupper_loc): Likewise.
6359         (__ctype_tolower_loc): Likewise.
6360         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
6361         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
6362
6363 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
6364
6365         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
6366
6367         * configure.in: Also look in $cxxmachine/include for C++ system
6368         headers.
6369
6370 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6371
6372         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
6373         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
6374         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
6375         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
6376         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
6377         (USE_AS_WMEMCMP): New macro.
6378         Fixing indents.
6379         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
6380         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
6381         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
6382         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
6383         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
6384         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
6385         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
6386         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
6387         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
6388         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
6389         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
6390         (USE_AS_WMEMCMP): New macro.
6391         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
6392         * sysdeps/string/test-memcmp.c: Update.
6393         Fix simple_wmemcmp.
6394         Add new tests.
6395         * wcsmbs/wmemcmp.c: Update.
6396         (WMEMCMP): New macro.
6397         Fix overflow bug.
6398
6399 2011-10-12  Andreas Jaeger  <aj@suse.de>
6400
6401         [BZ #13268]
6402         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
6403
6404 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
6405
6406         * libio/iofwide.c (do_length): Avoid warning.
6407
6408         * ctype/ctype.h (__isctype_f): Add missing __THROW.
6409
6410 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
6411
6412         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
6413
6414         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
6415         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
6416         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
6417         * sysdeps/i386/i686/fpu/e_log.S: New file.
6418         * sysdeps/i386/i686/fpu/e_logf.S: New file.
6419         * sysdeps/i386/i686/fpu/e_logl.S: New file.
6420
6421         * ctype/ctype.h: Add support for inlined isXXX functions when
6422         compiling C++ code.
6423
6424 2011-10-14  Andreas Schwab  <schwab@redhat.com>
6425
6426         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
6427
6428         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
6429
6430 2011-10-13  Roland McGrath  <roland@hack.frob.com>
6431
6432         [BZ #13291]
6433         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
6434
6435 2011-10-13  Andreas Schwab  <schwab@redhat.com>
6436
6437         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
6438         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
6439         feraiseexcept.
6440
6441         * sysdeps/x86_64/memrchr.S: Check for zero size.
6442
6443         * string/stratcliff.c: Add memrchr tests.
6444
6445 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6446
6447         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
6448         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
6449         rawmemchr-sse2 rawmemchr-sse2-bsf.
6450         * sysdeps/i386/i686/multiarch/memchr.S: New file.
6451         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
6452         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
6453         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
6454         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
6455         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
6456         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
6457         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
6458         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
6459         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
6460         * string/memrchr.c (MEMRCHR): New macro.
6461
6462 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
6463
6464         Add integration with gcc's -ffinite-math-only and optimize wrapper
6465         functions in libm.
6466         * Versions.def: Define GLIBC_2.15 version for libm.
6467         * math/Makefile (headers): Add bits/math-finite.h.
6468         * math/bits/math-finite.h: New file.
6469         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
6470         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
6471         * math/e_acoshl.c: Add __*_finite alias.
6472         * math/e_acosl.c: Likewise.
6473         * math/e_asinl.c: Likewise.
6474         * math/e_atan2l.c: Likewise.
6475         * math/e_atanhl.c: Likewise.
6476         * math/e_coshl.c: Likewise.
6477         * math/e_exp10.c: Likewise.
6478         * math/e_exp10f.c: Likewise.
6479         * math/e_exp10l.c: Likewise.
6480         * math/e_exp2l.c: Likewise.
6481         * math/e_fmodl.c: Likewise.
6482         * math/e_gammal_r.c: Likewise.
6483         * math/e_hypotl.c: Likewise.
6484         * math/e_j0l.c: Likewise.
6485         * math/e_j1l.c: Likewise.
6486         * math/e_jnl.c: Likewise.
6487         * math/e_lgammal_r.c: Likewise.
6488         * math/e_log10l.c: Likewise.
6489         * math/e_log2l.c: Likewise.
6490         * math/e_logl.c: Likewise.
6491         * math/e_powl.c: Likewise.
6492         * math/e_sinhl.c: Likewise.
6493         * math/e_sqrtl.c: Likewise.
6494         * math/e_scalb.c: Completely rewritten and optimized.
6495         * math/e_scalbf.c: Likewise.
6496         * math/e_scalbl.c: Likewise.
6497         * math/w_acos.c: Likewise.
6498         * math/w_acosf.c: Likewise.
6499         * math/w_acosl.c: Likewise.
6500         * math/w_acosh.c: Likewise.
6501         * math/w_acoshf.c: Likewise.
6502         * math/w_acoshl.c: Likewise.
6503         * math/w_asin.c: Likewise.
6504         * math/w_asinf.c: Likewise.
6505         * math/w_asinl.c: Likewise.
6506         * math/w_atan2.c: Likewise.
6507         * math/w_atan2f.c: Likewise.
6508         * math/w_atan2l.c: Likewise.
6509         * math/w_atanh.c: Likewise.
6510         * math/w_atanhf.c: Likewise.
6511         * math/w_atanhl.c: Likewise.
6512         * math/w_exp10.c: Likewise.
6513         * math/w_exp10f.c: Likewise.
6514         * math/w_exp10l.c: Likewise.
6515         * math/w_fmod.c: Likewise.
6516         * math/w_fmodf.c: Likewise.
6517         * math/w_fmodl.c: Likewise.
6518         * math/w_j0.c: Likewise.
6519         * math/w_j0f.c: Likewise.
6520         * math/w_j0l.c: Likewise.
6521         * math/w_j1.c: Likewise.
6522         * math/w_j1f.c: Likewise.
6523         * math/w_j1l.c: Likewise.
6524         * math/w_jn.c: Likewise.
6525         * math/w_jnf.c: Likewise.
6526         * math/w_log.c: Likewise.
6527         * math/w_logf.c: Likewise.
6528         * math/w_logl.c: Likewise.
6529         * math/w_log10.c: Likewise.
6530         * math/w_log10f.c: Likewise.
6531         * math/w_log10l.c: Likewise.
6532         * math/w_log2.c: Likewise.
6533         * math/w_log2f.c: Likewise.
6534         * math/w_log2l.c: Likewise.
6535         * math/w_pow.c: Likewise.
6536         * math/w_powf.c: Likewise.
6537         * math/w_powl.c: Likewise.
6538         * math/w_remainder.c: Likewise.
6539         * math/w_remainderf.c: Likewise.
6540         * math/w_remainderl.c: Likewise.
6541         * math/w_scalb.c: Likewise.
6542         * math/w_scalbf.c: Likewise.
6543         * math/w_scalbl.c: Likewise.
6544         * math/w_sqrt.c: Likewise.
6545         * math/w_sqrtf.c: Likewise.
6546         * math/w_sqrtl.c: Likewise.
6547         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
6548         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
6549         used.
6550         * math/math_private.h: Declare __kernel_standard_f.
6551         * math/w_cosh.c: Remove cruft and optimize a bit.
6552         * math/w_coshf.c: Likewise.
6553         * math/w_coshl.c: Likewise.
6554         * math/w_exp2.c: Likewise.
6555         * math/w_exp2f.c: Likewise.
6556         * math/w_exp2l.c: Likewise.
6557         * math/w_hypot.c: Likewise.
6558         * math/w_hypotf.c: Likewise.
6559         * math/w_hypotl.c: Likewise.
6560         * math/w_lgamma.c: Likewise.
6561         * math/w_lgamma_r.c: Likewise.
6562         * math/w_lgammaf.c: Likewise.
6563         * math/w_lgammaf_r.c: Likewise.
6564         * math/w_lgammal.c: Likewise.
6565         * math/w_lgammal_r.c: Likewise.
6566         * math/w_sinh.c: Likewise.
6567         * math/w_sinhf.c: Likewise.
6568         * math/w_sinhl.c: Likewise.
6569         * math/w_tgamma.c: Likewise.
6570         * math/w_tgammaf.c: Likewise.
6571         * math/w_tgammal.c: Likewise.
6572         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
6573         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
6574         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
6575         Minor optimizations.  Pretty printing.  Remove cruft.
6576         * sysdeps/i386/fpu/e_acosf.S: Likewise.
6577         * sysdeps/i386/fpu/e_acosh.S: Likewise.
6578         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
6579         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
6580         * sysdeps/i386/fpu/e_acosl.c: Likewise.
6581         * sysdeps/i386/fpu/e_asin.S: Likewise.
6582         * sysdeps/i386/fpu/e_asinf.S: Likewise.
6583         * sysdeps/i386/fpu/e_atan2.S: Likewise.
6584         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
6585         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
6586         * sysdeps/i386/fpu/e_atanh.S: Likewise.
6587         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
6588         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
6589         * sysdeps/i386/fpu/e_exp10.S: Likewise.
6590         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
6591         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
6592         * sysdeps/i386/fpu/e_exp2.S: Likewise.
6593         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
6594         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
6595         * sysdeps/i386/fpu/e_fmod.S: Likewise.
6596         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
6597         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
6598         * sysdeps/i386/fpu/e_hypot.S: Likewise.
6599         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
6600         * sysdeps/i386/fpu/e_log.S: Likewise.
6601         * sysdeps/i386/fpu/e_log10.S: Likewise.
6602         * sysdeps/i386/fpu/e_log10f.S: Likewise.
6603         * sysdeps/i386/fpu/e_log10l.S: Likewise.
6604         * sysdeps/i386/fpu/e_log2.S: Likewise.
6605         * sysdeps/i386/fpu/e_log2f.S: Likewise.
6606         * sysdeps/i386/fpu/e_log2l.S: Likewise.
6607         * sysdeps/i386/fpu/e_logf.S: Likewise.
6608         * sysdeps/i386/fpu/e_logl.S: Likewise.
6609         * sysdeps/i386/fpu/e_pow.S: Likewise.
6610         * sysdeps/i386/fpu/e_powf.S: Likewise.
6611         * sysdeps/i386/fpu/e_powl.S: Likewise.
6612         * sysdeps/i386/fpu/e_remainder.S: Likewise.
6613         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
6614         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
6615         * sysdeps/i386/fpu/e_scalb.S: Likewise.
6616         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
6617         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
6618         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
6619         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
6620         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
6621         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
6622         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
6623         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
6624         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
6625         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
6626         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
6627         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
6628         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
6629         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
6630         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
6631         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
6632         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
6633         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
6634         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
6635         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
6636         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
6637         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
6638         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
6639         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
6640         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
6641         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
6642         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
6643         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
6644         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
6645         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
6646         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
6647         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
6648         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
6649         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
6650         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
6651         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
6652         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
6653         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
6654         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
6655         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
6656         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
6657         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
6658         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
6659         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
6660         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
6661         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
6662         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
6663         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
6664         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
6665         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
6666         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
6667         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
6668         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
6669         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
6670         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
6671         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
6672         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
6673         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
6674         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
6675         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
6676         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
6677         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
6678         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
6679         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
6680         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
6681         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
6682         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
6683         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
6684         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
6685         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
6686         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
6687         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
6688         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
6689         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
6690         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
6691         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
6692         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
6693         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
6694         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
6695         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
6696         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
6697         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
6698         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
6699         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
6700         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
6701         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
6702         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
6703         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
6704         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
6705         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
6706         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
6707         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
6708         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
6709         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
6710         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
6711         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
6712         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
6713         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
6714         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
6715         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
6716         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
6717         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
6718         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
6719         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
6720         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
6721         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
6722         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
6723         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
6724         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
6725         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
6726         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
6727         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
6728         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
6729         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
6730         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
6731         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
6732         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
6733         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
6734         (__isnanf): Likewise.
6735         (__isinf_ns): Likewise.
6736         (__isinf_nsf): Likewise.
6737         (__finite): Likewise.
6738         (__finitef): Likewise.
6739         (__ieee754_sqrt): Define as macro.
6740         (__ieee754_sqrtf): Define as macro.
6741         (__ieee754_sqrtl): Define as macro.
6742         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
6743         inlined copy.
6744         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
6745         __FINITE_MATH_ONLY__ consistent.
6746         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
6747
6748 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
6749
6750         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
6751         of rawmemchr.
6752
6753         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
6754
6755 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
6756
6757         * po/ja.po: Update from translation team.
6758
6759 2011-10-08  Roland McGrath  <roland@hack.frob.com>
6760
6761         * locale/programs/locarchive.c (prepare_address_space): New function.
6762         (create_archive, enlarge_archive, open_archive): Use it.
6763
6764         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
6765         inside [SHARED], where it is used.
6766
6767         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
6768
6769         * nss/getent.c (netgroup_keys): Remove unused variable.
6770         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
6771
6772 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
6773
6774         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
6775         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
6776         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
6777         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
6778         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
6779         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
6780         * math/Makefile (libm-calls): Add s_isinf_ns.
6781         * math/divtc3.c: Use __isinf_nsl instead of isinf.
6782         * math/multc3.c: Likewise.
6783         * math/s_casin.c: Likewise.
6784         * math/s_casinf.c: Likewise.
6785         * math/s_casinl.c: Likewise.
6786         * math/s_ccos.c: Likewise.
6787         * math/s_ccosf.c: Likewise.
6788         * math/s_ccosl.c: Likewise.
6789         * math/s_ctan.c: Likewise.
6790         * math/s_ctanf.c: Likewise.
6791         * math/s_ctanh.c: Likewise.
6792         * math/s_ctanhf.c: Likewise.
6793         * math/s_ctanhl.c: Likewise.
6794         * math/s_ctanl.c: Likewise.
6795         * math/w_fmod.c: Likewise.
6796         * math/w_fmodf.c: Likewise.
6797         * math/w_fmodl.c: Likewise.
6798         * math/w_remainder.c: Likewise.
6799         * math/w_remainderf.c: Likewise.
6800         * math/w_remainderl.c: Likewise.
6801         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
6802         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
6803         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
6804         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
6805         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
6806         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
6807         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
6808         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
6809
6810         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
6811         of the number.
6812         * stdio-common/printf_fphex.c: Likewise.
6813         * stdio-common/printf_size.c: Likewise.
6814
6815         * math/e_exp10.c: Include math_private.h using <...> not "...".
6816         * math/e_exp10f.c: Likewise.
6817         * math/e_exp10l.c: Likewise.
6818         * math/e_exp2l.c: Likewise.
6819         * math/e_j0l.c: Likewise.
6820         * math/e_j1l.c: Likewise.
6821         * math/e_jnl.c: Likewise.
6822         * math/e_lgammal_r.c: Likewise.
6823         * math/e_rem_pio2l.c: Likewise.
6824         * math/e_scalb.c: Likewise.
6825         * math/e_scalbf.c: Likewise.
6826         * math/e_scalbl.c: Likewise.
6827         * math/k_cosl.c: Likewise.
6828         * math/k_sinl.c: Likewise.
6829         * math/k_tanl.c: Likewise.
6830         * math/s_cacoshf.c: Likewise.
6831         * math/s_catan.c: Likewise.
6832         * math/s_catanf.c: Likewise.
6833         * math/s_catanh.c: Likewise.
6834         * math/s_catanhf.c: Likewise.
6835         * math/s_catanhl.c: Likewise.
6836         * math/s_catanl.c: Likewise.
6837         * math/s_ccosh.c: Likewise.
6838         * math/s_ccoshf.c: Likewise.
6839         * math/s_ccoshl.c: Likewise.
6840         * math/s_cexp.c: Likewise.
6841         * math/s_cexpf.c: Likewise.
6842         * math/s_cexpl.c: Likewise.
6843         * math/s_clog.c: Likewise.
6844         * math/s_clog10.c: Likewise.
6845         * math/s_clog10f.c: Likewise.
6846         * math/s_clog10l.c: Likewise.
6847         * math/s_clogf.c: Likewise.
6848         * math/s_clogl.c: Likewise.
6849         * math/s_csin.c: Likewise.
6850         * math/s_csinf.c: Likewise.
6851         * math/s_csinh.c: Likewise.
6852         * math/s_csinhf.c: Likewise.
6853         * math/s_csinhl.c: Likewise.
6854         * math/s_csinl.c: Likewise.
6855         * math/s_csqrt.c: Likewise.
6856         * math/s_csqrtf.c: Likewise.
6857         * math/s_csqrtl.c: Likewise.
6858         * math/s_ctan.c: Likewise.
6859         * math/s_ctanf.c: Likewise.
6860         * math/s_ctanh.c: Likewise.
6861         * math/s_ctanhf.c: Likewise.
6862         * math/s_ctanhl.c: Likewise.
6863         * math/s_ctanl.c: Likewise.
6864         * math/s_ldexp.c: Likewise.
6865         * math/s_ldexpf.c: Likewise.
6866         * math/s_ldexpl.c: Likewise.
6867         * math/s_significand.c: Likewise.
6868         * math/s_significandf.c: Likewise.
6869         * math/s_significandl.c: Likewise.
6870         * math/w_acos.c: Likewise.
6871         * math/w_acosf.c: Likewise.
6872         * math/w_acosh.c: Likewise.
6873         * math/w_acoshf.c: Likewise.
6874         * math/w_acoshl.c: Likewise.
6875         * math/w_acosl.c: Likewise.
6876         * math/w_asin.c: Likewise.
6877         * math/w_asinf.c: Likewise.
6878         * math/w_asinl.c: Likewise.
6879         * math/w_atan2.c: Likewise.
6880         * math/w_atan2f.c: Likewise.
6881         * math/w_atan2l.c: Likewise.
6882         * math/w_atanh.c: Likewise.
6883         * math/w_atanhf.c: Likewise.
6884         * math/w_atanhl.c: Likewise.
6885         * math/w_cosh.c: Likewise.
6886         * math/w_coshf.c: Likewise.
6887         * math/w_coshl.c: Likewise.
6888         * math/w_dremf.c: Likewise.
6889         * math/w_exp10.c: Likewise.
6890         * math/w_exp10f.c: Likewise.
6891         * math/w_exp10l.c: Likewise.
6892         * math/w_exp2.c: Likewise.
6893         * math/w_exp2f.c: Likewise.
6894         * math/w_fmod.c: Likewise.
6895         * math/w_fmodf.c: Likewise.
6896         * math/w_fmodl.c: Likewise.
6897         * math/w_hypot.c: Likewise.
6898         * math/w_hypotf.c: Likewise.
6899         * math/w_hypotl.c: Likewise.
6900         * math/w_j0.c: Likewise.
6901         * math/w_j0f.c: Likewise.
6902         * math/w_j0l.c: Likewise.
6903         * math/w_j1.c: Likewise.
6904         * math/w_j1f.c: Likewise.
6905         * math/w_j1l.c: Likewise.
6906         * math/w_jn.c: Likewise.
6907         * math/w_jnf.c: Likewise.
6908         * math/w_jnl.c: Likewise.
6909         * math/w_lgamma.c: Likewise.
6910         * math/w_lgamma_r.c: Likewise.
6911         * math/w_lgammaf.c: Likewise.
6912         * math/w_lgammaf_r.c: Likewise.
6913         * math/w_lgammal.c: Likewise.
6914         * math/w_lgammal_r.c: Likewise.
6915         * math/w_log.c: Likewise.
6916         * math/w_log10.c: Likewise.
6917         * math/w_log10f.c: Likewise.
6918         * math/w_log10l.c: Likewise.
6919         * math/w_log2.c: Likewise.
6920         * math/w_log2f.c: Likewise.
6921         * math/w_log2l.c: Likewise.
6922         * math/w_logf.c: Likewise.
6923         * math/w_logl.c: Likewise.
6924         * math/w_pow.c: Likewise.
6925         * math/w_powf.c: Likewise.
6926         * math/w_powl.c: Likewise.
6927         * math/w_remainder.c: Likewise.
6928         * math/w_remainderf.c: Likewise.
6929         * math/w_remainderl.c: Likewise.
6930         * math/w_scalb.c: Likewise.
6931         * math/w_scalbf.c: Likewise.
6932         * math/w_scalbl.c: Likewise.
6933         * math/w_sinh.c: Likewise.
6934         * math/w_sinhf.c: Likewise.
6935         * math/w_sinhl.c: Likewise.
6936         * math/w_sqrt.c: Likewise.
6937         * math/w_sqrtf.c: Likewise.
6938         * math/w_sqrtl.c: Likewise.
6939         * math/w_tgamma.c: Likewise.
6940         * math/w_tgammaf.c: Likewise.
6941         * math/w_tgammal.c: Likewise.
6942
6943         * po/ja.po: Update from translation team.
6944
6945 2011-09-29  Andreas Jaeger  <aj@suse.de>
6946
6947         [BZ #13179]
6948         * sunrpc/netname.c (netname2host): Fix logic.
6949
6950         [BZ #6779]
6951         [BZ #6783]
6952         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
6953         correctly.
6954         * math/w_remainder.c (__remainder): Likewise.
6955         * math/w_remainderf.c (__remainderf): Likewise.
6956         * math/libm-test.inc (remainder_test): Add test cases.
6957
6958 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6959
6960         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
6961         sdiv_qrnnd.
6962
6963 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
6964
6965         * string/test-memcmp.c: Avoid unncessary #defines.
6966         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
6967
6968 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6969
6970         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
6971         Use new sse2 version for core i3 - i7 as it's faster
6972         than sse42 version.
6973         (bit_Prefer_PMINUB_for_stringop): New.
6974         * sysdeps/x86_64/rawmemchr.S: Update.
6975         Replace with faster SSE2 version.
6976         * sysdeps/x86_64/memrchr.S: New file.
6977         * sysdeps/x86_64/memchr.S: Update.
6978         Replace with faster SSE2 version.
6979
6980 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
6981
6982         * elf/dl-load.c (lose): Add cast to avoid warning.
6983
6984 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
6985
6986         * po/ca.po: Update from translation team.
6987
6988         * inet/getnetgrent_r.c: Hook up nscd.
6989         * nscd/Makefile (routines): Add nscd_netgroup.
6990         (nscd-modules): Add netgroupcache.
6991         (CFLAGS-netgroupcache.c): Define.
6992         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
6993         (cache_search): Add const to second parameter.
6994         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
6995         INNETGR.
6996         (dbs): Add netgrdb entry.
6997         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
6998         (verify_persistent_db): Handle netgrdb.
6999         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
7000         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
7001         GETFDNETGR.
7002         (netgroup_response_header): Define.
7003         (innetgroup_response_header): Define.
7004         (datahead): Add netgroup_response_header and innetgroup_response_header
7005         elements.
7006         * nscd/nscd.conf: Add entries for netgroup cache.
7007         * nscd/nscd.h (dbtype): Add netgrdb.
7008         (_PATH_NSCD_NETGROUP_DB): Define.
7009         (netgroup_iov_disabled): Declare.
7010         (xmalloc, xcalloc, xrealloc): Move declarations here.
7011         (cache_search): Adjust prototype.
7012         Add netgroup-related prototypes.
7013         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
7014         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
7015         (__nscd_innetgr): Declare.
7016         * nscd/selinux.c (perms): Use access_vector_t as element type and
7017         add netgroup-related initializers.
7018         * nscd/netgroupcache.c: New file.
7019         * nscd/nscd_netgroup.c: New file.
7020         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
7021         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
7022         For four parameters use innetgr.
7023         * nss/nss_files/files-init.c: Add definition and callback for netgr.
7024         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
7025         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
7026         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
7027
7028         * nscd/connections.c (register_traced_file): Don't register file
7029         for disabled databases.
7030
7031 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
7032
7033         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
7034
7035         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
7036         from tree and freeing node.
7037
7038 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
7039
7040         * nss/nsswitch.c (__nss_database_lookup): Handle
7041         nss_parse_service_list out of memory case.
7042
7043 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
7044
7045         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
7046         out of memory case.
7047
7048 2011-10-04  Andreas Schwab  <schwab@redhat.com>
7049
7050         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
7051         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
7052         pass it down.
7053         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
7054         elf_machine_rela, elf_machine_lazy_rel.
7055         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
7056         (ELF_DYNAMIC_DO_REL): Likewise.
7057         (ELF_DYNAMIC_DO_RELA): Likewise.
7058         (ELF_DYNAMIC_RELOCATE): Likewise.
7059         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
7060         to ELF_DYNAMIC_DO_REL.
7061         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
7062         (dl_main): In trace mode always set __RTLD_NOIFUNC.
7063         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
7064         elf_machine_rela.
7065         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
7066         skip_ifunc, don't call ifunc function if non-zero.
7067         (elf_machine_rela): Likewise.
7068         (elf_machine_lazy_rel): Likewise.
7069         (elf_machine_lazy_rela): Likewise.
7070         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
7071         (elf_machine_lazy_rel): Likewise.
7072         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
7073         Likewise.
7074         (elf_machine_lazy_rel): Likewise.
7075         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
7076         Likewise.
7077         (elf_machine_lazy_rel): Likewise.
7078         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
7079         (elf_machine_lazy_rel): Likewise.
7080         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
7081         (elf_machine_lazy_rel): Likewise.
7082         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
7083         (elf_machine_lazy_rel): Likewise.
7084         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
7085         (elf_machine_lazy_rel): Likewise.
7086         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
7087         (elf_machine_lazy_rel): Likewise.
7088         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
7089         (elf_machine_lazy_rel): Likewise.
7090
7091 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
7092
7093         * nss/nss_files/files-init.c (_nss_files_init): Use static
7094         initialization for all the *_traced_file variables.
7095
7096 2011-09-28  Andreas Schwab  <schwab@redhat.com>
7097
7098         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
7099
7100 2011-09-27  Roland McGrath  <roland@hack.frob.com>
7101
7102         [BZ #13226]
7103         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
7104
7105 2011-09-27  Andreas Schwab  <schwab@redhat.com>
7106
7107         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
7108         Reread the line before reparsing it.
7109
7110 2011-09-26  Andreas Schwab  <schwab@redhat.com>
7111
7112         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
7113
7114 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
7115             Maxim Kuvyrkov  <maxim@codesourcery.com>
7116             Joseph Myers  <joseph@codesourcery.com>
7117
7118         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
7119         if needed for __stack_chk_guard.
7120
7121 2011-09-19  Roland McGrath  <roland@hack.frob.com>
7122
7123         * sysdeps/posix/spawni.c (script_execute): Always define it.
7124         It will be optimized away if unused.
7125         (maybe_script_execute): New function.
7126         (__spawni): Call it.
7127
7128         * Makerules: Don't include tls.make.
7129         (config-tls): Always set to thread.
7130         * tls.make.c: File removed.
7131
7132 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
7133
7134         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
7135         * config.make.in (CPPFLAGS-config): New substituted variable.
7136
7137 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
7138
7139         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
7140
7141         [BZ #13192]
7142         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
7143         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
7144
7145 2011-09-15  Roland McGrath  <roland@hack.frob.com>
7146
7147         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
7148         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
7149         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
7150         (CALL_FAIL): Likewise.
7151         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
7152         (CALL_FAIL): Macro removed.
7153         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
7154
7155 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
7156
7157         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
7158         for __FINITE_MATH_ONLY__ == 1.
7159
7160 2011-09-15  Andreas Schwab  <schwab@redhat.com>
7161
7162         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
7163         __ieee754_sqrt instead of sqrt.
7164         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
7165         __ieee754_sqrtf instead of sqrtf.
7166         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
7167         __floorf instead of floorf.
7168         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
7169         __floorf, __truncf instead of floorf, truncf.
7170
7171 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
7172
7173         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
7174
7175         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
7176         __extern_always_inline.
7177         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
7178         32-bit.
7179
7180 2011-09-14  Andreas Schwab  <schwab@redhat.com>
7181
7182         * elf/rtld.c (dl_main): Also relocate in dependency order when
7183         doing symbol dependency testing.
7184
7185 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
7186
7187         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
7188         Always define `refsym'.
7189
7190 2011-09-13  Andreas Schwab  <schwab@redhat.com>
7191
7192         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
7193         (__FD_ELT): Renamed from __FDELT.
7194         * misc/bits/select2.h (__FD_ELT): Likewise.
7195         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
7196         __FD_MASK instead of __FDELT, __FDMASK.
7197         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
7198         Likewise.
7199         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
7200         Likewise.
7201
7202         * elf/Makefile (gen-ldd): Fix pattern.
7203
7204         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
7205         (init_tls): Likewise.
7206
7207 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
7208
7209         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
7210
7211 2011-09-12  Andreas Schwab  <schwab@redhat.com>
7212
7213         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
7214         `struct cmsghdr *' instead of `void *'.
7215         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
7216         Likewise.
7217
7218 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
7219
7220         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
7221         if non-absolute.
7222         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
7223         ldd_rewrite_script.
7224
7225 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
7226
7227         * configure.in: Remove --with-tls option.
7228         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
7229         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
7230         out in case it is missing.
7231         * sysdeps/ia64/elf/configure.in: Likewise.
7232         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
7233         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
7234         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
7235         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
7236         * sysdeps/sh/elf/configure.in: Likewise.
7237         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
7238         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
7239         * sysdeps/x86_64/elf/configure.in: Likewise.
7240         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
7241         * sysdeps/mach/hurd/tls.h: Likewise.
7242
7243         [BZ #13067]
7244         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
7245
7246         [BZ #13090]
7247         * configure.in: Fix use of AC_INIT.
7248
7249         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
7250
7251 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
7252
7253         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
7254         __set_errno.
7255         * malloc/hooks.c: Likewise.
7256
7257         [BZ #11929]
7258         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
7259         variables statically.
7260         (narenas): Initialize.
7261         (list_lock): Initialize.
7262         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
7263         initializtion of main_arena and list_lock.  Small cleanups.
7264         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
7265         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
7266         Add initializers to main_arena and mp_.
7267         (malloc_state): Remove pagesize member.  Change all users to use
7268         GLRO(dl_pagesize).
7269
7270         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
7271         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
7272         is always initialized.
7273
7274         * malloc/malloc.c: Removed unused configurations and dead code.
7275         * malloc/arena.c: Likewise.
7276         * malloc/hooks.c: Likewise.
7277         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
7278
7279         * include/tls.h: Removed.  USE___THREAD must always be defined.
7280         * bits/libc-tsd.h: Don't handle !USE___THREAD.
7281         * elf/dl-libc.c: Likewise.
7282         * elf/dl-tsd.c: Likewise.
7283         * include/errno.h: Likewise.
7284         * include/netdb.h: Likewise.
7285         * include/resolv.h: Likewise.
7286         * inet/herrno-loc.c: Likewise.
7287         * inet/herrno.c: Likewise.
7288         * malloc/arena.c: Likewise.
7289         * malloc/hooks.c: Likewise.
7290         * malloc/malloc.c: Likewise.
7291         * resolv/res-state.c: Likewise.
7292         * resolv/res_libc.c: Likewise.
7293         * sysdeps/i386/dl-machine.h: Likewise.
7294         * sysdeps/ia64/dl-machine.h: Likewise.
7295         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
7296         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
7297         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
7298         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
7299         * sysdeps/sh/dl-machine.h: Likewise.
7300         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
7301         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
7302         * sysdeps/unix/i386/sysdep.S: Likewise.
7303         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
7304         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
7305         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
7306         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
7307         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
7308         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
7309         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
7310         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
7311         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
7312         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
7313         * sysdeps/unix/x86_64/sysdep.S: Likewise.
7314         * sysdeps/x86_64/dl-machine.h: Likewise.
7315         * tls.make.c: Likewise.
7316
7317         * configure.in: Remove --with-__thread option.  Make tests for
7318         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
7319         tls_model attribute fail if no support is available.  Remove
7320         USE_IN_LIBIO.
7321         * Makeconfig: Adjust for dropped configure option.  All features are
7322         now mandatory.
7323         * Makerules: Likewise.
7324         * Versions.def: Likewise.
7325         * argp/argp-fmtstream.c: Likewise.
7326         * argp/argp-fmtstream.h: Likewise.
7327         * argp/argp-help.c: Likewise.
7328         * assert/assert.c: Likewise.
7329         * config.h.in: Likewise.
7330         * config.make.in: Likewise.
7331         * configure: Likewise.
7332         * configure.in: Likewise.
7333         * csu/Versions: Likewise.
7334         * csu/init.c: Likewise.
7335         * elf/tst-audit2.c: Likewise.
7336         * elf/tst-tls10.c: Likewise.
7337         * elf/tst-tls10.h: Likewise.
7338         * elf/tst-tls11.c: Likewise.
7339         * elf/tst-tls12.c: Likewise.
7340         * elf/tst-tls14.c: Likewise.
7341         * elf/tst-tlsmod11.c: Likewise.
7342         * elf/tst-tlsmod12.c: Likewise.
7343         * elf/tst-tlsmod13.c: Likewise.
7344         * elf/tst-tlsmod13a.c: Likewise.
7345         * elf/tst-tlsmod14a.c: Likewise.
7346         * elf/tst-tlsmod15b.c: Likewise.
7347         * elf/tst-tlsmod16a.c: Likewise.
7348         * elf/tst-tlsmod16b.c: Likewise.
7349         * elf/tst-tlsmod7.c: Likewise.
7350         * elf/tst-tlsmod8.c: Likewise.
7351         * elf/tst-tlsmod9.c: Likewise.
7352         * gmon/gmon.c: Likewise.
7353         * grp/fgetgrent_r.c: Likewise.
7354         * grp/putgrent.c: Likewise.
7355         * hurd/fopenport.c: Likewise.
7356         * include/libc-symbols.h: Likewise.
7357         * include/tls.h: Likewise.
7358         * intl/gettextP.h: Likewise.
7359         * intl/loadinfo.h: Likewise.
7360         * locale/global-locale.c: Likewise.
7361         * locale/localeinfo.h: Likewise.
7362         * mach/devstream.c: Likewise.
7363         * malloc/arena.c: Likewise.
7364         * malloc/set-freeres.c: Likewise.
7365         * misc/err.c: Likewise.
7366         * misc/getttyent.c: Likewise.
7367         * misc/mntent_r.c: Likewise.
7368         * posix/getopt.c: Likewise.
7369         * posix/wordexp.c: Likewise.
7370         * pwd/fgetpwent_r.c: Likewise.
7371         * resolv/Versions: Likewise.
7372         * resolv/res_hconf.c: Likewise.
7373         * shadow/fgetspent_r.c: Likewise.
7374         * shadow/putspent.c: Likewise.
7375         * stdio-common/printf_fphex.c: Likewise.
7376         * stdio-common/tmpfile.c: Likewise.
7377         * stdlib/abort.c: Likewise.
7378         * stdlib/fmtmsg.c: Likewise.
7379         * sunrpc/auth_unix.c: Likewise.
7380         * sunrpc/clnt_perr.c: Likewise.
7381         * sunrpc/clnt_tcp.c: Likewise.
7382         * sunrpc/clnt_udp.c: Likewise.
7383         * sunrpc/clnt_unix.c: Likewise.
7384         * sunrpc/openchild.c: Likewise.
7385         * sunrpc/svc_simple.c: Likewise.
7386         * sunrpc/svc_tcp.c: Likewise.
7387         * sunrpc/svc_udp.c: Likewise.
7388         * sunrpc/svc_unix.c: Likewise.
7389         * sunrpc/xdr.c: Likewise.
7390         * sunrpc/xdr_array.c: Likewise.
7391         * sunrpc/xdr_rec.c: Likewise.
7392         * sunrpc/xdr_ref.c: Likewise.
7393         * sunrpc/xdr_stdio.c: Likewise.
7394
7395 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
7396
7397         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
7398
7399 2011-07-03  Andreas Jaeger  <aj@suse.de>
7400
7401         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
7402         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
7403         regenerate with gen-libm-tests.pl.
7404
7405 2010-05-12  Petr Baudis  <pasky@suse.cz>
7406
7407         [BZ #11589]
7408         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
7409         around j0() zero points by switching to j1().
7410         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
7411         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
7412         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
7413         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
7414
7415 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
7416
7417         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
7418         instead of 0.
7419         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
7420         instead of 0.                              .
7421         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
7422         Patch in part by Pavel Roskin <proski@gnu.org>.
7423
7424         [BZ #13138]
7425         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
7426         realloc.
7427         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
7428         Free memory block if necessary.
7429
7430         [BZ #12847]
7431         * libio/genops.c (INTDEF): For string streams the _lock pointer can
7432         be NULL.  Don't lock in this case.
7433
7434 2011-09-09  Roland McGrath  <roland@hack.frob.com>
7435
7436         * elf/elf.h (ELFOSABI_GNU): New macro.
7437         (ELFOSABI_LINUX): Define to that.
7438
7439 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
7440
7441         * string/strncat.c (strncat): Undef the symbol in case it has been
7442         defined in bits/string.h.
7443
7444 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
7445
7446         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
7447
7448         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
7449         link map.
7450
7451 2011-08-17  Andreas Jaeger  <aj@suse.de>
7452
7453         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
7454
7455 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
7456             Ian Lance Taylor  <iant@google.com>
7457
7458         * math/libm-test.inc (lround_test): New testcase.
7459         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
7460
7461 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
7462
7463         * Makefile: Remove support for automatic cvs check-ins.
7464         * Makerules: Likewise.
7465         * config.make.in: Likewise.
7466         * configure.in: Likewise.
7467         * intl/Makefile: Likewise.
7468         * locale/Makefile: Likewise.
7469         * po/Makefile: Likewise.
7470         * posix/Makefile: Likewise.
7471         * sysdeps/gnu/Makefile: Likewise.
7472         * sysdeps/mach/hurd/Makefile: Likewise.
7473         * sysdeps/sparc/sparc32/Makefile: Likewise.
7474
7475         [BZ #13118]
7476         * posix/Makefile (bug-regex32-ENV): Define.
7477         Patch by John Stanley <jpsinthemix@verizon.net>.
7478
7479         * misc/Makefile (headers): Add bits/select2.h.
7480         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
7481         * misc/bits/select2.h: New file.
7482         * include/bits/select2.h: New file.
7483         * debug/Makefile (routines): Add fdelt_chk.
7484         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
7485         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
7486         FD_ISSET.
7487         * debug/fdelt_chk.c: New file.
7488
7489         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
7490         * wcsmbs/test-wmemcmp.c: Likewise.
7491         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
7492         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
7493
7494 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7495
7496         * string/Makefile (strop-tests): Add memcmp.
7497         * string/test-wmemcmp.c: New file.
7498         * string/test-memcmp.c: Add wmemcmp support.
7499
7500 2011-09-08  Roland McGrath  <roland@hack.frob.com>
7501
7502         [BZ #13153]
7503         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
7504         2011-07-19 change.
7505
7506         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
7507         garbage value in a __mach_port_mod_refs call in the cases of the
7508         task-self and thread-self ports.
7509
7510 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7511
7512         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
7513
7514 2011-09-08  Andreas Schwab  <schwab@redhat.com>
7515
7516         * elf/dl-load.c (lose): Check for non-null L.
7517
7518 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
7519
7520         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
7521
7522         * elf/dl-libc.c (dlerror_run): Pass back error code from
7523         dl_catch_error.
7524
7525         [BZ #13123]
7526         * elf/dl-load.c (lose): Free l_origin if it is valid.
7527
7528         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
7529         names.
7530         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
7531         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
7532         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
7533         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
7534         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
7535         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
7536
7537 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7538
7539         * sysdeps/powerpc/fpu/e_hypot.c: New file.
7540         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
7541         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
7542         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
7543         * sysdeps/powerpc/fpu/k_cosf.c: New file.
7544         * sysdeps/powerpc/fpu/k_sinf.c: New file.
7545         * sysdeps/powerpc/fpu/s_cosf.c: New file.
7546         * sysdeps/powerpc/fpu/s_sinf.c: New file.
7547         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
7548         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
7549
7550 2011-08-15  Alan Modra  <amodra@gmail.com>
7551
7552         [BZ #13092]
7553         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
7554         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
7555         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
7556         ppc_mcount to static-only-routines.
7557         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
7558         __mcount_internal.
7559         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
7560         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
7561
7562 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
7563
7564         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
7565         for finite and infinity parameters.
7566
7567 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
7568
7569         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
7570         and add nop instructions for throughput optimization.
7571         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
7572
7573 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
7574
7575         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
7576         aligned copy for power7 with vector-scalar instructions.
7577         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
7578
7579 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
7580
7581         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
7582         AVX check.
7583
7584 2011-09-07  Andreas Schwab  <schwab@redhat.com>
7585
7586         [BZ #13144]
7587         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
7588         last change.
7589
7590 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
7591
7592         * sysdeps/unix/sysv/linux/x86_64/init-first.c
7593         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
7594         syscall wrapper around clock_gettime in __vdso_clock_gettime.
7595         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
7596         clock_gettime.
7597
7598 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
7599
7600         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
7601         Forgot to demangle the pointer.
7602
7603         * sysdeps/i386/sysdep.h: Define atom_text_section.
7604         * sysdeps/x86_64/sysdep.h: Likewise.
7605         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
7606         section with atom_text_section.
7607         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
7608         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
7609         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
7610         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
7611         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
7612
7613         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
7614         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
7615         already be defined.  Change to take two parameters and don't assign
7616         result to variable.  Adjust all users.
7617         Define INTERNAL_GETTIME if not already defined.
7618         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
7619         call.
7620         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
7621         HAVE_CLOCK_GETTIME_VSYSCALL.
7622         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
7623
7624         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
7625         gettimeofday vsyscall, just use time.
7626
7627 2011-09-06  Andreas Schwab  <schwab@redhat.com>
7628
7629         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
7630         <errno.h>.
7631
7632 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
7633
7634         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
7635         syscall on x86-64.
7636         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
7637         syscall.
7638         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
7639         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
7640         syscall if possible.
7641
7642 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
7643
7644         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
7645         e_ident.  Don't pass to find_mapsXX.
7646         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
7647
7648 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
7649
7650         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
7651         strchr-sse2-no-bsf strrchr-sse2-no-bsf
7652         * sysdeps/x86_64/multiarch/strchr.S: Update.
7653         Check bit_slow_BSF bit.
7654         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
7655         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
7656         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
7657
7658 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
7659
7660         [BZ #13134]
7661         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
7662         before glibc 2.15.
7663         (tryshell): Define.
7664         (__spawni): Change last parameter to be flag.  Test
7665         SPAWN_XFLAGS_USE_PATH flag to use path or not.
7666         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
7667         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
7668         * posix/spawni.c: Likewise.
7669         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
7670         * posix/spawnp.c: Likewise.  Change normal version to use
7671         SPAWN_XFLAGS_USE_PATH.
7672         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
7673         SPAWN_XFLAGS_TRY_SHELL.
7674
7675         [BZ #13150]
7676         * posix/glob.h: Remove gcc 1.x support.
7677
7678         [BZ #13068]
7679         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
7680
7681 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
7682
7683         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
7684         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
7685         strrchr-sse2-bsf
7686         * sysdeps/i386/i686/multiarch/strchr.S: New file.
7687         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
7688         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
7689         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
7690         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
7691         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
7692
7693 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7694
7695         * sysdeps/x86_64/wcscmp.S: New file.
7696
7697         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
7698         wcscmp-c wcscmp-sse2
7699         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
7700         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
7701         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
7702         * wcsmbs/wcscmp.c: Allow renaming.
7703
7704 2011-09-05  David S. Miller  <davem@davemloft.net>
7705
7706         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
7707         stack slot, rather than the struct return pointer slot.
7708         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
7709         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
7710         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
7711         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
7712
7713 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
7714
7715         * po/ja.po: Update from translation team.
7716
7717         [BZ #13144]
7718         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
7719         kernel in 64-bit binaries.
7720
7721 2011-09-01  David S. Miller  <davem@davemloft.net>
7722
7723         * elf/elf.h (HWCAP_SPARC_*): Move to..
7724         * sysdeps/sparc/sysdep.h: this new file and add new values.
7725         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
7726         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
7727         _DL_HWCAP_COUNT to 24.
7728         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
7729         entries.
7730         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
7731         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
7732         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
7733         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
7734         instead of magic constants.
7735         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
7736
7737 2011-08-31  David S. Miller  <davem@davemloft.net>
7738
7739         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
7740         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
7741         Reimplement to do errno handling inline.
7742         (SYSCALL_ERROR_HANDLER): New macro.
7743         (__SYSCALL_STRING): Do not do errno handling in asm.
7744         (__CLONE_SYSCALL_STRING): Delete.
7745         (__INTERNAL_SYSCALL_STRING): Delete.
7746         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
7747         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
7748         (PSEUDO): Reimplement to do errno handling inline.
7749         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
7750         (SYSCALL_ERROR_HANDLER): New macro.
7751         (__SYSCALL_STRING): Do not do errno handling in asm.
7752         (__CLONE_SYSCALL_STRING): Delete.
7753         (__INTERNAL_SYSCALL_STRING): Delete.
7754         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
7755         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
7756         i386.
7757         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
7758         (inline_syscall*): Add 'err' argument.
7759         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
7760         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
7761         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
7762         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
7763
7764         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
7765         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
7766
7767 2011-08-30  Andreas Schwab  <schwab@redhat.com>
7768
7769         * elf/rtld.c (dl_main): Relocate objects in dependency order.
7770
7771 2011-08-29  Jiri Olsa <jolsa@redhat.com>
7772
7773         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
7774         directive.
7775
7776 2011-08-24  David S. Miller  <davem@davemloft.net>
7777
7778         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
7779
7780 2011-08-24  Andreas Schwab  <schwab@redhat.com>
7781
7782         * elf/Makefile: Add rules to build and run unload8 test.
7783         * elf/unload8.c: New file.
7784         * elf/unload8mod1.c: New file.
7785         * elf/unload8mod1x.c: New file.
7786         * elf/unload8mod2.c: New file.
7787         * elf/unload8mod3.c: New file.
7788
7789         * elf/dl-close.c (_dl_close_worker): Reset private search list if
7790         it wasn't used.
7791
7792 2011-08-23  David S. Miller  <davem@davemloft.net>
7793
7794         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
7795         subtract stack bias.
7796         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
7797         %sp not %fp in calculations.
7798         (_JMPBUF_UNWINDS_ADJ): Likewise.
7799
7800         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
7801         (aio_suspend): Call it to force an exception region around the
7802         AIO_MISC_WAIT() invocation.
7803
7804 2011-08-23  Andreas Schwab  <schwab@redhat.com>
7805
7806         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
7807         backslash.
7808
7809 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
7810
7811         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
7812         protection macro.
7813         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
7814         and <dl-machine.h>.
7815         (Elf64_FuncDesc): Remove.
7816
7817 2011-08-22  David S. Miller  <davem@davemloft.net>
7818
7819         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
7820         sigaltstack check, add missing cfi directives.
7821         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
7822         missing cfi directives, and sigaltstack handling.
7823
7824 2011-08-16  Andreas Schwab  <schwab@redhat.com>
7825
7826         [BZ #11724]
7827         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
7828         object is seen twice.
7829         * elf/dl-fini.c (_dl_sort_fini): Likewise.
7830
7831         * elf/Makefile (distribute): Add tst-initorder2.c.
7832         (tests): Add tst-initorder2.
7833         (modules-names): Add tst-initorder2a tst-initorder2b
7834         tst-initorder2c tst-initorder2d.  Add rules to build them.
7835         ($(objpfx)tst-initorder2.out): New rule.
7836         * elf/tst-initorder2.c: New file.
7837         * elf/tst-initorder2.exp: New file.
7838
7839 2011-08-22  Andreas Schwab  <schwab@redhat.com>
7840
7841         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
7842
7843         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
7844         dependencies back to end of function.
7845
7846         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
7847         $(elfobjdir)/ld.so.
7848
7849 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
7850
7851         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
7852         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
7853         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
7854         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
7855         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
7856         of __vdso_gettimeofday.
7857         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
7858         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
7859         attribute_hidden.
7860         (_libc_vdso_platform_setup): Remove initialization of
7861         __vdso_gettimeofday and __vdso_time.
7862
7863 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
7864
7865         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
7866         and fgetc_unlocked.
7867         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
7868         getc_unlocked.
7869
7870         * elf/dl-open.c (add_to_global): Report additions to the global scope
7871         for LD_DEBUG=scopes.
7872         (dl_open_worker): Also print scope of newly loaded dependencies.
7873         (_dl_show_scope): Indicate if there is no scope.
7874
7875         [BZ #13114]
7876         * stdio-common/Makefile (tests): Add bug24.
7877         * stdio-common/bug24.c: New file.
7878
7879 2011-08-19  Andreas Jaeger  <aj@suse.de>
7880
7881         [BZ #13114]
7882         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
7883         non-existant file when using close-on-exec mode.
7884
7885 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
7886
7887         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
7888         the very first instruction.
7889
7890         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
7891         the CFI state in the end.
7892         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
7893         inclusion of dl-trampoline.h.
7894         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
7895
7896 2011-08-19  Andreas Schwab  <schwab@redhat.com>
7897
7898         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
7899         expectations for long double.
7900
7901         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
7902         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
7903
7904 2011-08-14  David S. Miller  <davem@davemloft.net>
7905
7906         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
7907         artificual limit depends upon the system page size.
7908
7909 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
7910
7911         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
7912         * resolv/Makefile: Define CFLAGS-libresolv.
7913
7914 2011-08-17  Andreas Schwab  <schwab@redhat.com>
7915
7916         * nss/makedb.c (compute_tables): Make variables used in nested
7917         function static.
7918
7919 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
7920
7921         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
7922         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
7923         if buffer was too small.
7924
7925         * elf/pldd.c (main): Attach to all threads in the process.
7926         Rewrite /proc handling to use *at functions.
7927
7928 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
7929
7930         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
7931         specifies first scope to show.
7932         (dl_open_worker): Update callers.  Move printing scope of new
7933         object to before the relocation.
7934         * elf/rtld.c (dl_main): Update _dl_show_scope call.
7935         * sysdeps/generic/ldsodefs.h: Update declaration.
7936
7937         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
7938         string for the scope number.
7939
7940 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
7941
7942         * nscd/servicescache.c (cache_addserv): Make sure written is always
7943         initialized.
7944
7945 2011-08-14  Roland McGrath  <roland@hack.frob.com>
7946
7947         * sysdeps/i386/i486/bits/atomic.h
7948         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
7949         statement expression, so as to suppress "set but not used" warning.
7950         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
7951
7952         * string/strncat.c (STRNCAT): Use prototype definition.
7953
7954         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
7955         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
7956         -Iprograms here.
7957         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
7958         (localedef-modules): Add localedef.
7959         (locale-modules): Add locale.
7960
7961         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
7962         * elf/rtld.c (dl_main): Invert order of assignment in last change,
7963         to avoid a warning.
7964
7965 2011-08-14  David S. Miller  <davem@davemloft.net>
7966
7967         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
7968         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
7969
7970 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
7971
7972         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
7973         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
7974         * elf/rtld.c (dl_main): Set l_name of vDSO.
7975         Call _dl_show_scope when DL_DEBUG_SCOPES.
7976         (process_dl_debug): Recognize scopes flag and also set it for all.
7977         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
7978         Declare _dl_show_scope.
7979
7980         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
7981         (do_dlopen): Pass caller_dlopen to dl_open.
7982         (__libc_dlopen_mode): Initialize caller_dlopen.
7983
7984         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
7985         of libc.  Make tolower call locale-independent.  Optimize a bit by
7986         using isdigit instead of isalnum.
7987         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
7988
7989 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
7990
7991         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
7992         was a dependency or dynamically loaded.
7993
7994 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
7995
7996         * intl/l10nflist.c: Allow architecture-specific pop function.
7997         * sysdeps/x86_64/l10nflist.c: New file.
7998
7999         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
8000         classification.
8001
8002 2011-08-10  Andreas Schwab  <schwab@redhat.com>
8003
8004         * include/dirent.h: Add libc_hidden_proto for scandirat and
8005         scandirat64.  Don't declare __scandirat64.
8006         * dirent/scandirat.c: Add libc_hidden_def.
8007         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
8008         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
8009
8010 2011-08-10  David S. Miller  <davem@davemloft.net>
8011
8012         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
8013         enum.
8014         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
8015         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
8016         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
8017
8018 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
8019
8020         * Versions.def [libc]: Add GLIBC_2.15.
8021         * dirent/Makefile (routines): Add scandirat and scandirat64.
8022         * dirent/Versions [libc]: Export scandirat and scandirat64 for
8023         GLIBC_2.15.
8024         * dirent/dirent.h: Declare scandirat and scandirat64.
8025         * dirent/scandirat.c: New file.
8026         * dirent/scandirat64.c: New file.
8027         * sysdeps/wordsize-64/scandirat.c: New file.
8028         * sysdeps/wordsize-64/scandirat64.c: New file.
8029         * dirent/opendir.c: Define opendirat.
8030         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
8031         using scandirat.
8032         * dirent/scandir64.c: Adjust for scandir.c change.
8033         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
8034         __scandirat64, and __scandir_cancel_handler.
8035         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
8036         additional parameter and use openat instead of open (outside of ld.so).
8037         Add new __opendir as wrapper around __opendirat.
8038         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
8039         here without requiring old scandirat implementation.
8040
8041 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
8042
8043         * dirent/scandir.c (cancel_handler): Renamed to
8044         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
8045         defined.  Adjust users.
8046         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
8047         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
8048
8049 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
8050
8051         * string/test-string.h (IMPL): Use __STRING to expand name and then
8052         stringify it.
8053
8054         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
8055         of cleanups.
8056
8057 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8058
8059         * string/Makefile: Update.
8060         (strop-tests): Append strncat.
8061         * string/test-wcscmp.c: New file.
8062         New comprehensive test for wcscmp.
8063         * string/test-strcmp.c: Update.
8064         (WIDE): New define.
8065
8066 2011-07-22  Andreas Schwab  <schwab@redhat.com>
8067
8068         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
8069         line.
8070
8071 2011-07-26  Andreas Schwab  <schwab@redhat.com>
8072
8073         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
8074         encoding to ACE if AI_IDN.
8075
8076 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
8077
8078         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
8079         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
8080
8081 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
8082
8083         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
8084         Fix overflow bug in strncat.
8085         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
8086
8087         * string/test-strncat.c: Update.
8088         Add new tests for checking overflow bugs.
8089
8090 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
8091
8092         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
8093         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
8094         * sysdeps/i386/i686/multiarch/strcat.S: New file.
8095         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
8096         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
8097         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
8098         * sysdeps/i386/i686/multiarch/strncat.S: New file.
8099         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
8100         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
8101
8102         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
8103         (USE_AS_STRCAT): Define.
8104         Add strcat and strncat support.
8105         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
8106
8107 2011-07-25  Andreas Schwab  <schwab@redhat.com>
8108
8109         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
8110         __n bigger than INT_MAX+1.
8111         (__strncmp_g): Likewise.
8112
8113 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
8114
8115         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
8116         * libio/stido.h: Likewise.
8117
8118         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
8119         (AF_NFC): Define.
8120         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
8121         (AF_NFC): Define.
8122
8123         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
8124         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
8125         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
8126         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
8127         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
8128
8129         [BZ #13021]
8130         * scripts/test-installation.pl: Don't expect libnss_test1 to be
8131         installed.
8132
8133         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
8134         typo.
8135         (_dl_x86_64_save_sse): Likewise.
8136
8137 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
8138
8139         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
8140         OSXSAVE.
8141         (_dl_x86_64_save_sse): Likewise.
8142
8143         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
8144
8145         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
8146
8147 2011-07-21  Andreas Schwab  <schwab@redhat.com>
8148
8149         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
8150         change.
8151         (_dl_x86_64_save_sse): Use correct AVX check.
8152
8153 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8154
8155         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
8156         bug in strncpy/strncat.
8157         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
8158
8159 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
8160
8161         * string/tester.c (test_strcat): Add tests for different alignments
8162         of source and destination.
8163         (test_strncat): Likewise.
8164
8165 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
8166
8167         [BZ #12852]
8168         * posix/glob.c (glob): Check passed in values before using them in
8169         expressions to avoid some overflows.
8170         (glob_in_dir): Likewise.
8171
8172         [BZ #13007]
8173         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
8174         check for AVX enablement so that we don't crash with old kernels and
8175         new hardware.
8176         * elf/tst-audit4.c: Add same checks here.
8177         * elf/tst-audit6.c: Likewise.
8178
8179         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
8180
8181 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
8182
8183         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
8184
8185 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
8186
8187         * po/cs.po: Update from translation team.
8188         * po/bg.po: Likewise.
8189
8190 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
8191
8192         * misc/sys/cdefs.h: Add support for const attribute.
8193         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
8194         to gnu_dev_{major,minor,makedev} functions.
8195
8196 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
8197
8198         * intl/dcigettext.c (get_output_charset): Add missing bracket.
8199
8200 2011-07-20  Andreas Schwab  <schwab@redhat.com>
8201
8202         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
8203         strlen results.
8204
8205 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8206
8207         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
8208         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
8209         register in order to avoid conflicts with the soft frame pointer
8210         being held in r11 when necessary.
8211         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
8212         (INTERNAL_VSYSCALL_NCS): Likewise.
8213
8214 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
8215
8216         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
8217         * elf/dl-fini.c (_dl_fini): Adjust caller.
8218         * elf/dl-close.c (_dl_close_worker): Likewise.
8219         * sysdeps/generic/ldsodefs.h: Adjust declaration.
8220
8221 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
8222
8223         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
8224         "aux_cache->nlibs < 0".
8225
8226         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
8227         in the reload-count case.
8228
8229 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
8230
8231         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
8232         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
8233         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
8234         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
8235         * sysdeps/x86_64/multiarch/strcat.S: New file.
8236         * sysdeps/x86_64/multiarch/strncat.S: New file.
8237         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
8238         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
8239         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
8240         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
8241         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
8242         (USE_AS_STRCAT): Define.
8243         Add strcat and strncat support.
8244         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
8245         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
8246         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
8247         * string/strncat.c: Update.
8248         (USE_AS_STRNCAT): Define.
8249         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
8250         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
8251         and i7.
8252         * sysdeps/x86_64/multiarch/init-arch.h
8253         (bit_Prefer_PMINUB_for_stringop): New.
8254         (index_Prefer_PMINUB_for_stringop): Likewise.
8255         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
8256         bit_Prefer_PMINUB_for_stringop.
8257
8258 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
8259
8260         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
8261         buffer64.
8262         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
8263         of casting of buffer.
8264         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
8265         buffer32 and buffer64.
8266         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
8267         writes instead of casting of buffer.
8268         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
8269         buffer32.
8270         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
8271         casting of buffer.
8272
8273 2011-07-19  Andreas Schwab  <schwab@redhat.com>
8274
8275         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
8276
8277 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
8278
8279         * nscd/nscd.c (termination_handler): Don't do anything for a database
8280         if it has not yet been initialized.
8281
8282 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
8283
8284         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
8285
8286 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
8287
8288         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
8289
8290 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
8291
8292         * po/nl.po: Update from translation team.
8293         * po/sv.po: Likewise.
8294
8295 2011-07-16  Roland McGrath  <roland@hack.frob.com>
8296
8297         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
8298         now disallowed by GCC.
8299
8300         * configure.in (use-default-link): Default to yes if a test -shared
8301         link meets our qualifications.
8302         * configure: Regenerated.
8303
8304         * config.make.in (output-format): New variable.
8305         * configure.in: Check for ld --print-output-format support.
8306         * configure: Regenerated.
8307         * Makerules ($(common-objpfx)format.lds)
8308         [$(output-format) != unknown]: Just use $(output-format),
8309         instead of the linker-script munging.
8310
8311 2011-07-14  Roland McGrath  <roland@hack.frob.com>
8312
8313         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
8314         of $(common-objpfx)shlib.lds.
8315         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
8316
8317         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
8318         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
8319
8320         * configure.in (-z relro check): Adjust test code to add a large
8321         writable data section after it.
8322         * configure: Regenerated.
8323
8324 2011-07-11  Roland McGrath  <roland@hack.frob.com>
8325
8326         * configure.in (-z relro check): Fix test code to make the variable
8327         truly const.
8328         * configure: Regenerated.
8329
8330 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
8331
8332         * nscd/nscd.h (struct traced_file): Define.
8333         (struct database_dyn): Remove inotify_descr, reset_res, and filename
8334         elements.  Add traced_files.
8335         (inotify_fd): Declare.
8336         (register_traced_file): Declare.
8337         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
8338         (inotify_fd): Export.
8339         (resolv_conf_descr): Remove.
8340         (nscd_init): Move inotify descriptor creation to main.
8341         Don't register files for notification here.
8342         (register_traced_file): New function.
8343         (invalidate_cache): Don't use reset_res to determine whether to call
8344         res_init, go through the list of registered files.
8345         (main_loop_poll): The inotify descriptors are now stored in the
8346         structures for the traced files.
8347         (main_loop_epoll): Likewise
8348         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
8349         to __nss_disable_nscd.
8350         * nscd/cache.c (prune_cache): There is no single inotify descriptor
8351         for a database anymore.  Check the records for all the registered
8352         files instead.
8353         * nss/Makefile (libnss_files-routines): Add files-init.
8354         (libnss_db-routines): Add db-init.
8355         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
8356         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
8357         * nss/nss_db/db-init.c: New file.
8358         * nss/nss_files/files-init.c: New file.
8359         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
8360         __nss_lookup_function.
8361         (__nss_lookup_function): Call nss_load_library.
8362         (nss_load_all_libraries): New function.
8363         (__nss_disable_nscd): Take parameter with callback function for files
8364         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
8365         used for the cached services.
8366         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
8367         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
8368         options for features to all the files in nscd.
8369
8370         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
8371
8372 2011-07-10  Roland McGrath  <roland@hack.frob.com>
8373
8374         * csu/elf-init.c (__libc_csu_init): Comment typo.
8375
8376 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
8377
8378         * po/pl.po: Update from translation team.
8379         * po/ja.po: Likewise.
8380         * po/ru.po: Likewise.
8381         * po/ko.po: Likewise.
8382         * po/fr.po: Likewise.
8383
8384 2011-07-09  Roland McGrath  <roland@hack.frob.com>
8385
8386         * configure.in (.ctors/.dtors header and trailer check):
8387         Use an empirical test on a built program.
8388         * configure: Regenerated.
8389
8390         * configure.in (-z relro check): Use an empirical test on a built DSO.
8391         Detect, but do not require, on ia64.
8392         * configure: Regenerated.
8393
8394         * configure.in (READELF): Find it with AC_CHECK_TOOL.
8395         Update tests that use readelf to use $READELF instead.
8396         * configure: Regenerated.
8397
8398 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
8399
8400         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
8401         if the result is not used.
8402
8403 2011-07-05  Andreas Jaeger  <aj@suse.de>
8404
8405         [BZ#9696]
8406         * stdlib/tst-strtod.c: Add testcase.
8407
8408 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
8409
8410         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
8411         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
8412         The latter has a higher limit.  Take additional parameter to pass to
8413         the new function.
8414         (__pathconf): Pass file to __statfs_link_max.
8415         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
8416         __statfs_link_max.
8417         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
8418         __statfs_link_max.
8419
8420         [BZ #12868]
8421         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
8422         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
8423         Handle Lustre.
8424         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
8425         (__statfs_filesize_max): Likewise.
8426         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
8427
8428 2011-07-05  Andreas Jaeger  <aj@suse.de>
8429
8430         * resolv/res_comp.c (dn_skipname): Remove unused variable.
8431
8432 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
8433
8434         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
8435         `status' variable.
8436         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
8437         Likewise.
8438
8439 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
8440
8441         * Makefile (strop-tests): Add strncat.
8442         * string/test-strncat.c: New file.
8443
8444 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
8445
8446         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
8447
8448 2011-06-21  Andreas Jaeger  <aj@suse.de>
8449
8450         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
8451         Copy rule from iconvdata/Makefile.
8452
8453 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
8454
8455         [BZ #12922]
8456         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
8457         but no long options are defined, just return 'W'.
8458
8459 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
8460
8461         [BZ #9696]
8462         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
8463
8464 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
8465
8466         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
8467         netgroups to read.
8468         (innetgr): Likewise.
8469
8470 2011-07-05  Roland McGrath  <roland@hack.frob.com>
8471
8472         * config.make.in (install_root): Default to $(DESTDIR).
8473
8474 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
8475
8476         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
8477
8478 2011-07-02  Roland McGrath  <roland@hack.frob.com>
8479
8480         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
8481
8482         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
8483         containing directory rather than embedding absolute directory names.
8484
8485         * scripts/check-local-headers.sh: Rewritten using awk.
8486         Match by word, not by line.  Print error messages for matches.
8487         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
8488
8489         * Makerules [shlib-lds-flags empty]:
8490         ($(common-objpfx)libc_pic.opts): New target.
8491         ($(common-objpfx)libc_pic.os.clean): New target.
8492         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
8493
8494         * config.make.in (OBJCOPY): New variable.
8495         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
8496         * configure: Regenerated.
8497
8498         * config.make.in (use-default-link): New variable.
8499         * configure.in (use_default_link): Grok --with-default-link to set it.
8500         * configure: Regenerated.
8501         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
8502         (shlib-lds, shlib-lds-flags): Define to empty.
8503
8504         * Makerules (shlib-lds): New variable.
8505         (shlib-lds-flags): New variable.
8506         (build-shlib, build-moduile, build-module-asneeded): Use it.
8507         ($(common-objpfx)libc.so): Use $(shlib-lds).
8508         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
8509         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
8510
8511         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
8512         DT_FLAGS/DT_FLAGS_1 with zero flags.
8513
8514         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
8515         linker script munging.
8516
8517 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
8518
8519         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
8520         as 128-bit value.
8521         * crypt/sha512.c (sha512_process_block): Perform total addition using
8522         128-bit if possible.
8523         (__sha512_finish_ctx): Likewise.
8524         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
8525         as 64-bit value.
8526         * crypt/sha256.c (SWAP64): Define.
8527         (sha256_process_block): Perform total addition using 64-bit if
8528         possible.
8529         (__sha256_finish_ctx): Likewise.
8530
8531 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
8532
8533         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
8534         * nscd/initgrcache.c (addinitgroupsX): Likewise.
8535         * nscd/hstcache.c (cache_addhst): Likewise.
8536         * nscd/grpcache.c (cache_addgr): Likewise.
8537         * nscd/aicache.c (addhstaiX): Likewise
8538         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
8539
8540 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
8541
8542         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
8543         * nscd/initgrcache.c (addinitgroupsX): Likewise.
8544         * nscd/hstcache.c (cache_addhst): Likewise.
8545         * nscd/grpcache.c (cache_addgr): Likewise.
8546         * nscd/aicache.c (addhstaiX): Likewise
8547
8548 2011-07-01  Andreas Schwab  <schwab@redhat.com>
8549
8550         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
8551         domain only when needed.
8552
8553 2011-06-30  Andreas Schwab  <schwab@redhat.com>
8554
8555         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
8556         is always restored.
8557
8558 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
8559
8560         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
8561         are re-adding the entry.
8562         * nscd/servicescache.c (cache_addserv): Likewise.
8563
8564 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
8565
8566         * sysdeps/generic/dl-irel.h: fix protection against multiple
8567         inclusions.
8568         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
8569
8570 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
8571
8572         [BZ #12935]
8573         * malloc/memusage.sh: Fix quoting in message.
8574         * debug/xtrace.sh: Likewise.
8575
8576         * configure.in: Remove support for --experimental-malloc option, make
8577         it the default.
8578         * config.make.in: Likewise.
8579         * malloc/Makefile: Likewise.
8580
8581 2011-06-27  Andreas Schwab  <schwab@redhat.com>
8582
8583         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
8584         two-byte characters.
8585
8586 2011-06-27  Roland McGrath  <roland@hack.frob.com>
8587
8588         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
8589         AC_CACHE_CHECK invocation.
8590         * configure: Regenerated.
8591
8592         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
8593
8594 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
8595
8596         [BZ #12350]
8597         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
8598         bit from old_res_options.
8599
8600         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
8601
8602         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
8603         value type for setfct.
8604
8605 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
8606
8607         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
8608         __gettimeofday instead of gettimeofday.
8609
8610 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
8611
8612         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
8613
8614 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
8615
8616         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
8617
8618         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
8619         info.
8620
8621 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
8622
8623         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
8624         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
8625         strcpy-sse2-unaligned strncpy-sse2-unaligned
8626         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
8627         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
8628         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
8629         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
8630         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
8631         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
8632         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
8633         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
8634         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
8635         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
8636         (STRCPY): Support SSE2 and SSSE3 versions.
8637
8638 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
8639
8640         [BZ #12874]
8641         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
8642         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
8643         kernels which artificially limit size of requests.
8644
8645 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
8646
8647         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
8648         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
8649         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
8650         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
8651         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
8652         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
8653         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
8654         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
8655         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
8656         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
8657         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
8658         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
8659         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
8660         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
8661         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
8662         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
8663         Enable unaligned load optimization for Intel Core i3, i5 and i7
8664         processors.
8665         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
8666         Define.
8667         (index_Fast_Unaligned_Load): Define.
8668         (HAS_FAST_UNALIGNED_LOAD): Define.
8669
8670 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
8671
8672         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
8673
8674 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
8675
8676         [BZ #12907]
8677         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
8678         until it is clear that the information is realy needed.
8679         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
8680
8681 2011-06-22  Andreas Schwab  <schwab@redhat.com>
8682
8683         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
8684
8685 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
8686
8687         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
8688         /sys/devices/system/cpu/online if it is usable.
8689
8690         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
8691         reading the information from the /proc filesystem to once a second.
8692
8693 2011-06-21  Andreas Jaeger  <aj@suse.de>
8694
8695         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
8696         NULL after inclusion of kernel headers.
8697
8698 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
8699
8700         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
8701         calls to internal_setent.
8702
8703         [BZ #12885]
8704         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
8705         addresses using gethostbyname4_r ignore IPv4 addresses.
8706
8707         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
8708         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
8709
8710         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
8711
8712 2011-06-20  David S. Miller  <davem@davemloft.net>
8713
8714         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
8715         inclusions.
8716         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
8717
8718         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
8719         (elf_irel): Use it.
8720         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
8721         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
8722         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
8723         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
8724         * sysdeps/x86_64/dl-irel.h: Likewise.
8725
8726         * elf/dl-runtime.c: Use elf_ifunc_invoke.
8727         * elf/dl-sym.c: Likewise.
8728
8729 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
8730
8731         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
8732         need to dereference resplen2.
8733
8734 2011-06-14  Andreas Schwab  <schwab@redhat.com>
8735
8736         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
8737
8738 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
8739
8740         * Makeconfig: Define vardbdir and inst_vardbdir.
8741         * nss/Makefile: Add rules to install db-Makefile.
8742
8743         * nss/nss_db/db-XXX.c: Cleanup.
8744
8745         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
8746         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
8747         GLIBC_PRIVATE.
8748         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
8749         * nss/makedb.c: Implement -g option to specify that value strings
8750         are generated and should not be added to table iterated over for
8751         get*ent calls.
8752         * nss/nss_db/db-initgroups.c: New file.
8753
8754         * nss/getent.c: Add support for initgroups lookups through getgrouplist
8755         interface.
8756
8757         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
8758         (internal_getgrouplist): Adjust to name change.
8759         Update use_initgroups_entry if this is not the first call.
8760         * nss/databases.def: Add initgroups entry.
8761
8762         * nss/makedb.c (compute_tables): Check result of multiple hash table
8763         sizes to minimize maximum chain length.
8764
8765 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
8766
8767         * Versions.def: Add entry for libnss_db.
8768         * shlib-versions: Likewise.
8769         * nss/Makefile: Add rules to build libnss_db.
8770         * nss/Versions: Add libnss_db information.  Organize libnss_files
8771         entries better.
8772         * nss/db-Makefile: Add gshadow support.  Change rules for the new
8773         makedb progra.  Some minor improvements to generate smaller files.
8774         * nss/nss_db/nss_db.h: Move NSS database header data structures to
8775         here from...
8776         * nss/makedb.c: ...here.
8777         Improve database format to be smaller and require less memory at
8778         runtime.
8779         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
8780         db anymore.
8781         * nss/nss_db/db-netgrp.c: Likewise.
8782         * nss/nss_db/db-open.c: Likewise.
8783         * nss/nss_files/flies-XXX.x: Adjust comments.
8784         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
8785         * nss/nss_files/files-grp.c: Likewise.
8786         * nss/nss_files/files-hosts.c: Likewise.
8787         * nss/nss_files/files-network.c: Likewise.
8788         * nss/nss_files/files-proto.c: Likewise.
8789         * nss/nss_files/files-pwd.c: Likewise.
8790         * nss/nss_files/files-rpc.c: Likewise.
8791         * nss/nss_files/files-service.c: Likewise.
8792         * nss/nss_files/files-sgrp.c: Likewise.
8793         * nss/nss_files/files-spwd.c: Likewise.
8794         * nss/nss_db/db-alias.c: Removed.
8795         * nss/nss_db/dummy-db.h: Removed.
8796
8797 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
8798
8799         * nss/makedb.c: Rewritten to not use database library.
8800         * nss/Makefile: Update to build new makedb program.
8801
8802 2011-06-14  Andreas Jaeger  <aj@suse.de>
8803
8804         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
8805         memset declaration.
8806
8807 2011-06-10  Andreas Schwab  <schwab@redhat.com>
8808
8809         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
8810         tmpbuf.
8811
8812 2011-06-10  Roland McGrath  <roland@hack.frob.com>
8813
8814         * Makerules (shlib.lds): Fail if the linker script comes out empty.
8815         * elf/Makefile ($(objpfx)ld.so): Likewise.
8816
8817         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
8818         Don't list ld.so twice in dependencies.
8819
8820         * posix/bug-regex31.c: Include <stdlib.h>.
8821
8822         * nscd/hstcache.c (cache_addhst): Remove unused variable.
8823
8824         * nis/nss_compat/compat-spwd.c
8825         (getspent_next_nss_netgr): Remove unused variable.
8826         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
8827
8828         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
8829         nonmembers" output to use the right array.
8830
8831         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
8832
8833         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
8834
8835         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
8836         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
8837         * catgets/gencat.c (read_input_file): Likewise.
8838         * locale/programs/locarchive.c (enlarge_archive): Likewise.
8839
8840         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
8841         variable definition inside #if's controlling its use.
8842
8843         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
8844
8845         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
8846
8847         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
8848
8849         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
8850         unreachable code.
8851
8852         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
8853
8854         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
8855         * configure: Regenerated.
8856
8857         * Makerules: Revert last change.
8858         * elf/Makefile: Likewise.
8859
8860 2011-06-09  Roland McGrath  <roland@hack.frob.com>
8861
8862         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
8863         * elf/Makefile ($(objpfx)librtld.os): Likewise.
8864         (reloc-link): Likewise.
8865
8866 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
8867
8868         * elf/Makefile: Add rules to build pldd.
8869         * elf/pldd.c: New file.
8870         * elf/pldd-xx.c: New file.
8871
8872 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
8873
8874         * version.h: Update for 2.15 development version.
8875
8876 2011-06-07  David S. Miller  <davem@davemloft.net>
8877
8878         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
8879         ifuncs.
8880         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
8881         elf_machine_lazy_rel): Likewise.
8882         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
8883         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
8884         elf_machine_lazy_rel): Likewise.
8885         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
8886         dl_hwcap via passed in argument.
8887         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
8888         Likewise.
8889
8890 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8891
8892         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
8893
8894 2011-06-06  Roland McGrath  <roland@hack.frob.com>
8895
8896         [BZ #12849]
8897         * manual/fdl-1.1.texi: New file, verbatim from:
8898         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
8899         * manual/lgpl-2.1.texi: New file, verbatim from:
8900         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
8901         * manual/Makefile (licenses): New variable, list those new file names.
8902         (texis): Use it.
8903         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
8904
8905         * manual/fdl.texi: File removed.
8906         * manual/lesser.texi: File removed.
8907         * manual/libc.texinfo (Copying, Documentation License):
8908         Use new @include file names, put @appendix directive before @include.
8909
8910 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
8911
8912         [BZ #12841]
8913         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
8914         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
8915         (mq_open): Add __NTH.
8916
8917 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
8918
8919         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
8920         Assume Intel Core i3/i5/i7 processor if AVX is available.
8921
8922 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
8923
8924         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
8925         typo.
8926
8927 2011-05-31  Andreas Schwab  <schwab@redhat.com>
8928
8929         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
8930         memory.  Use alloca_account.  Fix memory leak when retrying.
8931
8932 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
8933
8934         * version.h (RELEASE): Bump for 2.14 release.
8935         * include/features.h (__GLIBC_MINOR__): Bump to 14.
8936
8937         * config.make.in (RANLIB): Remove entry.
8938
8939 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
8940
8941         * po/Makefile (po-sed-cmd): Add ksh to extensions.
8942         (libc.pot): Work around missing support for .ksh extension in xgettext.
8943
8944         [BZ #12684]
8945         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
8946         if both request failed.
8947         (send_dg): In case of server errors clear resplen or *resplen2.
8948
8949         [BZ #12454]
8950         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
8951         when there are multiple maps.
8952         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
8953         (_dl_fini): Remove test here.
8954
8955         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
8956
8957 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
8958
8959         [BZ #12350]
8960         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
8961         bit from old_res_options.
8962         (gaih_inet): Likewise.
8963
8964         [BZ #11099]
8965         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
8966         as signed.
8967
8968         * resolv/res_init.c (res_setoptions): Make the code more compact.
8969
8970         [BZ #11558]
8971         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
8972         set RES_USEVC.
8973
8974         [BZ #11634]
8975         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
8976
8977         * malloc/malloc.h: Mark malloc hook variables as deprecated.
8978
8979         [BZ #11781]
8980         * malloc/malloc.h: Declare malloc hook variables as volatile.
8981
8982         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
8983         in last patch.
8984
8985         [BZ #11799]
8986         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
8987         raise in the comment.
8988         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
8989         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
8990         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
8991
8992 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
8993
8994         [BZ #12811]
8995         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
8996         grow the buffers more if it already has to be sufficient.
8997         (build_wcs_upper_buffer): Likewise.
8998         * posix/regexec.c (check_matching): Likewise.
8999         (clean_state_log_if_needed): Likewise.
9000         (extend_buffers): Don't enlarge buffers beyond size of the input
9001         buffer.
9002         Patches mostly by Emil Wojak <emil@wojak.eu>.
9003         * posix/bug-regex32.c: New file.
9004         * posix/Makefile (tests): Add bug-regex32.
9005
9006         * locale/findlocale.c (_nl_find_locale): Return right away if
9007         _nl_explode_name failed.
9008         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
9009
9010         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
9011
9012         * debug/xtrace.sh: Unify messages.
9013         * malloc/memusage.sh: Likewise.
9014
9015         [BZ #12813]
9016         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
9017         time symbol from vDSO.  Substitute with vsyscall if not available.
9018         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
9019         __vdso_time.
9020
9021         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
9022         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
9023         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
9024         Add sendmmsg and internal_sendmmsg.
9025         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
9026         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
9027         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
9028
9029         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
9030         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
9031         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
9032
9033 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
9034
9035         [BZ #12813]
9036         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
9037         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
9038         available.
9039         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
9040         __vdso_getcpu.
9041
9042         [BZ #12814]
9043         * iconvdata/Makefile (tests): Add bug-iconv9.
9044         * iconvdata/bug-iconv9.c: New file.
9045
9046 2011-05-27  Andreas Schwab  <schwab@redhat.com>
9047
9048         [BZ #12814]
9049         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
9050
9051 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
9052
9053         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
9054         (struct user_regs_struct): Change intcs field back to cs.
9055
9056 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
9057
9058         * po/ja.po: Update from translation team.
9059
9060 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
9061
9062         [BZ #12795]
9063         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
9064         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
9065
9066 2011-05-20  Andreas Schwab  <schwab@redhat.com>
9067
9068         * stdlib/longlong.h: Update from GCC.
9069
9070 2011-05-23  Andreas Schwab  <schwab@redhat.com>
9071
9072         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
9073         parameter name.
9074         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
9075         Add parameter name.
9076         (__sysconf): Pass it down.
9077
9078 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
9079
9080         [BZ #12671]
9081         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
9082         some situations.
9083         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
9084         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
9085         add in in __libc_use_alloca calls.  Adjust callers.
9086         (glob): Use malloc in some situations.
9087
9088         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
9089         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
9090         pltexit.
9091
9092 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
9093
9094         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
9095         and CLOCK_BOOTTIME_ALARM.
9096
9097         [BZ #12782]
9098         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
9099         is returned.
9100
9101         * string/_strerror.c (__strerror_r): Print negative errors as signed
9102         numbers.
9103
9104         [BZ #12777]
9105         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
9106         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
9107         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
9108
9109         * configure.in: Fix typo in redirection and correct removal of test
9110         files in two cases.
9111
9112         [BZ #12788]
9113         * locale/setlocale.c (new_composite_name): Fix test to check for
9114         identical name of all categories.
9115
9116         [BZ #12792]
9117         * libio/filedoalloc.c (local_isatty): New function.
9118         (_IO_file_doallocate): Use local_isatty.
9119         * stdio-common/perror.c (perror): In case a new stream is used
9120         forward the stream error.
9121         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
9122         error flag.
9123
9124 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
9125
9126         [BZ #11869]
9127         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
9128         alloca.
9129         * include/alloca.h (extend_alloca_account): Define.
9130
9131         [BZ #11857]
9132         * posix/regex.h: Fix comments with documentation of user-accessible
9133         fields after compilation and describe correct free'ing of pattern
9134         after re_compile_pattern.
9135         Patch by Reuben Thomas <rrt@sc3d.org>.
9136
9137 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
9138
9139         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
9140         and -mno-altivec to prevent the compiler from using Altivec and/or
9141         VSX instructions when the corresponding registers are not available.
9142
9143 2011-05-19  Andreas Schwab  <schwab@redhat.com>
9144
9145         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
9146
9147 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
9148
9149         * libio/freopen.c (freopen): Use __dup2, not dup2.
9150         * libio/freopen64.c (freopen64): Likewise.
9151
9152 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
9153
9154         [BZ #12775]
9155         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
9156         * math/Makefile (tests): Add test-powl.
9157         (CFLAGS-test-powl.c): Define.
9158         * math/test-powl.c: New file.
9159
9160 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
9161
9162         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
9163
9164 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
9165
9166         [BZ #11837]
9167         * iconvdata/gb18030.c: Update to GB18020-2005.
9168
9169 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
9170
9171         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
9172         RE_SYNTAX_POSIX_AWK): Update to match recent development.
9173         Patch by Aharon Robbins <arnold@skeeve.com>.
9174
9175         [BZ #11892]
9176         * stdlib/putenv.c (putenv): Don't always create copy of the variable
9177         on the stack.
9178
9179         [BZ #11895]
9180         * misc/pselect.c (__pselect): Handle timeout value errors hidden
9181         through underflows.
9182
9183         [BZ #12766]
9184         * misc/error.c (error_at_line): Ensure file_name and old_file_name
9185         point to strings before performing equality test for error_one_per_line
9186         mode.
9187
9188         [BZ #11697]
9189         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
9190
9191         [BZ #11820]
9192         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
9193         (struct user_fpregs_struct): Avoid __uint*_t types.
9194
9195         [BZ #6420]
9196         * malloc/mtrace.c (tr_where): Add additional parameter to point to
9197         symbol info.  Use it instead of calling _dl_addr locally.
9198         (lock_and_info): New function.
9199         (tr_freehook): Call lock_and_info and pass symbol info as additional
9200         parameter to tr_where.
9201         (tr_mallochook): Likewise.
9202         (tr_reallochook): Likewise.
9203         (tr_memalignhook): Likewise.
9204
9205         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
9206         used and couldn't be at all thread-safe.
9207
9208 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
9209
9210         * libio/freopen.c (freopen): Don't close old file descriptor
9211         before the new one is opened.  Instead dup the new file descriptor
9212         to the old one after the new stream is created.
9213         * libio/freopen64.c (freopen64): Likewise.
9214         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
9215         * libio/fileops.c (_IO_new_file_close_it): Handle new
9216         _IO_FLAGS2_NOCLOSE flag.
9217         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
9218         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
9219         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
9220         _IO_FLAGS2_NOCLOSE flag.
9221         * include/unistd.h: Add hidden_proto for dup3.
9222         Define __have_dup3.
9223         * io/dup3.c: Define hidden symbol.
9224         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
9225
9226         [BZ #7101]
9227         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
9228         when an incomplete long option is used.
9229         * posix/tst-getopt_long1.c: New file.
9230         * posix/Makefile (tests): Add tst-getopt_long1.
9231
9232         [BZ #10138]
9233         * scripts/config.guess: Update from autoconf-2.68.
9234         * scripts/config.sub: Likewise.
9235
9236         [BZ #10157]
9237         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
9238         tests into ...
9239         (has_cpuclock): ...this.  New function.
9240         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
9241         macro here based on has_cpuclock code.
9242
9243         [BZ #10149]
9244         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
9245         First byte (not low byte) is now always NUL.
9246         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
9247
9248         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
9249         Use non-cancelable interfaces.
9250
9251         [BZ #9809]
9252         * locale/iso-639.def: Add entry for Sorani.
9253
9254         [BZ #11901]
9255         * include/stdlib.h: Move include protection to the right place.
9256         Define abort_msg_s.  Declare __abort_msg with it.
9257         * stdlib/abort.c (__abort_msg): Adjust type.
9258         * assert/assert.c (__assert_fail_base): New function.  Majority
9259         of code from __assert_fail.  Allocate memory for __abort_msg with
9260         mmap.
9261         (__assert_fail): Now call __assert_fail_base.
9262         * assert/assert-perr.c: Remove bulk of implementation.  Use
9263         __assert_fail_base.
9264         * include/assert.hL Declare __assert_fail_base.
9265         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
9266         mmap.
9267         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
9268
9269 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
9270
9271         [BZ #11952]
9272         [BZ #12453]
9273         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
9274         until all modules are registered in the DTV.
9275         * elf/Makefile: Add rules to build and run tst-tls19.
9276         * elf/tst-tls19.c: New file.
9277         * elf/tst-tls19mod1.c: New file.
9278         * elf/tst-tls19mod2.c: New file.
9279         * elf/tst-tls19mod3.c: New file.
9280         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
9281
9282         [BZ #12083]
9283         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
9284         correctly.
9285
9286         [BZ #12601]
9287         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
9288         two-byte sequence errors.
9289         * iconvdata/Makefile (tests): Add bug-iconv8.
9290         * iconvdata/bug-iconv8.c: New file.
9291
9292         [BZ #12626]
9293         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
9294         buf2 definition.
9295
9296         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
9297
9298         [BZ #12432]
9299         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
9300         (dummy_getcfa): New function.
9301         (init): Get _Unwind_GetCFA address, use dummy if not found.
9302         (backtrace_helper): In recursion check, also check whether CFA changes.
9303         (__backtrace): Completely initialize arg.
9304
9305         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
9306         storing incomplete byte sequence in state object.  Avoid testing for
9307         guaranteed too small input if we know there is enough data available.
9308
9309 2011-05-11  Andreas Schwab  <schwab@redhat.com>
9310
9311         * Makeconfig (+link-pie): Indent.
9312         * Rules (binaries-pie): Define if $(have-fpie) and
9313         $(build-shared).
9314         (binaries-shared): Also filter out $(binaries-pie).
9315         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
9316         * nscd/Makefile (others-pie): Add nscd.
9317         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
9318         ($(objpfx)nscd): Remove command override.
9319         * login/Makefile (others-pie): Add pt_chown.
9320         ($(objpfx)pt_chown): Remove command override.
9321         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
9322         remove command overrides.
9323
9324 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
9325
9326         * libio/tst_putwc.c: Fix error messages.
9327
9328         [BZ #12724]
9329         * libio/fileops.c (_IO_new_file_close_it): Always flush when
9330         currently writing and seek to current position when not.
9331         * libio/Makefile (tests): Add bug-fclose1.
9332         * libio/bug-fclose1.c: New file.
9333
9334 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
9335
9336         [BZ #12511]
9337         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
9338         don't set DF_1_NODELETE here.
9339         (do_lookup_x): When entering new entry test for copy relocation
9340         and if necessary set DF_1_NODELETE flag.
9341         * elf/tst-unique4.cc: New file.
9342         * elf/tst-unique4.h: New file.
9343         * elf/tst-unique4lib.cc: New file.
9344         * elf/Makefile: Add rules to build and run tst-unique4.
9345         Patch by Piotr Bury <pbury@goahead.com>.
9346
9347 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
9348
9349         [BZ #12052]
9350         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
9351
9352         [BZ #12625]
9353         * misc/mntent_r.c (addmntent): Flush the stream after the output
9354
9355         [BZ #12393]
9356         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
9357         (is_trusted_path_normalize): Skip initial colon.  Append slash
9358         to empty buffer.  Duplicate is_trusted_path code but allow
9359         constructed patch to be prefix.
9360         (is_dst): Allow $ORIGIN followed by /.
9361         (_dl_dst_substitute): Correct clearing of check_for_trusted.
9362         Correct testing of result of is_trusted_path_normalize
9363         (decompose_rpath): Fix warning.
9364
9365 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
9366
9367         [BZ #11257]
9368         * grp/initgroups.c (internal_getgrouplist): When we found the service
9369         list through the initgroups entry in nsswitch.conf do not always
9370         continue on a successful lookup.  Don't always use the
9371         __nss_group_database value if it is set.
9372         * nss/nsswitch.conf (initgroups): Change action for successful db
9373         lookup to continue for compatibility.
9374
9375 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
9376
9377         [BZ #11532]
9378         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
9379         and CP774 modules.
9380         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
9381         and CP774 modules.
9382         * iconvdata/tst-tables.sh: Likewise.
9383         * iconvdata/cp770.c: New file.
9384         * iconvdata/cp771.c: New file.
9385         * iconvdata/cp772.c: New file.
9386         * iconvdata/cp773.c: New file.
9387         * iconvdata/cp774.c: New file.
9388         * iconvdata/testdata/CP770: New file.
9389         * iconvdata/testdata/CP770..UTF8: New file.
9390         * iconvdata/testdata/CP771: New file.
9391         * iconvdata/testdata/CP771..UTF8: New file.
9392         * iconvdata/testdata/CP772: New file.
9393         * iconvdata/testdata/CP772..UTF8: New file.
9394         * iconvdata/testdata/CP773: New file.
9395         * iconvdata/testdata/CP773..UTF8: New file.
9396         * iconvdata/testdata/CP774: New file.
9397         * iconvdata/testdata/CP774..UTF8: New file.
9398
9399         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
9400         END CHARMAP line.
9401         * iconvdata/gen-8bit-gap.sh: Likewise.
9402         * iconvdata/gen-8bit.sh: Likewise.
9403
9404         * locale/iso-639.def: Add ary entry.
9405
9406         [BZ #11258]
9407         * locale/C-translit.h.in: Add U20A1 transliteration.
9408
9409         [BZ #12178]
9410         * locale/iso-639.def: Add wae entry.
9411         Patch by Kevin Bortis <bortis@translate-wae.ch>.
9412
9413         [BZ #12545]
9414         * locale/programs/localedef.c (construct_output_path): Use ssize_t
9415         for n.
9416
9417         [BZ #12711]
9418         * locale/C-translit.h.in: Add entry for U20B9.
9419         Patch by pravin.d.s@gmail.com.
9420
9421 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
9422
9423         [BZ #12713]
9424         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
9425         ENAMETOOLONG use generic getcwd.
9426         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
9427         in rtld.  Use *stat64.
9428         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
9429         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
9430         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
9431         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
9432         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
9433         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
9434         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
9435         __fstatat64 macros.
9436         * include/dirent.h: Add libc_hidden_proto for rewinddir.
9437         * dirent/rewinddir.c: Add libc_hidden_def.
9438         * sysdeps/mach/hurd/rewinddir.c: Likewise.
9439         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
9440
9441         * include/dirent.h (__alloc_dir): Add flags parameter.
9442         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
9443         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
9444         __alloc_dir.
9445         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
9446         from fdopendir if O_CLOEXEC is already set.
9447
9448 2011-03-15  Alan Modra  <amodra@gmail.com>
9449
9450         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
9451         l_tls_firstbyte_offset non-zero.  Save padding offset in
9452         l_tls_firstbyte_offset for later use.
9453         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
9454         freeing static tls block.
9455
9456 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
9457
9458         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
9459         where #ifdef was intended.  The intent is to prevent ARG_MAX from
9460         being defined by the kernel headers.
9461
9462 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
9463
9464         [BZ #12734]
9465         * resolv/resolv.h: Define RES_NOTLDQUERY.
9466         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
9467         no-tld-query and set RES_NOTLDQUERY.
9468         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
9469         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
9470         modern BIND to search name as TLD unless forbidden.
9471
9472 2011-05-07  Petr Baudis  <pasky@suse.cz>
9473             Ulrich Drepper  <drepper@gmail.com>
9474
9475         [BZ #12393]
9476         * elf/dl-load.c (fillin_rpath): Move trusted path check...
9477         (is_trusted_path): ...to here.
9478         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
9479         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
9480         using is_trusted_path_normalize() in setuid scripts.
9481
9482 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
9483
9484         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
9485         __BEGIN/__END_DECLS.
9486
9487 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
9488
9489         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
9490         NSS_STATUS_NOTFOUND if no record was found.
9491
9492 2011-05-05  Andreas Schwab  <schwab@redhat.com>
9493
9494         * sunrpc/Makefile (headers): Add rpc/netdb.h.
9495         (headers-not-in-tirpc): Remove rpc/netdb.h
9496         * resolv/netdb.h: Revert last change.
9497
9498 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
9499
9500         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
9501         circular dependency between libgcc.a and libc.a.
9502
9503 2011-05-05  Andreas Schwab  <schwab@redhat.com>
9504
9505         * resolv/netdb.h: Don't include <rpc/netdb.h>.
9506         * nis/Makefile: Don't install rpcsvc/*.
9507         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
9508         instead of <rpc/types.h>.
9509         (MAXHOSTNAMELEN): Define.
9510
9511 2011-05-03  Andreas Schwab  <schwab@redhat.com>
9512
9513         * elf/ldconfig.c (add_dir): Don't crash on empty path.
9514
9515 2011-04-28  Maciej Babinski  <mbabinski@google.com>
9516
9517         [BZ #12714]
9518         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
9519         gethostbyname4_r when IPv6 results are possible.
9520
9521 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
9522
9523         [BZ #12723]
9524         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
9525         _PC_PIPE_BUF handling.
9526
9527 2011-04-30  Bruno Haible  <bruno@clisp.org>
9528
9529         [BZ #12717]
9530         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
9531         * resolv/netdb.h (getnameinfo): Change type of flags parameter
9532         to 'int'.
9533         * inet/getnameinfo.c (getnameinfo): Likewise.
9534
9535 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
9536
9537         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
9538         to groups setting in database lookup.
9539         * nss/nsswitch.conf: Add initgroups entry.
9540
9541 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
9542
9543         [BZ #12685]
9544         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
9545         mode string.
9546         Patch by Eric Blake <eblake@redhat.com>.
9547
9548 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
9549
9550         * sunrpc/Makefile (need-export-routines): Add svc_run.
9551         (routines): Remove svc_run.
9552         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
9553         * sunrpc/clnt_perr.c (clnt_perrno): Export.
9554         * sunrpc/svc_run.c (svc_run): Likewise.
9555         * sunrpc/svc_udp.c (svcudp_create): Likewise.
9556
9557 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
9558
9559         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
9560         problem in reallocation in last patch.
9561
9562 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
9563
9564         * sunrpc/Makefile: Move inclusion of Rules.
9565
9566 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
9567
9568         * nss/nss_files/files-initgroups.c: New file.
9569         * nss/Makefile (libnss_files-routines): Add files-initgroups.
9570         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
9571         _nss_files_initgroups_dyn.
9572
9573 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
9574
9575         * elf/elf.h (R_ARM_IRELATIVE): Define.
9576
9577 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
9578
9579         * po/ru.po: Update from translation team.
9580
9581 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
9582
9583         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
9584         dependencies.
9585
9586 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
9587
9588         [BZ #12653]
9589         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
9590         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
9591         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
9592         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
9593         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
9594
9595 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
9596
9597         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
9598         differing bytes.
9599         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
9600         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
9601         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
9602
9603 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
9604
9605         [BZ #12420]
9606         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
9607         storing it.
9608         * stdlib/bug-getcontext.c: New file.
9609         * stdlib/Makefile: Add rules to build and run bug-getcontext.
9610
9611 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9612
9613         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
9614         instructions into .machine "z9-109".
9615         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
9616         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
9617
9618 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9619
9620         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
9621         between environment variables and auxiliary vector.
9622
9623 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
9624
9625         * Makefile: Add rules to build linkobj/libc.so.
9626         * include/libc-symbols.h: Define libc_hidden_nolink.
9627         * include/rpc/auth.h: Mark functions which are to be hidden.
9628         * include/rpc/auth_des.h: Likewise.
9629         * include/rpc/auth_unix.h: Likewise.
9630         * include/rpc/clnt.h: Likewise.
9631         * include/rpc/des_crypt.h: Likewise.
9632         * include/rpc/key_prot.h: Likewise.
9633         * include/rpc/pmap_clnt.h: Likewise.
9634         * include/rpc/pmap_prot.h: Likewise.
9635         * include/rpc/pmap_rmt.h: Likewise.
9636         * include/rpc/rpc_msg.h: Likewise.
9637         * include/rpc/svc.h: Likewise.
9638         * include/rpc/svc_auth.h: Likewise.
9639         * include/rpc/xdr.h: Likewise.
9640         * nis/Makefile: Link all DSOs against linkobj/libc.so.
9641         * nss/Makefile: Likewise.
9642         * sunrpc/Makefile: Don't install headers.  Build library with normal
9643         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
9644         * sunrpc/auth_des.c: Hide exported symbols by default, export some
9645         for the compat linking library.  Remove use of INTDEF/INTUSE.
9646         * sunrpc/auth_none.c: Likewise.
9647         * sunrpc/auth_unix.c: Likewise.
9648         * sunrpc/authdes_prot.c: Likewise.
9649         * sunrpc/authuxprot.c: Likewise.
9650         * sunrpc/clnt_gen.c: Likewise.
9651         * sunrpc/clnt_perr.c: Likewise.
9652         * sunrpc/clnt_raw.c: Likewise.
9653         * sunrpc/clnt_simp.c: Likewise.
9654         * sunrpc/clnt_tcp.c: Likewise.
9655         * sunrpc/clnt_udp.c: Likewise.
9656         * sunrpc/clnt_unix.c: Likewise.
9657         * sunrpc/des_crypt.c: Likewise.
9658         * sunrpc/des_soft.c: Likewise.
9659         * sunrpc/get_myaddr.c: Likewise.
9660         * sunrpc/key_call.c: Likewise.
9661         * sunrpc/key_prot.c: Likewise.
9662         * sunrpc/netname.c: Likewise.
9663         * sunrpc/pm_getmaps.c: Likewise.
9664         * sunrpc/pm_getport.c: Likewise.
9665         * sunrpc/pmap_clnt.c: Likewise.
9666         * sunrpc/pmap_prot.c: Likewise.
9667         * sunrpc/pmap_prot2.c: Likewise.
9668         * sunrpc/pmap_rmt.c: Likewise.
9669         * sunrpc/publickey.c: Likewise.
9670         * sunrpc/rpc_cmsg.c: Likewise.
9671         * sunrpc/rpc_common.c: Likewise.
9672         * sunrpc/rpc_dtable.c: Likewise.
9673         * sunrpc/rpc_prot.c: Likewise.
9674         * sunrpc/rpc_thread.c: Likewise.
9675         * sunrpc/rtime.c: Likewise.
9676         * sunrpc/svc.c: Likewise.
9677         * sunrpc/svc_auth.c: Likewise.
9678         * sunrpc/svc_authux.c: Likewise.
9679         * sunrpc/svc_raw.c: Likewise.
9680         * sunrpc/svc_run.c: Likewise.
9681         * sunrpc/svc_simple.c: Likewise.
9682         * sunrpc/svc_tcp.c: Likewise.
9683         * sunrpc/svc_udp.c: Likewise.
9684         * sunrpc/svc_unix.c: Likewise.
9685         * sunrpc/svcauth_des.c: Likewise.
9686         * sunrpc/xcrypt.c: Likewise.
9687         * sunrpc/xdr.c: Likewise.
9688         * sunrpc/xdr_array.c: Likewise.
9689         * sunrpc/xdr_float.c: Likewise.
9690         * sunrpc/xdr_intXX_t.c: Likewise.
9691         * sunrpc/xdr_mem.c: Likewise.
9692         * sunrpc/xdr_rec.c: Likewise.
9693         * sunrpc/xdr_ref.c: Likewise.
9694         * sunrpc/xdr_sizeof.c: Likewise.
9695         * sunrpc/xdr_stdio.c: Likewise.
9696
9697 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
9698
9699         [BZ #12650]
9700         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
9701         * sysdeps/ia64/dl-tls.h: Likewise.
9702         * sysdeps/powerpc/dl-tls.h: Likewise.
9703         * sysdeps/s390/dl-tls.h: Likewise.
9704         * sysdeps/sh/dl-tls.h: Likewise.
9705         * sysdeps/sparc/dl-tls.h: Likewise.
9706         * sysdeps/x86_64/dl-tls.h: Likewise.
9707         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
9708
9709 2011-03-14  Andreas Schwab  <schwab@redhat.com>
9710
9711         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
9712         rpath element also skip the following colon.
9713         (expand_dynamic_string_token): Add is_path parameter and pass
9714         down to DL_DST_REQUIRED and _dl_dst_substitute.
9715         (decompose_rpath): Call expand_dynamic_string_token with
9716         non-zero is_path.  Ignore empty rpaths.
9717         (_dl_map_object_from_fd): Call expand_dynamic_string_token
9718         with zero is_path.
9719
9720 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
9721
9722         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
9723         Make cancelable.
9724
9725 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
9726
9727         [BZ #12655]
9728         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
9729         Patch by Filipe David Manana <fdmanana@apache.org>.
9730
9731 2011-04-07  Andreas Schwab  <schwab@redhat.com>
9732
9733         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
9734         Maintain aligned stack.
9735         (CHECK_RSP): Remove unused macro.
9736
9737 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
9738
9739         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
9740         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
9741
9742 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
9743
9744         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
9745
9746         * include/features.h: Mention __USE_XOPEN2K8 in comment.
9747
9748 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
9749
9750         [BZ #12518]
9751         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
9752         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
9753         * sysdeps/x86_64/memmove.c: New file.
9754         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
9755         (memcpy): Renamed to ...
9756         (__new_memcpy): This.
9757         (memcpy): Provide GLIBC_2_14 memcpy.
9758         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
9759         (memcpy): Provide GLIBC_2_2_5 memcpy.
9760
9761 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
9762
9763         [BZ #12631]
9764         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
9765
9766 2011-03-30  Andreas Schwab  <schwab@redhat.com>
9767
9768         * misc/syncfs.c: New file.
9769         * misc/Makefile (routines): Add syncfs.
9770         * posix/unistd.h: Declare syncfs.
9771         * sysdeps/unix/syscalls.list: Add syncfs.
9772
9773 2011-04-01  Andreas Schwab  <schwab@redhat.com>
9774
9775         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
9776         open_by_handle_at.
9777         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
9778         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9779         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9780         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9781         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
9782         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
9783         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9784
9785 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
9786
9787         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
9788         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9789         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9790         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9791         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9792         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
9793         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9794
9795         * io/Makefile: Compile fallocate.c, fallocate64.c, and
9796         sync_file_range.c with -fexceptions.
9797         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
9798         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
9799         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
9800         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
9801         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
9802         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
9803         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
9804         sync_file_range as cancellation point
9805         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
9806         now a wrapper around __call_sync_file_range with cancellation handling.
9807         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
9808         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
9809         function name to __call_sync_file_range.
9810         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
9811         Add call_sync_file_range.
9812
9813 2011-04-01  Andreas Schwab  <schwab@redhat.com>
9814
9815         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
9816         bits/timex.h.
9817
9818 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
9819
9820         * iconv/iconv.h: Fix typo in comment.
9821         * io/fcntl.h: Likewise.
9822         * libio/stdio.h: Likewise.
9823         * posix/spawn.h: Likewise.
9824         * posix/unistd.h: Likewise.
9825         * stdlib/stdlib.h: Likewise.
9826         * time/time.h: Likewise.
9827         * wcsmbs/wchar.h: Likewise.
9828
9829         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
9830         open_by_handle): Add.
9831         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
9832         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
9833         Augment a few comments.
9834         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9835         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9836         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9837         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
9838         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9839         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
9840         open_by_handle.
9841
9842         * io/fcntl.h (AT_EMPTY_PATH): Define.
9843
9844 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
9845
9846         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
9847         * sysdeps/unix/sysv/linux/bits/time.h: New file.
9848         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
9849         to...
9850         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
9851         * Versions.def: Add GLIBC_2.14.
9852         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
9853         Export.
9854
9855 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
9856
9857         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
9858         round counter.
9859         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
9860
9861 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
9862
9863         [BZ #12597]
9864         * string/test-strncmp.c (do_page_test): New function.
9865         (check2): Likewise.
9866         (test_main): Call check2.
9867         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
9868
9869 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
9870
9871         [BZ #12587]
9872         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
9873         Handle cache information in CPU leaf 4.
9874         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
9875
9876 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
9877
9878         [BZ #12583]
9879         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
9880         character representation.
9881         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
9882
9883 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
9884
9885         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
9886         END(__isnan) to END(__isnanf) to match function entry point/label
9887         EALIGN(__isnanf,...).
9888
9889 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
9890
9891         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
9892
9893 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
9894
9895         [BZ #12510]
9896         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
9897         copy from the symbol referenced in the relocation to initialize the
9898         used variable.
9899         Patch by Piotr Bury <pbury@goahead.com>.
9900         * elf/Makefile: Add rules to build and tst-unique3.
9901         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
9902         * elf/tst-unique3.cc: New file.
9903         * elf/tst-unique3.h: New file.
9904         * elf/tst-unique3lib.cc: New file.
9905         * elf/tst-unique3lib2.cc: New file.
9906
9907         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
9908
9909 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
9910
9911         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
9912         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
9913         to _start.
9914
9915 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
9916
9917         * elf/dl-load.c (_dl_map_object): If we are looking for the first
9918         to-be-loaded object along a path to loader is ld.so.
9919
9920 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
9921             Ulrich Drepper  <drepper@gmail.com>
9922
9923         * sysdeps/x86_64/memset.S: After aligning destination, code
9924         branches to different locations depending on the value of
9925         misalignment, when multiarch is enabled. Fix this.
9926
9927 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
9928
9929         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
9930         Set _x86_64_preferred_memory_instruction for AMD processsors.
9931         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
9932         Set bit_Prefer_SSE_for_memop for AMD processors.
9933
9934 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
9935
9936         * libio/fmemopen.c (fmemopen): Optimize a bit.
9937
9938 2011-03-03  Andreas Schwab  <schwab@redhat.com>
9939
9940         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
9941
9942 2011-03-03  Roland McGrath  <roland@redhat.com>
9943
9944         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
9945
9946 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
9947
9948         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
9949         __bzero_ultra1 instead of __memset_ultra1.
9950
9951 2011-02-23  Andreas Schwab  <schwab@redhat.com>
9952             Ulrich Drepper  <drepper@gmail.com>
9953
9954         [BZ #12509]
9955         * include/link.h (struct link_map): Add l_orig_initfini.
9956         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
9957         returning unsuccessfully.
9958         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
9959         close of a file loaded at startup, restore the original l_initfini
9960         list.
9961         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
9962         list, store the pointer.
9963         * elf/Makefile ($(objpfx)noload-mem): New rule.
9964         (noload-ENV): Define.
9965         (tests): Add $(objpfx)noload-mem.
9966         * elf/noload.c: Include <memcheck.h>.
9967         (main): Call mtrace.  Close all opened handles.
9968
9969 2011-02-17  Andreas Schwab  <schwab@redhat.com>
9970
9971         [BZ #12454]
9972         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
9973         dependencies are missing.
9974
9975 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9976
9977         Fix __if_freereq crash: Unlike the generic version which uses free,
9978         Hurd needs munmap.
9979         * sysdeps/mach/hurd/ifreq.h: New file.
9980
9981 2011-01-27  Petr Baudis  <pasky@suse.cz>
9982             Ulrich Drepper  <drepper@gmail.com>
9983
9984         [BZ 12445]#
9985         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
9986         to extend_alloca().
9987         * stdio-common/bug23.c: New file.
9988         * stdio-common/Makefile (tests): Add bug23.
9989
9990 2010-09-28  Andreas Schwab  <schwab@redhat.com>
9991             Ulrich Drepper  <drepper@gmail.com>
9992
9993         [BZ #12489]
9994         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
9995         before performing relro protection.  At old place add assertion
9996         to make sure nothing changed.
9997
9998 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
9999             Glauber de Oliveira Costa  <glommer@gmail.com>
10000
10001         * elf/elf.h: Add new ARM TLS relocs.
10002
10003 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
10004
10005         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
10006         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
10007         cast from r3.
10008         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
10009         'tests' variable.
10010         * sysdeps/wordsize-64/tst-writev.c: New file.
10011
10012 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
10013
10014         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
10015         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
10016         insns in _dl_start to prevent a TOC reference before relocs are
10017         resolved.
10018
10019 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
10020
10021         [BZ #12469]
10022         * Makeconfig: Remove RANLIB definition.
10023         * Makerules: Don't use RANLIB.
10024         * aclocal.m4: Remove ranlib test.
10025         * configure.in: No need to check for ranlib.
10026         * elf/rtld-Rules: Don't use RANLIB.
10027
10028 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10029
10030         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
10031         protection macro.
10032         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
10033         inclusion protection macro.
10034
10035         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
10036         SIGRTMIN and SIGRTMAX and print information in that case only when
10037         SIGRTMIN is defined.
10038
10039 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
10040
10041         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
10042         arginfo fn returning -1.
10043
10044         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
10045         and thousands string is zero terminated.
10046
10047 2011-02-03  Andreas Schwab  <schwab@redhat.com>
10048
10049         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
10050         sysdeps/unix/sysv/linux/bits/socket.h.
10051
10052 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10053
10054         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
10055         (__CPU_COUNT): Remove old macros.
10056         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
10057         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
10058         (__CPU_ALLOC, __CPU_FREE): Add macros.
10059         (__sched_cpualloc, __sched_cpufree): Add declarations.
10060
10061 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
10062
10063         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
10064         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
10065         * nscd/aicache.c (addhstaiX): Return timeout of added value.
10066         (readdhstai): Return value of addhstaiX call.
10067         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
10068         (addgrbyX): Return value returned by cache_addgr.
10069         (readdgrbyname): Return value returned by addgrbyX.
10070         (readdgrbygid): Likewise.
10071         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
10072         (addpwbyX): Return value returned by cache_addpw.
10073         (readdpwbyname): Return value returned by addhstbyX.
10074         (readdpwbyuid): Likewise.
10075         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
10076         (addservbyX): Return value returned by cache_addserv.
10077         (readdservbyname): Return value returned by addservbyX:
10078         (readdservbyport): Likewise.
10079         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
10080         (addhstbyX): Return value returned by cache_addhst.
10081         (readdhstbyname): Return value returned by addhstbyX.
10082         (readdhstbyaddr): Likewise.
10083         (readdhstbynamev6): Likewise.
10084         (readdhstbyaddrv6): Likewise.
10085         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
10086         (readdinitgroups): Return value returned by addinitgroupsX.
10087         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
10088         (prune_cache): Keep track of timeout value of re-added entries.
10089         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
10090         * nscd/nscd.h: Adjust prototypes of readd* functions.
10091
10092 2011-02-04  Roland McGrath  <roland@redhat.com>
10093
10094         * nis/nis_server.c (nis_servstate): Use the right name for 0.
10095         (nis_stats): Likewise.
10096         * nis/nis_modify.c (nis_modify): Likewise.
10097         * nis/nis_remove.c (nis_remove): Likewise.
10098         * nis/nis_add.c (nis_add): Likewise.
10099
10100         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
10101
10102         * posix/fnmatch_loop.c: Add some consts.
10103
10104         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
10105
10106 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
10107
10108         [BZ #12460]
10109         * config.make.in (config-cflags-novzeroupper): Define.
10110         * configure.in: Substitute libc_cv_cc_novzeroupper.
10111         * elf/Makefile (AVX-CFLAGS): Define.
10112         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
10113         (CFLAGS-tst-auditmod4a.c): Likewise.
10114         (CFLAGS-tst-auditmod4b.c): Likewise.
10115         (CFLAGS-tst-auditmod6b.c): Likewise.
10116         (CFLAGS-tst-auditmod6c.c): Likewise.
10117         (CFLAGS-tst-auditmod7b.c): Likewise.
10118         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
10119
10120 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
10121
10122         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
10123         function to the callback.
10124         Patch partly by Jiri Olsa <jolsa@redhat.com>.
10125
10126 2011-02-02  Andreas Schwab  <schwab@redhat.com>
10127
10128         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
10129         of errno.
10130
10131 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
10132
10133         [BZ #11724]
10134         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
10135         of constructors.
10136         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
10137         of destructors.
10138         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
10139
10140         [BZ #11724]
10141         * elf/Makefile: Add rules to build and run new test.
10142         * elf/tst-initorder.c: New file.
10143         * elf/tst-initorder.exp: New file.
10144         * elf/tst-initordera1.c: New file.
10145         * elf/tst-initordera2.c: New file.
10146         * elf/tst-initordera3.c: New file.
10147         * elf/tst-initordera4.c: New file.
10148         * elf/tst-initorderb1.c: New file.
10149         * elf/tst-initorderb2.c: New file.
10150         * elf/tst-order-a1.c: New file.
10151         * elf/tst-order-a2.c: New file.
10152         * elf/tst-order-a3.c: New file.
10153         * elf/tst-order-a4.c: New file.
10154         * elf/tst-order-b1.c: New file.
10155         * elf/tst-order-b2.c: New file.
10156         * elf/tst-order-main.c: New file.
10157         New test case by George Gensure <werkt0@gmail.com>.
10158
10159 2010-10-01  Andreas Schwab  <schwab@redhat.com>
10160
10161         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
10162         decoding ACE if AI_CANONIDN.
10163
10164 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
10165
10166         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
10167
10168 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
10169
10170         * version.h (RELEASE): Bump for 2.13 release.
10171         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
10172
10173         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
10174
10175         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
10176         MADV_NOHUGEPAGE.
10177         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
10178         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
10179         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
10180         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
10181         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
10182         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
10183
10184         * posix/getconf.c: Update copyright year.
10185         * catgets/gencat.c: Likewise.
10186         * csu/version.c: Likewise.
10187         * debug/catchsegv.sh: Likewise.
10188         * debug/xtrace.sh: Likewise.
10189         * elf/ldconfig.c: Likewise.
10190         * elf/ldd.bash.in: Likewise.
10191         * elf/sprof.c (print_version): Likewise.
10192         * iconv/iconv_prog.c: Likewise.
10193         * iconv/iconvconfig.c: Likewise.
10194         * locale/programs/locale.c: Likewise.
10195         * locale/programs/localedef.c: Likewise.
10196         * malloc/memusage.sh: Likewise.
10197         * malloc/mtrace.pl: Likewise.
10198         * nscd/nscd.c (print_version): Likewise.
10199         * nss/getent.c: Likewise.
10200
10201         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
10202         PF_CAIF, and PF_ALG.
10203         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
10204
10205 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
10206
10207         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
10208         (modules-names): Use them.
10209         (ifunc-test-modules, ifunc-pie-tests): Define.
10210         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
10211         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
10212         (test-extras): Likewise.
10213         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
10214         $(compile-command.c).
10215         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
10216         (all-built-dso): Define.
10217         (check-textrel.out, check-execstack.out): Depend on it.
10218
10219         * configure.in: Don't override --enable-multi-arch.
10220
10221 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
10222
10223         [BZ #6812]
10224         * nscd/hstcache.c (tryagain): Define.
10225         (cache_addhst): Return tryagain not notfound for temporary errors.
10226         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
10227         failed.
10228
10229 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
10230
10231         [BZ #10563]
10232         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
10233         to make the syscall.
10234         * sysdeps/unix/sysv/linux/setgroups.c: New file.
10235
10236         [BZ #12378]
10237         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
10238         and fall back to matching as normal character if the string ends before
10239         the matching ']' is found.  This is what POSIX requires.
10240         * posix/testfnm.c: Adjust test result.
10241         * posix/globtest.sh: Adjust test result.  Add new test.
10242         * posix/tst-fnmatch.input: Likewise.
10243         * posix/tst-fnmatch2.c: Add new test.
10244
10245 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
10246
10247         * elf/Makefile (check-execstack): Revert last change.  Depend on
10248         check-execstack.h.
10249         (check-execstack.h): New target.
10250         (generated): Add check-execstack.h.
10251         * elf/check-execstack.c: Include "check-execstack.h".
10252         (main): Revert last change.
10253         (handle_file): Return zero if GNU_STACK is absent and
10254         DEFAULT_STACK_PERMS doesn't include PF_X.
10255
10256 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
10257
10258         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
10259         in child fails because the descriptor is already closed.
10260         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
10261         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
10262         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
10263
10264         [BZ #12397]
10265         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
10266         syscall.
10267
10268         [BZ #10484]
10269         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
10270         temporary buffer used to handle multi lookups locally.
10271         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
10272
10273 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
10274
10275         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
10276         loader is ld.so.
10277
10278 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
10279
10280         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
10281         alignment for SSE2.
10282
10283 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
10284
10285         [BZ #12394]
10286         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
10287         characters.  When rounding increased number of integer digits recompute
10288         number of groups.
10289         * stdio-common/tst-grouping.c: New file.
10290         * stdio-common/Makefile: Add rules to build and run tst-grouping.
10291
10292 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
10293
10294         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
10295         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
10296
10297         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
10298         void.
10299         * bits/select.h: Likewise.
10300
10301 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
10302
10303         * po/ja.po: Update from translation team.
10304
10305 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
10306
10307         [BZ #11155]
10308         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
10309         implementation just like for lxstat, fxstatat, et al.
10310
10311 2010-12-27  Jim Meyering  <meyering@redhat.com>
10312
10313         [BZ #12348]
10314         * posix/regexec.c (build_trtable): Return failure indication upon
10315         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
10316
10317 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
10318
10319         [BZ #12201]
10320         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
10321         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
10322         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
10323         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
10324
10325         [BZ #12207]
10326         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
10327
10328         [BZ #12204]
10329         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
10330         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
10331
10332 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
10333
10334         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
10335         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
10336         script has SORT_BY_INIT_PRIORITY.
10337         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
10338         NO_CTORS_DTORS_SECTIONS is defined.
10339         * elf/soinit.c: Likewise.
10340         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
10341         NO_CTORS_DTORS_SECTIONS is defined.
10342         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
10343         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
10344         * sysdeps/sh/init-first.c: Likewise.
10345         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
10346
10347 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
10348
10349         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
10350         always use the slow path.
10351
10352 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
10353
10354         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
10355         similar rule which adds the sysdep directories to the header search in
10356         order to pick up the correct platform stackinfo.h.
10357         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
10358         perform test if it is, otherwise return successfully without testing.
10359         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
10360         DEFAULT_STACK_PERMS define in stackinfo.h.
10361         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
10362         defined in stackinfo.h.
10363         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
10364         DEFAULT_STACK_PERMS defined in stackinfo.h.
10365         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
10366         * sysdeps/ia64/stackinfo.h: Likewise.
10367         * sysdeps/s390/stackinfo.h: Likewise.
10368         * sysdeps/sh/stackinfo.h: Likewise.
10369         * sysdeps/sparc/stackinfo.h: Likewise.
10370         * sysdeps/x86_64/stackinfo.h: Likewise.
10371         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
10372         PF_X for powerpc64.  Retain PF_X for powerpc32.
10373
10374 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
10375
10376         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
10377         accurately.
10378         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
10379         GETDENTS_64BIT_ALIGNED.
10380
10381 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
10382
10383         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
10384
10385 2010-12-10  Andreas Schwab  <schwab@redhat.com>
10386
10387         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
10388         _GNU_SOURCE.
10389
10390         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
10391         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
10392         Remove __restrict.
10393         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
10394         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
10395
10396 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
10397
10398         [BZ #11655]
10399         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
10400         are initialized.
10401
10402 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
10403
10404         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
10405
10406 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
10407
10408         * po/it.po: Update from translation team.
10409
10410 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
10411
10412         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
10413         unused codes.
10414
10415 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
10416
10417         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
10418
10419 2010-11-24  Andreas Schwab  <schwab@redhat.com>
10420
10421         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
10422         specially.
10423         (gaih_getanswer_slice): Likewise.
10424
10425 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
10426
10427         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
10428
10429 2010-05-31  Petr Baudis  <pasky@suse.cz>
10430
10431         [BZ #11149]
10432         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
10433         silently even in the chroot mode.
10434
10435 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
10436
10437         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
10438         last patch a bit.  Pretty printing
10439
10440 2010-05-31  Petr Baudis <pasky@suse.cz>
10441
10442         [BZ #10085]
10443         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
10444         initialization of skip_initgroups_dyn.
10445
10446 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
10447
10448         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
10449         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
10450
10451 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
10452
10453         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
10454
10455 2010-11-11  Andreas Schwab  <schwab@redhat.com>
10456
10457         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
10458         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
10459         (tst-fnmatch-ENV): Set MALLOC_TRACE.
10460         ($(objpfx)tst-fnmatch-mem): New rule.
10461         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
10462         * posix/tst-fnmatch.c (main): Call mtrace.
10463
10464 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
10465
10466         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
10467         Support Intel processor model 6 and model 0x2c.
10468
10469 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
10470
10471         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
10472           signed comparison.
10473
10474 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
10475
10476         [BZ #12205]
10477         * string/test-strncasecmp.c (check_result): New function.
10478         (do_one_test): Use it.
10479         (check1): New function.
10480         (test_main): Use it.
10481         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
10482         Support strcasecmp and strncasecmp.
10483
10484 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
10485
10486         [BZ #12194]
10487         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
10488         * sysdeps/x86_64/bits/byteswap.h: Likewise.
10489
10490 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
10491
10492         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
10493         IFUNC support.
10494         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
10495         memset-x86-64.
10496         * sysdeps/x86_64/multiarch/bzero.S: New file.
10497         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
10498         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
10499         * sysdeps/x86_64/multiarch/memset.S: New file.
10500         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
10501         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
10502         Set bit_Prefer_SSE_for_memop for Intel processors.
10503         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
10504         Define.
10505         (index_Prefer_SSE_for_memop): Define.
10506         (HAS_PREFER_SSE_FOR_MEMOP): Define.
10507
10508 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
10509
10510         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
10511         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
10512
10513 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
10514
10515         [BZ #12191]
10516         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
10517         (__x86_64_raw_data_cache_size_half): Likewise.
10518         (__x86_64_raw_shared_cache_size): Likewise.
10519         (__x86_64_raw_shared_cache_size_half): Likewise.
10520
10521         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
10522         (__x86_64_raw_data_cache_size_half): Likewise.
10523         (__x86_64_raw_shared_cache_size): Likewise.
10524         (__x86_64_raw_shared_cache_size_half): Likewise.
10525         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
10526         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
10527         and __x86_64_raw_shared_cache_size_half.  Round
10528         __x86_64_data_cache_size_half, __x86_64_data_cache_size
10529         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
10530         to multiple of 256 bytes.
10531
10532 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
10533
10534         [BZ #12167]
10535         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
10536         of inacessible symlinks.  Verify result of symlink before returning it.
10537         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
10538         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
10539
10540 2010-10-28  Erich Ritz  <erichritz@gmail.com>
10541
10542         * math/math.h (isinf): Fix typo in comment.
10543
10544 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
10545
10546         * po/da.po: Update from translation team.
10547
10548 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
10549
10550         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
10551         is added to the list.
10552
10553 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10554             Ulrich Drepper  <drepper@gmail.com>
10555
10556         * elf/dl-object.c (_dl_new_object): Don't append the new object to
10557         the global list here.  Move code to...
10558         (_dl_add_to_namespace_list): ...here.  New function.
10559         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
10560         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
10561         * elf/dl-load.c (lose): Don't remove the element from the list.
10562         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
10563         (_dl_map_object): Likewise.
10564
10565 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
10566
10567         [BZ #12159]
10568         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
10569         into all bytes of SSE register.
10570         Patch by Richard Li <richardpku@gmail.com>.
10571
10572 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
10573
10574         [BZ #12140]
10575         * malloc/malloc.c (_int_free): Fill correct number of bytes when
10576         perturbing.
10577
10578 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
10579
10580         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
10581         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
10582         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
10583         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
10584         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
10585         submachine.
10586         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
10587
10588 2010-10-22  Andreas Schwab  <schwab@redhat.com>
10589
10590         * include/dlfcn.h (__RTLD_SECURE): Define.
10591         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
10592         mode & __RTLD_SECURE instead.
10593         (open_path): Rename preloaded parameter to secure.
10594         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
10595         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
10596         * elf/dl-deps.c (openaux): Likewise.
10597         * elf/rtld.c (struct map_args): Remove is_preloaded.
10598         (map_doit): Don't use it.
10599         (dl_main): Likewise.
10600         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
10601         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
10602
10603 2010-09-09  Andreas Schwab  <schwab@redhat.com>
10604
10605         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
10606         (sysd-rules-targets): Remove duplicates.
10607         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
10608         rtld-%.$o dependency.
10609
10610 2010-10-18  Andreas Schwab  <schwab@redhat.com>
10611
10612         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
10613         _dl_map_object do it.
10614
10615 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
10616
10617         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
10618         fast fma builtins, define the macros in the C99 standard.
10619         (FP_FAST_FMAF): Likewise.
10620         (FP_FAST_FMAL): Likewise.
10621         * sysdeps/x86_64/bits/mathdef.h: Likewise.
10622
10623         * bits/mathdef.h: Update copyright year.
10624         * sysdeps/powerpc/bits/mathdef.h: Likewise.
10625
10626 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
10627
10628         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
10629         builtins, define the macros in the C99 standard.
10630         (FP_FAST_FMAF): Likewise.
10631         (FP_FAST_FMAL): Likewise.
10632         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
10633         multiply/add.
10634         (FP_FAST_FMAF): Likewise.
10635
10636 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
10637
10638         [BZ #3268]
10639         * math/libm-test.inc (fma_test): Some new testcases.
10640         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
10641         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
10642         y and infinite z.  Do multiplication by C already in long double.
10643         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
10644         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
10645         y and infinite z.  Do bitwise or of inexact bit into u.d.
10646         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
10647         * sysdeps/i386/fpu/s_fmaf.S: Removed.
10648         * sysdeps/i386/fpu/s_fma.S: Removed.
10649         * sysdeps/i386/fpu/s_fmal.S: Removed.
10650
10651 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
10652
10653         [BZ #3268]
10654         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
10655         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
10656         computation is not scheduled after fetestexcept.  Fix value
10657         of minimum denormal long double.
10658
10659 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
10660
10661         [BZ #3268]
10662         * math/libm-test.inc (fma_test): Add some more tests.
10663         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
10664         correctly.
10665
10666 2010-10-15  Andreas Schwab  <schwab@redhat.com>
10667
10668         * scripts/data/localplt-s390-linux-gnu.data: New file.
10669         * scripts/data/localplt-s390x-linux-gnu.data: New file.
10670
10671 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
10672
10673         [BZ #3268]
10674         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
10675         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
10676         instead of dbl-64.
10677         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
10678         inlines.
10679         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
10680         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
10681         if one of x and y is very large and the other is subnormal.
10682         * sysdeps/s390/fpu/s_fmaf.c: New file.
10683         * sysdeps/s390/fpu/s_fma.c: New file.
10684         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
10685         * sysdeps/powerpc/fpu/s_fma.S: New file.
10686         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
10687         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
10688         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
10689
10690 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
10691
10692         [BZ #3268]
10693         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
10694         fma tests.
10695         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
10696         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
10697         * sysdeps/i386/i686/multiarch/s_fma.c: Include
10698         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
10699         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
10700         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
10701         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
10702
10703 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
10704
10705         [BZ #12078]
10706         * posix/regcomp.c (parse_branch): One more memory leak plugged.
10707         * posix/bug-regex31.input: Add test case.
10708
10709 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
10710
10711         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
10712         * posix/bug-regex31.input: New file.
10713
10714         [BZ #12078]
10715         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
10716         (parse_sub_exp): Fix last change, use postorder.
10717
10718         * posix/bug-regex31.c: New file.
10719         * posix/Makefile: Add rules to build and run bug-regex31.
10720
10721         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
10722
10723         [BZ #12078]
10724         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
10725
10726         [BZ #12108]
10727         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
10728         to have entries in sys_siglist.
10729
10730         [BZ #12093]
10731         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
10732         be NULL.
10733
10734 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
10735
10736         [BZ #3268]
10737         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
10738         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
10739         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
10740         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
10741         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
10742         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
10743         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
10744         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
10745         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
10746         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
10747         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
10748         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
10749         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
10750         * math/ftestexcept.c (fetestexcept): Likewise.
10751         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
10752         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
10753         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
10754         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
10755         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
10756         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
10757         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
10758
10759 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
10760
10761         [BZ #12107]
10762         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
10763         newline.
10764
10765 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
10766
10767         * string/bug-strstr1.c: New file.
10768         * string/Makefile: Add rules to build and run bug-strstr1.
10769
10770 2010-10-05  Eric Blake  <eblake@redhat.com>
10771
10772         [BZ #12092]
10773         * string/str-two-way.h (two_way_long_needle): Always clear memory
10774         when skipping input due to the shift table.
10775
10776 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
10777
10778         [BZ #12005]
10779         * malloc/mcheck.c: Handle large requests.
10780
10781         [BZ #12077]
10782         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
10783         for strncmp and strncasecmp.
10784         * string/stratcliff.c: Add tests for strcmp and strncmp.
10785         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
10786
10787 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
10788
10789         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
10790         __set_fpscr.
10791
10792 2010-09-30  Andreas Jaeger  <aj@suse.de>
10793
10794         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
10795         (CGROUP_SUPER_MAGIC): Define.
10796         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
10797         Handle btrfs and cgroup file systems.
10798         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
10799         Likewise.
10800
10801 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
10802
10803         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
10804         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
10805
10806 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10807
10808         [BZ #12067]
10809         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
10810         trying to locate the ELF header.
10811
10812 2010-09-27  Andreas Schwab  <schwab@redhat.com>
10813
10814         [BZ #11611]
10815         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
10816         Mask out sign-bit copies when constructing f_fsid.
10817
10818 2010-09-24  Petr Baudis <pasky@suse.cz>
10819
10820         * debug/stack_chk_fail_local.c: Add missing licence exception.
10821         * debug/warning-nop.c: Likewise.
10822
10823 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
10824
10825         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
10826         implementing getdents64 using getdents syscall, set d_type if
10827         __ASSUME_GETDENTS32_D_TYPE.
10828
10829 2010-09-16  Andreas Schwab  <schwab@redhat.com>
10830
10831         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
10832         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
10833
10834 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
10835
10836         [BZ #12037]
10837         * posix/unistd.h: Undo change of feature selection for ftruncate from
10838         2010-01-11.
10839
10840 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
10841
10842         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
10843         detection.
10844
10845 2010-09-20  Andreas Schwab  <schwab@redhat.com>
10846
10847         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
10848         fanotify_mark.
10849         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
10850
10851 2010-09-14  Andreas Schwab  <schwab@redhat.com>
10852
10853         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
10854         variables after CHECK_SP call.
10855         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
10856
10857 2010-09-13  Andreas Schwab  <schwab@redhat.com>
10858             Ulrich Drepper  <drepper@redhat.com>
10859
10860         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
10861         re-relocationg ld.so.
10862         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
10863         _dl_init_paths call.
10864         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
10865         here anymore.
10866
10867 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
10868
10869         * resolv/res_init.c (__res_vinit): Count the default server we added.
10870
10871 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
10872             Ulrich Drepper  <drepper@redhat.com>
10873
10874         [BZ #11968]
10875         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
10876         (____longjmp_chk): Use %ebx for saving value across system call.
10877         Add unwind info.
10878
10879 2010-09-06  Andreas Schwab  <schwab@redhat.com>
10880
10881         * manual/Makefile: Don't mix pattern rules with normal rules.
10882
10883 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
10884
10885         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
10886         operation.
10887         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
10888         * libio/iofopncook.c (_IO_cookie_init): Likewise.
10889         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
10890         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
10891         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
10892         Likewise.
10893
10894 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
10895
10896         [BZ #11979]
10897         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
10898         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
10899
10900 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
10901
10902         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
10903         * sysdeps/x86_64/addmul_1.S: Likewise.
10904         * sysdeps/x86_64/lshift.S: Likewise.
10905         * sysdeps/x86_64/mul_1.S: Likewise.
10906         * sysdeps/x86_64/rshift.S: Likewise.
10907         * sysdeps/x86_64/sub_n.S: Likewise.
10908         * sysdeps/x86_64/submul_1.S: Likewise.
10909
10910 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10911
10912         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
10913         Define __sched_param instead of SCHED_* and sched_param when
10914         <bits/sched.h> is included with __need_schedparam defined.
10915         * bits/sched.h [__need_schedparam]
10916         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
10917         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
10918         (__defined_schedparam): Define to 1.
10919         (__sched_param): New structure, identical to sched_param.
10920         (__need_schedparam): Undefine.
10921
10922 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
10923
10924         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
10925         (epoll_create1): Declare.
10926
10927         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
10928
10929 2010-08-31  Andreas Schwab  <schwab@redhat.com>
10930
10931         [BZ #7066]
10932         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
10933         shifting retval into place.
10934
10935 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
10936
10937         * nis/rpcsvc/nis.h: Update copyright notice.
10938         * nis/rpcsvc/nis.x: Likewise.
10939         * nis/rpcsvc/nis_callback.h: Likewise.
10940         * nis/rpcsvc/nis_callback.x: Likewise.
10941         * nis/rpcsvc/nis_object.x: Likewise.
10942         * nis/rpcsvc/nis_tags.h: Likewise.
10943         * nis/rpcsvc/yp.h: Likewise.
10944         * nis/rpcsvc/yp.x: Likewise.
10945         * nis/rpcsvc/ypupd.h: Likewise.
10946         * nis/yp_xdr.c: Likewise.
10947         * nis/ypupdate_xdr.c: Likewise.
10948
10949         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
10950         mainly the body of pmap_getport.  Add parameters to specify timeouts.
10951         (pmap_getport): Use __libc_rpc_getport.
10952         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
10953         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
10954         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
10955
10956 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
10957
10958         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
10959         fanotify_mark.
10960
10961 2010-08-27  Roland McGrath  <roland@redhat.com>
10962
10963         * sysdeps/i386/i686/multiarch/Makefile
10964         (CFLAGS-varshift.c): New variable.
10965
10966 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
10967
10968         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
10969         * sysdeps/i386/i686/multiarch/varshift.c: New file.
10970
10971         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
10972
10973         * sysdeps/x86_64/strlen.S: Minimal code improvement.
10974
10975 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
10976
10977         * sysdeps/x86_64/strlen.S: Unroll the loop.
10978         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
10979         strlen-sse2 strlen-sse2-bsf.
10980         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
10981         __strlen_no_bsf if bit_Slow_BSF is set.
10982         (__strlen_sse42): Removed.
10983         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
10984         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
10985
10986 2010-08-25  Roland McGrath  <roland@redhat.com>
10987
10988         * sysdeps/x86_64/multiarch/varshift.S: File removed.
10989         * sysdeps/x86_64/multiarch/varshift.c: New file.
10990         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
10991         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
10992         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
10993         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
10994
10995 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
10996
10997         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
10998         strlen-sse2 strlen-sse2-bsf.
10999         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
11000         __strlen_sse2_bsf if bit_Slow_BSF is unset.
11001         (__strlen_sse2): Removed.
11002         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
11003         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
11004         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
11005         bit_Slow_BSF for Atom.
11006         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
11007         (index_Slow_BSF): Define.
11008         (HAS_SLOW_BSF): Define.
11009
11010 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
11011
11012         [BZ #10851]
11013         * resolv/res_init.c (__res_vinit): When no server address at all
11014         is given default to loopback.
11015
11016 2010-08-24  Roland McGrath  <roland@redhat.com>
11017
11018         * configure.in: Remove config-name.h generation.
11019         * configure: Regenerated.
11020         * config-name.in: File removed.
11021         * scripts/config-uname.sh: New file.
11022         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
11023         ($(objdir)config-name.h): New target.
11024
11025         * sunrpc/rpc_parse.h: Avoid nested comment.
11026
11027 2010-08-24  Richard Henderson  <rth@redhat.com>
11028             Ulrich Drepper  <drepper@redhat.com>
11029             H.J. Lu  <hongjiu.lu@intel.com>
11030
11031         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
11032         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
11033         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
11034         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
11035         _mm_alignr_epi8 with _mm_loadu_si128.
11036         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
11037         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
11038         (__m128i_shift_right): Removed.
11039         * sysdeps/i386/i686/multiarch/varshift.h: New file.
11040         * sysdeps/i386/i686/multiarch/varshift.S: New file.
11041         * sysdeps/x86_64/multiarch/varshift.h: New file.
11042         * sysdeps/x86_64/multiarch/varshift.S: New file.
11043
11044 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
11045
11046         * configure.in: Move assembler checks to before sysdep dir checking.
11047
11048 2010-08-20  Petr Baudis  <pasky@suse.cz>
11049
11050         * LICENSES: Sync the sunrpc license.
11051
11052 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
11053
11054         * sunrpc/auth_des.c: Update copyright notice once again.
11055         * sunrpc/auth_none.c: Likewise.
11056         * sunrpc/auth_unix.c: Likewise.
11057         * sunrpc/authdes_prot.c: Likewise.
11058         * sunrpc/authuxprot.c: Likewise.
11059         * sunrpc/bindrsvprt.c: Likewise.
11060         * sunrpc/clnt_gen.c: Likewise.
11061         * sunrpc/clnt_perr.c: Likewise.
11062         * sunrpc/clnt_raw.c: Likewise.
11063         * sunrpc/clnt_simp.c: Likewise.
11064         * sunrpc/clnt_tcp.c: Likewise.
11065         * sunrpc/clnt_udp.c: Likewise.
11066         * sunrpc/clnt_unix.c: Likewise.
11067         * sunrpc/des_crypt.c: Likewise.
11068         * sunrpc/des_soft.c: Likewise.
11069         * sunrpc/get_myaddr.c: Likewise.
11070         * sunrpc/getrpcport.c: Likewise.
11071         * sunrpc/key_call.c: Likewise.
11072         * sunrpc/key_prot.c: Likewise.
11073         * sunrpc/openchild.c: Likewise.
11074         * sunrpc/pm_getmaps.c: Likewise.
11075         * sunrpc/pm_getport.c: Likewise.
11076         * sunrpc/pmap_clnt.c: Likewise.
11077         * sunrpc/pmap_prot.c: Likewise.
11078         * sunrpc/pmap_prot2.c: Likewise.
11079         * sunrpc/pmap_rmt.c: Likewise.
11080         * sunrpc/rpc/auth.h: Likewise.
11081         * sunrpc/rpc/auth_unix.h: Likewise.
11082         * sunrpc/rpc/clnt.h: Likewise.
11083         * sunrpc/rpc/des_crypt.h: Likewise.
11084         * sunrpc/rpc/key_prot.h: Likewise.
11085         * sunrpc/rpc/netdb.h: Likewise.
11086         * sunrpc/rpc/pmap_clnt.h: Likewise.
11087         * sunrpc/rpc/pmap_prot.h: Likewise.
11088         * sunrpc/rpc/pmap_rmt.h: Likewise.
11089         * sunrpc/rpc/rpc.h: Likewise.
11090         * sunrpc/rpc/rpc_des.h: Likewise.
11091         * sunrpc/rpc/rpc_msg.h: Likewise.
11092         * sunrpc/rpc/svc.h: Likewise.
11093         * sunrpc/rpc/svc_auth.h: Likewise.
11094         * sunrpc/rpc/types.h: Likewise.
11095         * sunrpc/rpc/xdr.h: Likewise.
11096         * sunrpc/rpc_clntout.c: Likewise.
11097         * sunrpc/rpc_cmsg.c: Likewise.
11098         * sunrpc/rpc_common.c: Likewise.
11099         * sunrpc/rpc_cout.c: Likewise.
11100         * sunrpc/rpc_dtable.c: Likewise.
11101         * sunrpc/rpc_hout.c: Likewise.
11102         * sunrpc/rpc_main.c: Likewise.
11103         * sunrpc/rpc_parse.c: Likewise.
11104         * sunrpc/rpc_parse.h: Likewise.
11105         * sunrpc/rpc_prot.c: Likewise.
11106         * sunrpc/rpc_sample.c: Likewise.
11107         * sunrpc/rpc_scan.c: Likewise.
11108         * sunrpc/rpc_scan.h: Likewise.
11109         * sunrpc/rpc_svcout.c: Likewise.
11110         * sunrpc/rpc_tblout.c: Likewise.
11111         * sunrpc/rpc_util.c: Likewise.
11112         * sunrpc/rpc_util.h: Likewise.
11113         * sunrpc/rpcinfo.c: Likewise.
11114         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
11115         * sunrpc/rpcsvc/key_prot.x: Likewise.
11116         * sunrpc/rpcsvc/klm_prot.x: Likewise.
11117         * sunrpc/rpcsvc/mount.x: Likewise.
11118         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
11119         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
11120         * sunrpc/rpcsvc/rex.x: Likewise.
11121         * sunrpc/rpcsvc/rstat.x: Likewise.
11122         * sunrpc/rpcsvc/rusers.x: Likewise.
11123         * sunrpc/rpcsvc/sm_inter.x: Likewise.
11124         * sunrpc/rpcsvc/spray.x: Likewise.
11125         * sunrpc/rpcsvc/yppasswd.x: Likewise.
11126         * sunrpc/rtime.c: Likewise.
11127         * sunrpc/svc.c: Likewise.
11128         * sunrpc/svc_auth.c: Likewise.
11129         * sunrpc/svc_authux.c: Likewise.
11130         * sunrpc/svc_raw.c: Likewise.
11131         * sunrpc/svc_run.c: Likewise.
11132         * sunrpc/svc_simple.c: Likewise.
11133         * sunrpc/svc_tcp.c: Likewise.
11134         * sunrpc/svc_udp.c: Likewise.
11135         * sunrpc/svc_unix.c: Likewise.
11136         * sunrpc/svcauth_des.c: Likewise.
11137         * sunrpc/xcrypt.c: Likewise.
11138         * sunrpc/xdr.c: Likewise.
11139         * sunrpc/xdr_array.c: Likewise.
11140         * sunrpc/xdr_float.c: Likewise.
11141         * sunrpc/xdr_mem.c: Likewise.
11142         * sunrpc/xdr_rec.c: Likewise.
11143         * sunrpc/xdr_ref.c: Likewise.
11144         * sunrpc/xdr_sizeof.c: Likewise.
11145         * sunrpc/xdr_stdio.c: Likewise.
11146
11147         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
11148         handling.
11149
11150 2010-08-19  Andreas Schwab  <schwab@redhat.com>
11151
11152         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
11153
11154 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
11155
11156         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
11157         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
11158         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
11159         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
11160         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
11161         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
11162         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
11163         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
11164         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
11165         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
11166         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
11167         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
11168         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
11169         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
11170
11171 2010-07-26  Anton Blanchard  <anton@samba.org>
11172
11173         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
11174         * malloc/arena.c (heap_trim): Likewise.
11175
11176 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
11177
11178         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
11179         here.  Not...
11180         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
11181         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
11182
11183 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
11184
11185         * sysdeps/i386/elf/Makefile: New file.
11186
11187 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
11188
11189         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
11190         from fanotify_init.
11191         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
11192         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
11193
11194 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
11195
11196         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
11197         of strncasecmp_l.
11198         * sysdeps/multiarch/strcmp.S: Likewise.
11199
11200 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
11201
11202         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
11203         strncase_l-nonascii.
11204         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
11205         Add strncase_l-ssse3.
11206         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
11207         * sysdeps/x86_64/strcmp.S: Likewise.
11208         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
11209         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
11210         * sysdeps/x86_64/strncase.S: New file.
11211         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
11212         * sysdeps/x86_64/strncase_l.S: New file.
11213         * string/Makefile (strop-tests): Add strncasecmp.
11214         * string/test-strncasecmp.c: New file.
11215
11216         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
11217         warning.
11218
11219         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
11220         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
11221
11222 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
11223
11224         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
11225
11226 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
11227
11228         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
11229         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
11230         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
11231
11232 2010-05-01  Alan Modra  <amodra@gmail.com>
11233
11234         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
11235         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
11236         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
11237         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
11238         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
11239         tidying.  Don't tail-call __sigjmp_save for static lib.
11240         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
11241         save location.
11242         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
11243         (CALL_MCOUNT): Add eh info, and nop after bl.
11244         (TAIL_CALL_SYSCALL_ERROR): New macro.
11245         (PSEUDO_RET): Use it.
11246         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
11247         Correct save location of integer regs and cr.
11248         (_dl_profile_resolve): Correct cr save location.  Delete nops
11249         after bl when SHARED.  Reduce cfi size a little by better
11250         placement of cfi directives.
11251         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
11252         make a stack frame.  Instead use parm save area as a temp.
11253         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
11254         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
11255         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
11256         Don't make a stack frame for parent, use parm save area.
11257         Increase child stack frame to 112 bytes.  Don't save unused reg,
11258         and adjust reg usage.  Set up cfi on error recovery and
11259         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
11260         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
11261         (__makecontext): Add dummy nop after jump to exit.
11262         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
11263         Use correct parm save area and cr save, reduce stack frame.
11264         Correct cfi for possible PSEUDO_RET frame setup.
11265         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
11266         Branch to local label emitted by PSEUDO_RET rather than
11267         __syscall_error.
11268
11269 2010-08-12  Andreas Schwab  <schwab@redhat.com>
11270
11271         [BZ #11904]
11272         * locale/programs/locale.c (print_assignment): New function.
11273         (show_locale_vars): Use it.
11274
11275 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
11276
11277         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
11278         field.
11279         (struct statfs64): Likewise.
11280         (_STATFS_F_FLAGS): Define.
11281         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
11282         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
11283         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
11284         (ST_VALID): Define locally.
11285         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
11286         __statvfs_getflags, use the provided value.
11287         * sysdeps/unix/sysv/linux/kernel-features.h: Define
11288         __ASSUME_STATFS_F_FLAGS.
11289
11290         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
11291
11292         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
11293         Add sys/fanotify.h.
11294         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
11295         fanotify_mask for GLIBC_2.13.
11296         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
11297         fanotify_init and fanotify_mark.
11298         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
11299         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
11300
11301         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
11302         Add prlimit.
11303         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
11304         prlimit64 for GLIBC_2.13.
11305         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
11306         prlimit64.
11307         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
11308         syscall.
11309         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
11310         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
11311         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
11312         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
11313         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
11314         add prlimit alias.
11315         * sysdeps/unix/sysv/linux/prlimit.c: New file.
11316
11317         [BZ #11903]
11318         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
11319         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
11320
11321         * nss/Makefile: Add rules to build and run tst-nss-test1.
11322         * shlib-versions: Add entry for libnss_test1.
11323         * nss/nss_test1.c: New file.
11324         * nss/tst-nss-test1.c: New file.
11325
11326         * nss/nsswitch.c (__nss_database_custom): Define new variable.
11327         (__nss_configure_lookup): Set appropriate entry in
11328         __nss_configure_lookup to true.
11329         * nss/nsswitch.h: Define enum with indeces of databases in
11330         databases and __nss_database_custom arrays.  Declare
11331         __nss_database_custom.
11332         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
11333         to avoid using nscd when custom rules are installed.
11334         * nss/getXXbyYY_r.c: Likewise.
11335         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
11336
11337         * nss/nss_files/files-parse.c: Whitespace fixes.
11338
11339 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
11340
11341         [BZ #11883]
11342         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
11343         * posix/fnmatch_loop.c: Likewise.
11344
11345 2010-07-17  Andi Kleen  <ak@linux.intel.com>
11346
11347         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
11348         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
11349         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
11350         * Versions.def [GLIBC_2.13]: Add.
11351
11352 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
11353
11354         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
11355         Also fail if tpwd after pwuid call is NULL.
11356
11357 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11358
11359         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
11360         when converting to ms.
11361
11362 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11363
11364         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
11365         EOPNOTSUPP errors with ENOTTY.
11366         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
11367         EOPNOTSUPP errors with ENOTTY.
11368
11369 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
11370
11371         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
11372         Add strcasecmp_l-ssse3.
11373         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
11374         strcasecmp.
11375         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
11376         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
11377         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
11378
11379 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
11380
11381         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
11382
11383         * string/Makefile (strop-tests): Add strcasecmp.
11384         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
11385         strcasecmp_l-nonascii.
11386         (gen-as-const-headers): Add locale-defines.sym.
11387         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
11388         * sysdeps/x86_64/strcasecmp.S: New file.
11389         * sysdeps/x86_64/strcasecmp_l.S: New file.
11390         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
11391         * sysdeps/x86_64/locale-defines.sym: New file.
11392         * string/test-strcasecmp.c: New file.
11393
11394         * string/test-strcasestr.c: Test both ends of the range of characters.
11395         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
11396
11397 2010-07-29  Roland McGrath  <roland@redhat.com>
11398
11399         [BZ #11856]
11400         * manual/locale.texi (Yes-or-No Questions): Fix example code.
11401
11402 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
11403
11404         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
11405         for ld.so.
11406
11407 2010-07-27  Andreas Schwab  <schwab@redhat.com>
11408
11409         * manual/memory.texi (Malloc Tunable Parameters): Document
11410         M_PERTURB.
11411
11412 2010-07-26  Roland McGrath  <roland@redhat.com>
11413
11414         [BZ #11840]
11415         * configure.in (-fgnu89-inline check): Set and substitute
11416         gnu89_inline, not libc_cv_gnu89_inline.
11417         * configure: Regenerated.
11418         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
11419
11420 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
11421
11422         * string/test-strnlen.c: New file.
11423         * string/Makefile (strop-tests): Add strnlen.
11424         * string/tester.c (test_strnlen): Add a few more test cases.
11425         * string/tst-strlen.c: Better error reporting.
11426
11427         * sysdeps/x86_64/strnlen.S: New file.
11428
11429 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
11430
11431         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
11432         lower-latency instructions.
11433
11434 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
11435
11436         * string/test-strcasestr.c: New file.
11437         * string/test-strstr.c: New file.
11438         * string/Makefile (strop-tests): Add strstr and strcasestr.
11439         * string/str-two-way.h: Don't undefine MAX.
11440         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
11441
11442 2010-07-21  Andreas Schwab  <schwab@redhat.com>
11443
11444         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
11445         strcasestr-nonascii.
11446         (CFLAGS-strcasestr-nonascii.c): Define.
11447         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
11448         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
11449         Remove unused attribute.
11450
11451 2010-07-20  Roland McGrath  <roland@redhat.com>
11452
11453         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
11454         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
11455         ld.so.cache was broken.  With it, there is no way to disable dsocaps
11456         like LD_HWCAP_MASK can disable hwcaps.
11457
11458 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
11459
11460         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
11461
11462 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
11463
11464         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
11465         call in strcasestr.
11466         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
11467         __strcasestr_sse42_nonascii.
11468         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
11469         strcasestr-nonascii.c.
11470         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
11471
11472 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
11473
11474         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
11475         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
11476         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
11477         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
11478
11479 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
11480
11481         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
11482         fcntl.
11483
11484 2010-07-06  Andreas Schwab  <schwab@redhat.com>
11485
11486         [BZ #11577]
11487         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
11488         dl_signal_cerror.
11489
11490 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
11491
11492         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
11493         _PC_PIPE_BUF using F_GETPIPE_SZ.
11494
11495 2010-07-05  Roland McGrath  <roland@redhat.com>
11496
11497         * manual/arith.texi (Rounding Functions): Fix rint description
11498         implicit in round description.
11499
11500 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
11501
11502         * elf/Makefile: Fix linking for a few tests to make recent linker
11503         happy.
11504
11505 2010-06-30  Andreas Schwab  <schwab@redhat.com>
11506
11507         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
11508         $(common-objpfx)libc_nonshared.a.
11509
11510 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
11511
11512         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
11513         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
11514         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
11515         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
11516         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
11517         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
11518         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
11519         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
11520         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
11521         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
11522         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
11523         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
11524         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
11525         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
11526         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
11527         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
11528         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
11529         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
11530         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
11531         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
11532         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
11533         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
11534         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
11535         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
11536         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
11537         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
11538         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
11539         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
11540         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
11541         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
11542         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
11543         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
11544         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
11545         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
11546         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
11547         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
11548         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
11549         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
11550         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
11551         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
11552         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
11553         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
11554         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
11555         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
11556         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
11557         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
11558         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
11559         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
11560
11561 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
11562
11563         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
11564         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
11565         * string/memmove.c (memmove): Renamed to ...
11566         (MEMMOVE): ...this.  Default to memmove.
11567         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
11568         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
11569         (END_CHK): Define.
11570         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
11571         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
11572         mempcpy-ssse3-back memmove-ssse3-back.
11573         * sysdeps/x86_64/multiarch/bcopy.S: New file .
11574         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
11575         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
11576         * sysdeps/x86_64/multiarch/memcpy.S: New file.
11577         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
11578         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
11579         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
11580         * sysdeps/x86_64/multiarch/memmove.c: New file.
11581         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
11582         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
11583         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
11584         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
11585         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
11586         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
11587         Define.
11588         (index_Fast_Copy_Backward): Define.
11589         (HAS_ARCH_FEATURE): Define.
11590         (HAS_FAST_REP_STRING): Define.
11591         (HAS_FAST_COPY_BACKWARD): Define.
11592
11593 2010-06-21  Andreas Schwab  <schwab@redhat.com>
11594
11595         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
11596         Restore proper fallback handling.
11597
11598 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
11599
11600         [BZ #11701]
11601         * posix/group_member.c (__group_member): Correct checking loop.
11602
11603         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
11604         OOM in getpwuid_r correctly.  Return error number when the caller
11605         should return, otherwise -1.
11606         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
11607         call returning > 0 value.
11608         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
11609
11610 2010-06-07  Andreas Schwab  <schwab@redhat.com>
11611
11612         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
11613         libc_nonshared.a from targets in modules-names.
11614
11615 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
11616
11617         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
11618         requires it.
11619
11620 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
11621
11622         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
11623         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
11624         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
11625         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
11626
11627 2010-06-02  Andreas Schwab  <schwab@redhat.com>
11628
11629         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
11630
11631 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
11632
11633         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
11634         and F_GETPIPE_SZ.
11635         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
11636         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
11637         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
11638         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
11639         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
11640         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
11641
11642 2010-06-14  Roland McGrath  <roland@redhat.com>
11643
11644         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
11645
11646 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
11647
11648         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
11649         __REDIRECT followed by __THROW.
11650         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
11651         * posix/getopt.h (getopt): Likewise.
11652
11653 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
11654
11655         * hurd/lookup-at.c (__file_name_lookup_at): Accept
11656         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
11657         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
11658         in AT_FLAGS.
11659         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
11660         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
11661
11662 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
11663
11664         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
11665
11666 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
11667
11668         [BZ #11640]
11669         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
11670         Properly check family and model.
11671
11672 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
11673
11674         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
11675
11676 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
11677
11678         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
11679
11680 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
11681
11682         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
11683         symbol reference.
11684
11685 2010-05-19  Andreas Schwab  <schwab@redhat.com>
11686
11687         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
11688         symbol reference.
11689
11690 2010-05-21  Andreas Schwab  <schwab@redhat.com>
11691
11692         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
11693         and internal_recvmmsg.
11694         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
11695         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
11696         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
11697         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
11698
11699         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
11700         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
11701         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
11702
11703 2010-05-20  Andreas Schwab  <schwab@redhat.com>
11704
11705         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
11706
11707 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
11708
11709         POWER7 optimizations.
11710         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
11711         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
11712
11713 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
11714
11715         * version.h: Update for 2.13 development version.
11716
11717 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
11718
11719         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
11720         exceptions.  Return 0.
11721
11722 2010-05-07  Roland McGrath  <roland@redhat.com>
11723
11724         * elf/ldconfig.c (main): Add a const.
11725
11726 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
11727
11728         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
11729         (args_options): Add no-idn option.
11730         (ahosts_keys_int): Add idn_flags to ai_flags.
11731         (parse_option): Handle 'i' option to clear idn_flags.
11732
11733         * malloc/malloc.c (_int_free): Possible race in the most recently
11734         added check.  Only act on the data if no current modification
11735         happened.
11736
11737 See ChangeLog.17 for earlier changes.