Further simplify power6 wordcopy by removing switch statements.
[platform/upstream/glibc.git] / ChangeLog
1 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
2
3         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
4         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
5         fwd_align_merge macro call.
6         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
7         bwd_align_merge macro call.
8         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
9
10 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
11
12         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
13         bwd_align_merge macros.
14         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
15         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
16         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
17
18 2012-04-18  David S. Miller  <davem@davemloft.net>
19
20         * sysdeps/sparc/sparc64/memcopy.h: Delete.
21
22 2012-04-18  Andreas Jaeger  <aj@suse.de>
23
24         [BZ# 6794]
25         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
26         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
27         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
28
29         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
30         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
31         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
32
33         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
34         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
35         Adjust for changed ldbl-128 files.
36
37         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
38         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
39         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
40
41 2012-04-17  David S. Miller  <davem@davemloft.net>
42
43         * sysdeps/sparc/sparc32/memcopy.h: Delete.
44
45 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
46
47         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
48         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
49         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
50         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
51         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
52         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
53
54 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55
56         [BZ #6794]
57         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
58         * math/libm-test.inc: Add ilogb errno and exception tests.
59         * math/w_ilogb.c: New file: ilogb wrapper.
60         * math/w_ilogbf.c: New file: ilogbf wrapper.
61         * math/w_ilogbl.c: New file: ilogbl wrapper.
62         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
63         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
64         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
65         exception being thrown with 0.0 as argument.
66         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
67         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
68         exception being thrown with 0.0 as argument.
69         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
70         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
71         exception being thrown with 0.0 as argument.
72         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
73         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
74         exception being thrown with 0.0 as argument.
75         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
76         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
77         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
78         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
79         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
80         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
81         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
82         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
83         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
84
85 2012-04-17  Petr Baudis  <pasky@ucw.cz>
86
87         * include/sys/uio.h: Change __vector to __iovec to avoid clash
88         with altivec.
89
90 2012-04-16  Marek Polacek  <polacek@redhat.com>
91
92         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
93
94 2012-04-16  Marek Polacek  <polacek@redhat.com>
95
96         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
97         operands of fdivp instruction.
98
99 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
100
101         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
102         * elf/tst-auditmod3b.c: Likewise.
103         * elf/tst-auditmod4b.c: Likewise.
104         * elf/tst-auditmod5b.c: Likewise.
105         * elf/tst-auditmod6b.c: Likewise.
106         * elf/tst-auditmod6c.c: Likewise.
107         * elf/tst-auditmod7b.c: Likewise.
108         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
109         * sysdeps/x86_64/preconfigure.in: Likewise.
110         * sysdeps/x86_64/preconfigure: Regenerated.
111
112 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
113
114         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
115         __ILP32__.
116
117 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
118
119         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
120         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
121
122 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
123
124         [BZ #13973]
125         * locale/iso-639.def: Fix gl language name. Spotted by
126         Yaron Shahrabani.
127
128 2012-04-12  Roland McGrath  <roland@hack.frob.com>
129
130         [BZ #2074]
131         * libio/libio.h (__io_write_fn): Update comment.
132
133 2012-04-12  Petr Baudis  <pasky@ucw.cz>
134
135         [BZ #2074]
136         * stdio.texi (Hook Functions): The user provided writer function
137         is not allowed to return -1.
138
139 2012-04-11  David S. Miller  <davem@davemloft.net>
140
141         * sysdeps/sparc/fpu/libm-test-ulps: Update.
142
143 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
144
145         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
146         Add a leading slash to rtkaio.
147
148 2012-04-11  Jim Meyering  <meyering@redhat.com>
149
150         [BZ #11959]
151         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
152         It is not necessarily an error to ignore fwrite's return
153         value.  One can reliably use ferror to test for errors after
154         the fact.
155
156 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
157
158         * bits/types.h (__snseconds_t): New type.
159         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
160
161         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
162         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
163         (__SNSECONDS_T_TYPE): Likewise.
164         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
165         (__SNSECONDS_T_TYPE): Likewise.
166         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
167         (__SNSECONDS_T_TYPE): Likewise.
168
169 2012-04-10  Andreas Jaeger  <aj@suse.de>
170
171         [BZ #2636]
172         * manual/time.texi (Processor Time): Return type of times is
173         elapsed real time since an arbitrary point in the past.
174         (CPU Time): Move CLK_TCK from here...
175         (Processor Time): ...to here.  Correct description.
176         * manual/conf.texi (Constants for Sysconf): Correct description of
177         _SC_CLK_TCK.
178
179 2012-04-10  David S. Miller  <davem@davemloft.net>
180
181         [BZ #13967]
182         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
183         where the is a gap between DT_REL(A) and DT_JMPREL.
184
185 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
186
187         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
188         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
189         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
190
191 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
192
193         * elf/dl-support.c (_dl_inhibit_cache): New variable.
194         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
195         (dl_main): Handle --inhibit-cache.
196         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
197         _dl_inhibit_cache.
198         * elf/dl-load.c (_dl_map_object): Use it.
199         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
200
201 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
202
203         [BZ #13872]
204         * sysdeps/i386/fpu/e_powl.S (p78): New object.
205         (__ieee754_powl): Saturate large exponents rather than testing for
206         overflow of y*log2(x).
207         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
208         * math/libm-test.inc (pow_test): Do not permit spurious overflow
209         exceptions.
210
211         [BZ #11521]
212         * math/s_ctan.c: Include <float.h>.
213         (__ctan): Avoid internal overflow or cancellation in calculating
214         denominator.
215         * math/s_ctanf.c: Likewise.
216         * math/s_ctanl.c: Likewise.
217         * math/s_ctanh.c: Likewise.
218         * math/s_ctanhf.c: Likewise.
219         * math/s_ctanhl.c: Likewise.
220         * math/libm-test.inc (ctan_test): Add more tests.
221         (ctanh_test): Likewise.
222         * sysdeps/i386/fpu/libm-test-ulps: Update.
223         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
224
225 2012-04-09  Andreas Jaeger  <aj@suse.de>
226
227         [BZ #6894]
228         * manual/filesys.texi (Directory Entries): Mention that d_namlen
229         is an optional BSD extension.
230
231         [BZ #10254]
232         * manual/stdio.texi (Opening Streams): Document additional fopen
233         parameters.
234
235 2012-04-09  Roland McGrath  <roland@hack.frob.com>
236
237         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
238         %eax without telling the compiler.
239
240 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
241
242         [BZ # 13963]
243         * manual/install.texi: Use sourceware.org.
244
245 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
246
247         [BZ #13873]
248         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
249         (__ieee754_pow): Generate overflow and underflow using huge*huge
250         and tiny*tiny rather than just returning constant infinity or zero
251         for large exponents.
252         * math/libm-test.inc (pow_test): Require overflow exceptions for
253         applicable cases of large exponents.
254
255         [BZ #706]
256         * sysdeps/i386/fpu/e_pow.S (p10): New object.
257         (__ieee754_pow): Use iterative multiplication algorithm only for
258         integer exponents with absolute value below 1024.  Check for odd
259         integer exponents when using algorithm for real exponents.
260         * math/libm-test.inc (pow_test): Add more tests.
261         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
262
263 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
264
265         [BZ #13705]
266         * math/libm-test.inc (exp_test): Do not allow overflow exception
267         on underflow test.
268
269 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
270
271         [BZ #13705]
272         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
273         instead of __kernel_standard_f.
274
275 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
276
277         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
278         * sysdeps/x86_64/memset_chk.S: Likewise.
279
280 2012-04-08  Andreas Jaeger  <aj@suse.de>
281
282         [BZ #10153]
283         * manual/startup.texi (Environment Access): Describe return value
284         for putenv and setenv.
285
286         [BZ #6895]
287         * manual/filesys.texi (Directory Entries): Add description for
288         DT_LNK.
289
290         [BZ #6890]
291         * manual/filesys.texi (Directory Entries): Clarify that it's file
292         system not operating system in the description of DT_UNKNOWN.
293
294         [BZ #6578]
295         * manual/syslog.texi (closelog): Fix reference, it's openlog.
296
297 2012-04-08  Stephen Compall  <s11@member.fsf.org>
298
299         [BZ #6649]
300         * manual/llio.texi (Opening and Closing Files): Add cross
301         reference to explain mode argument.
302
303 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
304
305         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
306         * sysdeps/x86_64/memset_chk.S: Likewise.
307
308 2012-04-07  David S. Miller  <davem@davemloft.net>
309
310         * elf/elf.h (R_SPARC_WDISP10): Define.
311         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
312         R_SPARC_SIZE32.
313         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
314         R_SPARC_SIZE64 and R_SPARC_H34.
315
316 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
317
318         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
319         conditions and remove no longer applicable assertion.
320
321 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
322
323         * bits/byteswap.h: Include <features.h>.
324         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
325         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
326
327 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
328
329         * bits/byteswap.h (__bswap_16): Removed.
330         Include <bits/byteswap-16.h> to get __bswap_16.
331         * sysdeps/i386/bits/byteswap.h: Likewise.
332         * sysdeps/s390/bits/byteswap.h: Likewise.
333         * sysdeps/x86_64/bits/byteswap.h: Likewise.
334         * bits/byteswap-16.h: New file.
335         * sysdeps/i386/bits/byteswap-16.h: Likewise.
336         * sysdeps/s390/bits/byteswap-16.h: Likewise.
337         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
338         * string/Makefile (headers): Add bits/byteswap-16.h.
339
340 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
341
342         [BZ #13895]
343         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
344         extra indirection.
345         * nss/Makefile (tests-static, tests): Add tst-nss-static.
346         * nss/tst-nss-static.c: New.
347
348 2012-04-06  Robert Millan  <rmh@gnu.org>
349
350         [BZ #6486]
351         * manual/llio.texi (File Position Primitive): lseek
352         refers to WHENCE when it really means OFFSET.
353
354 2012-04-06  Andreas Jaeger  <aj@suse.de>
355
356         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
357         strncmp declarations.
358
359         * abilist/libc.abilist: Add __poll and __ppoll.
360
361 2012-04-05  David S. Miller  <davem@davemloft.net>
362
363         * scripts/check-local-headers.sh: Accept a host triplet in the
364         path matched by the exclude regexp.
365
366         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
367         definition.
368         * sysdeps/powerpc/powerpc32/dl-machine.h
369         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
370         * sysdeps/s390/s390-32/dl-machine.h
371         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
372         * sysdeps/sparc/sparc32/dl-machine.h
373         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
374         * sysdeps/sparc/sparc64/dl-machine.h
375         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
376
377         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
378         lazy binding.
379         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
380         undefined symbol errors.
381
382         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
383         DT_NEEDED entries.
384
385 2012-04-05  Michael Matz  <matz@suse.de>
386
387         [BZ #13592]
388         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
389
390 2012-04-05  Andreas Jaeger  <aj@suse.de>
391
392         [BZ #13908]
393         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
394         comment.
395
396 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
397
398         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
399         which ROUND is no valid rounding mode.
400
401 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
402
403         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
404         read again.
405         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
406
407 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
408
409         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
410         an exception using FPU order intentionally.
411
412 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
413
414         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
415         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
416         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
417         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
418
419 2012-04-05  Simon Josefsson  <simon@josefsson.org>
420
421         [BZ #12340]
422         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
423         EINVAL when BUFLEN is too smal.
424
425 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
426
427         [BZ #13553]
428         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
429         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
430
431 2012-04-03  Andreas Jaeger  <aj@suse.de>
432
433         [BZ #13938]
434         * manual/setjmp.texi (System V contexts): Fix sentence.
435
436         [BZ #13926]
437         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
438         New macro for this case.
439         [!__GNUC__] (__bswap_64): New inline function for this case.
440         * sysdeps/x86_64/bits/byteswap.h: Likewise.
441         * bits/byteswap.h: Likewise.
442         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
443         ull, guard with __GLIBC_HAVE_LONG_LONG.
444
445         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
446         __GLIBC_HAVE_LONG_LONG.
447
448         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
449         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
450
451 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
452
453         [BZ #13691]
454         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
455         inptr and inend, rather than using last_ch.
456
457 2012-04-02  David S. Miller  <davem@davemloft.net>
458
459         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
460         * stdio-common/printf-parse.h (read_int): Change return type to
461         'int', return -1 on INT_MAX overflow.
462         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
463         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
464         overflows INT_MAX.  Check for overflow of in-format-string precision
465         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
466         SIZE_MAX not INT_MAX for integer overflow test.
467         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
468         skip the construct in the format string but do not record anything.
469         * stdio-common/bug22.c: Adjust to test both width/prevision
470         INT_MAX overflow as well as total length INT_MAX overflow.  Check
471         explicitly for proper errno values.
472
473 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
474
475         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
476         CHAR_MAX.
477         * string/test-strcmp.c [! WIDE]: Likewise.
478         * time/tst-mktime2.c: Likewise for INT_MAX.
479         * string/test-string.h: #include <sys/param.h> for MIN.
480
481         * csu/init-first.c (__libc_init_first): Call __ctype_init.
482         * sysdeps/i386/init-first.c (init): Likewise.
483         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
484         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
485         * sysdeps/sh/init-first.c (init): Likewise.
486
487 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
488
489         * po/ru.po: Update from translation team.
490         * po/vi.po: Likewise.
491
492 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
493
494         * resolv/nss_dns/dns-host.c: Merge copyright years.
495
496 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
497
498         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
499         Optimize memcpy with prefetch if
500         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
501         src, dst pointers have unequal 16 byte alignments.
502
503 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
504
505         [BZ #13928]
506         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
507         from a CNAME entry and return the minimum ttl for the query.
508         (gaih_getanswer_slice): Likewise.
509
510 2012-03-30  Jeff Law  <law@redhat.com>
511
512         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
513         due to long keys.
514         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
515         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
516
517         * resolv/nss_dns/dns-host.c: Update copyright year.
518
519 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
520
521         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
522         requests to save a system call.  Fix check that all bytes are sent.
523
524         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
525         comments for sendmmsg.
526
527 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
528
529         [BZ #13691]
530         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
531         with only 1 character between 0x0041 and 0x01b0.
532         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
533         * wcsmbs/tst-mbsnrtowcs.c: New file.
534
535 2012-03-29  David S. Miller  <davem@davemloft.net>
536
537         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
538         small copies by hand.
539
540 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
541
542         [BZ #13761]
543         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
544         _nss_compat_initgroups_dyn): Fall back to malloc/free
545         for large group memberships.
546
547 2012-03-28  David S. Miller  <davem@davemloft.net>
548
549         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
550         that branches into memcpy.
551         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
552         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
553         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
554         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
555         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
556         bits.
557         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
558         implementation too.
559         * sysdeps/sparc/mempcpy.S: New file.
560
561         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
562         the IFUNC routine in the libc case.
563         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
564
565         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
566         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
567         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
568         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
569         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
570         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
571         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
572         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
573
574         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
575         loop to 256 bytes instead of 64 bytes and fix test signedness.
576
577         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
578         * sysdeps/sparc/sparc32/Makefile: rather than here...
579         * sysdeps/sparc/sparc64/Makefile: and here.
580
581 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
582
583         * malloc/mallocbug.c: Avoid warnings about unused variables.
584
585 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
586
587         [BZ #13760]
588         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
589         in the right place. Discard and retry query if response is
590         larger than input buffer size.
591
592 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
593
594         [BZ #369]
595         [BZ #2678]
596         [BZ #3866]
597         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
598         x for large integer exponent.
599         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
600         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
601         sign of result as needed afterwards.
602         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
603         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
604         result for underflowing pow the same as for overflow.
605         (__kernel_standard_l): Handle powl overflow and underflow here
606         rather than calling __kernel_standard.
607         * math/libm-test.inc (pow_test): Add more tests.
608
609         [BZ #3868]
610         [BZ #13879]
611         [BZ #13910]
612         [BZ #13911]
613         [BZ #13912]
614         [BZ #13913]
615         [BZ #13915]
616         [BZ #13916]
617         [BZ #13917]
618         [BZ #13918]
619         [BZ #13919]
620         [BZ #13920]
621         [BZ #13921]
622         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
623         * sysdeps/ieee754/k_standard.c: Include <float.h>.
624         (__kernel_standard_l): New function.
625         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
626         __kernel_standard.
627         * math/w_acosl.c (__acosl): Likewise.
628         * math/w_asinl.c (__asinl): Likewise.
629         * math/w_atan2l.c (__atan2l): Likewise.
630         * math/w_atanhl.c (__atanhl): Likewise.
631         * math/w_coshl.c (__coshl): Likewise.
632         * math/w_exp10l.c (__exp10l): Likewise.
633         * math/w_exp2l.c (__exp2l): Likewise.
634         * math/w_fmodl.c (__fmodl): Likewise.
635         * math/w_hypotl.c (__hypotl): Likewise.
636         * math/w_j0l.c (__j0l, __y0l): Likewise.
637         * math/w_j1l.c (__j1l, __y1l): Likewise.
638         * math/w_jnl.c (__jnl, __ynl): Likewise.
639         * math/w_lgammal.c (__lgammal): Likewise.
640         * math/w_log10l.c (__log10l): Likewise.
641         * math/w_log2l.c (__log2l): Likewise.
642         * math/w_logl.c (__logl): Likewise.
643         * math/w_powl.c (__powl): Likewise.
644         * math/w_remainderl.c (__remainderl): Likewise.
645         * math/w_scalbl.c (sysv_scalbl): Likewise.
646         * math/w_sinhl.c (__sinhl): Likewise.
647         * math/w_sqrtl.c (__sqrtl): Likewise.
648         * math/w_tgammal.c (__tgammal): Likewise.
649         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
650         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
651         * math/libm-test.inc (acos_test): Add more tests.
652         (acosh_test): Likewise.
653         (asin_test): Likewise.
654         (atanh_test): Likewise.
655         (exp_test): Likewise.
656         (exp10_test): Likewise.
657         (exp2_test): Likewise.
658         (expm1_test): Likewise.
659         (lgamma_test): Likewise.
660         (log_test): Likewise.
661         (log10_test): Likewise.
662         (log1p_test): Likewise.
663         (log2_test): Likewise.
664         (pow_test): Do not allow some spurious overflow exceptions.
665         (sqrt_test): Add more tests.
666         (tgamma_test): Likewise.
667         (y0_test): Likewise.
668         (y1_test): Likewise.
669         (yn_test): Likewise.
670
671 2012-03-27  Anton Blanchard  <anton@samba.org>
672
673         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
674         MAP_HUGETLB.
675         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
676         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
677         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
678
679 2012-03-27  David S. Miller  <davem@davemloft.net>
680
681         * conform/Makefile: Run run-conformtest.sh using $(BASH).
682
683         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
684         have-as-vis3 check.
685
686 2012-03-27  Andreas Jaeger  <aj@suse.de>
687
688         * sysdeps/x86_64/elf/configure.in: Moved to ...
689         * sysdeps/x86_64/configure.in: ... here.
690         * sysdeps/x86_64/elf/start.S: Moved to ...
691         * sysdeps/x86_64/start.S: ... here.
692         * sysdeps/x86_64/elf/configure: Delete.
693
694         * sysdeps/x86_64/configure.in: Merge contents from
695         sysdeps/i386/configure.in (without i686 check).
696
697         * sysdeps/i386/elf/Versions: Merge into ...
698         * sysdeps/i386/Versions: ... this.
699         * sysdeps/i386/elf/Versions: Delete file.
700         * sysdeps/i386/elf/start.S: Moved to ...
701         * sysdeps/i386/start.S: ...here.
702         * sysdeps/i386/elf/configure.in: Merge into...
703         * sysdeps/i386/configure.in: ...here.
704         * sysdeps/i386/elf/configure.in: Delete file.
705         * sysdeps/i386/elf/configure: Delete file.
706
707         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
708         * debug/backtracesyms.c: ... here.
709         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
710         * debug/backtracesymsfd.c: ... here.
711         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
712         * sysdeps/generic/ifunc-sel.h: ... here.
713
714         * sysdeps/unix/i386/start.c: Delete file.
715         * sysdeps/unix/sparc/start.c: Delete file.
716         * sysdeps/unix/start.c: Delete file.
717
718         * sysdeps/sh/elf/configure.in: Moved to ...
719         * sysdeps/sh/configure.in: ... here.
720         * sysdeps/sh/elf/start.S: Moved to ...
721         * sysdeps/sh/start.S: ... here.
722         * sysdeps/sh/elf/configure: Delete file.
723
724         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
725         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
726         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
727         * sysdeps/powerpc/powerpc64/entry.h: ... here.
728         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
729         * sysdeps/powerpc/powerpc64/start.S: here.
730         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
731         * sysdeps/powerpc/powerpc64/Makefile: ... this.
732         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
733         * sysdeps/powerpc/powerpc64/configure.in: ... this.
734         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
735
736         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
737         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
738         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
739         * sysdeps/powerpc/powerpc32/start.S: ... here.
740         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
741         * sysdeps/powerpc/powerpc32/configure.in: ... this.
742         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
743
744         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
745         * sysdeps/powerpc/ifunc-sel.h: ... here.
746         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
747         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
748
749         * sysdeps/sparc/elf/configure.in: Moved to ...
750         * sysdeps/sparc/configure.in: ... here.
751         * sysdeps/sparc/elf/configure: Delete file.
752         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
753         * sysdeps/sparc/sparc32/start.S: ... here.
754         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
755         * sysdeps/sparc/sparc64/start.S: ... here.
756         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
757         * sysdeps/sparc/sparc32/Makefile: ... this.
758         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
759         * sysdeps/sparc/sparc64/Makefile: ... this.
760
761         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
762         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
763         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
764         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
765         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
766         * sysdeps/s390/s390-32/setjmp.S: ... here.
767         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
768         * sysdeps/s390/s390-32/configure.in: ... here.
769         * sysdeps/s390/s390-32/elf/configure: Delete file.
770         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
771         * sysdeps/s390/s390-32/start.S: ... here.
772
773         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
774         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
775         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
776         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
777         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
778         * sysdeps/s390/s390-64/setjmp.S: ... here.
779         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
780         * sysdeps/s390/s390-64/configure.in: ... here
781         * sysdeps/s390/s390-64/elf/configure: Delete file.
782         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
783         * sysdeps/s390/s390-64/start.S: ... here.
784         * sysdeps/s390/s390-64/elf/configure: Delete.
785
786         * configure.in: Remove support for elf directories in sysdeps.
787
788         * configure: Regenerated.
789         * sysdeps/i386/configure: Regenerated.
790         * sysdeps/powerpc/powerpc32/configure: Regenerated.
791         * sysdeps/powerpc/powerpc64/configure: Regenerated.
792         * sysdeps/s390/s390-32/configure: Regenerated.
793         * sysdeps/s390/s390-64/configure: Regenerated.
794         * sysdeps/sh/configure: Regenerated.
795         * sysdeps/sparc/configure: Regenerated.
796         * sysdeps/x86_64/configure: Regenerated.
797
798 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
799
800         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
801
802         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
803         denormal result into account.
804
805 2012-03-25  Roland McGrath  <roland@hack.frob.com>
806
807         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
808         Reported by Allan McRae <allan@archlinux.org>.
809
810 2012-03-23  Jeff Law  <law@redhat.com>
811
812         * nss/getnssent.c (__nss_getent): Fix typo.
813
814 2012-03-23  David S. Miller  <davem@davemloft.net>
815
816         * sysdeps/sparc/fpu/libm-test-ulps: Update.
817
818 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
819
820         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
821         to pad to uint64_t for each field.
822         (dl_tls_index): Replace unsigned long with uint64_t.
823
824 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
825         Paul Pluzhnikov  <ppluzhnikov@google.com>
826
827         [BZ #6528]
828         * grp/Makefile (otherlibs): Don't set it.
829         * inet/Makefile (otherlibs): Likewise.
830         * login/Makefile (otherlibs): Likewise.
831         * nscd/Makefile (otherlibs): Likewise.
832         * posix/Makefile (otherlibs): Likewise.
833         * pwd/Makefile (otherlibs): Likewise.
834         * rt/Makefile (otherlibs): Likewise.
835         * sunrpc/Makefile (otherlibs): Likewise.
836         * nss/Makefile (otherlibs): Likewise.
837         Add libnss_files to routines and static-only-routines.
838         ($(objpfx)getent): Remove rule.
839         * resolv/Makefile: Add libnss_dns and libresolv to routines and
840         static-only-routines.
841
842 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
843
844         [BZ #13892]
845         * math/s_cexp.c: Include <float.h>.
846         (__cexp): Handle exp result overflowing not necessarily
847         overflowing both real and imaginary parts of result.
848         * math/s_cexpf.c: Likewise.
849         * math/s_cexpl.c: Likewise.
850         * math/libm-test.inc (cexp_test): Add more tests.
851         * sysdeps/i386/fpu/libm-test-ulps: Update.
852         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
853
854 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
855
856         * include/link.h (ELFW): New macro.
857         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
858         Replace ELF64_R_TYPE with ELFW(R_TYPE).
859
860 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
861
862         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
863         with uint64_t.
864
865 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
866
867         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
868         declaration.
869         (struct La_x32_retval): Likewise.
870
871 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
872
873         * sysdeps/x86_64/preconfigure.in: New file.
874         * sysdeps/x86_64/preconfigure: New generated file.
875
876 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
877
878         [BZ #13824]
879         * math/e_exp2l.c: Include <float.h>.
880         (__ieee754_exp2l): Handle overflow and underflow cases
881         separately.  Only pass fractional part of argument to
882         __ieee754_expl.
883         * math/libm-test.inc (exp2_test): Add more tests.
884
885         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
886         negating x to take absolute value.
887         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
888         Likewise.
889         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
890         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
891         Likewise.
892         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
893         computing low part if x was negated.
894         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
895
896 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
897
898         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
899         la_x32_gnu_pltexit.
900         (pltexit): Cast int_retval to ptrdiff_t.
901         * elf/tst-auditmod3b.c: Likewise.
902         * elf/tst-auditmod4b.c: Likewise.
903         * elf/tst-auditmod5b.c: Likewise.
904         * elf/tst-auditmod6b.c: Likewise.
905         * elf/tst-auditmod6c.c: Likewise.
906         * elf/tst-auditmod7b.c: Likewise.
907
908         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
909         and x32_gnu_pltexit.
910
911         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
912         __ELF_NATIVE_CLASS.
913         (La_x32_regs): New macro.
914         (La_x32_retval): Likewise.
915         (la_x32_gnu_pltenter): New function prototype.
916         (la_x32_gnu_pltexit): Likewise.
917
918 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
919
920         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
921         exponent.
922
923         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
924
925         * configure.in (libc_cv_cc_nofma): Check for option to disable
926         generation of FMA instructions.
927         * configure: Regenerate.
928         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
929         * sysdeps/ieee754/dbl-64/Makefile: New file.
930         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
931         Remove brandred-fma4.
932         (CFLAGS-brandred-fma4.c): Remove.
933         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
934         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
935         define.
936         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
937         define.
938
939 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
940
941         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
942         LLONG_MAX != LONG_MAX.
943         (_itoa_word): Use _ITOA_WORD_TYPE on value.
944         (_fitoa_word): Likewise.
945         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
946         LLONG_MAX != LONG_MAX.
947         * stdio-common/_itowa.h: Include <_itoa.h>.
948         (_itowa_word): Use _ITOA_WORD_TYPE on value.
949         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
950         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
951         only if not defined.
952         (_ITOA_WORD_TYPE): Likewise.
953         (_itoa_word): Use _ITOA_WORD_TYPE on value.
954         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
955
956 2012-03-21  David S. Miller  <davem@davemloft.net>
957
958         * sysdeps/sparc/fpu/libm-test-ulps: Update.
959
960 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
961
962         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
963         of x86_64 when setting libc_cv_slibdir, libdir and
964         libc_cv_localedir.
965         * sysdeps/unix/sysv/linux/configure: Regenerated.
966
967 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
968
969         * manual/lang.texi (Old Varargs): Remove section.
970         (How Variadic): Update menu.
971         (va_start): Do not mention varargs.h.
972
973 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
974             Joseph Myers  <joseph@codesourcery.com>
975
976         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
977         link test.
978         * configure: Regenerated.
979
980 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
981
982         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
983         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
984         conformtest.pl
985
986 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
987
988         * NOTES: Remove.
989         * Makefile (files-for-dist): Remove NOTES.
990         (NOTES): Remove rule.
991         * README: Don't refer to NOTES.
992         * manual/creature.texi: Don't include macros.texi.
993         * manual/intro.texi (creature.texi): Remove comment referring to
994         NOTES.
995
996         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
997         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
998         * configure: Regenerated.
999         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
1000         LIBC_TRY_CC_OPTION.
1001         (libc_cv_as_i686): Likewise.
1002         (libc_cv_cc_avx): Likewise.
1003         (libc_cv_cc_sse2avx): Likewise.
1004         (libc_cv_cc_fma4): Likewise.
1005         (libc_cv_cc_novzeroupper): Likewise.
1006         * sysdeps/i386/configure: Regenerated.
1007
1008         [BZ #13883]
1009         * sysdeps/i386/fpu/s_cexp.S: Remove.
1010         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
1011         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
1012         * math/libm-test.inc (cexp_test): Add more tests.
1013         * sysdeps/i386/fpu/libm-test-ulps: Update.
1014         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1015
1016 2012-03-21  Allan McRae  <allan@archlinux.org>
1017
1018         * timezone/Makefile: Do not install iso3166.tab and zone.tab
1019
1020 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
1021
1022         [BZ #13871]
1023         * math/w_exp2.c: Do not include <float.h>.
1024         (o_threshold, u_threshold): Remove.
1025         (__exp2): Calculate result before checking finiteness and calling
1026         __kernel_standard.
1027         * math/w_exp2f.c: Likewise.
1028         * math/w_exp2l.c: Likewise.
1029         * math/libm-test.inc (exp2_test): Require overflow exception for
1030         1e6 input.
1031
1032         [BZ #3866]
1033         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
1034         range of signed 64-bit integers before using fistpll.  Remove
1035         checks for whether integers fit in mantissa bits.
1036         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
1037         the range of signed 32-bit integers before using fistpl.  Remove
1038         checks for whether integers fit in mantissa bits.
1039         * sysdeps/i386/fpu/e_powl.S (p64): New object.
1040         (__ieee754_powl): Test for y outside the range of signed 64-bit
1041         integers before using fistpll.  Reduce 64-bit values to 63-bit
1042         ones as needed.
1043         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
1044         divide-by-zero is raised for zero to large negative powers.
1045         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
1046         (__ieee754_powl): Test for y outside the range of signed 64-bit
1047         integers before using fistpll.  Reduce 64-bit values to 63-bit
1048         ones as needed.
1049         * math/libm-test.inc (pow_test): Add more tests.
1050
1051 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
1052
1053         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
1054         <stdio-common/_itoa.h>.
1055         * debug/segfault.c: Likewise.
1056         * elf/dl-cache.c: Likewise.
1057         * elf/dl-minimal.c: Likewise.
1058         * elf/dl-misc.c: Likewise.
1059         * elf/dl-sysdep.c: Likewise.
1060         * elf/dl-version.c: Likewise.
1061         * elf/rtld.c: Likewise.
1062         * hurd/hurdsock.c: Likewise.
1063         * hurd/lookup-retry.c: Likewise.
1064         * malloc/malloc.c: Likewise.
1065         * malloc/mtrace.c: Likewise.
1066         * nscd/nscd_getgr_r.c: Likewise.
1067         * nscd/nscd_getpw_r.c: Likewise.
1068         * nscd/nscd_getserv_r.c: Likewise.
1069         * posix/getopt_init.c: Likewise.
1070         * posix/wordexp.c: Likewise.
1071         * stdio-common/_itoa.c: Likewise.
1072         * stdio-common/printf_fphex.c: Likewise.
1073         * stdio-common/vfprintf.c: Likewise.
1074         * string/_strerror.c: Likewise.
1075         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
1076         * sysdeps/i386/i686/hp-timing.h: Likewise.
1077         * sysdeps/mach/_strerror.c: Likewise.
1078         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
1079         * sysdeps/mach/hurd/sethostid.c: Likewise.
1080         * sysdeps/mach/hurd/xmknodat.c: Likewise.
1081         * sysdeps/mach/xpg-strerror.c: Likewise.
1082         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
1083         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
1084         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
1085         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
1086         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
1087         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
1088         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
1089         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
1090         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
1091         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
1092         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
1093         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
1094         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
1095         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
1096         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
1097         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
1098         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
1099         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
1100         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
1101         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
1102         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
1103
1104         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
1105
1106         * stdio-common/_itoa.h: Moved to ...
1107         * sysdeps/generic/_itoa.h: Here.
1108
1109         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
1110
1111         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
1112         instead of "_itoa.h" and "_itowa.h".
1113         * stdio-common/vfprintf.: Likewise.
1114
1115 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
1116
1117         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
1118         <bits/wordsize.h>.
1119         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
1120         (__signbit): Likwise.
1121         (llrintf): Likwise.
1122         (llrint): Likwise.
1123
1124 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
1125
1126         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
1127         __WORDSIZE != 64.
1128
1129 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
1130
1131         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
1132         OVERFLOW_EXCEPTION_OK.
1133         * math/libm-test.inc ("Philosophy"): Update comment about
1134         exception testing.
1135         (OVERFLOW_EXCEPTION): Define.
1136         (OVERFLOW_EXCEPTION_OK): Likewise.
1137         (INVALID_EXCEPTION_OK): Renumber.
1138         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
1139         (IGNORE_ZERO_INF_SIGN): Likewise.
1140         (test_exceptions): Handle FE_OVERFLOW.
1141         (exp10_test): Expect overflow exceptions.
1142         (exp2_test): Likewise.
1143         (expm1_test): Likewise.
1144         (nextafter_test): Likewise.
1145         (pow_test): Likewise.
1146         (scalbn_test): Likewise.
1147         (scalbln_test): Likewise.
1148
1149 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
1150
1151         * sysdeps/x86_64/bits/atomic.h
1152         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
1153         64bit integer.
1154         (atomic_exchange_acq): Likewise.
1155         (__arch_exchange_and_add_body): Likewise.
1156         (__arch_add_body): Likewise.
1157         (atomic_add_negative): Likewise.
1158         (atomic_add_zero): Likewise.
1159
1160 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
1161
1162         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
1163         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
1164
1165 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
1166
1167         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
1168         Check __x86_64__ instead of __WORDSIZE.
1169
1170 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
1171
1172         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
1173
1174 2012-03-19  David S. Miller  <davem@davemloft.net>
1175
1176         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1177
1178         * sysdeps/sparc/fpu/fenv_private.h: New file.
1179         * sysdeps/sparc/fpu/math_private.h: Use it.
1180         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
1181         Remove.
1182         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
1183         (libc_feholdexcept_setroundl): Remove.
1184         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
1185         Remove.
1186         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
1187         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
1188
1189 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
1190
1191         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
1192         int64_t instead of long int.
1193         (INSERT_WORDS64): Likwise.
1194
1195 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
1196
1197         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
1198         _Unwind_GetCFA return to _Unwind_Ptr first.
1199
1200 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
1201
1202         [BZ #13629]
1203         * math/s_clog.c: Include <float.h>.
1204         (__clog): Scale large or subnormal inputs.
1205         * math/s_clogf.c: Likewise.
1206         * math/s_clogl.c: Likewise.
1207         * math/s_clog10.c: Include <float.h>.
1208         (M_LOG10_2): Define.
1209         (__clog10): Scale large or subnormal inputs.
1210         * math/s_clog10f.c: Likewise.
1211         * math/s_clog10l.c: Likewise.
1212         * math/libm-test.inc (clog_test): Add more tests.
1213         (clog10_test): Likewise.
1214         * sysdeps/i386/fpu/libm-test-ulps: Update.
1215         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1216
1217         [BZ #11451]
1218         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
1219         x and y.
1220         * math/libm-test.inc (atan2_test): Add another test.
1221
1222         * Makerules (common-objdir-compile): Remove.
1223         * sysdeps/unix/Makefile (config-generated): Do not add
1224         $(unix-generated) to variable.
1225         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
1226         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
1227         Remove rule.
1228         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
1229         Likewise.
1230         [generic bits/local_lim.h] (before-compile): Do not append to
1231         variable.
1232         [generic bits/local_lim.h] (common-generated): Likewise.
1233         [generic sys/param.h] (before-compile): Do not append to variable.
1234         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
1235         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
1236         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
1237         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
1238         include.
1239         [generic sys/param.h] (sys/param.h-includes): Remove variable.
1240         [generic sys/param.h] (sys/param.h-includes): Remove rule.
1241         [generic sys/param.h] ($(addprefix
1242         $(common-objpfx),$(sys/param.h-includes))): Likewise.
1243         [generic sys/param.h] (common-generated): Do not append to
1244         variable.
1245         [generic sys/param.h] (sysdep_headers): Likewise.
1246         [generic bits/errno.h] (before-compile): Do not append to
1247         variable.
1248         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
1249         rule.
1250         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
1251         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
1252         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
1253         [generic bits/errno.h] (common-generated): Do not append to
1254         variable.
1255         [generic bits/ioctls.h] (before-compile): Do not append to
1256         variable.
1257         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
1258         rule.
1259         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
1260         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
1261         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
1262         rule.
1263         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
1264         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
1265         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
1266         [generic bits/ioctls.h] (common-generated): Do not append to
1267         variable.
1268         [generic sys/syscall.h] (syscall.h): Remove variable.
1269         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
1270         rule.
1271         [generic sys/syscall.h] (before-compile): Do not append to
1272         variable.
1273         [generic sys/syscall.h] (common-generated): Likewise.
1274         * sysdeps/unix/errnos-tmpl.c: Remove file.
1275         * sysdeps/unix/errnos.awk: Likewise.
1276         * sysdeps/unix/ioctls-tmpl.c: Likewise.
1277         * sysdeps/unix/ioctls.awk: Likewise.
1278         * sysdeps/unix/mk-local_lim.c: Likewise.
1279         * sysdeps/unix/snarf-ioctls: Likewise.
1280
1281 2012-03-19  Richard Henderson  <rth@twiddle.net>
1282
1283         * sysdeps/i386/fpu/fenv_private.h: New file.
1284         * sysdeps/i386/fpu/math_private.h: Use it.
1285         (math_opt_barrier, math_force_eval): Remove.
1286         (libc_feholdexcept_setround_53bit): Remove.
1287         (libc_feupdateenv_53bit): Remove.
1288         * sysdeps/x86_64/fpu/math_private.h: Likewise.
1289         (math_opt_barrier, math_force_eval): Remove.
1290         (libc_feholdexcept): Remove.
1291         (libc_feholdexcept_setround): Remove.
1292         (libc_fetestexcept, libc_fesetenv): Remove.
1293         (libc_feupdateenv_test): Remove.
1294         (libc_feupdateenv, libc_feholdsetround): Remove.
1295         (libc_feresetround): Remove.
1296
1297         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
1298         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
1299
1300         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
1301         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
1302         (libc_feupdateenv_testl): New.
1303         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
1304         (libc_feupdateenv_testf): New.
1305         (libc_feupdateenv): Use libc_feupdateenv_test.
1306         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
1307         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
1308
1309         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
1310         (libc_feholdsetroundf, libc_feholdsetroundl): New.
1311         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
1312         (libc_feresetround_noex): New.
1313         (libc_feresetround_noexf): New.
1314         (libc_feresetround_noexl): New.
1315         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
1316         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
1317         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
1318         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
1319         SET_RESTORE_ROUND.
1320         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
1321         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
1322         (__cos): Likewise.
1323         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
1324         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
1325         SET_RESTORE_ROUND_NOEX.
1326         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
1327         SET_RESTORE_ROUND_NOEXF.
1328         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
1329         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
1330         (libc_feholdsetroundf): New.
1331         (libc_feresetround, libc_feresetroundf): New.
1332
1333         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
1334         (libc_feholdexcept_setround_53bit): Convert from macro to function.
1335         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
1336
1337         * sysdeps/generic/math_private.h: Include <fenv.h>.
1338         (default_libc_feholdexcept): New.
1339         (default_libc_feholdexcept_setround): New.
1340         (default_libc_fesetenv, default_libc_feupdateenv): New.
1341         (libc_feholdexcept): Only define if undefined.
1342         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
1343         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
1344         (libc_feholdexcept_setroundl): Likewise.
1345         (libc_feholdexcept_setround_53bit): Likewise.
1346         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
1347         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
1348         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
1349         (libc_feupdateenv_53bit): Likewise.
1350         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
1351         (libc_feholdexcept): Convert from macro to inline function.
1352         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
1353         (libc_fesetenv, libc_feupdateenv): Likewise.
1354
1355         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
1356         not previously defined.
1357         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
1358         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
1359         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
1360         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
1361         * sysdeps/ieee754/flt-32/math_private.h: New file.
1362         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
1363         math_private.h below SET_FLOAT_WORD.
1364         (__isnan, __isinf_ns, __finite): Remove.
1365         (__isnanf, __isinf_nsf, __finitef): Remove.
1366
1367 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
1368
1369         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1370
1371 2012-03-17  David S. Miller  <davem@davemloft.net>
1372
1373         [BZ #6471]
1374         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
1375         for 2.16.
1376
1377 2012-03-16  David S. Miller  <davem@davemloft.net>
1378
1379         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
1380         warnings.
1381
1382         [BZ #6471]
1383         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
1384         properly.
1385         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
1386         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
1387         sysdep_routines when subdir is sysvipc.
1388         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
1389         __getshmlba helper.
1390
1391         * sysdeps/sparc/fpu/libm-test/ulps: Update.
1392
1393 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
1394
1395         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
1396         [__LP64__].
1397
1398 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
1399
1400         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
1401         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
1402         (__lround): Renamed to ...
1403         (__llround): This.  Replace long int with long long int.
1404         Define lround functions as aliases of llround functions.
1405         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
1406
1407 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
1408
1409         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
1410         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
1411         adresses to uintptr_t.  Replace "long int" and "unsigned long
1412         int" with "greg_t" on va_arg.
1413
1414 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
1415
1416         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
1417         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
1418
1419         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
1420         Move e_machine check before EI_CLASS check.  Handle x32
1421         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
1422         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
1423         SKIP_EM_IA_64 and include
1424         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
1425
1426         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
1427         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
1428         (add_system_dir): New macro.
1429
1430         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
1431         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
1432
1433 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
1434
1435         [BZ #2551]
1436         [BZ #2552]
1437         [BZ #2553]
1438         [BZ #2554]
1439         [BZ #2562]
1440         [BZ #2563]
1441         [BZ #2565]
1442         [BZ #2566]
1443         [BZ #2576]
1444         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
1445         (y0): Likewise.
1446         * math/w_j0f.c (j0f): Likewise.
1447         (y0f): Likewise.
1448         * math/w_j0l.c (__j0l): Likewise.
1449         (__y0l): Likewise.
1450         * math/w_j1.c (j1): Likewise.
1451         (y1): Likewise.
1452         * math/w_j1f.c (j1f): Likewise.
1453         (y1f): Likewise.
1454         * math/w_j1l.c (__j1l): Likewise.
1455         (__y1l): Likewise.
1456         * math/w_jn.c (jn): Likewise.
1457         (yn): Likewise.
1458         * math/w_jnf.c (jnf): Likewise.
1459         (ynf): Likewise.
1460         * math/w_jnl.c (__jnl): Likewise.
1461         (__ynl): Likewise.
1462         * math/libm-test.inc (j0_test): Add more tests.
1463         (j1_test): Likewise.
1464         (jn_test): Likewise.  Add trailing semicolon to existing test.
1465         (y0_test): Likewise.
1466         (y1_test): Likewise.
1467         * sysdeps/i386/fpu/libm-test-ulps: Update.
1468         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1469
1470         [BZ #13851]
1471         [BZ #13854]
1472         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
1473         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
1474         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
1475         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
1476         (__tanl): Set errno for infinite argument.
1477         * sysdeps/i386/fpu/mptan.c: Remove.
1478         * sysdeps/i386/fpu/s_tan.S: Likewise.
1479         * sysdeps/i386/fpu/s_tanl.S: Likewise.
1480         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
1481         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
1482         * math/libm-test.inc (tan_test): Add more tests and enable more
1483         tests for double and long double.
1484         * sysdeps/i386/fpu/libm-test-ulps: Update.
1485         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1486
1487 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
1488
1489         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
1490         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
1491
1492 2012-03-16  Roland McGrath  <roland@hack.frob.com>
1493
1494         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
1495         * configure.in: Use it for both main tree and add-ons.
1496         * configure: Regenerated.
1497
1498 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
1499
1500         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
1501
1502 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
1503
1504         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
1505         in comment.
1506
1507         [BZ #13851]
1508         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
1509         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
1510         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
1511         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
1512         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
1513         infinite argument.
1514         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
1515         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
1516         != 0 for prec == 2.
1517         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
1518         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
1519         * sysdeps/i386/fpu/s_cosl.S: Likewise.
1520         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
1521         * sysdeps/i386/fpu/s_sinl.S: Likewise.
1522         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
1523         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
1524         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
1525         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
1526         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
1527         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
1528         * math/libm-test.inc (cos_test): Add more tests and enable more
1529         tests for long double.
1530         (sin_test): Likewise.
1531         (sincos_test): Likewise.
1532         * sysdeps/i386/fpu/libm-test-ulps: Update.
1533         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1534
1535 2012-03-16  David S. Miller  <davem@davemloft.net>
1536
1537         * sysdeps/sparc/fpu/math_private.h: New file.
1538
1539 2012-03-15  David S. Miller  <davem@davemloft.net>
1540
1541         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
1542         file.
1543         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
1544         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
1545         file.
1546         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
1547         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
1548         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
1549         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
1550         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
1551         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
1552         sysdep routines.
1553         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
1554
1555         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
1556         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
1557
1558         * sysdeps/sparc/sparc-ifunc.h: New file.
1559         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
1560         sparc-ifunc.h
1561         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
1562         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
1563         Likewise.
1564         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
1565         Likewise.
1566         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
1567         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
1568         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
1569         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
1570         Likewise.
1571         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
1572         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
1573         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
1574         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
1575         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
1576         Likewise.
1577         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
1578         Likewise.
1579         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
1580         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
1581         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
1582         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
1583         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
1584         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
1585         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
1586         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
1587         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
1588         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
1589         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
1590         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
1591         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
1592         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
1593         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
1594         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
1595         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
1596         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
1597         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
1598         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
1599         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
1600         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
1601         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
1602         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
1603
1604 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
1605
1606         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
1607         scaling.
1608         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1609
1610 2012-03-15  Andreas Jaeger  <aj@suse.de>
1611
1612         [BZ #13852]
1613         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
1614         ieee754/flt-32 implementation for sin, cos and sincos.
1615         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
1616         * sysdeps/i386/fpu/s_cosf.S: Likewise.
1617         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
1618         * sysdeps/i386/fpu/s_sinf.S: Likewise.
1619         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
1620         ieee754/flt-32 implementation for tan.
1621
1622         * math/libm-test.inc (cos_test): Enable some large input tests for
1623         float as well
1624         (sin_test): Likewise.
1625         (sincos_test): Likewise.
1626         (tan_test): Add tests for large input.
1627
1628         * sysdeps/i386/fpu/libm-test-ulps: Update.
1629
1630 2012-03-15  Andreas Jaeger  <aj@suse.de>
1631
1632         [BZ #13658]
1633         * math/libm-test.inc (cos_test): Add more test cases.
1634         (sin_test): Likewise.
1635         (sincos_test): Likewise.
1636
1637 2012-03-15  Andreas Jaeger  <aj@suse.de>
1638
1639         [BZ #13837]
1640         * math/libm-test.inc (cos_test): Add a test case for large input
1641         value.
1642         (sin_test): Likewise.
1643         (sincos_test): Likewise.
1644
1645 2012-03-15  Andreas Jaeger  <aj@suse.de>,
1646         Joseph Myers  <joseph@codesourcery.com>
1647
1648         [BZ #13658]
1649         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
1650         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
1651         * sysdeps/i386/fpu/branred.c: Likewise.
1652         * sysdeps/i386/fpu/dosincos.c: Likewise.
1653         * sysdeps/i386/fpu/mpa.c: Likewise.
1654         * sysdeps/i386/fpu/s_cos.S: Likewise.
1655         * sysdeps/i386/fpu/s_sin.S: Likewise.
1656         * sysdeps/i386/fpu/s_sincos.S: Likewise.
1657         * sysdeps/i386/fpu/sincos32.c: Likewise.
1658
1659         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
1660         Define.
1661         (libc_feupdateenv_53bit): Define.
1662         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
1663         Define.
1664         (libc_feupdateenv_53bit): Define.
1665
1666         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
1667         53 bit (without extend i386 double precision).
1668
1669         * math/libm-test.inc (sincos_test): Add tests for large input.
1670         (sin): Likewise.
1671         (cos): Likewise.
1672
1673         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
1674
1675 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
1676
1677         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1678
1679 2012-03-15  David S. Miller  <davem@davemloft.net>
1680
1681         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
1682         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
1683         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
1684         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
1685         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
1686         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
1687         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
1688         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
1689         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
1690         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
1691         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
1692         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
1693         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
1694         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
1695         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
1696         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
1697         file.
1698         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
1699         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
1700         file.
1701         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
1702         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
1703         file.
1704         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
1705         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
1706         file.
1707         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
1708         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
1709         fmin/fmax sysdep routines.
1710         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
1711
1712 2012-03-14  David S. Miller  <davem@davemloft.net>
1713
1714         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
1715         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
1716         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
1717         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
1718         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
1719         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
1720         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
1721         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
1722         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
1723         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
1724         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
1725         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
1726         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
1727         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
1728         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
1729         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
1730         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
1731         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
1732         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
1733         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
1734         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
1735         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
1736         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
1737         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
1738         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
1739         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
1740         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
1741         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
1742         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
1743         routines.
1744         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
1745         file.
1746         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
1747         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
1748         file.
1749         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
1750         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
1751         file.
1752         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
1753         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
1754         file.
1755         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
1756         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
1757         file.
1758         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
1759         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
1760         file.
1761         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
1762         file.
1763         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
1764         file.
1765         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
1766         file.
1767         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
1768         New file.
1769         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
1770         file.
1771         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
1772         file.
1773         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
1774         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
1775         file.
1776         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
1777         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
1778         file.
1779         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
1780         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
1781         file.
1782         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
1783         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
1784         VIS3 routines.
1785
1786         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
1787         New file.
1788
1789         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1790
1791         * sysdeps/sparc/configure.in: New file.
1792         * sysdeps/sparc/configure: Generate.
1793         * configure.in (libc_cv_sparc_as_vis3): Substitute.
1794         * configure: Regenerate.
1795         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
1796         * config.make.in (have-as-vis3): New.
1797         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
1798         available use -Av9d instead of -Av9a.
1799         * sysdeps/sparc/sparc64/Makefile: Likewise.
1800         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
1801         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
1802         New file.
1803         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
1804         file.
1805         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
1806         New file.
1807         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
1808         file.
1809         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
1810         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
1811         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
1812         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
1813         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
1814
1815         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
1816         fzeros/fnegs to load 0x80000000 into a float register instead of
1817         using the stack.
1818         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
1819
1820 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
1821
1822         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1823         bits/syscall.h.
1824         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
1825         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
1826         ($(inst_includedir)/bits/syscall.h): Remove rule.
1827         ($(objpfx)bits/syscall.d): Include instead of
1828         $(objpfx)syscall-list.d.
1829         (generated): Change syscall-list.h and syscall-list.d to
1830         bits/syscall.h and bits/syscall.d.
1831
1832 2012-03-14  Roland McGrath  <roland@hack.frob.com>
1833
1834         [BZ #13846]
1835         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
1836
1837 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
1838
1839         [BZ #13841]
1840         * math/s_csqrt.c: Include <float.h>.
1841         (__csqrt): Scale large or subnormal inputs.
1842         * math/s_csqrtf.c: Likewise.
1843         * math/s_csqrtl.c: Likewise.
1844         * math/libm-test.inc (csqrt_test): Add more tests.
1845         * sysdeps/i386/fpu/libm-test-ulps: Update.
1846         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1847
1848         [BZ #13840]
1849         * math/libm-test.inc (hypot_test): Add more tests.
1850
1851 2012-03-13  David S. Miller  <davem@davemloft.net>
1852
1853         [BZ #13840]
1854         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
1855         double-precision for the calculation instead of scaling.
1856
1857 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
1858
1859         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
1860         manipulate bits before adding and subtracting TWO52[sx].
1861         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
1862         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
1863         Likewise.
1864         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
1865
1866 2012-03-13  David S. Miller  <davem@davemloft.net>
1867
1868         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
1869         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
1870         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
1871         rtld-global-offsets.h
1872         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
1873
1874         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
1875         large parameters.
1876
1877         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
1878
1879         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
1880         'err' in the ifdef scope in which it is actually used.
1881
1882         * nss/nss_db/db-init.c: Include string.h
1883
1884 2012-03-12  David S. Miller  <davem@davemloft.net>
1885
1886         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
1887         masking out of the most significant byte of random value used.
1888         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
1889         Fix coding style in previous change.
1890
1891         * sysdeps/unix/sysv/linux/kernel-features.h
1892         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
1893         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
1894         expression.
1895         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
1896         later.
1897
1898 2012-03-11  David S. Miller  <davem@davemloft.net>
1899
1900         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
1901         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
1902         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
1903         for 'resultvar' otherwise things get truncated on 64-bit.
1904
1905         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
1906         Fix masking out of the most significant byte of random value used.
1907
1908         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1909
1910 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
1911
1912         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1913
1914 2012-03-09  David S. Miller  <davem@davemloft.net>
1915
1916         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
1917         variables with appropriate CPP guards.
1918         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
1919         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
1920         on resulting framesize and the management of the outregs buffer for pltexit.
1921         Preserve floating point return values across _dl_call_pltexit call.
1922         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
1923         framesize and the management of the outregs buffer for pltexit.
1924         Preserve floating point return values across _dl_call_pltexit
1925         call.
1926         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
1927         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
1928         (print_exit): Fix format string for return register value.
1929
1930 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
1931
1932         * sunrpc/Makefile (others): Add rpcgen.
1933         ($(objpfx)rpcgen): Remove special build rule and dependency on
1934         libc.
1935         * sunrpc/rpcgen.c: New file.
1936
1937 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
1938
1939         [BZ #13673]
1940         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
1941         * stdio-common/bug-vfprintf-nargs.c: Likewise.
1942         * sysdeps/i386/crti.S: Likewise.
1943         * sysdeps/i386/crtn.S: Likewise.
1944         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
1945         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
1946         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
1947         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
1948         * sysdeps/sh/crti.S: Likewise.
1949         * sysdeps/sh/crtn.S: Likewise.
1950         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
1951
1952         [BZ #13673]
1953         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
1954         with URL.
1955         * locale/programs/locfile-kw.gperf: Likewise.
1956         * locale/programs/charmap-kw.h: Regenerated.
1957         * locale/programs/locfile-kw.h: Likewise.
1958
1959         [BZ #13673]
1960         * intl/plural.y: Replace FSF snail mail address with URL.
1961         * intl/plural.c: Regenerated.
1962
1963 2012-03-09  Richard Henderson  <rth@twiddle.net>
1964
1965         * include/math_private.h: Remove file.
1966         * math/math_private.h: Move file ...
1967         * sysdeps/generic/math_private.h: ... here.
1968
1969         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
1970         * sysdeps/powerpc/fpu/math_private.h: Likewise.
1971         * sysdeps/x86_64/fpu/math_private.h: Likewise.
1972
1973         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
1974         and <math_private.h>.
1975         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
1976         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
1977         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
1978         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
1979         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
1980         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
1981         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
1982         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
1983         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
1984         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
1985         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
1986         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
1987         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
1988         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
1989         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
1990         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
1991         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
1992         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
1993         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
1994         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
1995         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
1996         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
1997         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
1998         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
1999         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
2000         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
2001         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
2002         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
2003         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
2004         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
2005         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
2006         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
2007         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
2008         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
2009         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
2010         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
2011         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
2012         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
2013         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
2014         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
2015         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
2016         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
2017         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
2018         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
2019         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
2020         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
2021         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
2022         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
2023         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
2024         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
2025         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
2026         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
2027         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
2028         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
2029         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
2030         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
2031         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
2032         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
2033         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
2034         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
2035         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2036         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
2037         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2038         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
2039         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
2040         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
2041         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
2042         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
2043         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
2044         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
2045         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
2046         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
2047         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
2048         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
2049         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
2050         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
2051         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
2052         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
2053         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
2054         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
2055         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
2056         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
2057         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
2058         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
2059         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
2060         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
2061         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
2062         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
2063         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
2064         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
2065         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
2066         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
2067         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
2068         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
2069         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
2070         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
2071         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
2072         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
2073         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
2074         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
2075         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
2076         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
2077         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
2078         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
2079         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
2080         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
2081         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
2082         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
2083         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
2084         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
2085         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
2086         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
2087         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
2088         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
2089         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
2090         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
2091         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
2092         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
2093         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
2094         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
2095         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
2096         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
2097         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
2098         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
2099         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
2100         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
2101         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
2102         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
2103         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
2104         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
2105         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
2106         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
2107         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
2108         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
2109         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
2110         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
2111         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
2112         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
2113         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
2114         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
2115         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
2116         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
2117         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
2118         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
2119         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
2120         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
2121         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
2122         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
2123         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
2124         * sysdeps/ieee754/k_standard.c: Likewise.
2125         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
2126         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
2127         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
2128         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
2129         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
2130         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
2131         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
2132         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
2133         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
2134         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
2135         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
2136         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
2137         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
2138         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
2139         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
2140         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
2141         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
2142         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
2143         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
2144         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
2145         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
2146         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
2147         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
2148         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
2149         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
2150         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
2151         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
2152         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
2153         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
2154         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
2155         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
2156         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
2157         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
2158         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
2159         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
2160         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
2161         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
2162         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
2163         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
2164         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
2165         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
2166         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
2167         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
2168         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
2169         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
2170         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
2171         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
2172         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
2173         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
2174         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
2175         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
2176         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
2177         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
2178         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
2179         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
2180         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
2181         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
2182         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
2183         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
2184         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
2185         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
2186         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
2187         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
2188         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
2189         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
2190         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
2191         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
2192         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
2193         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
2194         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
2195         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
2196         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
2197         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
2198         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
2199         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
2200         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
2201         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
2202         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
2203         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
2204         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
2205         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
2206         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
2207         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
2208         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
2209         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
2210         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
2211         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
2212         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
2213         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
2214         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
2215         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
2216         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
2217         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
2218         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
2219         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
2220         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
2221         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
2222         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
2223         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
2224         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
2225         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
2226         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
2227         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
2228         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
2229         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
2230         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
2231         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
2232         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
2233         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
2234         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
2235         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
2236         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
2237         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
2238         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
2239         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
2240         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
2241         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
2242         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
2243         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
2244         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
2245         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
2246         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
2247         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
2248         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
2249         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
2250         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
2251         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
2252         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
2253         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
2254         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
2255         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
2256         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
2257         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
2258         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
2259         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
2260         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
2261         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
2262         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
2263         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
2264         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
2265         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
2266         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
2267         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
2268         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
2269         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
2270         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
2271         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
2272         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
2273         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
2274         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
2275         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
2276         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
2277         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
2278         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
2279         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
2280         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
2281         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
2282         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
2283         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
2284         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
2285         * sysdeps/ieee754/s_lib_version.c: Likewise.
2286         * sysdeps/ieee754/s_matherr.c: Likewise.
2287         * sysdeps/ieee754/s_signgam.c: Likewise.
2288         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
2289         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
2290         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
2291         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
2292         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
2293         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
2294         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
2295         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
2296         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
2297         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
2298         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
2299         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
2300         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
2301         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
2302         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
2303         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
2304         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
2305         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
2306         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
2307         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
2308         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
2309
2310 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
2311
2312         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
2313         * sunrpc/rpc_main.c: Likewise.
2314         * sunrpc/rpc_svcout.c: Likewise.
2315
2316 2012-03-09  David S. Miller  <davem@davemloft.net>
2317
2318         * include/math_private.h: New file.
2319
2320 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
2321
2322         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
2323         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
2324         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
2325         from <bits/socket_type.h>.
2326         (enum __socket_type): Don't define here.
2327         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
2328         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2329         bits/socket_type.h.
2330
2331         [BZ #13566]
2332         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
2333         checking __USE_GNU.
2334
2335         * Makerules ($(inst_includedir)/%.h): New rule.
2336         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
2337         (install-others): Remove variable setting.
2338         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
2339
2340 2012-03-08  Richard Henderson  <rth@twiddle.net>
2341
2342         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
2343         from macro to inline function; merge with the
2344         !__LIBC_INTERNAL_MATH_INLINES version.
2345         (__ieee754_sqrtf): Likewise.
2346
2347         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
2348         to inline function.
2349         (__rintf, __floor, __floorf): Likewise.
2350
2351         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
2352         macro to inline function.
2353         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
2354
2355         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
2356         not <math/math_private.h>.
2357
2358 2012-03-08  David S. Miller  <davem@davemloft.net>
2359
2360         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
2361         copyright year.
2362         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
2363
2364 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
2365
2366         * resolv/gai_misc.c (handle_requests): Fix struct timespec
2367         normalization.
2368         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
2369         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
2370
2371 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
2372
2373         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
2374         be defined individually, they must be defined as a block.  Define
2375         S for printing a string instead of hidint the different by using a
2376         macro for adding the 'l'.
2377         * stdio-common/tst-fphex-wide.c: Adjust.
2378
2379 2012-03-07  Marek Polacek  <polacek@redhat.com>
2380
2381         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
2382
2383 2012-03-08  Marek Polacek  <polacek@redhat.com>
2384
2385         [BZ #13806]
2386         * stdio-common/Makefile (tests): Add tst-fphex-wide.
2387         * stdio-common/tst-fphex.c: Define a few macros to make the
2388         test reusable.  Use them.
2389         * stdio-common/tst-fphex-wide.c: New file.
2390
2391 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
2392
2393         [BZ #6911]
2394         * manual/macros.texi (gnusystems): New macro.
2395         (nongnusystems): Likewise.
2396         (gnulinuxhurdsystems): Likewise.
2397         (gnuhurdsystems): Likewise..
2398         (gnulinuxsystems): Likewise.
2399         * manual/charset.texi: Use new macros or @theglibc{} to refer to
2400         variants of the GNU system, not "GNU system".
2401         * manual/conf.texi: Likewise.
2402         * manual/errno.texi: Likewise.  Update example of errno macro
2403         expansion.
2404         * manual/filesys.texi: Likewise.
2405         (getumask): Document as specific to GNU/Hurd.
2406         * manual/install.texi: Likewise.  Reword some references to
2407         GNU/Linux.
2408         * manual/intro.texi: Likewise.
2409         * manual/io.texi: Likewise.
2410         (File Name Portability): Detail which constraints are inapplicable
2411         to all GNU systems and which are only inapplicable to GNU/Hurd.
2412         * manual/job.texi: Likewise.
2413         * manual/llio.texi: Likewise.
2414         (O_NOCTTY): Document as present on GNU/Linux.
2415         * manual/maint.texi: Likewise.
2416         * manual/memory.texi: Likewise.
2417         * manual/pattern.texi: Likewise.
2418         * manual/pipe.texi: Likewise.
2419         * manual/process.texi: Likewise.
2420         * manual/resource.texi: Likewise.
2421         (RUSAGE_CHILDREN): Remove statement about specifying a particular
2422         child on GNU/Hurd.
2423         * manual/setjmp.texi: Likewise.
2424         * manual/signal.texi: Likewise.
2425         * manual/startup.texi: Likewise.
2426         * manual/stdio.texi: Likewise.
2427         * manual/terminal.texi: Likewise.
2428         (ONLCR): Document as POSIX.
2429         (OXTABS): Document availability on GNU/Linux as XTABS.
2430         (ONOEOT): Document availability separately from other bits.
2431         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
2432         * manual/time.texi: Likewise.
2433         * manual/users.texi: Likewise.
2434         * INSTALL: Regenerated.
2435         * sysdeps/gnu/errlist.c: Regenerated.
2436
2437         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
2438         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
2439         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
2440         puts.
2441         * configure: Regenerated.
2442
2443 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
2444
2445         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
2446         default includes instead of AC_HEADER_CHECK.
2447         * sysdeps/i386/configure: Regenerated.
2448
2449         [BZ #10716]
2450         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
2451         * math/s_cacoshf.c (__cacoshf): Likewise.
2452         * math/s_cacoshl.c (__cacoshl): Likewise.
2453         * math/s_casinh.c (__casinh): Set signs of result from argument.
2454         * math/s_casinhf.c (__casinhf): Likewise.
2455         * math/s_casinhl.c (__casinhl): Likewise.
2456         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
2457         (casinh_test): Add more tests.
2458         * sysdeps/i386/fpu/libm-test-ulps: Update.
2459         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2460
2461 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
2462
2463         * po/zh_TW.po: Update from translation team.
2464
2465         * login/Makefile (distribute): Remove variable.
2466         * catgets/Makefile: Likewise.
2467         * mach/Makefile: Likewise.
2468         * malloc/Makefile: Likewise.
2469         * misc/Makefile: Likewise.
2470         * iconv/Makefile: Likewise.
2471         * nscd/Makefile: Likewise.
2472         * hurd/Makefile: Likewise.
2473         * manual/Makefile: Likewise.
2474         * locale/Makefile: Likewise.
2475         * intl/Makefile: Likewise.
2476         * conform/Makefile: Likewise.
2477         * nss/Makefile: Likewise.
2478         * time/Makefile: Likewise.
2479         * soft-fp/Makefile: Likewise.
2480         * dirent/Makefile: Likewise.
2481         * gmon/Makefile: Likewise.
2482         * po/Makefile: Likewise.
2483         * rt/Makefile: Likewise.
2484         * socket/Makefile: Likewise.
2485         * math/Makefile: Likewise.
2486         * signal/Makefile: Likewise.
2487         * debug/Makefile: Likewise.
2488         * elf/Makefile: Likewise.
2489         * timezone/Makefile: Likewise.
2490         * stdlib/Makefile: Likewise.
2491         * iconvdata/Makefile: Likewise.
2492         * sunrpc/Makefile: Likewise.
2493         * io/Makefile: Likewise.
2494         * argp/Makefile: Likewise.
2495         * inet/Makefile: Likewise.
2496         * hesiod/Makefile: Likewise.
2497         * grp/Makefile: Likewise.
2498         * csu/Makefile: Likewise.
2499         * wctype/Makefile: Likewise.
2500         * crypt/Makefile: Likewise.
2501         * libio/Makefile: Likewise.
2502         * string/Makefile: Likewise.
2503         * nis/Makefile: Likewise.
2504         * resolv/Makefile: Likewise.
2505         * stdio-common/Makefile: Likewise.
2506         * wcsmbs/Makefile: Likewise.
2507         * dlfcn/Makefile: Likewise.
2508         * posix/Makefile: Likewise.
2509
2510         * timezone/Makefile: Don't install timezone files, just the programs
2511         and scripts.
2512
2513 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
2514
2515         * nss/databases.def: Add missing gshadow entry.
2516
2517         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
2518
2519 2012-03-06  Marek Polacek  <polacek@redhat.com>
2520
2521         [BZ #13726]
2522         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
2523         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
2524         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
2525         * stdio-common/tst-long-dbl-fphex.c: New file.
2526
2527 2012-03-06  David S. Miller  <davem@davemloft.net>
2528
2529         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
2530         (set_obp_int): New function.
2531         (get_obp_int): New function.
2532         (__get_clockfreq_via_dev_openprom): Likewise.
2533         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
2534         Avoid unused variable warnings on 'val' and use builtin_expect.
2535         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
2536         __builtin_expect.
2537         (INLINE_CLONE_SYSCALL): Likewise.
2538
2539 2012-03-05  David S. Miller  <davem@davemloft.net>
2540
2541         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2542
2543 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
2544
2545         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2546
2547         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
2548         only for |x| >= 40.
2549         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
2550
2551 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
2552
2553         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
2554         Replace gettimeofday with __vdso_gettimeofday.
2555
2556         * sysdeps/unix/sysv/linux/x86_64/init-first.c
2557         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
2558         __vdso_clock_gettime and __vdso_getcpu.
2559
2560         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
2561         time with __vdso_time.
2562
2563 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
2564
2565         * manual/lang.texi (size_t): Note types to which size_t may be
2566         equivalent with the GNU C Library, but do not describe when
2567         differences between them are significant.
2568
2569 2012-03-05  Andreas Jaeger  <aj@suse.de>
2570
2571         * sysdeps/i386/fpu/libm-test-ulps: Update.
2572
2573 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
2574
2575         [BZ #3976]
2576         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
2577         (__ieee754_pow): Save and restore rounding mode and use
2578         round-to-nearest for main computations.
2579         * math/libm-test.inc (pow_test_tonearest): New function.
2580         (pow_test_towardzero): Likewise.
2581         (pow_test_downward): Likewise.
2582         (pow_test_upward): Likewise.
2583         (main): Call the new functions.
2584         * sysdeps/i386/fpu/libm-test-ulps: Update.
2585         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2586
2587         [BZ #3976]
2588         * math/libm-test.inc (cosh_test_tonearest): New function.
2589         (cosh_test_towardzero): Likewise.
2590         (cosh_test_downward): Likewise.
2591         (cosh_test_upward): Likewise.
2592         (sinh_test_tonearest): Likewise.
2593         (sinh_test_towardzero): Likewise.
2594         (sinh_test_downward): Likewise.
2595         (sinh_test_upward): Likewise.
2596         (main): Call the new functions.
2597         * sysdeps/i386/fpu/libm-test-ulps: Update.
2598         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2599
2600 2012-03-05  Tom de Vries  <tom@codesourcery.com>
2601
2602         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
2603         default stack guard is set in last bytes.
2604         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
2605
2606 2012-03-05  Kees Cook  <keescook@chromium.org>
2607
2608         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
2609
2610         [BZ #13656]
2611         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
2612         possibly allocate from heap instead of stack.
2613         * stdio-common/bug-vfprintf-nargs.c: New file.
2614         * stdio-common/Makefile (tests): Add nargs overflow test.
2615
2616 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
2617
2618         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2619
2620 2012-03-03  Marek Polacek  <polacek@redhat.com>
2621
2622         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
2623         * math/math_private.h: Likewise.
2624         * stdlib/tst-strtod.c: Likewise.
2625         * sysdeps/i386/i486/bits/atomic.h: Likewise.
2626         * sysdeps/x86_64/bits/atomic.h: Likewise.
2627
2628 2012-03-02  David S. Miller  <davem@davemloft.net>
2629
2630         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
2631         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
2632         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
2633         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
2634         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
2635         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
2636         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
2637         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
2638
2639 2012-03-02  Roland McGrath  <roland@hack.frob.com>
2640
2641         [BZ #13792]
2642         * manual/examples/README: New file, says the example source files
2643         can be used under GPL>=2.
2644         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
2645         line containing just "*/".
2646         * manual/examples/add.c: Add copyright header (GPL>=2).
2647         * manual/examples/argp-ex1.c: Likewise.
2648         * manual/examples/argp-ex2.c: Likewise.
2649         * manual/examples/argp-ex3.c: Likewise.
2650         * manual/examples/argp-ex4.c: Likewise.
2651         * manual/examples/atexit.c: Likewise.
2652         * manual/examples/db.c: Likewise.
2653         * manual/examples/dir.c: Likewise.
2654         * manual/examples/dir2.c: Likewise.
2655         * manual/examples/execinfo.c: Likewise.
2656         * manual/examples/filecli.c: Likewise.
2657         * manual/examples/filesrv.c: Likewise.
2658         * manual/examples/fmtmsgexpl.c: Likewise.
2659         * manual/examples/genpass.c: Likewise.
2660         * manual/examples/inetcli.c: Likewise.
2661         * manual/examples/inetsrv.c: Likewise.
2662         * manual/examples/isockad.c: Likewise.
2663         * manual/examples/longopt.c: Likewise.
2664         * manual/examples/memopen.c: Likewise.
2665         * manual/examples/memstrm.c: Likewise.
2666         * manual/examples/mkfsock.c: Likewise.
2667         * manual/examples/mkisock.c: Likewise.
2668         * manual/examples/mygetpass.c: Likewise.
2669         * manual/examples/pipe.c: Likewise.
2670         * manual/examples/popen.c: Likewise.
2671         * manual/examples/rprintf.c: Likewise.
2672         * manual/examples/search.c: Likewise.
2673         * manual/examples/select.c: Likewise.
2674         * manual/examples/setjmp.c: Likewise.
2675         * manual/examples/sigh1.c: Likewise.
2676         * manual/examples/sigusr.c: Likewise.
2677         * manual/examples/stpcpy.c: Likewise.
2678         * manual/examples/strdupa.c: Likewise.
2679         * manual/examples/strftim.c: Likewise.
2680         * manual/examples/strncat.c: Likewise.
2681         * manual/examples/subopt.c: Likewise.
2682         * manual/examples/swapcontext.c: Likewise.
2683         * manual/examples/termios.c: Likewise.
2684         * manual/examples/testopt.c: Likewise.
2685         * manual/examples/testpass.c: Likewise.
2686         * manual/examples/timeval_subtract.c: Likewise.
2687
2688         [BZ #13792]
2689         * manual/time.texi (Elapsed Time): Move timeval_subtract example
2690         function to ...
2691         * manual/timeval_subtract.c.texi: ... here, new file.
2692
2693 2012-03-02  David S. Miller  <davem@davemloft.net>
2694
2695         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
2696
2697 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
2698
2699         [BZ #3976]
2700         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
2701         (__sin): Save and restore rounding mode and use round-to-nearest
2702         for all computations.
2703         (__cos): Save and restore rounding mode and use round-to-nearest
2704         for all computations.
2705         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
2706         <fenv.h>.
2707         (tan): Save and restore rounding mode and use round-to-nearest for
2708         all computations.
2709         * math/libm-test.inc (cos_test_tonearest): New function.
2710         (cos_test_towardzero): Likewise.
2711         (cos_test_downward): Likewise.
2712         (cos_test_upward): Likewise.
2713         (sin_test_tonearest): Likewise.
2714         (sin_test_towardzero): Likewise.
2715         (sin_test_downward): Likewise.
2716         (sin_test_upward): Likewise.
2717         (tan_test_tonearest): Likewise.
2718         (tan_test_towardzero): Likewise.
2719         (tan_test_downward): Likewise.
2720         (tan_test_upward): Likewise.
2721         (main): Call the new functions.
2722         * sysdeps/i386/fpu/libm-test-ulps: Update.
2723         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2724
2725         [BZ #10135]
2726         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
2727         small n, then large n, before computing and testing k+n.
2728         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
2729         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
2730         Likewise.
2731         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
2732         Likewise.
2733         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
2734         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
2735         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
2736         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
2737         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
2738         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
2739         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
2740         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
2741         * math/libm-test.inc (scalbn_test): Add more tests.
2742         (scalbln_test): Likewise.
2743
2744         * manual/filesys.texi (mode_t): Describe constraints on size and
2745         signedness, not exact equivalence to a particular type.
2746         (ino_t): Likewise.
2747         (ino64_t): Likewise.
2748         (dev_t): Likewise.
2749         (nlink_t): Likewise.
2750         (blkcnt_t): Likewise.
2751         (blkcnt64_t): Likewise.
2752         * manual/llio.texi (off_t): Likewise.
2753
2754         [BZ #3976]
2755         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
2756         (__ieee754_exp): Save and restore rounding mode and use
2757         round-to-nearest for all computations.
2758         * math/libm-test.inc (exp_test_tonearest): New function.
2759         (exp_test_towardzero): Likewise.
2760         (exp_test_downward): Likewise.
2761         (exp_test_upward): Likewise.
2762         (main): Call the new functions.
2763         * sysdeps/i386/fpu/libm-test-ulps: Update.
2764         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2765
2766 2012-03-01  Chris Demetriou  <cgd@google.com>
2767
2768         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
2769         have predictable order.
2770
2771 2012-03-01  David S. Miller  <davem@davemloft.net>
2772
2773         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
2774
2775         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
2776         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
2777         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
2778         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
2779
2780         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
2781         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
2782         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
2783         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
2784         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
2785         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
2786         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
2787         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
2788         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
2789
2790         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2791
2792         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
2793         * sysdeps/sparc/fpu/libm-test-ulps: to here.
2794         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
2795
2796         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
2797         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
2798         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
2799         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
2800         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
2801         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
2802         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
2803         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
2804         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
2805         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
2806         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
2807         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
2808         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
2809         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
2810         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
2811         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
2812         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
2813         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
2814         * sysdeps/sparc/elf/configure: Regenerated.
2815
2816 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
2817
2818         * configure.in (AS, LD): Require binutils 2.20 or later.
2819         * configure: Regenerated.
2820         * manual/install.texi (Tools for Compilation): Give binutils 2.20
2821         as required minimum version.
2822         * INSTALL: Regenerated.
2823
2824         [BZ #2541]
2825         [BZ #4108]
2826         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
2827         before squaring exponent.
2828         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
2829         bottom long double and 27 bits of top long double before squaring
2830         exponent.
2831         * math/libm-test.inc (erfc_test): Add more tests.
2832         * sysdeps/i386/fpu/libm-test-ulps: Update.
2833         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
2834         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2835
2836 2012-03-01  Kai Tietz  <ktietz@redhat.com>
2837
2838         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
2839         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
2840         containing bit-fields.
2841         * soft-fp/extended.h (_FP_UNION_E): Likewise.
2842         * soft-fp/single.h (_FP_UNION_S): Likewise.
2843         * soft-fp/double.h (_FP_UNION_D): Likewise.
2844
2845 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
2846
2847         [BZ #13786]
2848         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
2849         not include ../strcmp.S.
2850         [USE_AS_STRNCASECMP_L]: Likewise.
2851         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
2852         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
2853         * sysdeps/i386/i686/multiarch/strncase_l-c.c
2854         (__strncasecmp_l_ia32): Define as alias to
2855         __strncasecmp_l_nonascii.
2856
2857         [BZ #5794]
2858         * math/libm-test.inc (expm1_test): Add test for bug 5794.
2859         * sysdeps/i386/fpu/libm-test-ulps: Update.
2860         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2861
2862         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
2863         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2864
2865 2012-02-29  Jeff Law  <law@redhat.com>
2866
2867         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
2868         out of bounds read.
2869
2870 2012-02-29  Marek Polacek  <polacek@redhat.com>
2871
2872         [BZ #13706]
2873         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
2874         * elf/Makefile: Add rules to run tst-unused-dep.out.
2875
2876 2012-02-28  David S. Miller  <davem@davemloft.net>
2877
2878         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
2879         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
2880         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
2881         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
2882         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
2883         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
2884
2885 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
2886
2887         * math/libm-test.inc (llround_test): Move one test from
2888         lround_test.  Use TEST_f_L in moved test.
2889         (lround_test): Move misplaced test to llround_test.  Add testcase
2890         from bug 2561.
2891
2892 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
2893
2894         * sysdeps/x86_64/fpu/e_expf.S: New file.
2895         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
2896
2897 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
2898
2899         [BZ #13637]
2900         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
2901         of remain_len that may cause incomplete multi-byte character and
2902         false match.
2903         * posix/bug-regex33.c: New file.
2904         * posix/Makefile (tests): Add bug-regex33.
2905
2906 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
2907
2908         * manual/macros.texi: New file.
2909         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
2910         * manual/libc.texinfo: Include macros.texi.
2911         * manual/creatute.texi: Likewise.
2912         * manual/install.texi: Likewise.
2913         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
2914         @glibcadj{} in references to the GNU C Library.
2915         * manual/charset.texi: Likewise.
2916         * manual/conf.texi: Likewise.
2917         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
2918         when not using those macros.
2919         * manual/creature.texi: Likewise.
2920         * manual/crypt.texi: Likewise.
2921         * manual/errno.texi: Likewise.
2922         * manual/filesys.texi: Likewise.
2923         * manual/header.texi: Likewise.
2924         * manual/install.texi: Likewise.
2925         * manual/intro.texi: Likewise.
2926         * manual/io.texi: Likewise.
2927         * manual/job.texi: Likewise.
2928         * manual/lang.texi: Likewise.
2929         * manual/libc.texiinfo: Likewise.
2930         * manual/llio.texi: Likewise.
2931         * manual/locale.texi: Likewise.
2932         * manual/maint.texi: Likewise.
2933         * manual/math.texi: Likewise.
2934         * manual/memory.texi: Likewise.
2935         * manual/message.texi: Likewise.
2936         * manual/nss.texi: Likewise.
2937         * manual/pattern.texi: Likewise.
2938         * manual/process.texi: Likewise.
2939         * manual/resource.texi: Likewise.
2940         * manual/search.texi: Likewise.
2941         * manual/setjmp.texi: Likewise.
2942         * manual/signal.texi: Likewise.
2943         * manual/socket.texi: Likewise.
2944         * manual/startup.texi: Likewise.
2945         * manual/stdio.texi: Likewise.
2946         * manual/string.texi: Likewise.
2947         * manual/sysinfo.texi: Likewise.
2948         * manual/syslog.texi: Likewise.
2949         * manual/terminal.texi: Likewise.
2950         * manual/time.texi: Likewise.
2951         * manual/users.texi: Likewise.
2952         * INSTALL: Regenerated.
2953         * NOTES: Regenerated.
2954         * sysdeps/gnu/errlist.c: Regenerated.
2955
2956 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
2957
2958         * include/dirent.h: Include <dirstream.h> before
2959         <dirent/dirent.h>.
2960
2961 2012-02-28  David S. Miller  <davem@davemloft.net>
2962
2963         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
2964         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
2965         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
2966         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
2967
2968 2012-02-27  David S. Miller  <davem@davemloft.net>
2969
2970         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
2971         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
2972         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
2973         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
2974
2975         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
2976         frame pointer instead of stack pointer relative arg slot.
2977         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
2978         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
2979         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
2980
2981 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
2982
2983         [BZ #3992]
2984         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
2985
2986 2012-02-27  David S. Miller  <davem@davemloft.net>
2987
2988         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
2989         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
2990         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
2991         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
2992         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
2993         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
2994         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
2995         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
2996
2997 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
2998
2999         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
3000         later.  Allow versions 5-9.
3001         * configure: Regenerated.
3002         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
3003         required minimum version and 4.6 as recommended version.  Do not
3004         mention bugs in GCC 2.7 and 2.8.
3005         * INSTALL: Regenerated.
3006
3007 2012-02-27  David S. Miller  <davem@davemloft.net>
3008
3009         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
3010         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
3011         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
3012         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
3013         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
3014         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
3015         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
3016         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
3017
3018         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
3019         manipulate bits before adding and subtracting TWO112[sx].
3020         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
3021
3022 2012-02-27  Roland McGrath  <roland@hack.frob.com>
3023
3024         [BZ #13775]
3025         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
3026         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
3027         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
3028         being in POSIX, because they are in 1003.1-2008.
3029
3030         * rt/tst-aio.c: Include <fcntl.h>.
3031         * rt/tst-aio7.c: Likewise.
3032         * rt/tst-aio64.c: Likewise.
3033
3034         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
3035
3036 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
3037
3038         * manual/install.texi (--with-headers): Describe headers as
3039         interface headers, not private headers.
3040         (Specific advice for GNU/Linux systems): Describe use of headers
3041         from "make headers_install", not private headers from older
3042         kernels.
3043         * INSTALL: Regenerated.
3044         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
3045         Change to 2.6.19.
3046         * sysdeps/unix/sysv/linux/configure: Regenerated.
3047
3048         * manual/llio.texi (fclean): Remove documentation.
3049
3050         * manual/Makefile (libc-texi-generated): New variable.  Include
3051         version.texi.
3052         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
3053         $(libc-texi-generated), not duplicated list of files.
3054         (version.texi, stamp-version): New rules.
3055         (realclean): Remove $(libc-texi-generated), not individual files
3056         from that list.  Do not remove dir-add.texinfo.
3057         * manual/libc.texinfo: Comment out uses of edition numbers and
3058         references to printed manual.  Remove last-updated dates.
3059         (EDITION): Comment out.
3060         (ISBN): Likewise.
3061         (VERSION, UPDATED): Remove.
3062         (version.texi): Include.
3063
3064 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
3065
3066         * sysdeps/posix/spawni.c: Include <signal.h>.
3067         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
3068         * sysdeps/pthread/aio_fsync.c: Likewise.
3069
3070 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
3071
3072         * conform/Makefile (tests): Run only when not cross-compiling and
3073         when fast-check is not defined.
3074
3075         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
3076         * conform/data/limits.h-data: Fixes for POSIX2008.
3077         * conform/run-conformtest.sh: Run all tests.
3078         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
3079         headers.
3080         * include/bits/dlfcn.h: Likewise.
3081         * include/langinfo.h: Likewise.
3082         * include/monetary.h: Likewise.
3083         * include/sys/poll.h: Likewise.
3084
3085         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
3086         for __USE_GNU.
3087         * posix/spawn.h: Define __need_sigset_t.
3088         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
3089         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
3090         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
3091         to get sigevent_t only.
3092         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
3093         only for __USE_GNU.
3094         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
3095         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
3096         process_vm_writev only for __USE_GNU.
3097         * termios/termios.h: Declare tcgetsid also for POSIX2008.
3098
3099         * conform/Makefile: For now ignore errors from run-conformtest.
3100         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
3101         POSIX to avoid namespace pollution.  Don't prepend headers.
3102         * conform/data/aio.h-data: Fixes for POSIX testing.
3103         * conform/data/fcntl.h-data: Likewise.
3104         * conform/data/glob.h-data: Likewise.
3105         * conform/data/grp.h-data: Likewise.
3106         * conform/data/pthread.h-data: Likewise.
3107         * conform/data/pwd.h-data: Likewise.
3108         * conform/data/signal.h-data: Likewise.
3109         * conform/data/spawn.h-data: Likewise.
3110         * conform/data/stdio.h-data: Likewise.
3111         * conform/data/stdlib.h-data: Likewise.
3112         * conform/data/stropts.h-data: Likewise.
3113         * conform/data/sys/mman.h-data: Likewise.
3114         * conform/data/sys/stat.h-data: Likewise.
3115         * conform/data/sys/types.h-data: Likewise.
3116         * conform/data/sys/wait.h-data: Likewise.
3117         * conform/data/time.h-data: Likewise.
3118         * conform/data/unistd.h-data: Likewise.
3119         * conform/data/utime.h-data: Likewise.
3120
3121         * io/sys/stat.h: fchmod was always in POSIX.
3122         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
3123         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
3124         * rt/aio.h: Define __need_timespec before including <time.h>.
3125         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
3126         struct.  Add forward declaration of pthread_attr_t and use it in
3127         sigevent.
3128         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
3129         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
3130         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
3131         always remove CLK_TCK definition.
3132
3133 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
3134
3135         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
3136
3137 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
3138
3139         * conform/run-conformtest.sh: New file.
3140         * conform/Makefile: Run run-conformtest for tests.
3141         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
3142         support.
3143
3144         * conform/data/uchar.h-data: New file.
3145         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
3146         * conform/data/arpa/inet.h-data: Likewise.
3147         * conform/data/assert.h-data: Likewise.
3148         * conform/data/complex.h-data: Likewise.
3149         * conform/data/cpio.h-data: Likewise.
3150         * conform/data/ctype.h-data: Likewise.
3151         * conform/data/dirent.h-data: Likewise.
3152         * conform/data/dlfcn.h-data: Likewise.
3153         * conform/data/errno.h-data: Likewise.
3154         * conform/data/fcntl.h-data: Likewise.
3155         * conform/data/float.h-data: Likewise.
3156         * conform/data/fmtmsg.h-data: Likewise.
3157         * conform/data/fnmatch.h-data: Likewise.
3158         * conform/data/ftw.h-data: Likewise.
3159         * conform/data/glob.h-data: Likewise.
3160         * conform/data/grp.h-data: Likewise.
3161         * conform/data/iconv.h-data: Likewise.
3162         * conform/data/inttypes.h-data: Likewise.
3163         * conform/data/langinfo.h-data: Likewise.
3164         * conform/data/libgen.h-data: Likewise.
3165         * conform/data/limits.h-data: Likewise.
3166         * conform/data/locale.h-data: Likewise.
3167         * conform/data/math.h-data: Likewise.
3168         * conform/data/monetary.h-data: Likewise.
3169         * conform/data/mqueue.h-data: Likewise.
3170         * conform/data/ndbm.h-data: Likewise.
3171         * conform/data/net/if.h-data: Likewise.
3172         * conform/data/netdb.h-data: Likewise.
3173         * conform/data/netinet/in.h-data: Likewise.
3174         * conform/data/nl_types.h-data: Likewise.
3175         * conform/data/poll.h-data: Likewise.
3176         * conform/data/pthread.h-data: Likewise.
3177         * conform/data/pwd.h-data: Likewise.
3178         * conform/data/regex.h-data: Likewise.
3179         * conform/data/sched.h-data: Likewise.
3180         * conform/data/search.h-data: Likewise.
3181         * conform/data/semaphore.h-data: Likewise.
3182         * conform/data/setjmp.h-data: Likewise.
3183         * conform/data/signal.h-data: Likewise.
3184         * conform/data/spawn.h-data: Likewise.
3185         * conform/data/stdarg.h-data: Likewise.
3186         * conform/data/stdio.h-data: Likewise.
3187         * conform/data/stdlib.h-data: Likewise.
3188         * conform/data/string.h-data: Likewise.
3189         * conform/data/strings.h-data: Likewise.
3190         * conform/data/stropts.h-data: Likewise.
3191         * conform/data/sys/ipc.h-data: Likewise.
3192         * conform/data/sys/mman.h-data: Likewise.
3193         * conform/data/sys/msg.h-data: Likewise.
3194         * conform/data/sys/resource.h-data: Likewise.
3195         * conform/data/sys/select.h-data: Likewise.
3196         * conform/data/sys/sem.h-data: Likewise.
3197         * conform/data/sys/shm.h-data: Likewise.
3198         * conform/data/sys/socket.h-data: Likewise.
3199         * conform/data/sys/stat.h-data: Likewise.
3200         * conform/data/sys/statvfs.h-data: Likewise.
3201         * conform/data/sys/time.h-data: Likewise.
3202         * conform/data/sys/timeb.h-data: Likewise.
3203         * conform/data/sys/times.h-data: Likewise.
3204         * conform/data/sys/types.h-data: Likewise.
3205         * conform/data/sys/uio.h-data: Likewise.
3206         * conform/data/sys/un.h-data: Likewise.
3207         * conform/data/sys/utsname.h-data: Likewise.
3208         * conform/data/sys/wait.h-data: Likewise.
3209         * conform/data/syslog.h-data: Likewise.
3210         * conform/data/tar.h-data: Likewise.
3211         * conform/data/termios.h-data: Likewise.
3212         * conform/data/utime.h-data: Likewise.
3213         * conform/data/utmpx.h-data: Likewise.
3214         * conform/data/varargs.h-data: Likewise.
3215         * conform/data/wchar.h-data: Likewise.
3216         * conform/data/wctype.h-data: Likewise.
3217         * conform/data/wordexp.h-data: Likewise.
3218
3219         * include/stropts.h: New file.
3220         * include/uchar.h: New file.
3221         * include/aio.h: Changes to allow conformtest.pl to use the headers.
3222         * include/assert.h: Likewise.
3223         * include/ctype.h: Likewise.
3224         * include/dirent.h: Likewise.
3225         * include/dlfcn.h: Likewise.
3226         * include/fcntl.h: Likewise.
3227         * include/fnmatch.h: Likewise.
3228         * include/glob.h: Likewise.
3229         * include/grp.h: Likewise.
3230         * include/libio.h: Likewise.
3231         * include/locale.h: Likewise.
3232         * include/math.h: Likewise.
3233         * include/net/if.h: Likewise.
3234         * include/netdb.h: Likewise.
3235         * include/netinet/in.h: Likewise.
3236         * include/pthread.h: Likewise.
3237         * include/pwd.h: Likewise.
3238         * include/regex.h: Likewise.
3239         * include/sched.h: Likewise.
3240         * include/search.h: Likewise.
3241         * include/setjmp.h: Likewise.
3242         * include/signal.h: Likewise.
3243         * include/stdio.h: Likewise.
3244         * include/stdlib.h: Likewise.
3245         * include/string.h: Likewise.
3246         * include/sys/cdefs.h: Likewise.
3247         * include/sys/mman.h: Likewise.
3248         * include/sys/msg.h: Likewise.
3249         * include/sys/resource.h: Likewise.
3250         * include/sys/select.h: Likewise.
3251         * include/sys/socket.h: Likewise.
3252         * include/sys/stat.h: Likewise.
3253         * include/sys/statvfs.h: Likewise.
3254         * include/sys/time.h: Likewise.
3255         * include/sys/times.h: Likewise.
3256         * include/sys/uio.h: Likewise.
3257         * include/sys/utsname.h: Likewise.
3258         * include/sys/wait.h: Likewise.
3259         * include/termios.h: Likewise.
3260         * include/time.h: Likewise.
3261         * include/ulimit.h: Likewise.
3262         * include/unistd.h: Likewise.
3263         * include/utime.h: Likewise.
3264         * include/wchar.h: Likewise.
3265         * include/wctype.h: Likewise.
3266         * include/wordexp.h: Likewise.
3267
3268         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
3269
3270         * time/time.h: TIME_UTC must be a macro.
3271         Make timespec_get available for ISO C11 only as well.
3272
3273 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
3274
3275         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
3276         Reported by Peng Haitao <penght@cn.fujitsu.com>.
3277
3278 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
3279
3280         * configure.in: Use -o not -a in test for unsupported multi-arch.
3281
3282 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
3283
3284         * manual/texinfo.tex: Update to version 2012-01-19.16.
3285
3286 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
3287
3288         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
3289
3290 2012-02-24  Roland McGrath  <roland@hack.frob.com>
3291
3292         [BZ #13738]
3293         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
3294         * manual/fdl-1.3.texi: New file.
3295         * manual/fdl-1.1.texi: File removed.
3296
3297         [BZ #13738]
3298         * manual/libc.texinfo (FDL_VERSION): New @set.
3299         Use it for mention of FDL in cover text.
3300         (Documentation License): Use it in @include file name.
3301
3302 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
3303             Roland McGrath  <roland@hack.frob.com>
3304
3305         [BZ #5461]
3306         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
3307         not LONG_LONG_MAX and LONG_LONG_MIN.
3308         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
3309         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
3310         name.
3311         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
3312
3313 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
3314
3315         [BZ #2547]
3316         [BZ #11365]
3317         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
3318         manipulate bits before adding and subtracting TWO23[sx].
3319         * math/libm-test.inc (nearbyint_test): Add more tests.
3320
3321 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
3322
3323         [BZ #2548]
3324         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
3325         bits before adding and subtracting TWO23[sx].
3326         * math/libm-test.inc (rint_test): Add more tests.
3327         (rint_test_tonearest): Likewise.
3328         (rint_test_towardzero): Likewise.
3329         (rint_test_downward): Likewise.
3330         (rint_test_upward: Likewise.
3331
3332 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
3333
3334         [BZ #10110]
3335         * include/stdc-predef.h: New file.  Extracted from features.h.
3336         * include/features.h: Include stdc-predef.h.
3337         * Makefile (headers): Add stdc-predef.h.
3338         * CONFORMANCE (Compiler limitations): Update.
3339
3340 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
3341
3342         * manual/libc.texinfo (VERSION, UPDATED): Revert.
3343
3344 2012-02-21  David S. Miller  <davem@davemloft.net>
3345
3346         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
3347         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
3348
3349 2012-02-20  David S. Miller  <davem@davemloft.net>
3350
3351         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
3352         using a normal save/restore sequence, rather than allocating a
3353         dummy stack frame just to store a frame pointer and restore.
3354         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
3355
3356 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
3357
3358         * manual/install.texi: Fix stray word in line-wrapped comment.
3359
3360 2012-02-20  David S. Miller  <davem@davemloft.net>
3361
3362         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
3363         both binutils and gcc support GOTDATA.
3364
3365         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
3366         "rd %pc" in the PIC register setup sequences.
3367
3368         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
3369         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
3370         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
3371         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
3372         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
3373         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
3374         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
3375         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
3376         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
3377         (SYSCALL_ERROR_HANDLER): Likewise.
3378         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
3379         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
3380         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
3381         (SYSCALL_ERROR_HANDLER): Likewise.
3382
3383         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
3384         (HAVE_GCC_GOTDATA): New.
3385         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
3386         relocation support in both binutils and gcc.
3387         * sysdeps/sparc/elf/configure: Regenerate.
3388
3389         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
3390         * sysdeps/sparc/sparc32/elf/configure: Delete.
3391         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
3392         * sysdeps/sparc/sparc64/elf/configure: Delete.
3393         * sysdeps/sparc/elf/configure.in: New file.
3394         * sysdeps/sparc/elf/configure: Generate.
3395
3396         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
3397         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
3398         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
3399         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
3400         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
3401
3402 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
3403
3404         * manual/install.texi: Do not mention specific glibc version
3405         numbers.
3406         * manual/libc.texinfo (VERSION, UPDATED): Update.
3407         (@copying): Use @copyright{} and range of years.
3408
3409 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
3410
3411         [BZ #13695]
3412         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
3413         [crti.S not in sysdirs] (generated): Do not append.
3414         [crti.S not in sysdirs] (omit-deps): Likewise.
3415         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
3416         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
3417         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
3418         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
3419         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
3420         Likewise.
3421         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
3422         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
3423         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
3424         * csu/defs.awk: Remove file.
3425         * sysdeps/generic/initfini.c: Likewise.
3426         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
3427         variable.
3428         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
3429         Likewise.
3430
3431 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
3432
3433         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
3434         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
3435         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
3436         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
3437         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
3438         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
3439         <bits/epoll.h>.
3440         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
3441         (__EPOLL_PACKED): Define to empty if not defined by
3442         <bits/epoll.h>.
3443         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
3444         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3445         bits/epoll.h.
3446
3447 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
3448
3449         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
3450         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
3451         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
3452         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
3453         <bits/timerfd.h>.
3454         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
3455         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3456         bits/timerfd.h.
3457
3458 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
3459
3460         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
3461         in C locale.
3462         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
3463         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
3464         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
3465         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3466
3467 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
3468
3469         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
3470         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
3471
3472 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
3473
3474         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
3475         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
3476         defined.
3477         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
3478         Likewise.
3479         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
3480         entry for 2.16.
3481
3482 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
3483
3484         * math/w_acos.c: Use non-signaling floating-point comparisons.
3485         * math/w_acosf.c: Likewise.
3486         * math/w_acosh.c: Likewise.
3487         * math/w_acoshf.c: Likewise.
3488         * math/w_acoshl.c: Likewise.
3489         * math/w_acosl.c: Likewise.
3490         * math/w_asin.c: Likewise.
3491         * math/w_asinf.c: Likewise.
3492         * math/w_asinl.c: Likewise.
3493         * math/w_atanh.c: Likewise.
3494         * math/w_atanhf.c: Likewise.
3495         * math/w_atanhl.c: Likewise.
3496         * math/w_exp2.c: Likewise.
3497         * math/w_exp2f.c: Likewise.
3498         * math/w_exp2l.c: Likewise.
3499         * math/w_j0.c: Likewise.
3500         * math/w_j0f.c: Likewise.
3501         * math/w_j0l.c: Likewise.
3502         * math/w_j1.c: Likewise.
3503         * math/w_j1f.c: Likewise.
3504         * math/w_j1l.c: Likewise.
3505         * math/w_jn.c: Likewise.
3506         * math/w_jnf.c: Likewise.
3507         * math/w_log.c: Likewise.
3508         * math/w_log10.c: Likewise.
3509         * math/w_log10f.c: Likewise.
3510         * math/w_log10l.c: Likewise.
3511         * math/w_log2.c: Likewise.
3512         * math/w_log2f.c: Likewise.
3513         * math/w_log2l.c: Likewise.
3514         * math/w_logf.c: Likewise.
3515         * math/w_logl.c: Likewise.
3516         * math/w_sqrt.c: Likewise.
3517         * math/w_sqrtf.c: Likewise.
3518         * math/w_sqrtl.c: Likewise.
3519         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
3520         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
3521         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
3522         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
3523         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
3524
3525 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
3526
3527         [BZ #9739]
3528         * manual/string.texi (strnlen): Use correct parameter name in
3529         equivalent expression.
3530
3531 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
3532
3533         [BZ #11174]
3534         * manual/users.texi (seteuid): Consistently use neweuid for
3535         argument name.
3536
3537 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
3538
3539         [BZ #13704]
3540         * manual/nss.texi (Services in the NSS configuration): Correct
3541         list of services in example configuration file.
3542
3543 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
3544
3545         [BZ #11322]
3546         * manual/arith.texi: Remove statements about negative zero
3547         behaving identically to zero.
3548
3549 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
3550
3551         [BZ #5993]
3552         * manual/install.texi: Do not document upgrading from libc5.
3553
3554 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
3555
3556         [BZ #4596]
3557         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
3558
3559 2012-02-18  David S. Miller  <davem@davemloft.net>
3560
3561         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
3562         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
3563         %o7 across the call.
3564         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
3565         instead.
3566         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
3567         SETUP_PIC_REG_LEAF.
3568         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
3569         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
3570         * sysdeps/sparc/crtn.S: Likewise.
3571
3572 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
3573
3574         * aout/Makefile: Remove.
3575
3576 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
3577
3578         [BZ #13058]
3579         * manual/examples/argp-ex1.c (main): Format definition in GNU
3580         style.
3581         * manual/examples/argp-ex2.c (main): Likewise.
3582         * manual/examples/argp-ex3.c (main): Likewise.
3583         * manual/examples/argp-ex4.c (main): Likewise.
3584         * manual/examples/longopt.c (main): Use new-style prototype
3585         definition.
3586         * manual/examples/strncat.c (main): Specify return type and use
3587         (void) for arguments.
3588         * manual/examples/subopt.c (main): Use char **argv argument.
3589
3590 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
3591
3592         [BZ #5077]
3593         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
3594         rounding modes.
3595
3596 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
3597
3598         [BZ #6907]
3599         * manual/string.texi (strchr): Change when strchrnul is
3600         recommended.
3601
3602 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
3603
3604         [BZ #174]
3605         * manual/locale.texi (setlocale): Document LOCPATH.
3606
3607 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
3608
3609         [BZ #10210]
3610         * manual/process.texi (execle): Move @dots{} before last argument.
3611
3612 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
3613
3614         [BZ #12047]
3615         * manual/charset.texi (Generic Charset Conversion): Fix typo
3616         (LC_TYPE -> LC_CTYPE).
3617
3618 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
3619
3620         [BZ #5805]
3621         * manual/arith.texi (scalbn): Use @var{} on parameter names.
3622         (scalbnf): Likewise.
3623         (scalbnl): Likewise.
3624         (scalbln): Likewise.
3625         (scalblnf): Likewise.
3626         (scalblnl): Likewise.
3627         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
3628         (vwarnx): Likewise.
3629         (verr): Likewise.
3630         (verrx): Likewise.
3631         * manual/filesys.texi (telldir): Use braces around return type.
3632         * manual/llio.texi (mmap): Add space after comma.
3633         (mmap64): Likewise.
3634         * manual/math.texi (jn): Use @var{} on parameter names.
3635         (jnf): Likewise.
3636         (jnl): Likewise.
3637         (yn): Likewise.
3638         (ynf): Likewise.
3639         (ynl): Likewise.
3640         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
3641         line.
3642         * manual/resource.texi (ulimit): Use @dots{} instead of literal
3643         "...".
3644         (sched_get_priority_min): Remove semicolon on @deftypefun line.
3645         (sched_get_priority_max): Likewise.
3646         * manual/signal.texi (sigvec): Add space after comma.
3647         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
3648         names.
3649         (if_indextoname): Likewise.
3650         (if_freenameindex): Likewise.
3651         (sendto): Use ',' instead of '.' in prototype.
3652         * manual/startup.texi (syscall): Use @dots{} instead of literal
3653         "...".
3654         * manual/stdio.texi (__fpending): Separate initial words of
3655         paragraph from @deftypefun line.
3656         * manual/syslog.texi (syslog): Use @dots{} instead of literal
3657         "...".
3658         (vsyslog): Use @var{} on parameter names.
3659         * manual/terminal.texi (stty): Use @var{} on parameter names.
3660         * manual/users.texi (getutmp): Use @var{} on parameter names.
3661         (getutmpx): Likewise.
3662
3663 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
3664
3665         [BZ #6884]
3666         * manual/stdio.texi (fopen): Fix typos in description of
3667         ",ccs=STRING".
3668
3669 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
3670
3671         [BZ #4026]
3672         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
3673         get clock_id definition.
3674
3675 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
3676
3677         [BZ #4822]
3678         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
3679         (madvise): Cast every argument to void on its own.
3680
3681 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
3682
3683         [BZ #9902]
3684         * manual/startup.texi (Exit Status): Fix typo.
3685
3686 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
3687
3688         [BZ #10140]
3689         * manual/examples/argp-ex1.c: Include <stdlib.h>.
3690         * manual/examples/argp-ex2.c: Likewise.
3691         * manual/examples/argp-ex3.c: Likewise.
3692
3693 2012-02-16  Richard Henderson  <rth@redhat.com>
3694
3695         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
3696         * sysdeps/s390/s390-32/initfini.c: Remove.
3697         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
3698         * sysdeps/s390/s390-64/initfini.c: Remove.
3699
3700 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3701
3702         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
3703         compiler output for sysdeps/generic/initfini.c.
3704         * sysdeps/sh/elf/initfini.c: Remove file.
3705
3706 2012-02-16  David S. Miller  <davem@davemloft.net>
3707
3708         [BZ #11494]
3709         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
3710
3711         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
3712         * sysdeps/sparc/crti.S: New file.
3713         * sysdeps/sparc/crtn.S: New file.
3714         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
3715         * sysdeps/sparc/sparc64/Makefile: Likewise.
3716
3717 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
3718
3719         [BZ #3335]
3720         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
3721
3722 2012-02-15  Roland McGrath  <roland@hack.frob.com>
3723
3724         [BZ #4822]
3725         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
3726
3727         * mach/devstream.c (cookie_io_functions_t): Macro removed.
3728         (write, read, close): Likewise.
3729         Patch by Aurelien Jarno <aurelien@aurel32.net>.
3730
3731 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
3732
3733         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
3734         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
3735         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
3736         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
3737         <bits/signalfd.h>.
3738         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
3739         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3740         bits/signalfd.h.
3741
3742 2012-02-14  Marek Polacek  <polacek@redhat.com>
3743
3744         * sysdeps/x86_64/crti.S: New file.
3745         * sysdeps/x86_64/crtn.S: New file.
3746         * sysdeps/x86_64/elf/initfini.c: Remove file.
3747
3748 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
3749
3750         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
3751         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
3752         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
3753         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
3754         <bits/inotify.h>.
3755         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
3756         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3757         bits/inotify.h.
3758
3759 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
3760
3761         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
3762         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
3763         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
3764         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
3765         <bits/eventfd.h>.
3766         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
3767         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3768         bits/eventfd.h.
3769
3770 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
3771
3772         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
3773         __feraiseexcept instead of feraiseexcept.
3774
3775         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
3776         nanosleep invocations.
3777         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
3778         strings, and add error checking for a nanosleep invocations.
3779
3780 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
3781
3782         Replace FSF snail mail address with URLs, as per GNU coding standards.
3783         Most of the snail mail addresses were wrong anyway, and omitting
3784         them makes the source code easier to maintain.  Almost all of the
3785         changes are to license notices and to locale LC_IDENTIFICATION
3786         addresses, except for this one:
3787         * manual/libc.texinfo: In "Published by", give the FSF's URL,
3788         not its snail mail address.
3789
3790 2012-02-09  Richard Henderson  <rth@twiddle.net>
3791
3792         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
3793         of kernel-features.h.
3794
3795         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
3796
3797 2012-02-08  Marek Polacek  <polacek@redhat.com>
3798
3799         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
3800         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
3801         * sysdeps/gnu/_G_config.h: Likewise.
3802         * sysdeps/generic/_G_config.h: Likewise.
3803
3804 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
3805
3806         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
3807         tests.
3808         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3809
3810         * sysdeps/powerpc/powerpc32/crti.S: New file.
3811         * sysdeps/powerpc/powerpc32/crtn.S: New file.
3812         * sysdeps/powerpc/powerpc64/crti.S: New file.
3813         * sysdeps/powerpc/powerpc64/crtn.S: New file.
3814
3815         * Makeconfig (have-initfini): Don't set.
3816         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
3817         * configure.in (nopic_initfini): Don't substitute.
3818         * config.h.in (HAVE_INITFINI): Don't #undef.
3819         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
3820         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
3821
3822 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
3823
3824         Support crti.S and crtn.S provided directly by architectures.
3825         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
3826         [crti.S in sysdirs] (omit-deps): Likewise.
3827         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
3828         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
3829         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
3830         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
3831         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
3832         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
3833         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
3834         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
3835         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
3836         compiler output for sysdeps/generic/initfini.c.
3837         * sysdeps/i386/elf/Makefile: Remove file.
3838         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
3839
3840 2012-02-07  Marek Polacek  <polacek@redhat.com>
3841
3842         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
3843         * sysdeps/gnu/_G_config.h: Likewise.
3844         * sysdeps/mach/hurd/_G_config.h: Likewise.
3845
3846 2012-02-07  Marek Polacek  <polacek@redhat.com>
3847
3848         * math/Makefile (tests): Add tst-CMPLX2.
3849         * math/tst-CMPLX2.c: New file.
3850
3851 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
3852
3853         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
3854
3855         * math/libm-test.inc (jn_test): Add missing L suffix.
3856
3857 2012-02-06  Marek Polacek  <polacek@redhat.com>
3858
3859         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
3860         * sysdeps/i386/fpu/e_powf.S: Likewise.
3861         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
3862         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
3863         * sysdeps/i386/fpu/e_acosh.S: Likewise.
3864         * sysdeps/i386/fpu/e_pow.S: Likewise.
3865         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
3866         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
3867         * sysdeps/i386/fpu/s_expm1.S: Likewise.
3868         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
3869         * sysdeps/i386/fpu/e_log2.S: Likewise.
3870         * sysdeps/i386/fpu/e_log2l.S: Likewise.
3871         * sysdeps/i386/fpu/e_scalb.S: Likewise.
3872         * sysdeps/i386/fpu/e_powl.S: Likewise.
3873         * sysdeps/i386/fpu/s_log1p.S: Likewise.
3874         * sysdeps/i386/fpu/e_log10f.S: Likewise.
3875         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
3876         * sysdeps/i386/fpu/e_logl.S: Likewise.
3877         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
3878         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
3879         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
3880         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
3881         * sysdeps/i386/fpu/e_log2f.S: Likewise.
3882         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
3883         * sysdeps/i386/fpu/e_log.S: Likewise.
3884         * sysdeps/i386/fpu/s_cexp.S: Likewise.
3885         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
3886         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
3887         * sysdeps/i386/fpu/e_logf.S: Likewise.
3888         * sysdeps/i386/fpu/e_log10l.S: Likewise.
3889         * sysdeps/i386/fpu/e_atanh.S: Likewise.
3890         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
3891         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
3892         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
3893         * sysdeps/i386/fpu/e_log10.S: Likewise.
3894         * sysdeps/i386/fpu/s_frexp.S: Likewise.
3895         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
3896         * sysdeps/i386/fpu/s_asinh.S: Likewise.
3897         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
3898         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
3899         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
3900         * sysdeps/i386/asm-syntax.h: Likewise.
3901         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
3902         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
3903         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
3904         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
3905         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
3906         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
3907         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
3908         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
3909         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
3910         * sysdeps/powerpc/sysdep.h: Likewise.
3911         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
3912         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
3913
3914 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
3915
3916         [BZ #411]
3917         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
3918
3919 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
3920
3921         * sysdeps/i386/sysdep.h: Include <features.h>.
3922         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
3923         version.
3924
3925 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
3926
3927         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
3928         Define.
3929         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
3930         LOAD_PIC_REG_STR.
3931
3932 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
3933
3934         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
3935         (SETUP_PIC_REG): Use GET_PC_THUNK.
3936         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
3937         macro.
3938
3939 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
3940
3941         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
3942         for non-PIC compilation.
3943         (SETUP_PIC_REG): Add .p2align directive.
3944         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
3945         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
3946         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
3947         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
3948         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
3949         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
3950         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
3951         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
3952         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
3953         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
3954         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
3955         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
3956         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
3957         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
3958         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
3959         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
3960         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
3961         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
3962         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
3963         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
3964         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
3965         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
3966         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
3967         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
3968         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
3969         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
3970         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
3971         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
3972         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
3973         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
3974         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
3975         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
3976         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
3977         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
3978         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
3979         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
3980         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
3981         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
3982         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
3983         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
3984         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
3985
3986 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
3987
3988         * math/tst-CMPLX.c: Include <stdio.h>.
3989
3990 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
3991
3992         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
3993         float.
3994         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
3995         * sysdeps/sparc/bits/mathdef.h: Likewise.
3996
3997 2012-01-31  Marek Polacek  <polacek@redhat.com>
3998
3999         * libio/libio.h: Don't define _PARAMS.
4000         * locale/programs/config.h: Don't define PARAMS.
4001         * stdlib/strtol_l.c: Likewise.
4002         (__strtol_l): Remove PARAMS from the prototype.
4003
4004 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
4005
4006         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
4007         names.  Just use the correct names.  Remove unnecessary wrapper
4008         functions.
4009         * malloc/arena.c: Likewise.
4010         * malloc/hooks.c: Likewise.
4011
4012         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
4013         ARENA_TEST says not to.  Simplify test for creation of a new arena.
4014         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
4015
4016 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
4017
4018         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
4019         into tail calls.
4020         (update_get_addr): New function.
4021         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
4022         GET_ADDR_MODULE parameter.
4023
4024 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
4025
4026         * crypt/cert.c: Remove __STDC__ conditionals.
4027         * crypt/crypt-entry.c: Likewise.
4028         * crypt/crypt_util.c: Likewise.
4029         * libio/filedoalloc.c: Likewise.
4030         * libio/fileops.c: Likewise.
4031         * libio/genops.c: Likewise.
4032         * libio/iofclose.c: Likewise.
4033         * libio/iofdopen.c: Likewise.
4034         * libio/iofopen.c: Likewise.
4035         * libio/iofopen64.c: Likewise.
4036         * libio/iogetdelim.c: Likewise.
4037         * libio/iopopen.c: Likewise.
4038         * libio/obprintf.c: Likewise.
4039         * libio/oldfileops.c: Likewise.
4040         * libio/oldiofclose.c: Likewise.
4041         * libio/oldiofdopen.c: Likewise.
4042         * libio/oldiofopen.c: Likewise.
4043         * libio/oldiopopen.c: Likewise.
4044         * libio/wfiledoalloc.c: Likewise.
4045         * libio/wgenops.c: Likewise.
4046         * locale/programs/xmalloc.c: Likewise.
4047         * misc/syslog.c: Likewise.
4048         * stdio-common/xbug.c: Likewise.
4049         * string/memchr.c: Likewise.
4050         * string/memcmp.c: Likewise.
4051         * string/memrchr.c: Likewise.
4052         * string/rawmemchr.c: Likewise.
4053         * sysdeps/posix/getcwd.c: Likewise.
4054         * time/strftime_l.c: Likewise.
4055
4056 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
4057
4058         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
4059         * config.make.in (config-cflags-sse2avx): Define.
4060         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
4061         Fix typo.
4062
4063 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
4064
4065         * scripts/config.guess: Update from upstream config git repository.
4066         * scripts/config.sub: Likewise.
4067
4068 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
4069
4070         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
4071         (EM_NUM): Update.
4072         (R_TILEPRO_*, R_TILEGX_*): New macros.
4073
4074         * scripts/firstversions.awk: Fix bug in version range handling.
4075
4076         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
4077
4078         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
4079
4080         * include/sys/epoll.h: New file.
4081         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
4082         libc_hidden_def.
4083
4084 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
4085
4086         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
4087         Avoid unnecessary __WORDSIZE == 64 test.
4088         (fmaxf): Use VEX format if possible.
4089         (fmax): Likewise.
4090         (fminf): Likewise.
4091         (fmin): Likewise.
4092
4093         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
4094         * math/math_private.h: Remove libc_fegetround* and
4095         libc_fesetround*.
4096         * sysdeps/i386/configure.in: Check for -msse2avx.
4097         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
4098         also if SSE2AVX is defined.
4099         Remove libc_fegetround* and libc_fesetround*.
4100         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
4101         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
4102         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
4103         of HAS_YMM_USABLE.
4104         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
4105         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
4106         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
4107         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
4108         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
4109
4110         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
4111
4112 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4113
4114         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
4115         size is not set.
4116         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
4117
4118 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
4119
4120         [BZ #13618]
4121         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
4122         relocation.
4123         * Makeconfig (libm): Define.
4124         * elf/Makefile: Add rules to build and run tst-relsort1.
4125         * elf/tst-relsort1.c: New file.
4126         * elf/tst-relsort1mod1.c: New file.
4127         * elf/tst-relsort1mod2.c: New file.
4128
4129 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
4130
4131         * math/s_ldexp.c: Remove __STDC__ conditionals.
4132         * math/s_ldexpf.c: Likewise.
4133         * math/s_ldexpl.c: Likewise.
4134         * math/s_nextafter.c: Likewise.
4135         * math/s_nexttowardf.c: Likewise.
4136         * math/s_significand.c: Likewise.
4137         * math/s_significandf.c: Likewise.
4138         * math/s_significandl.c: Likewise.
4139         * math/w_jnl.c: Likewise.
4140         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
4141         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
4142         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
4143         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
4144         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
4145         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
4146         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
4147         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
4148         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
4149         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
4150         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
4151         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
4152         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
4153         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
4154         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
4155         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
4156         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
4157         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
4158         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
4159         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
4160         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
4161         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
4162         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
4163         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
4164         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
4165         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
4166         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
4167         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
4168         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
4169         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
4170         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
4171         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
4172         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
4173         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
4174         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
4175         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
4176         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
4177         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
4178         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
4179         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
4180         * sysdeps/ieee754/k_standard.c: Likewise.
4181         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
4182         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
4183         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
4184         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
4185         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
4186         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
4187         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
4188         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
4189         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
4190         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
4191         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
4192         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
4193         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
4194         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
4195         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
4196         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
4197         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
4198         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
4199         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
4200         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
4201         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
4202         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
4203         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
4204         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
4205         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
4206         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
4207         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
4208         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
4209         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
4210         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
4211         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
4212         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
4213         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
4214         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
4215         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
4216         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
4217         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
4218         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
4219         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
4220         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
4221         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
4222         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
4223         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
4224         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
4225         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
4226         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
4227         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
4228         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
4229         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
4230         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
4231         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
4232         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
4233         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
4234         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
4235         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
4236         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
4237         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
4238         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
4239         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
4240         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
4241         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
4242         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
4243         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
4244         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
4245         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
4246         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
4247         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
4248         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
4249         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
4250         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
4251         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
4252         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
4253         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
4254         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
4255         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
4256         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
4257         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
4258         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
4259         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
4260         * sysdeps/ieee754/s_matherr.c: Likewise.
4261         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
4262         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
4263         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
4264         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
4265
4266 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
4267
4268         * crypt/md5.h: Remove __STDC__ conditionals.
4269         * libio/libioP.h: Likewise.
4270         * locale/programs/config.h: Likewise.
4271         * sysdeps/generic/sysdep.h: Likewise.
4272         * sysdeps/i386/asm-syntax.h: Likewise.
4273         * sysdeps/s390/asm-syntax.h: Likewise.
4274         * sysdeps/unix/sysdep.h: Likewise.
4275         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
4276         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
4277
4278 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
4279
4280         * libio/libio.h: Remove __STDC__ conditionals.
4281         * malloc/obstack.h: Likewise.
4282         * math/complex.h: Likewise.
4283         * math/math.h: Likewise.
4284         * sysdeps/generic/_G_config.h: Likewise.
4285         * sysdeps/gnu/_G_config.h: Likewise.
4286         * sysdeps/mach/hurd/_G_config.h: Likewise.
4287         * sysdeps/powerpc/bits/mathdef.h: Likewise.
4288         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
4289         * sysdeps/sparc/bits/mathdef.h: Likewise.
4290
4291 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
4292
4293         [BZ #13583]
4294         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
4295         Clean up HAS_* macros.
4296         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
4297         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
4298         possible.
4299         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
4300         HAS_AVX.
4301         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
4302         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
4303         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
4304         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
4305         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
4306
4307 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
4308
4309         * elf/tst-unique3.cc (gets): Remove declaration.
4310         * elf/tst-unique3lib.cc (gets): Likewise.
4311         * elf/tst-unique3lib2.cc (gets): Likewise.
4312         * elf/tst-unique4.cc (gets): Likewise.
4313
4314 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
4315
4316         * include/stdio.h: Add C++ protection.  Add gets declarations and
4317         definitions.
4318         * debug/tst-chk1.c: Don't declare gets here.
4319         * stdio-common/tst-gets.c: Likewise.
4320
4321 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
4322
4323         * posix/glob: Remove directory.
4324
4325 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
4326
4327         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
4328
4329 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
4330
4331         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
4332         of the non-standard EPFNOSUPPORT.
4333
4334 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4335
4336         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
4337         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
4338         ANYWHERE set to 1 only on KERN_NO_SPACE error.
4339
4340 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
4341
4342         * wcsmbs/uchar.h: Test __STDC_VERSION__.
4343
4344 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
4345
4346         * nscd/aicache.c (addhstaiX): Do not cache negative results of
4347         transient errors.
4348         * nscd/grpcache.c (cache_addgr): Likewise.
4349         * nscd/hstcache.c (cache_addhst): Likewise.
4350         * nscd/initgrcache.c (addinitgroupsX): Likewise.
4351         * nscd/pwdcache.c (cache_addpw): Likewise.
4352         * nscd/servicescache.c (cache_addserv): Likewise.
4353
4354 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
4355
4356         * malloc/malloc.c: Various cleanups.
4357         * malloc/hooks.c: Likewise.
4358
4359         * stdlib/Makefile (tests): Add bug-fmtmsg1.
4360         * stdlib/bug-fmtmsg1.c: New file.
4361
4362         * stdlib/fmtmsg.c (init): Add missing unlock.
4363         Patch by Peng Haitao <penght@cn.fujitsu.com>.
4364
4365 2012-01-12  Marek Polacek  <polacek@redhat.com>
4366
4367         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
4368         and _GNU_SOURCE.
4369
4370 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
4371
4372         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
4373         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
4374         macro to ensure uniqueness of label name.
4375         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
4376         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
4377
4378 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
4379
4380         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
4381
4382         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
4383         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
4384         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
4385         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
4386
4387 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
4388
4389         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
4390
4391         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
4392         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
4393         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
4394
4395         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
4396
4397         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
4398         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
4399         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
4400         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
4401
4402         * math/bits/math-finite.h: Add ldexp support.
4403
4404 2012-01-10  Marek Polacek  <polacek@redhat.com>
4405
4406         * locale/programs/localedef.h (show_archive_content): Add noreturn
4407         attribute.
4408
4409 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
4410
4411         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
4412
4413 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
4414
4415         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
4416
4417         * io/Makefile (headers): Add bits/poll2.h.
4418
4419 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
4420
4421         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
4422         typo #include statement.
4423
4424 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
4425
4426         * include/sys/cdefs.h: Define __attribute_alloc_size.
4427         * catgets/gencat.c: Add alloc_size attribute and apply consistently
4428         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
4429         * elf/pldd.c: Likewise.
4430         * iconv/iconv_charmap.c: Likewise.
4431         * iconv/iconvconfig.c: Likewise.
4432         * iconv/strtab.c: Likewise.
4433         * locale/programs/locale.c: Likewise.
4434         * locale/programs/localedef.h: Likewise.
4435         * locale/programs/simple-hash.c: Likewise.
4436         * nscd/nscd.h: Likewise.
4437         * nss/makedb.c: Likewise.
4438         * sysdeps/generic/ldconfig.h: Likewise.
4439         * locale/programs/localedef.c: Remove xmalloc prototype.
4440         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
4441
4442 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
4443
4444         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
4445         appropriate.
4446
4447 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
4448
4449         * math/Makefile (tests): Add tst-CMPLX.
4450         * math/tst-CMPLX.c: New file.
4451
4452         * math/complex.h (CMPLXL): Fix typo.
4453
4454         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
4455         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
4456         GLIBC_2.16.
4457         * debug/tst-chk1.c: Add poll and ppoll tests.
4458         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
4459         * include/sys/poll.h: Add hidden proto for ppoll.
4460         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
4461         * sysdeps/mach/hurd/ppoll.c: Likewise.
4462         * io/ppoll.c: Likewise.
4463         * debug/poll_chk.c: New file.
4464         * debug/ppoll_chk.c: New file.
4465         * include/bits/poll2.h: New file.
4466         * io/bits/poll2.h: New file.
4467
4468         [BZ #1350]
4469         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
4470
4471         * configure.in: static is always set to yes.  Remove.
4472         * config.make.in: Don't set build-static.
4473         * Makeconfig: Remove use of build-static.
4474         * dlfcn/Makefile: Likewise.
4475         * elf/Makefile: Likewise.
4476         * math/Makefile: Likewise.
4477         * misc/Makefile: Likewise.
4478         * nptl/Makefile: Likewise.
4479         * sysdeps/mach/hurd/Makefile: Likewise.
4480
4481         * configure.in: PWD_P is not used anymore.
4482         * config.make.in: Remove PWD_P entry.
4483
4484         * configure.in: Remove last remnants of RANLIB.
4485         No need to check for signed size_t anymore.
4486         Don't set libc_commonpagesize and libc_relro_required here for Alpha
4487         and IA-64.
4488         Remove __builtin_expect test because we require at least gcc 3.4.
4489         * aclocal.m4: Likewise.
4490
4491         * wcsmbs/mbrtoc16.c: Implement using towc function.
4492         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
4493         * wcsmbs/wcsmbsload.c: Likewise.
4494         * iconv/gconv_simple.c: Likewise.
4495         * iconv/gconv_int.h: Likewise.
4496         * iconv/gconv_builtin.h: Likewise.
4497         * iconv/iconv_prog.c: Remove CHAR16 handling.
4498
4499         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
4500
4501         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
4502
4503         * configure.in: Remove --with-elf and --enable-bounded options.
4504         Dont set base_machine for ia64.  More non-ELF conditions removed.
4505         Remove testing and setting of leading underscore information.
4506         * config.make.in (build-bounded): Set to no.
4507         * config.h.in: Remove NO_UNDERSCORES entry.
4508         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
4509         them.
4510         * csu/start.c: Remove !NO_UNDERSCORE code.
4511         * locale/localeinfo.h: Likewise.
4512         * sysdeps/generic/machine-gmon.h: Likewise.
4513         * sysdeps/generic/sysdep.h: Likewise.
4514         * sysdeps/i386/sysdep.h: Likewise.
4515         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
4516         * sysdeps/mach/sysdep.h: Likewise.
4517         * sysdeps/s390/s390-32/sysdep.h: Likewise.
4518         * sysdeps/s390/s390-64/sysdep.h: Likewise.
4519         * sysdeps/sh/sysdep.h: Likewise.
4520         * sysdeps/sparc/sparc32/alloca.S: Likewise.
4521         * sysdeps/unix/i386/sysdep.S: Likewise.
4522         * sysdeps/unix/sparc/start.c: Likewise.
4523         * sysdeps/unix/sparc/sysdep.S: Likewise.
4524         * sysdeps/unix/sparc/sysdep.h: Likewise.
4525         * sysdeps/unix/start.c: Likewise.
4526         * sysdeps/unix/x86_64/sysdep.S: Likewise.
4527         * sysdeps/x86_64/sysdep.h: Likewise.
4528
4529 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
4530
4531         [BZ #13553]
4532         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
4533         for non-gcc.
4534         * argp/argp-fmtstream.h: Use const instead __const.
4535         * argp/argp.h: Likewise.
4536         * assert/assert.h: Likewise.
4537         * bits/fenv.h: Likewise.
4538         * bits/sched.h: Likewise.
4539         * bits/sigset.h: Likewise.
4540         * bits/sigthread.h: Likewise.
4541         * catgets/nl_types.h: Likewise.
4542         * conform/data/pthread.h-data: Likewise.
4543         * crypt/crypt-private.h: Likewise.
4544         * crypt/crypt.h: Likewise.
4545         * crypt/crypt_util.c: Likewise.
4546         * ctype/ctype.h: Likewise.
4547         * debug/execinfo.h: Likewise.
4548         * debug/mbsnrtowcs_chk.c: Likewise.
4549         * debug/mbsrtowcs_chk.c: Likewise.
4550         * debug/wcsnrtombs_chk.c: Likewise.
4551         * debug/wcsrtombs_chk.c: Likewise.
4552         * debug/wcstombs_chk.c: Likewise.
4553         * dirent/dirent.h: Likewise.
4554         * dlfcn/dlfcn.h: Likewise.
4555         * elf/neededtest4.c: Likewise.
4556         * grp/grp.h: Likewise.
4557         * gshadow/gshadow.h: Likewise.
4558         * iconv/gconv.h: Likewise.
4559         * iconv/gconv_int.h: Likewise.
4560         * iconv/gconv_simple.c: Likewise.
4561         * iconv/iconv.h: Likewise.
4562         * iconv/loop.c: Likewise.
4563         * iconv/skeleton.c: Likewise.
4564         * include/aio.h: Likewise.
4565         * include/aliases.h: Likewise.
4566         * include/argz.h: Likewise.
4567         * include/arpa/inet.h: Likewise.
4568         * include/assert.h: Likewise.
4569         * include/dirent.h: Likewise.
4570         * include/dlfcn.h: Likewise.
4571         * include/execinfo.h: Likewise.
4572         * include/fcntl.h: Likewise.
4573         * include/fenv.h: Likewise.
4574         * include/glob.h: Likewise.
4575         * include/grp.h: Likewise.
4576         * include/libintl.h: Likewise.
4577         * include/mntent.h: Likewise.
4578         * include/netdb.h: Likewise.
4579         * include/pwd.h: Likewise.
4580         * include/rpc/netdb.h: Likewise.
4581         * include/sched.h: Likewise.
4582         * include/search.h: Likewise.
4583         * include/shadow.h: Likewise.
4584         * include/signal.h: Likewise.
4585         * include/stdio.h: Likewise.
4586         * include/stdlib.h: Likewise.
4587         * include/string.h: Likewise.
4588         * include/sys/socket.h: Likewise.
4589         * include/sys/stat.h: Likewise.
4590         * include/sys/statfs.h: Likewise.
4591         * include/sys/statvfs.h: Likewise.
4592         * include/sys/syslog.h: Likewise.
4593         * include/sys/time.h: Likewise.
4594         * include/sys/uio.h: Likewise.
4595         * include/time.h: Likewise.
4596         * include/unistd.h: Likewise.
4597         * include/utmp.h: Likewise.
4598         * include/wchar.h: Likewise.
4599         * include/wctype.h: Likewise.
4600         * inet/aliases.h: Likewise.
4601         * inet/arpa/inet.h: Likewise.
4602         * inet/netinet/ether.h: Likewise.
4603         * inet/netinet/in.h: Likewise.
4604         * intl/libintl.h: Likewise.
4605         * io/bits/fcntl2.h: Likewise.
4606         * io/fcntl.h: Likewise.
4607         * io/ftw.h: Likewise.
4608         * io/sys/poll.h: Likewise.
4609         * io/sys/stat.h: Likewise.
4610         * io/sys/statfs.h: Likewise.
4611         * io/sys/statvfs.h: Likewise.
4612         * io/utime.h: Likewise.
4613         * libio/bits/stdio.h: Likewise.
4614         * libio/bits/stdio2.h: Likewise.
4615         * libio/libio.h: Likewise.
4616         * libio/libioP.h: Likewise.
4617         * libio/stdio.h: Likewise.
4618         * locale/lc-ctype.c: Likewise.
4619         * locale/locale.h: Likewise.
4620         * login/utmp.h: Likewise.
4621         * malloc/arena.c: Likewise.
4622         * malloc/malloc.c: Likewise.
4623         * malloc/malloc.h: Likewise.
4624         * malloc/mcheck.c: Likewise.
4625         * malloc/mtrace.c: Likewise.
4626         * math/bits/mathcalls.h: Likewise.
4627         * math/fenv.h: Likewise.
4628         * math/math_private.h: Likewise.
4629         * misc/bits/error.h: Likewise.
4630         * misc/bits/syslog.h: Likewise.
4631         * misc/err.h: Likewise.
4632         * misc/error.h: Likewise.
4633         * misc/fstab.h: Likewise.
4634         * misc/mntent.h: Likewise.
4635         * misc/regexp.h: Likewise.
4636         * misc/search.h: Likewise.
4637         * misc/sgtty.h: Likewise.
4638         * misc/sys/mman.h: Likewise.
4639         * misc/sys/syslog.h: Likewise.
4640         * misc/sys/uio.h: Likewise.
4641         * misc/sys/xattr.h: Likewise.
4642         * misc/ttyent.h: Likewise.
4643         * nis/rpcsvc/ypclnt.h: Likewise.
4644         * nss/nss.h: Likewise.
4645         * posix/bits/unistd.h: Likewise.
4646         * posix/fnmatch.h: Likewise.
4647         * posix/glob.h: Likewise.
4648         * posix/sched.h: Likewise.
4649         * posix/spawn.h: Likewise.
4650         * posix/sys/wait.h: Likewise.
4651         * posix/unistd.h: Likewise.
4652         * posix/wordexp.h: Likewise.
4653         * pwd/pwd.h: Likewise.
4654         * resolv/netdb.h: Likewise.
4655         * resource/sys/resource.h: Likewise.
4656         * rt/aio.h: Likewise.
4657         * rt/bits/mqueue2.h: Likewise.
4658         * rt/mqueue.h: Likewise.
4659         * shadow/shadow.h: Likewise.
4660         * signal/signal.h: Likewise.
4661         * socket/send.c: Likewise.
4662         * socket/sendto.c: Likewise.
4663         * socket/sys/socket.h: Likewise.
4664         * stdio-common/printf.h: Likewise.
4665         * stdlib/bits/stdlib.h: Likewise.
4666         * stdlib/fmtmsg.h: Likewise.
4667         * stdlib/monetary.h: Likewise.
4668         * stdlib/stdlib.h: Likewise.
4669         * stdlib/ucontext.h: Likewise.
4670         * streams/stropts.h: Likewise.
4671         * string/argz.h: Likewise.
4672         * string/bits/string2.h: Likewise.
4673         * string/string.h: Likewise.
4674         * string/strings.h: Likewise.
4675         * sunrpc/rpc/auth.h: Likewise.
4676         * sunrpc/rpc/auth_des.h: Likewise.
4677         * sunrpc/rpc/clnt.h: Likewise.
4678         * sunrpc/rpc/netdb.h: Likewise.
4679         * sunrpc/rpc/pmap_clnt.h: Likewise.
4680         * sunrpc/rpc/xdr.h: Likewise.
4681         * sysdeps/generic/inttypes.h: Likewise.
4682         * sysdeps/generic/net/if.h: Likewise.
4683         * sysdeps/generic/sys/swap.h: Likewise.
4684         * sysdeps/gnu/net/if.h: Likewise.
4685         * sysdeps/gnu/utmpx.h: Likewise.
4686         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
4687         * sysdeps/i386/i486/bits/string.h: Likewise.
4688         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
4689         * sysdeps/s390/bits/string.h: Likewise.
4690         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
4691         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
4692         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
4693         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
4694         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
4695         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
4696         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
4697         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
4698         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
4699         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
4700         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
4701         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
4702         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
4703         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
4704         * sysdeps/unix/sysv/linux/readv.c: Likewise.
4705         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
4706         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
4707         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
4708         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
4709         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
4710         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
4711         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
4712         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
4713         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
4714         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
4715         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
4716         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
4717         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
4718         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
4719         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
4720         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
4721         * sysvipc/sys/ipc.h: Likewise.
4722         * sysvipc/sys/msg.h: Likewise.
4723         * sysvipc/sys/sem.h: Likewise.
4724         * sysvipc/sys/shm.h: Likewise.
4725         * termios/termios.h: Likewise.
4726         * time/sys/time.h: Likewise.
4727         * time/time.h: Likewise.
4728         * wcsmbs/bits/wchar2.h: Likewise.
4729         * wcsmbs/uchar.h: Likewise.
4730         * wcsmbs/wchar.h: Likewise.
4731         * wctype/wctype.h: Likewise.
4732
4733         [BZ #13551]
4734         * Makeconfig: Remove all but ELF support including AIX support.
4735         * Makerules: Likewise.
4736         * config.h.in: Likewise.
4737         * config.make.in: Likewise.
4738         * configure: Likewise.
4739         * configure.in: Likewise.
4740         * csu/Makefile: Likewise.
4741         * csu/version.c: Likewise.
4742         * debug/Makefile: Likewise.
4743         * dlfcn/Makefile: Likewise.
4744         * elf/Makefile: Likewise.
4745         * extra-lib.mk: Likewise.
4746         * iconv/Makefile: Likewise.
4747         * include/libc-symbols.h: Likewise.
4748         * include/shlib-compat.h: Likewise.
4749         * resolv/Makefile: Likewise.
4750         * resolv/res_libc.c: Likewise.
4751         * rt/Makefile: Likewise.
4752         * sysdeps/i386/asm-syntax.h: Likewise.
4753         * sysdeps/i386/sysdep.h: Likewise.
4754         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
4755         * sysdeps/mach/sysdep.h: Likewise.
4756         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
4757         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
4758         * sysdeps/s390/asm-syntax.h: Likewise.
4759         * sysdeps/s390/s390-32/sysdep.h: Likewise.
4760         * sysdeps/s390/s390-64/sysdep.h: Likewise.
4761         * sysdeps/sh/sysdep.h: Likewise.
4762         * sysdeps/unix/sparc/sysdep.h: Likewise.
4763         * sysdeps/wordsize-32/divdi3.c: Likewise.
4764         * sysdeps/x86_64/sysdep.h: Likewise.
4765
4766         * argp/Versions: Remove _argp_unlock_xxx.
4767
4768         [BZ #13559]
4769         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
4770         * abilist/libBrokenLocale.abilist: Likewise.
4771         * abilist/libanl.abilist: Likewise.
4772         * abilist/libc.abilist: Likewise.
4773         * abilist/libcrypt.abilist: Likewise.
4774         * abilist/libdl.abilist: Likewise.
4775         * abilist/libm.abilist: Likewise.
4776         * abilist/libnsl.abilist: Likewise.
4777         * abilist/libpthread.abilist: Likewise.
4778         * abilist/libresolv.abilist: Likewise.
4779         * abilist/librt.abilist: Likewise.
4780         * abilist/libthread_db.abilist: Likewise.
4781         * abilist/libutil.abilist: Likewise.
4782         * abilist/libnss_db.abilist: New file.
4783
4784         * scripts/abilist.awk: Add support for indirect functions.
4785
4786         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
4787
4788         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
4789
4790         * shlib-versions: Remove entries for ports architectures.
4791
4792         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
4793         files in ports.
4794         * elf/stackguard-macros.h: Remove support for IA-64.
4795         * elf/tst-auditmod1.c: Likewise.
4796         * sysdeps/generic/ldsodefs.h: Likewise.
4797
4798         * sysdeps/unix/sysv/linux/configure.in: Ports should define
4799         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
4800         configure files.
4801
4802         [BZ #13552]
4803         * configure.in: Remove --enable-omitfp support.
4804         * FAQ.in: Adjust.
4805         * config.make.in: Likewise.
4806         * Makeconfig: Likewise.
4807         * manual/install.texi: Likewise.
4808
4809         In case anyone cares, the IA-64 architecture could move to ports.
4810         * sysdeps/ia64/*: Removed.
4811         * sysdeps/unix/sysv/linux/ia64/*: Removed.
4812         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
4813
4814         [BZ #13555]
4815         * configure.in: Remove entries for unsupported architectures.
4816
4817         [BZ #13533]
4818         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
4819         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
4820         routines.
4821         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
4822         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
4823         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
4824         fall back to using wcrtomb.
4825         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
4826         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
4827         renaming.
4828         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
4829         * wcsmbs/tst-c16c32-1.c: New file.
4830
4831         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
4832         local variable.
4833
4834         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
4835
4836         * elf/tst-unique3.cc: Add explicit declaration of gets.
4837         * elf/tst-unique3lib.cc: Likewise.
4838         * elf/tst-unique3lib2.cc: Likewise.
4839         * elf/tst-unique4.cc: Likewise.
4840
4841         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
4842
4843 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
4844
4845         [BZ #13566]
4846         * assert/assert.h (static_assert): Don't define for C++.
4847         * libio/stdio.h (gets): Do declare for C++ <= C++11.
4848         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
4849
4850 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
4851
4852         * iconv/loop.c (single loop): Fix assertion in storing of
4853         remaining bytes.
4854
4855         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
4856
4857 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
4858
4859         * posix/getconf.c: Update copyright year.
4860         * nss/getent.c: Likewise.
4861         * nss/makedb.c: Likewise.
4862         * iconv/iconvconfig.c: Likewise.
4863         * iconv/iconv_prog.c: Likewise.
4864         * elf/ldconfig.c: Likewise.
4865         * elf/pldd.c: Likewise.
4866         * elf/sotruss.ksh: Likewise.
4867         * catgets/gencat.c: Likewise.
4868         * csu/version.c: Likewise.
4869         * elf/ldd.bash.in: Likewise.
4870         * elf/sprof.c (print_version): Likewise.
4871         * locale/programs/locale.c: Likewise.
4872         * locale/programs/localedef.c: Likewise.
4873         * login/programs/pt_chown.c: Likewise.
4874         * nscd/nscd.c (print_version): Likewise.
4875         * debug/xtrace.sh: Likewise.
4876         * malloc/memusage.sh: Likewise.
4877         * malloc/mtrace.pl: Likewise.
4878         * debug/catchsegv.sh: Likewise.
4879
4880 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
4881
4882         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
4883         pure attribute.
4884
4885 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
4886
4887         [BZ #13533]
4888         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
4889         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
4890         transformations.
4891         * iconv/gconv_int.h: Likewise.
4892         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
4893         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
4894         from libc for GLIBC_2.16.
4895         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
4896         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
4897         * wcsmbs/uchar.h: Really define mbstate_t.
4898         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
4899         * wcsmbs/c16rtomb.c: New file.
4900         * wcsmbs/mbrtoc16.c: New file.
4901         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
4902         for C/POSIX locale.
4903         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
4904         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
4905
4906         * wcsmbs/wchar.h: Add missing __restrict.
4907
4908 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
4909
4910         [BZ #13532]
4911         * time/Makefile (routines): Add timespec_get.
4912         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
4913         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
4914         timespec for ISO C11.
4915         * time/timespec_get.c: New file.
4916         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
4917         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
4918
4919         [BZ #13531]
4920         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
4921         * stdlib/stdlib.h: Declare aligned_alloc.
4922         * Versions.def: Add GLIBC_2.16 for libc.
4923         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
4924
4925         [BZ 13527]
4926         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
4927         ISO C11.
4928
4929         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
4930         code.
4931
4932         [BZ #13528]
4933         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
4934
4935         [BZ #13529]
4936         * assert/assert.h (static_assert): Define.
4937
4938         * version.h: Update for 2.16 development version.
4939
4940         [BZ #13526]
4941         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
4942         _ISOC11_SOURCE.
4943
4944         * version.h (RELEASE): Bump for 2.15 release.
4945         * include/features.h (__GLIBC_MINOR__): Bump to 15.
4946
4947         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
4948         Patch by Marek Polacek <mpolacek@redhat.com>.
4949
4950         * bits/byteswap.h: Protect long long constants with __extension__.
4951         * sysdeps/i386/bits/byteswap.h: Likewise.
4952         * sysdeps/ia64/bits/byteswap.h: Likewise.
4953         * sysdeps/s390/bits/byteswap.h: Likewise.
4954         * sysdeps/x86_64/bits/byteswap.h: Likewise.
4955
4956 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
4957
4958         [BZ #13540]
4959         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
4960         destination buffer.
4961         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
4962
4963 2011-12-23  Marek Polacek  <polacek@redhat.com>
4964
4965         * elf/dl-addr.c (determine_info): Add inline keyword.
4966         * elf/tst-auditmod4b.c (check_avx): Likewise.
4967         * elf/tst-auditmod6b.c (check_avx): Likewise.
4968         * elf/tst-auditmod6c.c (check_avx): Likewise.
4969         * elf/tst-auditmod7b.c (check_avx): Likewise.
4970
4971 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
4972
4973         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
4974         !__SSE_MATH__.
4975
4976 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
4977
4978         [BZ #13540]
4979         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
4980         processing for last bytes.
4981
4982 2011-08-06  Bruno Haible  <bruno@clisp.org>
4983
4984         [BZ #13061]
4985         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
4986         U+0385, not to U+1FEE.
4987
4988         [BZ #13062]
4989         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
4990         entry for U+00A5 U+0301.
4991
4992 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
4993
4994         [BZ #13166]
4995         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
4996         buffer for the output is too small.
4997
4998         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
4999         optimization.
5000
5001         [BZ #13185]
5002         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
5003         SSE flags if possible.
5004
5005 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5006
5007         [BZ #13540]
5008         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
5009         processing for last bytes.
5010
5011 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
5012
5013         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
5014         (syscall-list-default-options, syscall-list-default-condition)
5015         (syscall-list-includes): Define.
5016         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
5017         list of ABIs and options and #if conditions for each ABI.  Do not
5018         handle common syscalls between ABIs specially.
5019         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
5020         Remove.
5021         (syscall-list-variants, syscall-list-32bit-options)
5022         (syscall-list-32bit-condition, syscall-list-64bit-options)
5023         (syscall-list-64bit-condition): Define.
5024         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
5025         (syscall-list-variants, syscall-list-32bit-options)
5026         (syscall-list-32bit-condition, syscall-list-64bit-options)
5027         (syscall-list-64bit-condition): Define.
5028         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
5029         Remove.
5030         (syscall-list-variants, syscall-list-32bit-options)
5031         (syscall-list-32bit-condition, syscall-list-64bit-options)
5032         (syscall-list-64bit-condition): Define.
5033         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
5034         Remove.
5035         (syscall-list-variants, syscall-list-32bit-options)
5036         (syscall-list-32bit-condition, syscall-list-64bit-options)
5037         (syscall-list-64bit-condition): Define.
5038
5039 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
5040
5041         * locale/iso-639.def: Add brx entry.
5042
5043         [BZ #13328]
5044         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
5045         Proposed by Mariusz_Cukr <marcukr@op.pl>.
5046
5047         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
5048         __feraiseexcept_renamed.
5049
5050 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
5051
5052         [BZ #13538]
5053         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
5054         EPOLLET with unsigned values.
5055         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
5056         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
5057
5058         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
5059         to large cancellation.
5060         * math/s_cacoshf.c: Likewise.
5061         * math/s_cacoshl.c: Likewise.
5062
5063 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
5064
5065         [BZ #13305]
5066         [BZ #12786]
5067         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
5068         * math/s_cacoshf.c: Likewise.
5069         * math/s_cacoshl.c: Likewise.
5070
5071 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
5072
5073         [BZ #13439]
5074         * iconv/gconv.h: Define __GCONV_SWAP.
5075         * iconvdata/unicode.c: The swap bit must be stored in __flags.
5076         * iconvdata/utf-16.c: Likewise.
5077         * iconvdata/utf-32.c: Likewise.
5078
5079 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
5080
5081         [BZ #13524]
5082         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
5083         numerator after shifting it by one limb.
5084
5085 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
5086
5087         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
5088         under [__USE_EXTERN_INLINES].
5089
5090 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
5091
5092         [BZ #13446]
5093         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
5094
5095 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5096
5097         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
5098         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
5099         optimized code.
5100         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
5101         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
5102         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
5103         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
5104         for strncasecmp/strncasecmp_l compilation.
5105         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
5106         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
5107
5108 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
5109
5110         [BZ #13484]
5111         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
5112         of __asm__.
5113
5114 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
5115
5116         [BZ #13506]
5117         * time/tzfile.c (__tzfile_read): Check values from file header.
5118
5119 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
5120
5121         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
5122         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
5123         * powerpc/powerpc32/dl-start.S: Likewise.
5124         * powerpc/powerpc32/elf/start.S: Likewise.
5125         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
5126         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
5127         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
5128         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
5129         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
5130         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
5131         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
5132         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
5133         * powerpc/powerpc32/fpu/s_round.S: Likewise.
5134         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
5135         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
5136         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
5137         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
5138         * powerpc/powerpc32/memset.S: Likewise.
5139         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
5140         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
5141         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
5142         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
5143         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
5144         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
5145         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
5146         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
5147         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
5148         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
5149         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
5150         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
5151         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
5152
5153 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5154
5155         * math/libm-test.inc: Added more nearbyint tests.
5156         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
5157         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
5158         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
5159         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
5160
5161 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
5162
5163         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
5164         FD_CLOEXEC.
5165
5166 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5167
5168         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
5169         Add wcscpy-ssse3 wcscpy-c.
5170         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
5171         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
5172         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
5173         * sysdeps/x86_64/wcschr.S: New file.
5174         * sysdeps/x86_64/wcsrchr.S: New file.
5175         * string/test-strcmp.c: Remove checking of wcscmp function for
5176         wrong alignments.
5177         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
5178         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
5179         wcsrchr-sse2 wcsrchr-c.
5180         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
5181         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
5182         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
5183         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
5184         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
5185         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
5186         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
5187         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
5188         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
5189         * wcsmbc/wcschr.c (WCSCHR): New macro.
5190
5191 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5192
5193         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
5194         * wcsmbs/test-wcsrchr.c: New file.
5195         * string/test-strrchr.c: Add wcsrchr support.
5196         (WIDE): New macro.
5197         * wcsmbs/test-wcscpy.c: New file.
5198         * string/test-strcpy.c: Add wcscpy support.
5199         (WIDE): New macro.
5200
5201 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
5202
5203         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
5204         the inner loop.
5205
5206 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
5207
5208         [BZ #13472]
5209         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
5210
5211 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
5212
5213         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
5214         Minor optimizations.
5215
5216         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
5217         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
5218         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
5219
5220 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
5221
5222         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
5223         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
5224         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
5225         for gcc to avoid warnings.
5226         * inet/Makefile (tests): Add tst-checks.
5227         * inet/tst-checks.c: New file.
5228
5229         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
5230         warning.
5231
5232         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
5233         __wmemcmp_sse2.
5234
5235         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
5236         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
5237
5238         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
5239
5240 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
5241
5242         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
5243         problem.
5244
5245         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
5246
5247 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
5248
5249         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
5250         conditional on GCC version.
5251         (__arch_compare_and_exchange_val_8_acq)
5252         (__arch_compare_and_exchange_val_16_acq)
5253         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
5254         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
5255         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
5256
5257 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
5258
5259         * sysdeps/sh/backtrace.c: New file.
5260
5261 2011-12-02  Andreas Schwab  <schwab@redhat.com>
5262
5263         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
5264         parenthesis.
5265
5266 2011-12-01  Andreas Schwab  <schwab@redhat.com>
5267
5268         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
5269         falling back to utime.
5270
5271 2011-11-30  Andreas Schwab  <schwab@redhat.com>
5272
5273         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
5274         expectations for float.
5275
5276 2011-11-29  Andreas Schwab  <schwab@redhat.com>
5277
5278         * locale/weight.h (findidx): Add parameter len.
5279         * locale/weightwc.h (findidx): Likewise.
5280         * posix/fnmatch_loop.c (FCT): Adjust caller.
5281         * posix/regcomp.c (build_equiv_class): Likewise.
5282         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
5283         * posix/regexec.c (check_node_accept_bytes): Likewise.
5284         * string/strcoll_l.c (STRCOLL): Likewise.
5285         * string/strxfrm_l.c (STRXFRM): Likewise.
5286
5287 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
5288
5289         * Makefile.in: Remove CVSOPT handling.
5290         * configure.in: Remove use of AC_REVISION.
5291         * iconvdata/Makefile (distribute): No need to filter out CVS.
5292         * scripts/list-sources.sh: Remove CVS, subversion and monotone
5293         handling.
5294
5295 2011-11-16  Andreas Schwab  <schwab@redhat.com>
5296
5297         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
5298         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
5299         [USE_AS_STRNCASECMP_L]: Likewise.
5300         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
5301         NO_TLS_DIRECT_SEG_REFS.
5302         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
5303         Fix argument offsets for non-PIC.
5304         [USE_AS_STRNCASECMP_L]: Likewise.
5305         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
5306         NO_TLS_DIRECT_SEG_REFS.
5307
5308 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
5309
5310         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
5311         O_CLOEXEC.
5312         * locale/loadlocale.c (_nl_load_locale): Likewise.
5313
5314 2011-11-15  Andreas Schwab  <schwab@redhat.com>
5315
5316         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
5317         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
5318         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
5319         (SYSCALL_GETTIME): Set errno on error.
5320
5321         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
5322         count references to noai6ai_cached.
5323
5324 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
5325
5326         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
5327
5328         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
5329         FD_CLOEXEC for /proc/self/maps.
5330
5331         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
5332         FD_CLOEXEC for /proc/meminfo.
5333
5334         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
5335         gai.conf.
5336
5337         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
5338         FD_CLOEXEC for given file.
5339
5340         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
5341
5342         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
5343         FD_CLOEXEC for /etc/hosts.
5344         (_gethtent): Likewise.
5345
5346         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
5347
5348         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
5349         cancellation and set FD_CLOEXEC for /etc/netgroup.
5350
5351         * nss/nss_files/files-key.c (search): Don't allow cancellation when
5352         reading /etc/publickey.
5353
5354         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
5355         allow cancellation when reading /etc/group.
5356
5357         * nss/nss_files/files-alias.c (internal_setent): Don't allow
5358         cancellation.
5359         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
5360
5361         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
5362         when using data file.
5363
5364         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
5365
5366         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
5367         (write_nis_obj): Use "c" and "e" in fopen.
5368
5369         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
5370
5371         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
5372
5373         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
5374
5375         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
5376
5377         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
5378         locale.alias.
5379
5380         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
5381
5382         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
5383
5384         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
5385
5386         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
5387         file parsing and set FD_CLOEXEC.
5388
5389 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
5390
5391         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
5392
5393 2011-11-14  Andreas Schwab  <schwab@redhat.com>
5394
5395         * malloc/arena.c (arena_get2): Don't call reused_arena when
5396         _int_new_arena failed.
5397
5398 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
5399
5400         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
5401         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
5402         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
5403         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
5404         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
5405         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
5406         to compile strcasecmp and strncasecmp.
5407         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
5408         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
5409
5410         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
5411
5412 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
5413
5414         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
5415         locale-defines.sym to gen-as-const-headers.
5416         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
5417         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
5418         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
5419         to compile strcasecmp and strncasecmp.
5420         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
5421         strcasecmp_l and strncasecmp_l.
5422         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
5423         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
5424         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
5425         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
5426         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
5427         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
5428         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
5429         * sysdeps/i386/i686/multiarch/strncase.S: New file.
5430         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
5431         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
5432         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
5433
5434 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
5435
5436         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
5437         result of SYSDEP_GETTIME_CPU to retval.
5438         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
5439         parameter list to macro.  Remove trailing semicolon.  Adjust users.
5440
5441         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
5442         variable.
5443
5444         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
5445         mantissa words.
5446         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
5447
5448         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
5449         from unused variable.
5450
5451         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
5452         DWARF definitions.
5453         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
5454         for assembling.
5455
5456         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
5457         over namespaces.
5458
5459         * sunrpc/rpc_prot.c (rejected): Fix case value.
5460
5461         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
5462         unsigned long long int to avoid warnings in shift.
5463
5464         * posix/regex_internal.c (re_string_reconstruct): Actually use result
5465         of use of trans.
5466         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
5467         variable tmp.
5468
5469         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
5470         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
5471         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
5472
5473         * nis/nis_table.c (nis_list): Use variable of correct type for
5474         result of __follow_path call.
5475
5476 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5477
5478         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
5479         of math functions ceil, trunc, floor, round, and sqrt, when
5480         avaliable on the platform.
5481         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
5482         name clash.
5483         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
5484         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
5485         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
5486
5487 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
5488
5489         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
5490         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
5491
5492 2011-11-11  Roland McGrath  <roland@hack.frob.com>
5493
5494         * include/unistd.h: Fix __readlink return type.
5495         Reported by Chris Metcalf <cmetcalf@tilera.com>.
5496
5497 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
5498
5499         * stdlib/ucontext.h: Undo last change for makecontext.
5500
5501 2011-11-11  Andreas Schwab  <schwab@redhat.com>
5502
5503         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
5504
5505         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
5506         * setjmp/setjmp.h: Mark functions as non-leaf.
5507         * setjmp/bits/setjmp2.h: Likewise.
5508         * stdlib/ucontext.h: Likewise.
5509
5510 2011-11-10  Andreas Schwab  <schwab@redhat.com>
5511
5512         * malloc/arena.c (_int_new_arena): Don't increment narenas.
5513         (reused_arena): Don't check arena limit.
5514         (arena_get2): Atomically check arena limit.
5515
5516 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
5517
5518         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
5519         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
5520
5521         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
5522         instructions.
5523
5524 2011-11-07  Andreas Schwab  <schwab@redhat.com>
5525
5526         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
5527         handler when locking.
5528
5529         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
5530         Fix size of allocated buffer.
5531
5532 2011-11-04  Andreas Schwab  <schwab@redhat.com>
5533
5534         [BZ #10103]
5535         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
5536         declarations for long double functions.
5537         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
5538
5539         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
5540
5541 2011-11-03  Andreas Schwab  <schwab@redhat.com>
5542
5543         * nscd/nscd.c (main): Don't start AVC thread until credentials are
5544         installed.
5545
5546         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
5547         is disabled.
5548
5549 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5550
5551         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
5552
5553 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
5554
5555         * include/alloca.h (stackinfo_alloca_round): Define.
5556         (extend_alloca): Use it.
5557         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
5558         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
5559         here.
5560
5561         * scripts/check-local-headers.sh: Ignore libaudit.h.
5562
5563         * nscd/Makefile (extra-objs): Make recursively expanded.
5564
5565 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
5566
5567         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
5568         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
5569
5570         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
5571         * posix/tst-rfc3484-2.c: Likewise.
5572         * posix/tst-rfc3484-3.c: Likewise.
5573
5574         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
5575         process_vm_writev.
5576         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
5577         process_vm_writev.
5578         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
5579         process_vm_writev from libc using GLIBC_2.15 version.
5580
5581         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
5582
5583 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
5584
5585         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
5586         stack usage.
5587
5588 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
5589
5590         [BZ #13367]
5591         * nss/getent.c (initgroups_keys): Show error message in case no group
5592         names are given.
5593
5594         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
5595         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
5596         __bump_nl_timestamp.
5597         * nscd/connections (nscd_init): When host database is served open
5598         netlink socket and request notification about configuration changes.
5599         (main_loop_poll): Track netlink file descriptor and bump timestamp
5600         in case data becomes available.
5601         (main_loop_epoll): Likewise.
5602         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
5603         (database_pers_head): Add extra_data fileds.
5604         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
5605         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
5606         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
5607         Adjust caller.
5608         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
5609         in6ai data, call __free_in6ai.
5610         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
5611         Add -DHAVE_NETLINK.
5612         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
5613         interface information.  Reuse previous data if netlink timestamp
5614         is not changed.
5615         (__bump_nl_timestamp): New function.
5616         (__free_in6ai): New function.
5617
5618 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
5619
5620         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
5621         close_not_cancel_no_status here.
5622         (__check_pf): Reorganize code a bit to not call close twice if OOM.
5623
5624 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
5625
5626         [BZ #13276]
5627         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
5628         return value.
5629
5630         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
5631         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
5632         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
5633
5634 2011-07-03  Andreas Jaeger  <aj@suse.de>
5635
5636         [BZ #10709]
5637         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
5638         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
5639         * math/libm-test.inc (sin_test): Add test case.
5640
5641 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
5642
5643         [BZ #13337]
5644         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
5645         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
5646
5647         * elf/chroot_canon.c (chroot_canon): Cleanups.
5648
5649         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
5650
5651         [BZ #13335]
5652         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
5653         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
5654
5655         * string/test-strchr.c: Make usable for strchrnul testing.
5656         * string/test-strchrnul.c: New file.
5657         * string/Makefile (strop-tests): Add strchrnul.
5658
5659         * po/it.po: Update from translation team.
5660         * po/es.po: Likewise.
5661
5662 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
5663
5664         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
5665         the three constants needed as parameters.  Drop the others.
5666         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
5667         __m128i_strloadu_tolower.
5668         Create and initialize variable zero and use it in all the places
5669         where _mm_setzero_si128 was used.
5670
5671         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
5672         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
5673         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
5674         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
5675         anymore.
5676         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
5677         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
5678         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
5679         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
5680         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
5681         __mpranred, __mptan.
5682         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
5683         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
5684         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
5685         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
5686         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
5687         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
5688         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
5689         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
5690         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
5691
5692 2011-10-28  Andreas Schwab  <schwab@redhat.com>
5693
5694         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
5695         redefine if SHARED.
5696         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
5697
5698         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
5699         wide char related routines to wcsmbs subdir.
5700
5701 2011-10-27  Andreas Schwab  <schwab@redhat.com>
5702
5703         [BZ #13344]
5704         * misc/sys/cdefs.h (__THROWNL): Define.
5705         * posix/unistd.h: Use __THREADNL instead of __THREAD
5706         for memory synchronization functions.
5707
5708 2011-10-26  Roland McGrath  <roland@hack.frob.com>
5709
5710         [BZ #13349]
5711         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
5712         doesn't exist.
5713         * manual/stdio.texi (Obstack Streams): Node removed.
5714
5715 2011-10-26  Andreas Schwab  <schwab@redhat.com>
5716
5717         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
5718         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
5719         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
5720
5721         * math/math_private.h (math_force_eval): Allow non-addressable
5722         arguments.
5723         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
5724
5725 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
5726
5727         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
5728         file is not needed.
5729
5730         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
5731         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
5732         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
5733         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
5734         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
5735         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
5736         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
5737         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
5738         Add AVX variants.
5739         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
5740         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
5741         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
5742         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
5743         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
5744         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
5745         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
5746         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
5747         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
5748         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
5749         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
5750         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
5751         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
5752         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
5753         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
5754         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
5755         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
5756         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
5757         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
5758
5759         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
5760         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
5761
5762         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
5763         place.  Use VEX encoding when compiling for AVX.
5764
5765 2011-10-25  Andreas Schwab  <schwab@redhat.com>
5766
5767         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
5768         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
5769
5770         * string/test-strchr.c (do_test): Don't generate NUL bytes.
5771
5772 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
5773
5774         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
5775         useless if() expression.
5776         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
5777         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
5778         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
5779         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
5780         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
5781         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
5782         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
5783         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
5784         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
5785         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
5786         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
5787         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
5788         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
5789         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
5790         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
5791         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
5792         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
5793         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
5794         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
5795
5796         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
5797
5798 2011-10-25  Andreas Schwab  <schwab@redhat.com>
5799
5800         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
5801         condition.
5802         * elf/dl-fini.c (_dl_sort_fini): Likewise.
5803
5804 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
5805
5806         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
5807         .text section.  Avoid duplicate constants.
5808         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
5809         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
5810         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
5811         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
5812         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
5813         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
5814         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
5815         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
5816         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
5817         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
5818         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
5819         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
5820         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
5821         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
5822         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
5823         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
5824         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
5825         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
5826         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
5827         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
5828         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
5829         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
5830         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
5831         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
5832         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
5833         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
5834         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
5835         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
5836         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
5837         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
5838         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
5839         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
5840         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
5841         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
5842         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
5843         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
5844         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
5845         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
5846         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
5847         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
5848         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
5849         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
5850         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
5851         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
5852         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
5853
5854 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
5855
5856         * sysdeps/x86_64/dla.h: Move to ...
5857         * sysdeps/x86_64/fpu/dla.h: ...here.
5858         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
5859         situations.  Use __builtin_fma only for gcc 4.6 and up.
5860
5861         * config.make.in: Add have-mfma4 entry.
5862         * configure.in: Substitute libc_cv_cc_fma4.
5863         * math/Makefile (dbl-only-routines): Add sincostab.
5864         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
5865         Use __sincostab not sincos.
5866         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
5867         name is a macro.
5868         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
5869         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
5870         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
5871         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
5872         using __copysign.
5873         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
5874         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
5875         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
5876         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
5877         and __inv.
5878         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
5879         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
5880         __copysign.
5881         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
5882         define aliases when function name is a macro.
5883         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
5884         sysdeps/ieee754/dbl-64/sincos.tbl.
5885         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
5886         fma4-enabled routines.
5887         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
5888         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
5889         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
5890         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
5891         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
5892         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
5893         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
5894         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
5895         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
5896         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
5897         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
5898         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
5899         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
5900         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
5901         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
5902         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
5903         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
5904         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
5905         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
5906         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
5907         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
5908         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
5909         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
5910         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
5911         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
5912         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
5913         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
5914         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
5915         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
5916         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
5917
5918         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
5919         rename.
5920         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
5921         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
5922         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
5923         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
5924         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
5925         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
5926         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
5927         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
5928
5929 2011-10-24  Andreas Schwab  <schwab@redhat.com>
5930
5931         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
5932
5933 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
5934
5935         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
5936
5937         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
5938         prediction.
5939         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
5940
5941         * string/strnlen.c: Don't define STRNLEN, reverse logic.
5942         Remove unused variable magic_bits.
5943         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
5944
5945         * string/strnlen.c: Define and use STRNLEN macro.
5946         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
5947         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
5948         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
5949         * wcsmbs/wcslen.c: Define and use WCSLEN.
5950         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
5951         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
5952         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
5953         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
5954         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
5955         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
5956         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
5957
5958 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5959
5960         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
5961         strnlen-sse2-no-bsf.
5962         Rename strlen-no-bsf to strlen-sse2-no-bsf.
5963         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
5964         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
5965         Add strnlen support.
5966         (USE_AS_STRNLEN): New macro.
5967         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
5968         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
5969         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
5970         * sysdeps/x86_64/wcslen.S: New file.
5971
5972 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
5973
5974         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
5975         XMM-moves are used for copying on small sizes.
5976
5977 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5978
5979         * wcsmbs/Makefile (strop-tests): Add wcschr.
5980         * wcsmbs/test-wcschr.c: New file.
5981         * string/test-strchr.c: Update.
5982         Add wcschr support.
5983         (WIDE): New macro.
5984
5985 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5986
5987         * wcsmbs/Makefile (strop-tests): Add wcslen.
5988         * wcsmbs/test-wcslen.c: New file.
5989         * string/test-strlen.c: Update.
5990         Add wcslen support.
5991         (WIDE): New macro.
5992
5993 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
5994
5995         * po/it.po: Update from translation team.
5996
5997 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5998
5999         * sysdeps/x86_64/wcscmp.S: Update.
6000         Fix wrong comparison semantics.
6001         wcscmp shall use signed comparison not unsigned.
6002         Don't use substraction to avoid overflow bug.
6003         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
6004         * wcsmbc/wcscmp.c: Likewise.
6005         * string/test-strcmp.c: Likewise.
6006         Add new tests to check cases with negative values.
6007
6008 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
6009
6010         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
6011         * sysdeps/x86_64/dla.h: ...here.  New file.
6012         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
6013         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
6014         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
6015         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
6016         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
6017         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
6018         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
6019         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
6020         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
6021
6022 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
6023
6024         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
6025         __ynl_finite aliases.
6026
6027 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
6028
6029         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6030
6031         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
6032         define DLA_FMA.
6033         [DLA_FMA] (EMULV): Use DLA_FMA.
6034         [DLA_FMA] (MUL12): Use EMULV.
6035         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
6036         that are not needed.
6037         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
6038         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
6039         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
6040         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
6041         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
6042         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
6043         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
6044
6045 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
6046
6047         * math/s_nan.c: Undef __nan.
6048         * math/s_nanf.c: Undef __nanf.
6049         * math/s_nanl.c: Undef __nanl.
6050         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
6051         "math_private.h".
6052
6053 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
6054
6055         * math/s_catan.c: Add branch predictions.
6056         * math/s_catanf.c: Likewise.
6057         * math/s_catanh.c: Likewise.
6058         * math/s_catanhf.c: Likewise.
6059         * math/s_catanhl.c: Likewise.
6060         * math/s_catanl.c: Likewise.
6061         * math/s_cexp.c: Likewise.
6062         * math/s_cexpf.c: Likewise.
6063         * math/s_cexpl.c: Likewise.
6064         * math/s_clog.c: Likewise.
6065         * math/s_clog10.c: Likewise.
6066         * math/s_clog10f.c: Likewise.
6067         * math/s_clog10l.c: Likewise.
6068         * math/s_clogf.c: Likewise.
6069         * math/s_clogl.c: Likewise.
6070         * math/s_csqrt.c: Likewise.
6071         * math/s_csqrtf.c: Likewise.
6072         * math/s_csqrtl.c: Likewise.
6073         * math/s_ctanf.c: Likewise.
6074         * math/s_ctanh.c: Likewise.
6075         * math/s_ctanhf.c: Likewise.
6076         * math/s_ctanhl.c: Likewise.
6077         * math/s_ctanl.c: Likewise.
6078
6079         * math/math_private.h: Define __nan, __nanf, __nanl.
6080         * math/s_cacosh.c: Include <math_private.h>.
6081         * math/s_cacoshl.c: Likewise.
6082         * math/s_casinh.c: Likewise.
6083         * math/s_casinhf.c: Likewise.
6084         * math/s_casinhl.c: Likewise.
6085         * math/s_ccos.c: Rely entire on ccosh.
6086         * math/s_ccosf.c: Rely entire on ccoshf.
6087         * math/s_ccosl.c: Rely entirely on ccoshl.
6088         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
6089         Remove tests for FE_INVALID.
6090         * math/s_ccoshf.c: Likewise.
6091         * math/s_ccoshl.c: Likewise.
6092         * math/s_csin.c: Likewise.
6093         * math/s_csinf.c: Likewise.
6094         * math/s_csinh.c Likewise.
6095         * math/s_csinhf.c: Likewise.
6096         * math/s_csinhl.c: Likewise.
6097         * math/s_csinl.c: Likewise.
6098         * math/s_ctan.c: Likewise.
6099         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
6100         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
6101         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
6102
6103 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
6104
6105         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
6106         compilation problems.
6107
6108         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
6109         __builtin_expect.
6110
6111 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
6112
6113         * sysdeps/i386/configure.in: Test for -mfma4 option.
6114         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
6115         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
6116         COMMON_CPUID_INDEX_80000001.
6117         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
6118         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
6119         use it if FMA3 is not supported.
6120         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
6121
6122         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
6123         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
6124
6125 2011-10-20  Andreas Schwab  <schwab@redhat.com>
6126
6127         [BZ #12892]
6128         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
6129         it would create a cycle with a link time dependency.
6130
6131 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
6132
6133         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
6134         instruction.
6135         * string/Makefile (strop-tests): Add rawmemchr.
6136         * string/test-rawmemchr.c: New file.
6137
6138         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
6139         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
6140         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
6141         when compiling str{,n}casecmp and when AVX is available.  Hook up
6142         new optimized code in initializers.
6143
6144 2011-10-19  Andreas Schwab  <schwab@redhat.com>
6145
6146         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
6147         __feraiseexcept instead of feraiseexcept.
6148
6149 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
6150
6151         * math/math_private.h: Define defaults for libc_fetestexcept and
6152         libc_feupdateenv.
6153         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
6154         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
6155         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
6156         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
6157         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
6158         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
6159         libc_fetestexcept and libc_feupdateenv.
6160
6161         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
6162         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
6163         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
6164         * sysdeps/x86_64/fpu/math_private.h: Define special version of
6165         libc_feholdexcept_setround.
6166
6167         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
6168         Add s_nearbyint-c and s_nearbyintf-c.
6169         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
6170         nearbyintf inlines.
6171         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
6172         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
6173         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
6174         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
6175
6176         * math/math_private.h: Define defaults for libc_fegetround,
6177         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
6178         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
6179         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
6180         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
6181         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
6182         standard functions.
6183         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
6184         Remove comments and hacks for old compiler versions.
6185         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
6186         libc_fegetround, libc_fesetround, libc_feholdexcept, and
6187         libc_feholdexceptl.
6188
6189 2011-10-18  Andreas Schwab  <schwab@redhat.com>
6190
6191         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
6192         (__feraiseexcept_renamed): Add __NTH.
6193         (feraiseexcept): Add __NTH.  Rename local variables to fix
6194         namespace violations.
6195
6196 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
6197
6198         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
6199
6200         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
6201
6202         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
6203         recently added interfaces.
6204         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
6205
6206         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
6207         about macro parameter expansion.
6208
6209         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
6210         __NO_MATH_INLINES is defined.  Cleanups.
6211
6212         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
6213         and __floorf is target has SSE4.1.
6214         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
6215         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
6216         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
6217         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
6218
6219         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
6220         name.
6221         (floorf): Likewise.
6222
6223         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
6224
6225 2011-10-17  Andreas Schwab  <schwab@redhat.com>
6226
6227         * misc/sys/cdefs.h: Fix last change.
6228
6229         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
6230         database lookup.
6231
6232 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
6233
6234         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
6235
6236         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
6237         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
6238         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
6239         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
6240         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
6241         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
6242         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
6243         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
6244         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
6245         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
6246         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
6247         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
6248         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
6249         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
6250         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
6251         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
6252         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
6253         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
6254         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
6255         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
6256         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
6257         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
6258
6259         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
6260         ceil, ceilf, floor, floorf.
6261
6262         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
6263         Perform IRELATIVE relocations last.
6264
6265         * elf/do-rel.h: Add another parameter nrelative, replacing the
6266         local variable with the same name.  Change name of the function
6267         to end in Rel or Rela (uppercase).
6268         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
6269         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
6270         elf_dynamic_do_##reloc function.
6271
6272 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
6273
6274         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
6275         is sufficient, at least on modern CPUs.
6276
6277         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
6278
6279         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
6280         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
6281
6282         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
6283         __expl_finite.
6284         * math/bits/math-finite.h: Add entries for exp.
6285         * math/e_expl.c: Add __*_finite alias.
6286         * sysdeps/i386/fpu/e_exp.S: Likewise.
6287         * sysdeps/i386/fpu/e_expf.S: Likewise.
6288         * sysdeps/i386/fpu/e_expl.c: Likewise.
6289         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
6290         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
6291         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
6292         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
6293         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
6294         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
6295         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
6296
6297         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
6298         is sufficient, at least on modern CPUs.
6299
6300         * ctype/ctype-info.c (__ctype_init): Define.
6301         * include/ctype.h (__ctype_init): Declare.
6302         (__ctype_b_loc): The variable is always initialized.
6303         (__ctype_toupper_loc): Likewise.
6304         (__ctype_tolower_loc): Likewise.
6305         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
6306         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
6307
6308 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
6309
6310         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
6311
6312         * configure.in: Also look in $cxxmachine/include for C++ system
6313         headers.
6314
6315 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6316
6317         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
6318         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
6319         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
6320         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
6321         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
6322         (USE_AS_WMEMCMP): New macro.
6323         Fixing indents.
6324         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
6325         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
6326         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
6327         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
6328         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
6329         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
6330         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
6331         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
6332         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
6333         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
6334         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
6335         (USE_AS_WMEMCMP): New macro.
6336         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
6337         * sysdeps/string/test-memcmp.c: Update.
6338         Fix simple_wmemcmp.
6339         Add new tests.
6340         * wcsmbs/wmemcmp.c: Update.
6341         (WMEMCMP): New macro.
6342         Fix overflow bug.
6343
6344 2011-10-12  Andreas Jaeger  <aj@suse.de>
6345
6346         [BZ #13268]
6347         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
6348
6349 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
6350
6351         * libio/iofwide.c (do_length): Avoid warning.
6352
6353         * ctype/ctype.h (__isctype_f): Add missing __THROW.
6354
6355 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
6356
6357         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
6358
6359         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
6360         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
6361         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
6362         * sysdeps/i386/i686/fpu/e_log.S: New file.
6363         * sysdeps/i386/i686/fpu/e_logf.S: New file.
6364         * sysdeps/i386/i686/fpu/e_logl.S: New file.
6365
6366         * ctype/ctype.h: Add support for inlined isXXX functions when
6367         compiling C++ code.
6368
6369 2011-10-14  Andreas Schwab  <schwab@redhat.com>
6370
6371         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
6372
6373         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
6374
6375 2011-10-13  Roland McGrath  <roland@hack.frob.com>
6376
6377         [BZ #13291]
6378         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
6379
6380 2011-10-13  Andreas Schwab  <schwab@redhat.com>
6381
6382         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
6383         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
6384         feraiseexcept.
6385
6386         * sysdeps/x86_64/memrchr.S: Check for zero size.
6387
6388         * string/stratcliff.c: Add memrchr tests.
6389
6390 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6391
6392         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
6393         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
6394         rawmemchr-sse2 rawmemchr-sse2-bsf.
6395         * sysdeps/i386/i686/multiarch/memchr.S: New file.
6396         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
6397         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
6398         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
6399         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
6400         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
6401         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
6402         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
6403         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
6404         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
6405         * string/memrchr.c (MEMRCHR): New macro.
6406
6407 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
6408
6409         Add integration with gcc's -ffinite-math-only and optimize wrapper
6410         functions in libm.
6411         * Versions.def: Define GLIBC_2.15 version for libm.
6412         * math/Makefile (headers): Add bits/math-finite.h.
6413         * math/bits/math-finite.h: New file.
6414         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
6415         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
6416         * math/e_acoshl.c: Add __*_finite alias.
6417         * math/e_acosl.c: Likewise.
6418         * math/e_asinl.c: Likewise.
6419         * math/e_atan2l.c: Likewise.
6420         * math/e_atanhl.c: Likewise.
6421         * math/e_coshl.c: Likewise.
6422         * math/e_exp10.c: Likewise.
6423         * math/e_exp10f.c: Likewise.
6424         * math/e_exp10l.c: Likewise.
6425         * math/e_exp2l.c: Likewise.
6426         * math/e_fmodl.c: Likewise.
6427         * math/e_gammal_r.c: Likewise.
6428         * math/e_hypotl.c: Likewise.
6429         * math/e_j0l.c: Likewise.
6430         * math/e_j1l.c: Likewise.
6431         * math/e_jnl.c: Likewise.
6432         * math/e_lgammal_r.c: Likewise.
6433         * math/e_log10l.c: Likewise.
6434         * math/e_log2l.c: Likewise.
6435         * math/e_logl.c: Likewise.
6436         * math/e_powl.c: Likewise.
6437         * math/e_sinhl.c: Likewise.
6438         * math/e_sqrtl.c: Likewise.
6439         * math/e_scalb.c: Completely rewritten and optimized.
6440         * math/e_scalbf.c: Likewise.
6441         * math/e_scalbl.c: Likewise.
6442         * math/w_acos.c: Likewise.
6443         * math/w_acosf.c: Likewise.
6444         * math/w_acosl.c: Likewise.
6445         * math/w_acosh.c: Likewise.
6446         * math/w_acoshf.c: Likewise.
6447         * math/w_acoshl.c: Likewise.
6448         * math/w_asin.c: Likewise.
6449         * math/w_asinf.c: Likewise.
6450         * math/w_asinl.c: Likewise.
6451         * math/w_atan2.c: Likewise.
6452         * math/w_atan2f.c: Likewise.
6453         * math/w_atan2l.c: Likewise.
6454         * math/w_atanh.c: Likewise.
6455         * math/w_atanhf.c: Likewise.
6456         * math/w_atanhl.c: Likewise.
6457         * math/w_exp10.c: Likewise.
6458         * math/w_exp10f.c: Likewise.
6459         * math/w_exp10l.c: Likewise.
6460         * math/w_fmod.c: Likewise.
6461         * math/w_fmodf.c: Likewise.
6462         * math/w_fmodl.c: Likewise.
6463         * math/w_j0.c: Likewise.
6464         * math/w_j0f.c: Likewise.
6465         * math/w_j0l.c: Likewise.
6466         * math/w_j1.c: Likewise.
6467         * math/w_j1f.c: Likewise.
6468         * math/w_j1l.c: Likewise.
6469         * math/w_jn.c: Likewise.
6470         * math/w_jnf.c: Likewise.
6471         * math/w_log.c: Likewise.
6472         * math/w_logf.c: Likewise.
6473         * math/w_logl.c: Likewise.
6474         * math/w_log10.c: Likewise.
6475         * math/w_log10f.c: Likewise.
6476         * math/w_log10l.c: Likewise.
6477         * math/w_log2.c: Likewise.
6478         * math/w_log2f.c: Likewise.
6479         * math/w_log2l.c: Likewise.
6480         * math/w_pow.c: Likewise.
6481         * math/w_powf.c: Likewise.
6482         * math/w_powl.c: Likewise.
6483         * math/w_remainder.c: Likewise.
6484         * math/w_remainderf.c: Likewise.
6485         * math/w_remainderl.c: Likewise.
6486         * math/w_scalb.c: Likewise.
6487         * math/w_scalbf.c: Likewise.
6488         * math/w_scalbl.c: Likewise.
6489         * math/w_sqrt.c: Likewise.
6490         * math/w_sqrtf.c: Likewise.
6491         * math/w_sqrtl.c: Likewise.
6492         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
6493         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
6494         used.
6495         * math/math_private.h: Declare __kernel_standard_f.
6496         * math/w_cosh.c: Remove cruft and optimize a bit.
6497         * math/w_coshf.c: Likewise.
6498         * math/w_coshl.c: Likewise.
6499         * math/w_exp2.c: Likewise.
6500         * math/w_exp2f.c: Likewise.
6501         * math/w_exp2l.c: Likewise.
6502         * math/w_hypot.c: Likewise.
6503         * math/w_hypotf.c: Likewise.
6504         * math/w_hypotl.c: Likewise.
6505         * math/w_lgamma.c: Likewise.
6506         * math/w_lgamma_r.c: Likewise.
6507         * math/w_lgammaf.c: Likewise.
6508         * math/w_lgammaf_r.c: Likewise.
6509         * math/w_lgammal.c: Likewise.
6510         * math/w_lgammal_r.c: Likewise.
6511         * math/w_sinh.c: Likewise.
6512         * math/w_sinhf.c: Likewise.
6513         * math/w_sinhl.c: Likewise.
6514         * math/w_tgamma.c: Likewise.
6515         * math/w_tgammaf.c: Likewise.
6516         * math/w_tgammal.c: Likewise.
6517         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
6518         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
6519         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
6520         Minor optimizations.  Pretty printing.  Remove cruft.
6521         * sysdeps/i386/fpu/e_acosf.S: Likewise.
6522         * sysdeps/i386/fpu/e_acosh.S: Likewise.
6523         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
6524         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
6525         * sysdeps/i386/fpu/e_acosl.c: Likewise.
6526         * sysdeps/i386/fpu/e_asin.S: Likewise.
6527         * sysdeps/i386/fpu/e_asinf.S: Likewise.
6528         * sysdeps/i386/fpu/e_atan2.S: Likewise.
6529         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
6530         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
6531         * sysdeps/i386/fpu/e_atanh.S: Likewise.
6532         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
6533         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
6534         * sysdeps/i386/fpu/e_exp10.S: Likewise.
6535         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
6536         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
6537         * sysdeps/i386/fpu/e_exp2.S: Likewise.
6538         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
6539         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
6540         * sysdeps/i386/fpu/e_fmod.S: Likewise.
6541         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
6542         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
6543         * sysdeps/i386/fpu/e_hypot.S: Likewise.
6544         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
6545         * sysdeps/i386/fpu/e_log.S: Likewise.
6546         * sysdeps/i386/fpu/e_log10.S: Likewise.
6547         * sysdeps/i386/fpu/e_log10f.S: Likewise.
6548         * sysdeps/i386/fpu/e_log10l.S: Likewise.
6549         * sysdeps/i386/fpu/e_log2.S: Likewise.
6550         * sysdeps/i386/fpu/e_log2f.S: Likewise.
6551         * sysdeps/i386/fpu/e_log2l.S: Likewise.
6552         * sysdeps/i386/fpu/e_logf.S: Likewise.
6553         * sysdeps/i386/fpu/e_logl.S: Likewise.
6554         * sysdeps/i386/fpu/e_pow.S: Likewise.
6555         * sysdeps/i386/fpu/e_powf.S: Likewise.
6556         * sysdeps/i386/fpu/e_powl.S: Likewise.
6557         * sysdeps/i386/fpu/e_remainder.S: Likewise.
6558         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
6559         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
6560         * sysdeps/i386/fpu/e_scalb.S: Likewise.
6561         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
6562         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
6563         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
6564         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
6565         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
6566         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
6567         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
6568         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
6569         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
6570         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
6571         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
6572         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
6573         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
6574         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
6575         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
6576         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
6577         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
6578         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
6579         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
6580         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
6581         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
6582         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
6583         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
6584         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
6585         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
6586         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
6587         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
6588         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
6589         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
6590         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
6591         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
6592         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
6593         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
6594         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
6595         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
6596         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
6597         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
6598         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
6599         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
6600         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
6601         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
6602         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
6603         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
6604         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
6605         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
6606         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
6607         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
6608         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
6609         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
6610         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
6611         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
6612         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
6613         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
6614         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
6615         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
6616         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
6617         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
6618         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
6619         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
6620         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
6621         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
6622         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
6623         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
6624         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
6625         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
6626         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
6627         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
6628         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
6629         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
6630         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
6631         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
6632         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
6633         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
6634         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
6635         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
6636         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
6637         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
6638         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
6639         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
6640         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
6641         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
6642         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
6643         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
6644         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
6645         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
6646         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
6647         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
6648         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
6649         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
6650         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
6651         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
6652         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
6653         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
6654         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
6655         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
6656         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
6657         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
6658         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
6659         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
6660         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
6661         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
6662         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
6663         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
6664         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
6665         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
6666         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
6667         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
6668         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
6669         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
6670         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
6671         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
6672         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
6673         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
6674         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
6675         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
6676         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
6677         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
6678         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
6679         (__isnanf): Likewise.
6680         (__isinf_ns): Likewise.
6681         (__isinf_nsf): Likewise.
6682         (__finite): Likewise.
6683         (__finitef): Likewise.
6684         (__ieee754_sqrt): Define as macro.
6685         (__ieee754_sqrtf): Define as macro.
6686         (__ieee754_sqrtl): Define as macro.
6687         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
6688         inlined copy.
6689         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
6690         __FINITE_MATH_ONLY__ consistent.
6691         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
6692
6693 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
6694
6695         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
6696         of rawmemchr.
6697
6698         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
6699
6700 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
6701
6702         * po/ja.po: Update from translation team.
6703
6704 2011-10-08  Roland McGrath  <roland@hack.frob.com>
6705
6706         * locale/programs/locarchive.c (prepare_address_space): New function.
6707         (create_archive, enlarge_archive, open_archive): Use it.
6708
6709         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
6710         inside [SHARED], where it is used.
6711
6712         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
6713
6714         * nss/getent.c (netgroup_keys): Remove unused variable.
6715         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
6716
6717 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
6718
6719         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
6720         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
6721         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
6722         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
6723         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
6724         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
6725         * math/Makefile (libm-calls): Add s_isinf_ns.
6726         * math/divtc3.c: Use __isinf_nsl instead of isinf.
6727         * math/multc3.c: Likewise.
6728         * math/s_casin.c: Likewise.
6729         * math/s_casinf.c: Likewise.
6730         * math/s_casinl.c: Likewise.
6731         * math/s_ccos.c: Likewise.
6732         * math/s_ccosf.c: Likewise.
6733         * math/s_ccosl.c: Likewise.
6734         * math/s_ctan.c: Likewise.
6735         * math/s_ctanf.c: Likewise.
6736         * math/s_ctanh.c: Likewise.
6737         * math/s_ctanhf.c: Likewise.
6738         * math/s_ctanhl.c: Likewise.
6739         * math/s_ctanl.c: Likewise.
6740         * math/w_fmod.c: Likewise.
6741         * math/w_fmodf.c: Likewise.
6742         * math/w_fmodl.c: Likewise.
6743         * math/w_remainder.c: Likewise.
6744         * math/w_remainderf.c: Likewise.
6745         * math/w_remainderl.c: Likewise.
6746         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
6747         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
6748         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
6749         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
6750         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
6751         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
6752         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
6753         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
6754
6755         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
6756         of the number.
6757         * stdio-common/printf_fphex.c: Likewise.
6758         * stdio-common/printf_size.c: Likewise.
6759
6760         * math/e_exp10.c: Include math_private.h using <...> not "...".
6761         * math/e_exp10f.c: Likewise.
6762         * math/e_exp10l.c: Likewise.
6763         * math/e_exp2l.c: Likewise.
6764         * math/e_j0l.c: Likewise.
6765         * math/e_j1l.c: Likewise.
6766         * math/e_jnl.c: Likewise.
6767         * math/e_lgammal_r.c: Likewise.
6768         * math/e_rem_pio2l.c: Likewise.
6769         * math/e_scalb.c: Likewise.
6770         * math/e_scalbf.c: Likewise.
6771         * math/e_scalbl.c: Likewise.
6772         * math/k_cosl.c: Likewise.
6773         * math/k_sinl.c: Likewise.
6774         * math/k_tanl.c: Likewise.
6775         * math/s_cacoshf.c: Likewise.
6776         * math/s_catan.c: Likewise.
6777         * math/s_catanf.c: Likewise.
6778         * math/s_catanh.c: Likewise.
6779         * math/s_catanhf.c: Likewise.
6780         * math/s_catanhl.c: Likewise.
6781         * math/s_catanl.c: Likewise.
6782         * math/s_ccosh.c: Likewise.
6783         * math/s_ccoshf.c: Likewise.
6784         * math/s_ccoshl.c: Likewise.
6785         * math/s_cexp.c: Likewise.
6786         * math/s_cexpf.c: Likewise.
6787         * math/s_cexpl.c: Likewise.
6788         * math/s_clog.c: Likewise.
6789         * math/s_clog10.c: Likewise.
6790         * math/s_clog10f.c: Likewise.
6791         * math/s_clog10l.c: Likewise.
6792         * math/s_clogf.c: Likewise.
6793         * math/s_clogl.c: Likewise.
6794         * math/s_csin.c: Likewise.
6795         * math/s_csinf.c: Likewise.
6796         * math/s_csinh.c: Likewise.
6797         * math/s_csinhf.c: Likewise.
6798         * math/s_csinhl.c: Likewise.
6799         * math/s_csinl.c: Likewise.
6800         * math/s_csqrt.c: Likewise.
6801         * math/s_csqrtf.c: Likewise.
6802         * math/s_csqrtl.c: Likewise.
6803         * math/s_ctan.c: Likewise.
6804         * math/s_ctanf.c: Likewise.
6805         * math/s_ctanh.c: Likewise.
6806         * math/s_ctanhf.c: Likewise.
6807         * math/s_ctanhl.c: Likewise.
6808         * math/s_ctanl.c: Likewise.
6809         * math/s_ldexp.c: Likewise.
6810         * math/s_ldexpf.c: Likewise.
6811         * math/s_ldexpl.c: Likewise.
6812         * math/s_significand.c: Likewise.
6813         * math/s_significandf.c: Likewise.
6814         * math/s_significandl.c: Likewise.
6815         * math/w_acos.c: Likewise.
6816         * math/w_acosf.c: Likewise.
6817         * math/w_acosh.c: Likewise.
6818         * math/w_acoshf.c: Likewise.
6819         * math/w_acoshl.c: Likewise.
6820         * math/w_acosl.c: Likewise.
6821         * math/w_asin.c: Likewise.
6822         * math/w_asinf.c: Likewise.
6823         * math/w_asinl.c: Likewise.
6824         * math/w_atan2.c: Likewise.
6825         * math/w_atan2f.c: Likewise.
6826         * math/w_atan2l.c: Likewise.
6827         * math/w_atanh.c: Likewise.
6828         * math/w_atanhf.c: Likewise.
6829         * math/w_atanhl.c: Likewise.
6830         * math/w_cosh.c: Likewise.
6831         * math/w_coshf.c: Likewise.
6832         * math/w_coshl.c: Likewise.
6833         * math/w_dremf.c: Likewise.
6834         * math/w_exp10.c: Likewise.
6835         * math/w_exp10f.c: Likewise.
6836         * math/w_exp10l.c: Likewise.
6837         * math/w_exp2.c: Likewise.
6838         * math/w_exp2f.c: Likewise.
6839         * math/w_fmod.c: Likewise.
6840         * math/w_fmodf.c: Likewise.
6841         * math/w_fmodl.c: Likewise.
6842         * math/w_hypot.c: Likewise.
6843         * math/w_hypotf.c: Likewise.
6844         * math/w_hypotl.c: Likewise.
6845         * math/w_j0.c: Likewise.
6846         * math/w_j0f.c: Likewise.
6847         * math/w_j0l.c: Likewise.
6848         * math/w_j1.c: Likewise.
6849         * math/w_j1f.c: Likewise.
6850         * math/w_j1l.c: Likewise.
6851         * math/w_jn.c: Likewise.
6852         * math/w_jnf.c: Likewise.
6853         * math/w_jnl.c: Likewise.
6854         * math/w_lgamma.c: Likewise.
6855         * math/w_lgamma_r.c: Likewise.
6856         * math/w_lgammaf.c: Likewise.
6857         * math/w_lgammaf_r.c: Likewise.
6858         * math/w_lgammal.c: Likewise.
6859         * math/w_lgammal_r.c: Likewise.
6860         * math/w_log.c: Likewise.
6861         * math/w_log10.c: Likewise.
6862         * math/w_log10f.c: Likewise.
6863         * math/w_log10l.c: Likewise.
6864         * math/w_log2.c: Likewise.
6865         * math/w_log2f.c: Likewise.
6866         * math/w_log2l.c: Likewise.
6867         * math/w_logf.c: Likewise.
6868         * math/w_logl.c: Likewise.
6869         * math/w_pow.c: Likewise.
6870         * math/w_powf.c: Likewise.
6871         * math/w_powl.c: Likewise.
6872         * math/w_remainder.c: Likewise.
6873         * math/w_remainderf.c: Likewise.
6874         * math/w_remainderl.c: Likewise.
6875         * math/w_scalb.c: Likewise.
6876         * math/w_scalbf.c: Likewise.
6877         * math/w_scalbl.c: Likewise.
6878         * math/w_sinh.c: Likewise.
6879         * math/w_sinhf.c: Likewise.
6880         * math/w_sinhl.c: Likewise.
6881         * math/w_sqrt.c: Likewise.
6882         * math/w_sqrtf.c: Likewise.
6883         * math/w_sqrtl.c: Likewise.
6884         * math/w_tgamma.c: Likewise.
6885         * math/w_tgammaf.c: Likewise.
6886         * math/w_tgammal.c: Likewise.
6887
6888         * po/ja.po: Update from translation team.
6889
6890 2011-09-29  Andreas Jaeger  <aj@suse.de>
6891
6892         [BZ #13179]
6893         * sunrpc/netname.c (netname2host): Fix logic.
6894
6895         [BZ #6779]
6896         [BZ #6783]
6897         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
6898         correctly.
6899         * math/w_remainder.c (__remainder): Likewise.
6900         * math/w_remainderf.c (__remainderf): Likewise.
6901         * math/libm-test.inc (remainder_test): Add test cases.
6902
6903 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6904
6905         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
6906         sdiv_qrnnd.
6907
6908 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
6909
6910         * string/test-memcmp.c: Avoid unncessary #defines.
6911         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
6912
6913 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6914
6915         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
6916         Use new sse2 version for core i3 - i7 as it's faster
6917         than sse42 version.
6918         (bit_Prefer_PMINUB_for_stringop): New.
6919         * sysdeps/x86_64/rawmemchr.S: Update.
6920         Replace with faster SSE2 version.
6921         * sysdeps/x86_64/memrchr.S: New file.
6922         * sysdeps/x86_64/memchr.S: Update.
6923         Replace with faster SSE2 version.
6924
6925 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
6926
6927         * elf/dl-load.c (lose): Add cast to avoid warning.
6928
6929 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
6930
6931         * po/ca.po: Update from translation team.
6932
6933         * inet/getnetgrent_r.c: Hook up nscd.
6934         * nscd/Makefile (routines): Add nscd_netgroup.
6935         (nscd-modules): Add netgroupcache.
6936         (CFLAGS-netgroupcache.c): Define.
6937         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
6938         (cache_search): Add const to second parameter.
6939         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
6940         INNETGR.
6941         (dbs): Add netgrdb entry.
6942         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
6943         (verify_persistent_db): Handle netgrdb.
6944         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
6945         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
6946         GETFDNETGR.
6947         (netgroup_response_header): Define.
6948         (innetgroup_response_header): Define.
6949         (datahead): Add netgroup_response_header and innetgroup_response_header
6950         elements.
6951         * nscd/nscd.conf: Add entries for netgroup cache.
6952         * nscd/nscd.h (dbtype): Add netgrdb.
6953         (_PATH_NSCD_NETGROUP_DB): Define.
6954         (netgroup_iov_disabled): Declare.
6955         (xmalloc, xcalloc, xrealloc): Move declarations here.
6956         (cache_search): Adjust prototype.
6957         Add netgroup-related prototypes.
6958         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
6959         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
6960         (__nscd_innetgr): Declare.
6961         * nscd/selinux.c (perms): Use access_vector_t as element type and
6962         add netgroup-related initializers.
6963         * nscd/netgroupcache.c: New file.
6964         * nscd/nscd_netgroup.c: New file.
6965         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
6966         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
6967         For four parameters use innetgr.
6968         * nss/nss_files/files-init.c: Add definition and callback for netgr.
6969         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
6970         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
6971         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
6972
6973         * nscd/connections.c (register_traced_file): Don't register file
6974         for disabled databases.
6975
6976 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
6977
6978         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
6979
6980         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
6981         from tree and freeing node.
6982
6983 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
6984
6985         * nss/nsswitch.c (__nss_database_lookup): Handle
6986         nss_parse_service_list out of memory case.
6987
6988 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
6989
6990         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
6991         out of memory case.
6992
6993 2011-10-04  Andreas Schwab  <schwab@redhat.com>
6994
6995         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
6996         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
6997         pass it down.
6998         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
6999         elf_machine_rela, elf_machine_lazy_rel.
7000         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
7001         (ELF_DYNAMIC_DO_REL): Likewise.
7002         (ELF_DYNAMIC_DO_RELA): Likewise.
7003         (ELF_DYNAMIC_RELOCATE): Likewise.
7004         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
7005         to ELF_DYNAMIC_DO_REL.
7006         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
7007         (dl_main): In trace mode always set __RTLD_NOIFUNC.
7008         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
7009         elf_machine_rela.
7010         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
7011         skip_ifunc, don't call ifunc function if non-zero.
7012         (elf_machine_rela): Likewise.
7013         (elf_machine_lazy_rel): Likewise.
7014         (elf_machine_lazy_rela): Likewise.
7015         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
7016         (elf_machine_lazy_rel): Likewise.
7017         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
7018         Likewise.
7019         (elf_machine_lazy_rel): Likewise.
7020         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
7021         Likewise.
7022         (elf_machine_lazy_rel): Likewise.
7023         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
7024         (elf_machine_lazy_rel): Likewise.
7025         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
7026         (elf_machine_lazy_rel): Likewise.
7027         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
7028         (elf_machine_lazy_rel): Likewise.
7029         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
7030         (elf_machine_lazy_rel): Likewise.
7031         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
7032         (elf_machine_lazy_rel): Likewise.
7033         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
7034         (elf_machine_lazy_rel): Likewise.
7035
7036 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
7037
7038         * nss/nss_files/files-init.c (_nss_files_init): Use static
7039         initialization for all the *_traced_file variables.
7040
7041 2011-09-28  Andreas Schwab  <schwab@redhat.com>
7042
7043         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
7044
7045 2011-09-27  Roland McGrath  <roland@hack.frob.com>
7046
7047         [BZ #13226]
7048         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
7049
7050 2011-09-27  Andreas Schwab  <schwab@redhat.com>
7051
7052         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
7053         Reread the line before reparsing it.
7054
7055 2011-09-26  Andreas Schwab  <schwab@redhat.com>
7056
7057         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
7058
7059 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
7060             Maxim Kuvyrkov  <maxim@codesourcery.com>
7061             Joseph Myers  <joseph@codesourcery.com>
7062
7063         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
7064         if needed for __stack_chk_guard.
7065
7066 2011-09-19  Roland McGrath  <roland@hack.frob.com>
7067
7068         * sysdeps/posix/spawni.c (script_execute): Always define it.
7069         It will be optimized away if unused.
7070         (maybe_script_execute): New function.
7071         (__spawni): Call it.
7072
7073         * Makerules: Don't include tls.make.
7074         (config-tls): Always set to thread.
7075         * tls.make.c: File removed.
7076
7077 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
7078
7079         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
7080         * config.make.in (CPPFLAGS-config): New substituted variable.
7081
7082 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
7083
7084         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
7085
7086         [BZ #13192]
7087         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
7088         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
7089
7090 2011-09-15  Roland McGrath  <roland@hack.frob.com>
7091
7092         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
7093         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
7094         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
7095         (CALL_FAIL): Likewise.
7096         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
7097         (CALL_FAIL): Macro removed.
7098         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
7099
7100 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
7101
7102         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
7103         for __FINITE_MATH_ONLY__ == 1.
7104
7105 2011-09-15  Andreas Schwab  <schwab@redhat.com>
7106
7107         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
7108         __ieee754_sqrt instead of sqrt.
7109         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
7110         __ieee754_sqrtf instead of sqrtf.
7111         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
7112         __floorf instead of floorf.
7113         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
7114         __floorf, __truncf instead of floorf, truncf.
7115
7116 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
7117
7118         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
7119
7120         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
7121         __extern_always_inline.
7122         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
7123         32-bit.
7124
7125 2011-09-14  Andreas Schwab  <schwab@redhat.com>
7126
7127         * elf/rtld.c (dl_main): Also relocate in dependency order when
7128         doing symbol dependency testing.
7129
7130 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
7131
7132         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
7133         Always define `refsym'.
7134
7135 2011-09-13  Andreas Schwab  <schwab@redhat.com>
7136
7137         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
7138         (__FD_ELT): Renamed from __FDELT.
7139         * misc/bits/select2.h (__FD_ELT): Likewise.
7140         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
7141         __FD_MASK instead of __FDELT, __FDMASK.
7142         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
7143         Likewise.
7144         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
7145         Likewise.
7146
7147         * elf/Makefile (gen-ldd): Fix pattern.
7148
7149         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
7150         (init_tls): Likewise.
7151
7152 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
7153
7154         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
7155
7156 2011-09-12  Andreas Schwab  <schwab@redhat.com>
7157
7158         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
7159         `struct cmsghdr *' instead of `void *'.
7160         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
7161         Likewise.
7162
7163 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
7164
7165         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
7166         if non-absolute.
7167         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
7168         ldd_rewrite_script.
7169
7170 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
7171
7172         * configure.in: Remove --with-tls option.
7173         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
7174         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
7175         out in case it is missing.
7176         * sysdeps/ia64/elf/configure.in: Likewise.
7177         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
7178         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
7179         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
7180         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
7181         * sysdeps/sh/elf/configure.in: Likewise.
7182         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
7183         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
7184         * sysdeps/x86_64/elf/configure.in: Likewise.
7185         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
7186         * sysdeps/mach/hurd/tls.h: Likewise.
7187
7188         [BZ #13067]
7189         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
7190
7191         [BZ #13090]
7192         * configure.in: Fix use of AC_INIT.
7193
7194         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
7195
7196 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
7197
7198         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
7199         __set_errno.
7200         * malloc/hooks.c: Likewise.
7201
7202         [BZ #11929]
7203         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
7204         variables statically.
7205         (narenas): Initialize.
7206         (list_lock): Initialize.
7207         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
7208         initializtion of main_arena and list_lock.  Small cleanups.
7209         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
7210         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
7211         Add initializers to main_arena and mp_.
7212         (malloc_state): Remove pagesize member.  Change all users to use
7213         GLRO(dl_pagesize).
7214
7215         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
7216         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
7217         is always initialized.
7218
7219         * malloc/malloc.c: Removed unused configurations and dead code.
7220         * malloc/arena.c: Likewise.
7221         * malloc/hooks.c: Likewise.
7222         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
7223
7224         * include/tls.h: Removed.  USE___THREAD must always be defined.
7225         * bits/libc-tsd.h: Don't handle !USE___THREAD.
7226         * elf/dl-libc.c: Likewise.
7227         * elf/dl-tsd.c: Likewise.
7228         * include/errno.h: Likewise.
7229         * include/netdb.h: Likewise.
7230         * include/resolv.h: Likewise.
7231         * inet/herrno-loc.c: Likewise.
7232         * inet/herrno.c: Likewise.
7233         * malloc/arena.c: Likewise.
7234         * malloc/hooks.c: Likewise.
7235         * malloc/malloc.c: Likewise.
7236         * resolv/res-state.c: Likewise.
7237         * resolv/res_libc.c: Likewise.
7238         * sysdeps/i386/dl-machine.h: Likewise.
7239         * sysdeps/ia64/dl-machine.h: Likewise.
7240         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
7241         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
7242         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
7243         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
7244         * sysdeps/sh/dl-machine.h: Likewise.
7245         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
7246         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
7247         * sysdeps/unix/i386/sysdep.S: Likewise.
7248         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
7249         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
7250         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
7251         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
7252         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
7253         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
7254         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
7255         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
7256         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
7257         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
7258         * sysdeps/unix/x86_64/sysdep.S: Likewise.
7259         * sysdeps/x86_64/dl-machine.h: Likewise.
7260         * tls.make.c: Likewise.
7261
7262         * configure.in: Remove --with-__thread option.  Make tests for
7263         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
7264         tls_model attribute fail if no support is available.  Remove
7265         USE_IN_LIBIO.
7266         * Makeconfig: Adjust for dropped configure option.  All features are
7267         now mandatory.
7268         * Makerules: Likewise.
7269         * Versions.def: Likewise.
7270         * argp/argp-fmtstream.c: Likewise.
7271         * argp/argp-fmtstream.h: Likewise.
7272         * argp/argp-help.c: Likewise.
7273         * assert/assert.c: Likewise.
7274         * config.h.in: Likewise.
7275         * config.make.in: Likewise.
7276         * configure: Likewise.
7277         * configure.in: Likewise.
7278         * csu/Versions: Likewise.
7279         * csu/init.c: Likewise.
7280         * elf/tst-audit2.c: Likewise.
7281         * elf/tst-tls10.c: Likewise.
7282         * elf/tst-tls10.h: Likewise.
7283         * elf/tst-tls11.c: Likewise.
7284         * elf/tst-tls12.c: Likewise.
7285         * elf/tst-tls14.c: Likewise.
7286         * elf/tst-tlsmod11.c: Likewise.
7287         * elf/tst-tlsmod12.c: Likewise.
7288         * elf/tst-tlsmod13.c: Likewise.
7289         * elf/tst-tlsmod13a.c: Likewise.
7290         * elf/tst-tlsmod14a.c: Likewise.
7291         * elf/tst-tlsmod15b.c: Likewise.
7292         * elf/tst-tlsmod16a.c: Likewise.
7293         * elf/tst-tlsmod16b.c: Likewise.
7294         * elf/tst-tlsmod7.c: Likewise.
7295         * elf/tst-tlsmod8.c: Likewise.
7296         * elf/tst-tlsmod9.c: Likewise.
7297         * gmon/gmon.c: Likewise.
7298         * grp/fgetgrent_r.c: Likewise.
7299         * grp/putgrent.c: Likewise.
7300         * hurd/fopenport.c: Likewise.
7301         * include/libc-symbols.h: Likewise.
7302         * include/tls.h: Likewise.
7303         * intl/gettextP.h: Likewise.
7304         * intl/loadinfo.h: Likewise.
7305         * locale/global-locale.c: Likewise.
7306         * locale/localeinfo.h: Likewise.
7307         * mach/devstream.c: Likewise.
7308         * malloc/arena.c: Likewise.
7309         * malloc/set-freeres.c: Likewise.
7310         * misc/err.c: Likewise.
7311         * misc/getttyent.c: Likewise.
7312         * misc/mntent_r.c: Likewise.
7313         * posix/getopt.c: Likewise.
7314         * posix/wordexp.c: Likewise.
7315         * pwd/fgetpwent_r.c: Likewise.
7316         * resolv/Versions: Likewise.
7317         * resolv/res_hconf.c: Likewise.
7318         * shadow/fgetspent_r.c: Likewise.
7319         * shadow/putspent.c: Likewise.
7320         * stdio-common/printf_fphex.c: Likewise.
7321         * stdio-common/tmpfile.c: Likewise.
7322         * stdlib/abort.c: Likewise.
7323         * stdlib/fmtmsg.c: Likewise.
7324         * sunrpc/auth_unix.c: Likewise.
7325         * sunrpc/clnt_perr.c: Likewise.
7326         * sunrpc/clnt_tcp.c: Likewise.
7327         * sunrpc/clnt_udp.c: Likewise.
7328         * sunrpc/clnt_unix.c: Likewise.
7329         * sunrpc/openchild.c: Likewise.
7330         * sunrpc/svc_simple.c: Likewise.
7331         * sunrpc/svc_tcp.c: Likewise.
7332         * sunrpc/svc_udp.c: Likewise.
7333         * sunrpc/svc_unix.c: Likewise.
7334         * sunrpc/xdr.c: Likewise.
7335         * sunrpc/xdr_array.c: Likewise.
7336         * sunrpc/xdr_rec.c: Likewise.
7337         * sunrpc/xdr_ref.c: Likewise.
7338         * sunrpc/xdr_stdio.c: Likewise.
7339
7340 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
7341
7342         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
7343
7344 2011-07-03  Andreas Jaeger  <aj@suse.de>
7345
7346         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
7347         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
7348         regenerate with gen-libm-tests.pl.
7349
7350 2010-05-12  Petr Baudis  <pasky@suse.cz>
7351
7352         [BZ #11589]
7353         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
7354         around j0() zero points by switching to j1().
7355         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
7356         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
7357         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
7358         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
7359
7360 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
7361
7362         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
7363         instead of 0.
7364         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
7365         instead of 0.                              .
7366         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
7367         Patch in part by Pavel Roskin <proski@gnu.org>.
7368
7369         [BZ #13138]
7370         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
7371         realloc.
7372         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
7373         Free memory block if necessary.
7374
7375         [BZ #12847]
7376         * libio/genops.c (INTDEF): For string streams the _lock pointer can
7377         be NULL.  Don't lock in this case.
7378
7379 2011-09-09  Roland McGrath  <roland@hack.frob.com>
7380
7381         * elf/elf.h (ELFOSABI_GNU): New macro.
7382         (ELFOSABI_LINUX): Define to that.
7383
7384 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
7385
7386         * string/strncat.c (strncat): Undef the symbol in case it has been
7387         defined in bits/string.h.
7388
7389 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
7390
7391         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
7392
7393         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
7394         link map.
7395
7396 2011-08-17  Andreas Jaeger  <aj@suse.de>
7397
7398         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
7399
7400 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
7401             Ian Lance Taylor  <iant@google.com>
7402
7403         * math/libm-test.inc (lround_test): New testcase.
7404         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
7405
7406 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
7407
7408         * Makefile: Remove support for automatic cvs check-ins.
7409         * Makerules: Likewise.
7410         * config.make.in: Likewise.
7411         * configure.in: Likewise.
7412         * intl/Makefile: Likewise.
7413         * locale/Makefile: Likewise.
7414         * po/Makefile: Likewise.
7415         * posix/Makefile: Likewise.
7416         * sysdeps/gnu/Makefile: Likewise.
7417         * sysdeps/mach/hurd/Makefile: Likewise.
7418         * sysdeps/sparc/sparc32/Makefile: Likewise.
7419
7420         [BZ #13118]
7421         * posix/Makefile (bug-regex32-ENV): Define.
7422         Patch by John Stanley <jpsinthemix@verizon.net>.
7423
7424         * misc/Makefile (headers): Add bits/select2.h.
7425         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
7426         * misc/bits/select2.h: New file.
7427         * include/bits/select2.h: New file.
7428         * debug/Makefile (routines): Add fdelt_chk.
7429         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
7430         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
7431         FD_ISSET.
7432         * debug/fdelt_chk.c: New file.
7433
7434         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
7435         * wcsmbs/test-wmemcmp.c: Likewise.
7436         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
7437         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
7438
7439 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7440
7441         * string/Makefile (strop-tests): Add memcmp.
7442         * string/test-wmemcmp.c: New file.
7443         * string/test-memcmp.c: Add wmemcmp support.
7444
7445 2011-09-08  Roland McGrath  <roland@hack.frob.com>
7446
7447         [BZ #13153]
7448         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
7449         2011-07-19 change.
7450
7451         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
7452         garbage value in a __mach_port_mod_refs call in the cases of the
7453         task-self and thread-self ports.
7454
7455 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7456
7457         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
7458
7459 2011-09-08  Andreas Schwab  <schwab@redhat.com>
7460
7461         * elf/dl-load.c (lose): Check for non-null L.
7462
7463 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
7464
7465         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
7466
7467         * elf/dl-libc.c (dlerror_run): Pass back error code from
7468         dl_catch_error.
7469
7470         [BZ #13123]
7471         * elf/dl-load.c (lose): Free l_origin if it is valid.
7472
7473         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
7474         names.
7475         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
7476         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
7477         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
7478         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
7479         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
7480         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
7481
7482 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7483
7484         * sysdeps/powerpc/fpu/e_hypot.c: New file.
7485         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
7486         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
7487         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
7488         * sysdeps/powerpc/fpu/k_cosf.c: New file.
7489         * sysdeps/powerpc/fpu/k_sinf.c: New file.
7490         * sysdeps/powerpc/fpu/s_cosf.c: New file.
7491         * sysdeps/powerpc/fpu/s_sinf.c: New file.
7492         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
7493         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
7494
7495 2011-08-15  Alan Modra  <amodra@gmail.com>
7496
7497         [BZ #13092]
7498         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
7499         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
7500         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
7501         ppc_mcount to static-only-routines.
7502         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
7503         __mcount_internal.
7504         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
7505         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
7506
7507 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
7508
7509         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
7510         for finite and infinity parameters.
7511
7512 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
7513
7514         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
7515         and add nop instructions for throughput optimization.
7516         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
7517
7518 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
7519
7520         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
7521         aligned copy for power7 with vector-scalar instructions.
7522         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
7523
7524 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
7525
7526         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
7527         AVX check.
7528
7529 2011-09-07  Andreas Schwab  <schwab@redhat.com>
7530
7531         [BZ #13144]
7532         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
7533         last change.
7534
7535 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
7536
7537         * sysdeps/unix/sysv/linux/x86_64/init-first.c
7538         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
7539         syscall wrapper around clock_gettime in __vdso_clock_gettime.
7540         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
7541         clock_gettime.
7542
7543 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
7544
7545         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
7546         Forgot to demangle the pointer.
7547
7548         * sysdeps/i386/sysdep.h: Define atom_text_section.
7549         * sysdeps/x86_64/sysdep.h: Likewise.
7550         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
7551         section with atom_text_section.
7552         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
7553         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
7554         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
7555         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
7556         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
7557
7558         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
7559         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
7560         already be defined.  Change to take two parameters and don't assign
7561         result to variable.  Adjust all users.
7562         Define INTERNAL_GETTIME if not already defined.
7563         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
7564         call.
7565         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
7566         HAVE_CLOCK_GETTIME_VSYSCALL.
7567         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
7568
7569         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
7570         gettimeofday vsyscall, just use time.
7571
7572 2011-09-06  Andreas Schwab  <schwab@redhat.com>
7573
7574         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
7575         <errno.h>.
7576
7577 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
7578
7579         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
7580         syscall on x86-64.
7581         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
7582         syscall.
7583         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
7584         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
7585         syscall if possible.
7586
7587 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
7588
7589         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
7590         e_ident.  Don't pass to find_mapsXX.
7591         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
7592
7593 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
7594
7595         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
7596         strchr-sse2-no-bsf strrchr-sse2-no-bsf
7597         * sysdeps/x86_64/multiarch/strchr.S: Update.
7598         Check bit_slow_BSF bit.
7599         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
7600         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
7601         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
7602
7603 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
7604
7605         [BZ #13134]
7606         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
7607         before glibc 2.15.
7608         (tryshell): Define.
7609         (__spawni): Change last parameter to be flag.  Test
7610         SPAWN_XFLAGS_USE_PATH flag to use path or not.
7611         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
7612         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
7613         * posix/spawni.c: Likewise.
7614         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
7615         * posix/spawnp.c: Likewise.  Change normal version to use
7616         SPAWN_XFLAGS_USE_PATH.
7617         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
7618         SPAWN_XFLAGS_TRY_SHELL.
7619
7620         [BZ #13150]
7621         * posix/glob.h: Remove gcc 1.x support.
7622
7623         [BZ #13068]
7624         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
7625
7626 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
7627
7628         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
7629         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
7630         strrchr-sse2-bsf
7631         * sysdeps/i386/i686/multiarch/strchr.S: New file.
7632         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
7633         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
7634         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
7635         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
7636         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
7637
7638 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7639
7640         * sysdeps/x86_64/wcscmp.S: New file.
7641
7642         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
7643         wcscmp-c wcscmp-sse2
7644         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
7645         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
7646         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
7647         * wcsmbs/wcscmp.c: Allow renaming.
7648
7649 2011-09-05  David S. Miller  <davem@davemloft.net>
7650
7651         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
7652         stack slot, rather than the struct return pointer slot.
7653         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
7654         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
7655         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
7656         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
7657
7658 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
7659
7660         * po/ja.po: Update from translation team.
7661
7662         [BZ #13144]
7663         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
7664         kernel in 64-bit binaries.
7665
7666 2011-09-01  David S. Miller  <davem@davemloft.net>
7667
7668         * elf/elf.h (HWCAP_SPARC_*): Move to..
7669         * sysdeps/sparc/sysdep.h: this new file and add new values.
7670         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
7671         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
7672         _DL_HWCAP_COUNT to 24.
7673         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
7674         entries.
7675         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
7676         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
7677         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
7678         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
7679         instead of magic constants.
7680         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
7681
7682 2011-08-31  David S. Miller  <davem@davemloft.net>
7683
7684         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
7685         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
7686         Reimplement to do errno handling inline.
7687         (SYSCALL_ERROR_HANDLER): New macro.
7688         (__SYSCALL_STRING): Do not do errno handling in asm.
7689         (__CLONE_SYSCALL_STRING): Delete.
7690         (__INTERNAL_SYSCALL_STRING): Delete.
7691         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
7692         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
7693         (PSEUDO): Reimplement to do errno handling inline.
7694         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
7695         (SYSCALL_ERROR_HANDLER): New macro.
7696         (__SYSCALL_STRING): Do not do errno handling in asm.
7697         (__CLONE_SYSCALL_STRING): Delete.
7698         (__INTERNAL_SYSCALL_STRING): Delete.
7699         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
7700         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
7701         i386.
7702         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
7703         (inline_syscall*): Add 'err' argument.
7704         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
7705         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
7706         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
7707         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
7708
7709         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
7710         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
7711
7712 2011-08-30  Andreas Schwab  <schwab@redhat.com>
7713
7714         * elf/rtld.c (dl_main): Relocate objects in dependency order.
7715
7716 2011-08-29  Jiri Olsa <jolsa@redhat.com>
7717
7718         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
7719         directive.
7720
7721 2011-08-24  David S. Miller  <davem@davemloft.net>
7722
7723         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
7724
7725 2011-08-24  Andreas Schwab  <schwab@redhat.com>
7726
7727         * elf/Makefile: Add rules to build and run unload8 test.
7728         * elf/unload8.c: New file.
7729         * elf/unload8mod1.c: New file.
7730         * elf/unload8mod1x.c: New file.
7731         * elf/unload8mod2.c: New file.
7732         * elf/unload8mod3.c: New file.
7733
7734         * elf/dl-close.c (_dl_close_worker): Reset private search list if
7735         it wasn't used.
7736
7737 2011-08-23  David S. Miller  <davem@davemloft.net>
7738
7739         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
7740         subtract stack bias.
7741         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
7742         %sp not %fp in calculations.
7743         (_JMPBUF_UNWINDS_ADJ): Likewise.
7744
7745         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
7746         (aio_suspend): Call it to force an exception region around the
7747         AIO_MISC_WAIT() invocation.
7748
7749 2011-08-23  Andreas Schwab  <schwab@redhat.com>
7750
7751         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
7752         backslash.
7753
7754 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
7755
7756         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
7757         protection macro.
7758         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
7759         and <dl-machine.h>.
7760         (Elf64_FuncDesc): Remove.
7761
7762 2011-08-22  David S. Miller  <davem@davemloft.net>
7763
7764         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
7765         sigaltstack check, add missing cfi directives.
7766         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
7767         missing cfi directives, and sigaltstack handling.
7768
7769 2011-08-16  Andreas Schwab  <schwab@redhat.com>
7770
7771         [BZ #11724]
7772         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
7773         object is seen twice.
7774         * elf/dl-fini.c (_dl_sort_fini): Likewise.
7775
7776         * elf/Makefile (distribute): Add tst-initorder2.c.
7777         (tests): Add tst-initorder2.
7778         (modules-names): Add tst-initorder2a tst-initorder2b
7779         tst-initorder2c tst-initorder2d.  Add rules to build them.
7780         ($(objpfx)tst-initorder2.out): New rule.
7781         * elf/tst-initorder2.c: New file.
7782         * elf/tst-initorder2.exp: New file.
7783
7784 2011-08-22  Andreas Schwab  <schwab@redhat.com>
7785
7786         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
7787
7788         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
7789         dependencies back to end of function.
7790
7791         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
7792         $(elfobjdir)/ld.so.
7793
7794 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
7795
7796         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
7797         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
7798         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
7799         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
7800         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
7801         of __vdso_gettimeofday.
7802         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
7803         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
7804         attribute_hidden.
7805         (_libc_vdso_platform_setup): Remove initialization of
7806         __vdso_gettimeofday and __vdso_time.
7807
7808 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
7809
7810         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
7811         and fgetc_unlocked.
7812         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
7813         getc_unlocked.
7814
7815         * elf/dl-open.c (add_to_global): Report additions to the global scope
7816         for LD_DEBUG=scopes.
7817         (dl_open_worker): Also print scope of newly loaded dependencies.
7818         (_dl_show_scope): Indicate if there is no scope.
7819
7820         [BZ #13114]
7821         * stdio-common/Makefile (tests): Add bug24.
7822         * stdio-common/bug24.c: New file.
7823
7824 2011-08-19  Andreas Jaeger  <aj@suse.de>
7825
7826         [BZ #13114]
7827         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
7828         non-existant file when using close-on-exec mode.
7829
7830 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
7831
7832         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
7833         the very first instruction.
7834
7835         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
7836         the CFI state in the end.
7837         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
7838         inclusion of dl-trampoline.h.
7839         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
7840
7841 2011-08-19  Andreas Schwab  <schwab@redhat.com>
7842
7843         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
7844         expectations for long double.
7845
7846         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
7847         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
7848
7849 2011-08-14  David S. Miller  <davem@davemloft.net>
7850
7851         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
7852         artificual limit depends upon the system page size.
7853
7854 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
7855
7856         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
7857         * resolv/Makefile: Define CFLAGS-libresolv.
7858
7859 2011-08-17  Andreas Schwab  <schwab@redhat.com>
7860
7861         * nss/makedb.c (compute_tables): Make variables used in nested
7862         function static.
7863
7864 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
7865
7866         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
7867         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
7868         if buffer was too small.
7869
7870         * elf/pldd.c (main): Attach to all threads in the process.
7871         Rewrite /proc handling to use *at functions.
7872
7873 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
7874
7875         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
7876         specifies first scope to show.
7877         (dl_open_worker): Update callers.  Move printing scope of new
7878         object to before the relocation.
7879         * elf/rtld.c (dl_main): Update _dl_show_scope call.
7880         * sysdeps/generic/ldsodefs.h: Update declaration.
7881
7882         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
7883         string for the scope number.
7884
7885 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
7886
7887         * nscd/servicescache.c (cache_addserv): Make sure written is always
7888         initialized.
7889
7890 2011-08-14  Roland McGrath  <roland@hack.frob.com>
7891
7892         * sysdeps/i386/i486/bits/atomic.h
7893         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
7894         statement expression, so as to suppress "set but not used" warning.
7895         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
7896
7897         * string/strncat.c (STRNCAT): Use prototype definition.
7898
7899         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
7900         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
7901         -Iprograms here.
7902         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
7903         (localedef-modules): Add localedef.
7904         (locale-modules): Add locale.
7905
7906         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
7907         * elf/rtld.c (dl_main): Invert order of assignment in last change,
7908         to avoid a warning.
7909
7910 2011-08-14  David S. Miller  <davem@davemloft.net>
7911
7912         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
7913         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
7914
7915 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
7916
7917         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
7918         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
7919         * elf/rtld.c (dl_main): Set l_name of vDSO.
7920         Call _dl_show_scope when DL_DEBUG_SCOPES.
7921         (process_dl_debug): Recognize scopes flag and also set it for all.
7922         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
7923         Declare _dl_show_scope.
7924
7925         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
7926         (do_dlopen): Pass caller_dlopen to dl_open.
7927         (__libc_dlopen_mode): Initialize caller_dlopen.
7928
7929         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
7930         of libc.  Make tolower call locale-independent.  Optimize a bit by
7931         using isdigit instead of isalnum.
7932         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
7933
7934 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
7935
7936         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
7937         was a dependency or dynamically loaded.
7938
7939 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
7940
7941         * intl/l10nflist.c: Allow architecture-specific pop function.
7942         * sysdeps/x86_64/l10nflist.c: New file.
7943
7944         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
7945         classification.
7946
7947 2011-08-10  Andreas Schwab  <schwab@redhat.com>
7948
7949         * include/dirent.h: Add libc_hidden_proto for scandirat and
7950         scandirat64.  Don't declare __scandirat64.
7951         * dirent/scandirat.c: Add libc_hidden_def.
7952         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
7953         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
7954
7955 2011-08-10  David S. Miller  <davem@davemloft.net>
7956
7957         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
7958         enum.
7959         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
7960         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
7961         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
7962
7963 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
7964
7965         * Versions.def [libc]: Add GLIBC_2.15.
7966         * dirent/Makefile (routines): Add scandirat and scandirat64.
7967         * dirent/Versions [libc]: Export scandirat and scandirat64 for
7968         GLIBC_2.15.
7969         * dirent/dirent.h: Declare scandirat and scandirat64.
7970         * dirent/scandirat.c: New file.
7971         * dirent/scandirat64.c: New file.
7972         * sysdeps/wordsize-64/scandirat.c: New file.
7973         * sysdeps/wordsize-64/scandirat64.c: New file.
7974         * dirent/opendir.c: Define opendirat.
7975         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
7976         using scandirat.
7977         * dirent/scandir64.c: Adjust for scandir.c change.
7978         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
7979         __scandirat64, and __scandir_cancel_handler.
7980         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
7981         additional parameter and use openat instead of open (outside of ld.so).
7982         Add new __opendir as wrapper around __opendirat.
7983         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
7984         here without requiring old scandirat implementation.
7985
7986 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
7987
7988         * dirent/scandir.c (cancel_handler): Renamed to
7989         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
7990         defined.  Adjust users.
7991         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
7992         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
7993
7994 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
7995
7996         * string/test-string.h (IMPL): Use __STRING to expand name and then
7997         stringify it.
7998
7999         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
8000         of cleanups.
8001
8002 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8003
8004         * string/Makefile: Update.
8005         (strop-tests): Append strncat.
8006         * string/test-wcscmp.c: New file.
8007         New comprehensive test for wcscmp.
8008         * string/test-strcmp.c: Update.
8009         (WIDE): New define.
8010
8011 2011-07-22  Andreas Schwab  <schwab@redhat.com>
8012
8013         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
8014         line.
8015
8016 2011-07-26  Andreas Schwab  <schwab@redhat.com>
8017
8018         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
8019         encoding to ACE if AI_IDN.
8020
8021 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
8022
8023         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
8024         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
8025
8026 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
8027
8028         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
8029         Fix overflow bug in strncat.
8030         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
8031
8032         * string/test-strncat.c: Update.
8033         Add new tests for checking overflow bugs.
8034
8035 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
8036
8037         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
8038         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
8039         * sysdeps/i386/i686/multiarch/strcat.S: New file.
8040         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
8041         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
8042         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
8043         * sysdeps/i386/i686/multiarch/strncat.S: New file.
8044         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
8045         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
8046
8047         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
8048         (USE_AS_STRCAT): Define.
8049         Add strcat and strncat support.
8050         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
8051
8052 2011-07-25  Andreas Schwab  <schwab@redhat.com>
8053
8054         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
8055         __n bigger than INT_MAX+1.
8056         (__strncmp_g): Likewise.
8057
8058 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
8059
8060         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
8061         * libio/stido.h: Likewise.
8062
8063         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
8064         (AF_NFC): Define.
8065         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
8066         (AF_NFC): Define.
8067
8068         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
8069         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
8070         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
8071         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
8072         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
8073
8074         [BZ #13021]
8075         * scripts/test-installation.pl: Don't expect libnss_test1 to be
8076         installed.
8077
8078         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
8079         typo.
8080         (_dl_x86_64_save_sse): Likewise.
8081
8082 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
8083
8084         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
8085         OSXSAVE.
8086         (_dl_x86_64_save_sse): Likewise.
8087
8088         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
8089
8090         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
8091
8092 2011-07-21  Andreas Schwab  <schwab@redhat.com>
8093
8094         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
8095         change.
8096         (_dl_x86_64_save_sse): Use correct AVX check.
8097
8098 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8099
8100         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
8101         bug in strncpy/strncat.
8102         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
8103
8104 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
8105
8106         * string/tester.c (test_strcat): Add tests for different alignments
8107         of source and destination.
8108         (test_strncat): Likewise.
8109
8110 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
8111
8112         [BZ #12852]
8113         * posix/glob.c (glob): Check passed in values before using them in
8114         expressions to avoid some overflows.
8115         (glob_in_dir): Likewise.
8116
8117         [BZ #13007]
8118         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
8119         check for AVX enablement so that we don't crash with old kernels and
8120         new hardware.
8121         * elf/tst-audit4.c: Add same checks here.
8122         * elf/tst-audit6.c: Likewise.
8123
8124         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
8125
8126 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
8127
8128         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
8129
8130 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
8131
8132         * po/cs.po: Update from translation team.
8133         * po/bg.po: Likewise.
8134
8135 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
8136
8137         * misc/sys/cdefs.h: Add support for const attribute.
8138         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
8139         to gnu_dev_{major,minor,makedev} functions.
8140
8141 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
8142
8143         * intl/dcigettext.c (get_output_charset): Add missing bracket.
8144
8145 2011-07-20  Andreas Schwab  <schwab@redhat.com>
8146
8147         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
8148         strlen results.
8149
8150 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8151
8152         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
8153         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
8154         register in order to avoid conflicts with the soft frame pointer
8155         being held in r11 when necessary.
8156         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
8157         (INTERNAL_VSYSCALL_NCS): Likewise.
8158
8159 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
8160
8161         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
8162         * elf/dl-fini.c (_dl_fini): Adjust caller.
8163         * elf/dl-close.c (_dl_close_worker): Likewise.
8164         * sysdeps/generic/ldsodefs.h: Adjust declaration.
8165
8166 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
8167
8168         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
8169         "aux_cache->nlibs < 0".
8170
8171         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
8172         in the reload-count case.
8173
8174 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
8175
8176         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
8177         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
8178         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
8179         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
8180         * sysdeps/x86_64/multiarch/strcat.S: New file.
8181         * sysdeps/x86_64/multiarch/strncat.S: New file.
8182         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
8183         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
8184         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
8185         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
8186         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
8187         (USE_AS_STRCAT): Define.
8188         Add strcat and strncat support.
8189         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
8190         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
8191         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
8192         * string/strncat.c: Update.
8193         (USE_AS_STRNCAT): Define.
8194         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
8195         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
8196         and i7.
8197         * sysdeps/x86_64/multiarch/init-arch.h
8198         (bit_Prefer_PMINUB_for_stringop): New.
8199         (index_Prefer_PMINUB_for_stringop): Likewise.
8200         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
8201         bit_Prefer_PMINUB_for_stringop.
8202
8203 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
8204
8205         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
8206         buffer64.
8207         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
8208         of casting of buffer.
8209         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
8210         buffer32 and buffer64.
8211         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
8212         writes instead of casting of buffer.
8213         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
8214         buffer32.
8215         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
8216         casting of buffer.
8217
8218 2011-07-19  Andreas Schwab  <schwab@redhat.com>
8219
8220         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
8221
8222 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
8223
8224         * nscd/nscd.c (termination_handler): Don't do anything for a database
8225         if it has not yet been initialized.
8226
8227 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
8228
8229         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
8230
8231 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
8232
8233         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
8234
8235 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
8236
8237         * po/nl.po: Update from translation team.
8238         * po/sv.po: Likewise.
8239
8240 2011-07-16  Roland McGrath  <roland@hack.frob.com>
8241
8242         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
8243         now disallowed by GCC.
8244
8245         * configure.in (use-default-link): Default to yes if a test -shared
8246         link meets our qualifications.
8247         * configure: Regenerated.
8248
8249         * config.make.in (output-format): New variable.
8250         * configure.in: Check for ld --print-output-format support.
8251         * configure: Regenerated.
8252         * Makerules ($(common-objpfx)format.lds)
8253         [$(output-format) != unknown]: Just use $(output-format),
8254         instead of the linker-script munging.
8255
8256 2011-07-14  Roland McGrath  <roland@hack.frob.com>
8257
8258         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
8259         of $(common-objpfx)shlib.lds.
8260         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
8261
8262         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
8263         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
8264
8265         * configure.in (-z relro check): Adjust test code to add a large
8266         writable data section after it.
8267         * configure: Regenerated.
8268
8269 2011-07-11  Roland McGrath  <roland@hack.frob.com>
8270
8271         * configure.in (-z relro check): Fix test code to make the variable
8272         truly const.
8273         * configure: Regenerated.
8274
8275 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
8276
8277         * nscd/nscd.h (struct traced_file): Define.
8278         (struct database_dyn): Remove inotify_descr, reset_res, and filename
8279         elements.  Add traced_files.
8280         (inotify_fd): Declare.
8281         (register_traced_file): Declare.
8282         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
8283         (inotify_fd): Export.
8284         (resolv_conf_descr): Remove.
8285         (nscd_init): Move inotify descriptor creation to main.
8286         Don't register files for notification here.
8287         (register_traced_file): New function.
8288         (invalidate_cache): Don't use reset_res to determine whether to call
8289         res_init, go through the list of registered files.
8290         (main_loop_poll): The inotify descriptors are now stored in the
8291         structures for the traced files.
8292         (main_loop_epoll): Likewise
8293         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
8294         to __nss_disable_nscd.
8295         * nscd/cache.c (prune_cache): There is no single inotify descriptor
8296         for a database anymore.  Check the records for all the registered
8297         files instead.
8298         * nss/Makefile (libnss_files-routines): Add files-init.
8299         (libnss_db-routines): Add db-init.
8300         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
8301         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
8302         * nss/nss_db/db-init.c: New file.
8303         * nss/nss_files/files-init.c: New file.
8304         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
8305         __nss_lookup_function.
8306         (__nss_lookup_function): Call nss_load_library.
8307         (nss_load_all_libraries): New function.
8308         (__nss_disable_nscd): Take parameter with callback function for files
8309         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
8310         used for the cached services.
8311         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
8312         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
8313         options for features to all the files in nscd.
8314
8315         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
8316
8317 2011-07-10  Roland McGrath  <roland@hack.frob.com>
8318
8319         * csu/elf-init.c (__libc_csu_init): Comment typo.
8320
8321 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
8322
8323         * po/pl.po: Update from translation team.
8324         * po/ja.po: Likewise.
8325         * po/ru.po: Likewise.
8326         * po/ko.po: Likewise.
8327         * po/fr.po: Likewise.
8328
8329 2011-07-09  Roland McGrath  <roland@hack.frob.com>
8330
8331         * configure.in (.ctors/.dtors header and trailer check):
8332         Use an empirical test on a built program.
8333         * configure: Regenerated.
8334
8335         * configure.in (-z relro check): Use an empirical test on a built DSO.
8336         Detect, but do not require, on ia64.
8337         * configure: Regenerated.
8338
8339         * configure.in (READELF): Find it with AC_CHECK_TOOL.
8340         Update tests that use readelf to use $READELF instead.
8341         * configure: Regenerated.
8342
8343 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
8344
8345         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
8346         if the result is not used.
8347
8348 2011-07-05  Andreas Jaeger  <aj@suse.de>
8349
8350         [BZ#9696]
8351         * stdlib/tst-strtod.c: Add testcase.
8352
8353 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
8354
8355         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
8356         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
8357         The latter has a higher limit.  Take additional parameter to pass to
8358         the new function.
8359         (__pathconf): Pass file to __statfs_link_max.
8360         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
8361         __statfs_link_max.
8362         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
8363         __statfs_link_max.
8364
8365         [BZ #12868]
8366         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
8367         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
8368         Handle Lustre.
8369         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
8370         (__statfs_filesize_max): Likewise.
8371         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
8372
8373 2011-07-05  Andreas Jaeger  <aj@suse.de>
8374
8375         * resolv/res_comp.c (dn_skipname): Remove unused variable.
8376
8377 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
8378
8379         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
8380         `status' variable.
8381         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
8382         Likewise.
8383
8384 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
8385
8386         * Makefile (strop-tests): Add strncat.
8387         * string/test-strncat.c: New file.
8388
8389 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
8390
8391         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
8392
8393 2011-06-21  Andreas Jaeger  <aj@suse.de>
8394
8395         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
8396         Copy rule from iconvdata/Makefile.
8397
8398 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
8399
8400         [BZ #12922]
8401         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
8402         but no long options are defined, just return 'W'.
8403
8404 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
8405
8406         [BZ #9696]
8407         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
8408
8409 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
8410
8411         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
8412         netgroups to read.
8413         (innetgr): Likewise.
8414
8415 2011-07-05  Roland McGrath  <roland@hack.frob.com>
8416
8417         * config.make.in (install_root): Default to $(DESTDIR).
8418
8419 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
8420
8421         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
8422
8423 2011-07-02  Roland McGrath  <roland@hack.frob.com>
8424
8425         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
8426
8427         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
8428         containing directory rather than embedding absolute directory names.
8429
8430         * scripts/check-local-headers.sh: Rewritten using awk.
8431         Match by word, not by line.  Print error messages for matches.
8432         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
8433
8434         * Makerules [shlib-lds-flags empty]:
8435         ($(common-objpfx)libc_pic.opts): New target.
8436         ($(common-objpfx)libc_pic.os.clean): New target.
8437         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
8438
8439         * config.make.in (OBJCOPY): New variable.
8440         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
8441         * configure: Regenerated.
8442
8443         * config.make.in (use-default-link): New variable.
8444         * configure.in (use_default_link): Grok --with-default-link to set it.
8445         * configure: Regenerated.
8446         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
8447         (shlib-lds, shlib-lds-flags): Define to empty.
8448
8449         * Makerules (shlib-lds): New variable.
8450         (shlib-lds-flags): New variable.
8451         (build-shlib, build-moduile, build-module-asneeded): Use it.
8452         ($(common-objpfx)libc.so): Use $(shlib-lds).
8453         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
8454         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
8455
8456         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
8457         DT_FLAGS/DT_FLAGS_1 with zero flags.
8458
8459         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
8460         linker script munging.
8461
8462 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
8463
8464         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
8465         as 128-bit value.
8466         * crypt/sha512.c (sha512_process_block): Perform total addition using
8467         128-bit if possible.
8468         (__sha512_finish_ctx): Likewise.
8469         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
8470         as 64-bit value.
8471         * crypt/sha256.c (SWAP64): Define.
8472         (sha256_process_block): Perform total addition using 64-bit if
8473         possible.
8474         (__sha256_finish_ctx): Likewise.
8475
8476 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
8477
8478         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
8479         * nscd/initgrcache.c (addinitgroupsX): Likewise.
8480         * nscd/hstcache.c (cache_addhst): Likewise.
8481         * nscd/grpcache.c (cache_addgr): Likewise.
8482         * nscd/aicache.c (addhstaiX): Likewise
8483         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
8484
8485 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
8486
8487         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
8488         * nscd/initgrcache.c (addinitgroupsX): Likewise.
8489         * nscd/hstcache.c (cache_addhst): Likewise.
8490         * nscd/grpcache.c (cache_addgr): Likewise.
8491         * nscd/aicache.c (addhstaiX): Likewise
8492
8493 2011-07-01  Andreas Schwab  <schwab@redhat.com>
8494
8495         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
8496         domain only when needed.
8497
8498 2011-06-30  Andreas Schwab  <schwab@redhat.com>
8499
8500         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
8501         is always restored.
8502
8503 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
8504
8505         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
8506         are re-adding the entry.
8507         * nscd/servicescache.c (cache_addserv): Likewise.
8508
8509 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
8510
8511         * sysdeps/generic/dl-irel.h: fix protection against multiple
8512         inclusions.
8513         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
8514
8515 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
8516
8517         [BZ #12935]
8518         * malloc/memusage.sh: Fix quoting in message.
8519         * debug/xtrace.sh: Likewise.
8520
8521         * configure.in: Remove support for --experimental-malloc option, make
8522         it the default.
8523         * config.make.in: Likewise.
8524         * malloc/Makefile: Likewise.
8525
8526 2011-06-27  Andreas Schwab  <schwab@redhat.com>
8527
8528         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
8529         two-byte characters.
8530
8531 2011-06-27  Roland McGrath  <roland@hack.frob.com>
8532
8533         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
8534         AC_CACHE_CHECK invocation.
8535         * configure: Regenerated.
8536
8537         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
8538
8539 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
8540
8541         [BZ #12350]
8542         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
8543         bit from old_res_options.
8544
8545         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
8546
8547         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
8548         value type for setfct.
8549
8550 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
8551
8552         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
8553         __gettimeofday instead of gettimeofday.
8554
8555 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
8556
8557         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
8558
8559 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
8560
8561         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
8562
8563         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
8564         info.
8565
8566 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
8567
8568         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
8569         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
8570         strcpy-sse2-unaligned strncpy-sse2-unaligned
8571         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
8572         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
8573         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
8574         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
8575         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
8576         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
8577         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
8578         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
8579         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
8580         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
8581         (STRCPY): Support SSE2 and SSSE3 versions.
8582
8583 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
8584
8585         [BZ #12874]
8586         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
8587         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
8588         kernels which artificially limit size of requests.
8589
8590 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
8591
8592         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
8593         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
8594         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
8595         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
8596         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
8597         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
8598         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
8599         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
8600         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
8601         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
8602         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
8603         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
8604         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
8605         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
8606         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
8607         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
8608         Enable unaligned load optimization for Intel Core i3, i5 and i7
8609         processors.
8610         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
8611         Define.
8612         (index_Fast_Unaligned_Load): Define.
8613         (HAS_FAST_UNALIGNED_LOAD): Define.
8614
8615 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
8616
8617         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
8618
8619 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
8620
8621         [BZ #12907]
8622         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
8623         until it is clear that the information is realy needed.
8624         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
8625
8626 2011-06-22  Andreas Schwab  <schwab@redhat.com>
8627
8628         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
8629
8630 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
8631
8632         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
8633         /sys/devices/system/cpu/online if it is usable.
8634
8635         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
8636         reading the information from the /proc filesystem to once a second.
8637
8638 2011-06-21  Andreas Jaeger  <aj@suse.de>
8639
8640         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
8641         NULL after inclusion of kernel headers.
8642
8643 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
8644
8645         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
8646         calls to internal_setent.
8647
8648         [BZ #12885]
8649         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
8650         addresses using gethostbyname4_r ignore IPv4 addresses.
8651
8652         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
8653         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
8654
8655         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
8656
8657 2011-06-20  David S. Miller  <davem@davemloft.net>
8658
8659         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
8660         inclusions.
8661         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
8662
8663         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
8664         (elf_irel): Use it.
8665         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
8666         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
8667         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
8668         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
8669         * sysdeps/x86_64/dl-irel.h: Likewise.
8670
8671         * elf/dl-runtime.c: Use elf_ifunc_invoke.
8672         * elf/dl-sym.c: Likewise.
8673
8674 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
8675
8676         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
8677         need to dereference resplen2.
8678
8679 2011-06-14  Andreas Schwab  <schwab@redhat.com>
8680
8681         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
8682
8683 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
8684
8685         * Makeconfig: Define vardbdir and inst_vardbdir.
8686         * nss/Makefile: Add rules to install db-Makefile.
8687
8688         * nss/nss_db/db-XXX.c: Cleanup.
8689
8690         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
8691         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
8692         GLIBC_PRIVATE.
8693         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
8694         * nss/makedb.c: Implement -g option to specify that value strings
8695         are generated and should not be added to table iterated over for
8696         get*ent calls.
8697         * nss/nss_db/db-initgroups.c: New file.
8698
8699         * nss/getent.c: Add support for initgroups lookups through getgrouplist
8700         interface.
8701
8702         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
8703         (internal_getgrouplist): Adjust to name change.
8704         Update use_initgroups_entry if this is not the first call.
8705         * nss/databases.def: Add initgroups entry.
8706
8707         * nss/makedb.c (compute_tables): Check result of multiple hash table
8708         sizes to minimize maximum chain length.
8709
8710 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
8711
8712         * Versions.def: Add entry for libnss_db.
8713         * shlib-versions: Likewise.
8714         * nss/Makefile: Add rules to build libnss_db.
8715         * nss/Versions: Add libnss_db information.  Organize libnss_files
8716         entries better.
8717         * nss/db-Makefile: Add gshadow support.  Change rules for the new
8718         makedb progra.  Some minor improvements to generate smaller files.
8719         * nss/nss_db/nss_db.h: Move NSS database header data structures to
8720         here from...
8721         * nss/makedb.c: ...here.
8722         Improve database format to be smaller and require less memory at
8723         runtime.
8724         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
8725         db anymore.
8726         * nss/nss_db/db-netgrp.c: Likewise.
8727         * nss/nss_db/db-open.c: Likewise.
8728         * nss/nss_files/flies-XXX.x: Adjust comments.
8729         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
8730         * nss/nss_files/files-grp.c: Likewise.
8731         * nss/nss_files/files-hosts.c: Likewise.
8732         * nss/nss_files/files-network.c: Likewise.
8733         * nss/nss_files/files-proto.c: Likewise.
8734         * nss/nss_files/files-pwd.c: Likewise.
8735         * nss/nss_files/files-rpc.c: Likewise.
8736         * nss/nss_files/files-service.c: Likewise.
8737         * nss/nss_files/files-sgrp.c: Likewise.
8738         * nss/nss_files/files-spwd.c: Likewise.
8739         * nss/nss_db/db-alias.c: Removed.
8740         * nss/nss_db/dummy-db.h: Removed.
8741
8742 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
8743
8744         * nss/makedb.c: Rewritten to not use database library.
8745         * nss/Makefile: Update to build new makedb program.
8746
8747 2011-06-14  Andreas Jaeger  <aj@suse.de>
8748
8749         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
8750         memset declaration.
8751
8752 2011-06-10  Andreas Schwab  <schwab@redhat.com>
8753
8754         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
8755         tmpbuf.
8756
8757 2011-06-10  Roland McGrath  <roland@hack.frob.com>
8758
8759         * Makerules (shlib.lds): Fail if the linker script comes out empty.
8760         * elf/Makefile ($(objpfx)ld.so): Likewise.
8761
8762         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
8763         Don't list ld.so twice in dependencies.
8764
8765         * posix/bug-regex31.c: Include <stdlib.h>.
8766
8767         * nscd/hstcache.c (cache_addhst): Remove unused variable.
8768
8769         * nis/nss_compat/compat-spwd.c
8770         (getspent_next_nss_netgr): Remove unused variable.
8771         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
8772
8773         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
8774         nonmembers" output to use the right array.
8775
8776         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
8777
8778         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
8779
8780         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
8781         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
8782         * catgets/gencat.c (read_input_file): Likewise.
8783         * locale/programs/locarchive.c (enlarge_archive): Likewise.
8784
8785         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
8786         variable definition inside #if's controlling its use.
8787
8788         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
8789
8790         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
8791
8792         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
8793
8794         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
8795         unreachable code.
8796
8797         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
8798
8799         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
8800         * configure: Regenerated.
8801
8802         * Makerules: Revert last change.
8803         * elf/Makefile: Likewise.
8804
8805 2011-06-09  Roland McGrath  <roland@hack.frob.com>
8806
8807         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
8808         * elf/Makefile ($(objpfx)librtld.os): Likewise.
8809         (reloc-link): Likewise.
8810
8811 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
8812
8813         * elf/Makefile: Add rules to build pldd.
8814         * elf/pldd.c: New file.
8815         * elf/pldd-xx.c: New file.
8816
8817 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
8818
8819         * version.h: Update for 2.15 development version.
8820
8821 2011-06-07  David S. Miller  <davem@davemloft.net>
8822
8823         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
8824         ifuncs.
8825         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
8826         elf_machine_lazy_rel): Likewise.
8827         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
8828         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
8829         elf_machine_lazy_rel): Likewise.
8830         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
8831         dl_hwcap via passed in argument.
8832         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
8833         Likewise.
8834
8835 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8836
8837         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
8838
8839 2011-06-06  Roland McGrath  <roland@hack.frob.com>
8840
8841         [BZ #12849]
8842         * manual/fdl-1.1.texi: New file, verbatim from:
8843         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
8844         * manual/lgpl-2.1.texi: New file, verbatim from:
8845         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
8846         * manual/Makefile (licenses): New variable, list those new file names.
8847         (texis): Use it.
8848         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
8849
8850         * manual/fdl.texi: File removed.
8851         * manual/lesser.texi: File removed.
8852         * manual/libc.texinfo (Copying, Documentation License):
8853         Use new @include file names, put @appendix directive before @include.
8854
8855 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
8856
8857         [BZ #12841]
8858         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
8859         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
8860         (mq_open): Add __NTH.
8861
8862 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
8863
8864         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
8865         Assume Intel Core i3/i5/i7 processor if AVX is available.
8866
8867 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
8868
8869         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
8870         typo.
8871
8872 2011-05-31  Andreas Schwab  <schwab@redhat.com>
8873
8874         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
8875         memory.  Use alloca_account.  Fix memory leak when retrying.
8876
8877 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
8878
8879         * version.h (RELEASE): Bump for 2.14 release.
8880         * include/features.h (__GLIBC_MINOR__): Bump to 14.
8881
8882         * config.make.in (RANLIB): Remove entry.
8883
8884 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
8885
8886         * po/Makefile (po-sed-cmd): Add ksh to extensions.
8887         (libc.pot): Work around missing support for .ksh extension in xgettext.
8888
8889         [BZ #12684]
8890         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
8891         if both request failed.
8892         (send_dg): In case of server errors clear resplen or *resplen2.
8893
8894         [BZ #12454]
8895         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
8896         when there are multiple maps.
8897         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
8898         (_dl_fini): Remove test here.
8899
8900         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
8901
8902 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
8903
8904         [BZ #12350]
8905         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
8906         bit from old_res_options.
8907         (gaih_inet): Likewise.
8908
8909         [BZ #11099]
8910         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
8911         as signed.
8912
8913         * resolv/res_init.c (res_setoptions): Make the code more compact.
8914
8915         [BZ #11558]
8916         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
8917         set RES_USEVC.
8918
8919         [BZ #11634]
8920         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
8921
8922         * malloc/malloc.h: Mark malloc hook variables as deprecated.
8923
8924         [BZ #11781]
8925         * malloc/malloc.h: Declare malloc hook variables as volatile.
8926
8927         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
8928         in last patch.
8929
8930         [BZ #11799]
8931         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
8932         raise in the comment.
8933         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
8934         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
8935         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
8936
8937 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
8938
8939         [BZ #12811]
8940         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
8941         grow the buffers more if it already has to be sufficient.
8942         (build_wcs_upper_buffer): Likewise.
8943         * posix/regexec.c (check_matching): Likewise.
8944         (clean_state_log_if_needed): Likewise.
8945         (extend_buffers): Don't enlarge buffers beyond size of the input
8946         buffer.
8947         Patches mostly by Emil Wojak <emil@wojak.eu>.
8948         * posix/bug-regex32.c: New file.
8949         * posix/Makefile (tests): Add bug-regex32.
8950
8951         * locale/findlocale.c (_nl_find_locale): Return right away if
8952         _nl_explode_name failed.
8953         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
8954
8955         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
8956
8957         * debug/xtrace.sh: Unify messages.
8958         * malloc/memusage.sh: Likewise.
8959
8960         [BZ #12813]
8961         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
8962         time symbol from vDSO.  Substitute with vsyscall if not available.
8963         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
8964         __vdso_time.
8965
8966         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
8967         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
8968         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
8969         Add sendmmsg and internal_sendmmsg.
8970         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
8971         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
8972         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
8973
8974         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
8975         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
8976         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
8977
8978 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
8979
8980         [BZ #12813]
8981         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
8982         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
8983         available.
8984         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
8985         __vdso_getcpu.
8986
8987         [BZ #12814]
8988         * iconvdata/Makefile (tests): Add bug-iconv9.
8989         * iconvdata/bug-iconv9.c: New file.
8990
8991 2011-05-27  Andreas Schwab  <schwab@redhat.com>
8992
8993         [BZ #12814]
8994         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
8995
8996 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
8997
8998         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
8999         (struct user_regs_struct): Change intcs field back to cs.
9000
9001 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
9002
9003         * po/ja.po: Update from translation team.
9004
9005 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
9006
9007         [BZ #12795]
9008         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
9009         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
9010
9011 2011-05-20  Andreas Schwab  <schwab@redhat.com>
9012
9013         * stdlib/longlong.h: Update from GCC.
9014
9015 2011-05-23  Andreas Schwab  <schwab@redhat.com>
9016
9017         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
9018         parameter name.
9019         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
9020         Add parameter name.
9021         (__sysconf): Pass it down.
9022
9023 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
9024
9025         [BZ #12671]
9026         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
9027         some situations.
9028         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
9029         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
9030         add in in __libc_use_alloca calls.  Adjust callers.
9031         (glob): Use malloc in some situations.
9032
9033         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
9034         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
9035         pltexit.
9036
9037 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
9038
9039         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
9040         and CLOCK_BOOTTIME_ALARM.
9041
9042         [BZ #12782]
9043         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
9044         is returned.
9045
9046         * string/_strerror.c (__strerror_r): Print negative errors as signed
9047         numbers.
9048
9049         [BZ #12777]
9050         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
9051         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
9052         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
9053
9054         * configure.in: Fix typo in redirection and correct removal of test
9055         files in two cases.
9056
9057         [BZ #12788]
9058         * locale/setlocale.c (new_composite_name): Fix test to check for
9059         identical name of all categories.
9060
9061         [BZ #12792]
9062         * libio/filedoalloc.c (local_isatty): New function.
9063         (_IO_file_doallocate): Use local_isatty.
9064         * stdio-common/perror.c (perror): In case a new stream is used
9065         forward the stream error.
9066         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
9067         error flag.
9068
9069 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
9070
9071         [BZ #11869]
9072         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
9073         alloca.
9074         * include/alloca.h (extend_alloca_account): Define.
9075
9076         [BZ #11857]
9077         * posix/regex.h: Fix comments with documentation of user-accessible
9078         fields after compilation and describe correct free'ing of pattern
9079         after re_compile_pattern.
9080         Patch by Reuben Thomas <rrt@sc3d.org>.
9081
9082 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
9083
9084         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
9085         and -mno-altivec to prevent the compiler from using Altivec and/or
9086         VSX instructions when the corresponding registers are not available.
9087
9088 2011-05-19  Andreas Schwab  <schwab@redhat.com>
9089
9090         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
9091
9092 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
9093
9094         * libio/freopen.c (freopen): Use __dup2, not dup2.
9095         * libio/freopen64.c (freopen64): Likewise.
9096
9097 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
9098
9099         [BZ #12775]
9100         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
9101         * math/Makefile (tests): Add test-powl.
9102         (CFLAGS-test-powl.c): Define.
9103         * math/test-powl.c: New file.
9104
9105 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
9106
9107         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
9108
9109 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
9110
9111         [BZ #11837]
9112         * iconvdata/gb18030.c: Update to GB18020-2005.
9113
9114 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
9115
9116         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
9117         RE_SYNTAX_POSIX_AWK): Update to match recent development.
9118         Patch by Aharon Robbins <arnold@skeeve.com>.
9119
9120         [BZ #11892]
9121         * stdlib/putenv.c (putenv): Don't always create copy of the variable
9122         on the stack.
9123
9124         [BZ #11895]
9125         * misc/pselect.c (__pselect): Handle timeout value errors hidden
9126         through underflows.
9127
9128         [BZ #12766]
9129         * misc/error.c (error_at_line): Ensure file_name and old_file_name
9130         point to strings before performing equality test for error_one_per_line
9131         mode.
9132
9133         [BZ #11697]
9134         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
9135
9136         [BZ #11820]
9137         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
9138         (struct user_fpregs_struct): Avoid __uint*_t types.
9139
9140         [BZ #6420]
9141         * malloc/mtrace.c (tr_where): Add additional parameter to point to
9142         symbol info.  Use it instead of calling _dl_addr locally.
9143         (lock_and_info): New function.
9144         (tr_freehook): Call lock_and_info and pass symbol info as additional
9145         parameter to tr_where.
9146         (tr_mallochook): Likewise.
9147         (tr_reallochook): Likewise.
9148         (tr_memalignhook): Likewise.
9149
9150         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
9151         used and couldn't be at all thread-safe.
9152
9153 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
9154
9155         * libio/freopen.c (freopen): Don't close old file descriptor
9156         before the new one is opened.  Instead dup the new file descriptor
9157         to the old one after the new stream is created.
9158         * libio/freopen64.c (freopen64): Likewise.
9159         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
9160         * libio/fileops.c (_IO_new_file_close_it): Handle new
9161         _IO_FLAGS2_NOCLOSE flag.
9162         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
9163         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
9164         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
9165         _IO_FLAGS2_NOCLOSE flag.
9166         * include/unistd.h: Add hidden_proto for dup3.
9167         Define __have_dup3.
9168         * io/dup3.c: Define hidden symbol.
9169         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
9170
9171         [BZ #7101]
9172         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
9173         when an incomplete long option is used.
9174         * posix/tst-getopt_long1.c: New file.
9175         * posix/Makefile (tests): Add tst-getopt_long1.
9176
9177         [BZ #10138]
9178         * scripts/config.guess: Update from autoconf-2.68.
9179         * scripts/config.sub: Likewise.
9180
9181         [BZ #10157]
9182         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
9183         tests into ...
9184         (has_cpuclock): ...this.  New function.
9185         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
9186         macro here based on has_cpuclock code.
9187
9188         [BZ #10149]
9189         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
9190         First byte (not low byte) is now always NUL.
9191         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
9192
9193         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
9194         Use non-cancelable interfaces.
9195
9196         [BZ #9809]
9197         * locale/iso-639.def: Add entry for Sorani.
9198
9199         [BZ #11901]
9200         * include/stdlib.h: Move include protection to the right place.
9201         Define abort_msg_s.  Declare __abort_msg with it.
9202         * stdlib/abort.c (__abort_msg): Adjust type.
9203         * assert/assert.c (__assert_fail_base): New function.  Majority
9204         of code from __assert_fail.  Allocate memory for __abort_msg with
9205         mmap.
9206         (__assert_fail): Now call __assert_fail_base.
9207         * assert/assert-perr.c: Remove bulk of implementation.  Use
9208         __assert_fail_base.
9209         * include/assert.hL Declare __assert_fail_base.
9210         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
9211         mmap.
9212         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
9213
9214 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
9215
9216         [BZ #11952]
9217         [BZ #12453]
9218         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
9219         until all modules are registered in the DTV.
9220         * elf/Makefile: Add rules to build and run tst-tls19.
9221         * elf/tst-tls19.c: New file.
9222         * elf/tst-tls19mod1.c: New file.
9223         * elf/tst-tls19mod2.c: New file.
9224         * elf/tst-tls19mod3.c: New file.
9225         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
9226
9227         [BZ #12083]
9228         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
9229         correctly.
9230
9231         [BZ #12601]
9232         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
9233         two-byte sequence errors.
9234         * iconvdata/Makefile (tests): Add bug-iconv8.
9235         * iconvdata/bug-iconv8.c: New file.
9236
9237         [BZ #12626]
9238         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
9239         buf2 definition.
9240
9241         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
9242
9243         [BZ #12432]
9244         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
9245         (dummy_getcfa): New function.
9246         (init): Get _Unwind_GetCFA address, use dummy if not found.
9247         (backtrace_helper): In recursion check, also check whether CFA changes.
9248         (__backtrace): Completely initialize arg.
9249
9250         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
9251         storing incomplete byte sequence in state object.  Avoid testing for
9252         guaranteed too small input if we know there is enough data available.
9253
9254 2011-05-11  Andreas Schwab  <schwab@redhat.com>
9255
9256         * Makeconfig (+link-pie): Indent.
9257         * Rules (binaries-pie): Define if $(have-fpie) and
9258         $(build-shared).
9259         (binaries-shared): Also filter out $(binaries-pie).
9260         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
9261         * nscd/Makefile (others-pie): Add nscd.
9262         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
9263         ($(objpfx)nscd): Remove command override.
9264         * login/Makefile (others-pie): Add pt_chown.
9265         ($(objpfx)pt_chown): Remove command override.
9266         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
9267         remove command overrides.
9268
9269 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
9270
9271         * libio/tst_putwc.c: Fix error messages.
9272
9273         [BZ #12724]
9274         * libio/fileops.c (_IO_new_file_close_it): Always flush when
9275         currently writing and seek to current position when not.
9276         * libio/Makefile (tests): Add bug-fclose1.
9277         * libio/bug-fclose1.c: New file.
9278
9279 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
9280
9281         [BZ #12511]
9282         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
9283         don't set DF_1_NODELETE here.
9284         (do_lookup_x): When entering new entry test for copy relocation
9285         and if necessary set DF_1_NODELETE flag.
9286         * elf/tst-unique4.cc: New file.
9287         * elf/tst-unique4.h: New file.
9288         * elf/tst-unique4lib.cc: New file.
9289         * elf/Makefile: Add rules to build and run tst-unique4.
9290         Patch by Piotr Bury <pbury@goahead.com>.
9291
9292 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
9293
9294         [BZ #12052]
9295         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
9296
9297         [BZ #12625]
9298         * misc/mntent_r.c (addmntent): Flush the stream after the output
9299
9300         [BZ #12393]
9301         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
9302         (is_trusted_path_normalize): Skip initial colon.  Append slash
9303         to empty buffer.  Duplicate is_trusted_path code but allow
9304         constructed patch to be prefix.
9305         (is_dst): Allow $ORIGIN followed by /.
9306         (_dl_dst_substitute): Correct clearing of check_for_trusted.
9307         Correct testing of result of is_trusted_path_normalize
9308         (decompose_rpath): Fix warning.
9309
9310 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
9311
9312         [BZ #11257]
9313         * grp/initgroups.c (internal_getgrouplist): When we found the service
9314         list through the initgroups entry in nsswitch.conf do not always
9315         continue on a successful lookup.  Don't always use the
9316         __nss_group_database value if it is set.
9317         * nss/nsswitch.conf (initgroups): Change action for successful db
9318         lookup to continue for compatibility.
9319
9320 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
9321
9322         [BZ #11532]
9323         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
9324         and CP774 modules.
9325         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
9326         and CP774 modules.
9327         * iconvdata/tst-tables.sh: Likewise.
9328         * iconvdata/cp770.c: New file.
9329         * iconvdata/cp771.c: New file.
9330         * iconvdata/cp772.c: New file.
9331         * iconvdata/cp773.c: New file.
9332         * iconvdata/cp774.c: New file.
9333         * iconvdata/testdata/CP770: New file.
9334         * iconvdata/testdata/CP770..UTF8: New file.
9335         * iconvdata/testdata/CP771: New file.
9336         * iconvdata/testdata/CP771..UTF8: New file.
9337         * iconvdata/testdata/CP772: New file.
9338         * iconvdata/testdata/CP772..UTF8: New file.
9339         * iconvdata/testdata/CP773: New file.
9340         * iconvdata/testdata/CP773..UTF8: New file.
9341         * iconvdata/testdata/CP774: New file.
9342         * iconvdata/testdata/CP774..UTF8: New file.
9343
9344         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
9345         END CHARMAP line.
9346         * iconvdata/gen-8bit-gap.sh: Likewise.
9347         * iconvdata/gen-8bit.sh: Likewise.
9348
9349         * locale/iso-639.def: Add ary entry.
9350
9351         [BZ #11258]
9352         * locale/C-translit.h.in: Add U20A1 transliteration.
9353
9354         [BZ #12178]
9355         * locale/iso-639.def: Add wae entry.
9356         Patch by Kevin Bortis <bortis@translate-wae.ch>.
9357
9358         [BZ #12545]
9359         * locale/programs/localedef.c (construct_output_path): Use ssize_t
9360         for n.
9361
9362         [BZ #12711]
9363         * locale/C-translit.h.in: Add entry for U20B9.
9364         Patch by pravin.d.s@gmail.com.
9365
9366 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
9367
9368         [BZ #12713]
9369         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
9370         ENAMETOOLONG use generic getcwd.
9371         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
9372         in rtld.  Use *stat64.
9373         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
9374         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
9375         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
9376         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
9377         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
9378         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
9379         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
9380         __fstatat64 macros.
9381         * include/dirent.h: Add libc_hidden_proto for rewinddir.
9382         * dirent/rewinddir.c: Add libc_hidden_def.
9383         * sysdeps/mach/hurd/rewinddir.c: Likewise.
9384         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
9385
9386         * include/dirent.h (__alloc_dir): Add flags parameter.
9387         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
9388         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
9389         __alloc_dir.
9390         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
9391         from fdopendir if O_CLOEXEC is already set.
9392
9393 2011-03-15  Alan Modra  <amodra@gmail.com>
9394
9395         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
9396         l_tls_firstbyte_offset non-zero.  Save padding offset in
9397         l_tls_firstbyte_offset for later use.
9398         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
9399         freeing static tls block.
9400
9401 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
9402
9403         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
9404         where #ifdef was intended.  The intent is to prevent ARG_MAX from
9405         being defined by the kernel headers.
9406
9407 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
9408
9409         [BZ #12734]
9410         * resolv/resolv.h: Define RES_NOTLDQUERY.
9411         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
9412         no-tld-query and set RES_NOTLDQUERY.
9413         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
9414         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
9415         modern BIND to search name as TLD unless forbidden.
9416
9417 2011-05-07  Petr Baudis  <pasky@suse.cz>
9418             Ulrich Drepper  <drepper@gmail.com>
9419
9420         [BZ #12393]
9421         * elf/dl-load.c (fillin_rpath): Move trusted path check...
9422         (is_trusted_path): ...to here.
9423         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
9424         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
9425         using is_trusted_path_normalize() in setuid scripts.
9426
9427 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
9428
9429         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
9430         __BEGIN/__END_DECLS.
9431
9432 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
9433
9434         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
9435         NSS_STATUS_NOTFOUND if no record was found.
9436
9437 2011-05-05  Andreas Schwab  <schwab@redhat.com>
9438
9439         * sunrpc/Makefile (headers): Add rpc/netdb.h.
9440         (headers-not-in-tirpc): Remove rpc/netdb.h
9441         * resolv/netdb.h: Revert last change.
9442
9443 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
9444
9445         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
9446         circular dependency between libgcc.a and libc.a.
9447
9448 2011-05-05  Andreas Schwab  <schwab@redhat.com>
9449
9450         * resolv/netdb.h: Don't include <rpc/netdb.h>.
9451         * nis/Makefile: Don't install rpcsvc/*.
9452         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
9453         instead of <rpc/types.h>.
9454         (MAXHOSTNAMELEN): Define.
9455
9456 2011-05-03  Andreas Schwab  <schwab@redhat.com>
9457
9458         * elf/ldconfig.c (add_dir): Don't crash on empty path.
9459
9460 2011-04-28  Maciej Babinski  <mbabinski@google.com>
9461
9462         [BZ #12714]
9463         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
9464         gethostbyname4_r when IPv6 results are possible.
9465
9466 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
9467
9468         [BZ #12723]
9469         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
9470         _PC_PIPE_BUF handling.
9471
9472 2011-04-30  Bruno Haible  <bruno@clisp.org>
9473
9474         [BZ #12717]
9475         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
9476         * resolv/netdb.h (getnameinfo): Change type of flags parameter
9477         to 'int'.
9478         * inet/getnameinfo.c (getnameinfo): Likewise.
9479
9480 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
9481
9482         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
9483         to groups setting in database lookup.
9484         * nss/nsswitch.conf: Add initgroups entry.
9485
9486 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
9487
9488         [BZ #12685]
9489         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
9490         mode string.
9491         Patch by Eric Blake <eblake@redhat.com>.
9492
9493 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
9494
9495         * sunrpc/Makefile (need-export-routines): Add svc_run.
9496         (routines): Remove svc_run.
9497         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
9498         * sunrpc/clnt_perr.c (clnt_perrno): Export.
9499         * sunrpc/svc_run.c (svc_run): Likewise.
9500         * sunrpc/svc_udp.c (svcudp_create): Likewise.
9501
9502 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
9503
9504         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
9505         problem in reallocation in last patch.
9506
9507 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
9508
9509         * sunrpc/Makefile: Move inclusion of Rules.
9510
9511 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
9512
9513         * nss/nss_files/files-initgroups.c: New file.
9514         * nss/Makefile (libnss_files-routines): Add files-initgroups.
9515         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
9516         _nss_files_initgroups_dyn.
9517
9518 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
9519
9520         * elf/elf.h (R_ARM_IRELATIVE): Define.
9521
9522 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
9523
9524         * po/ru.po: Update from translation team.
9525
9526 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
9527
9528         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
9529         dependencies.
9530
9531 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
9532
9533         [BZ #12653]
9534         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
9535         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
9536         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
9537         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
9538         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
9539
9540 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
9541
9542         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
9543         differing bytes.
9544         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
9545         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
9546         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
9547
9548 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
9549
9550         [BZ #12420]
9551         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
9552         storing it.
9553         * stdlib/bug-getcontext.c: New file.
9554         * stdlib/Makefile: Add rules to build and run bug-getcontext.
9555
9556 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9557
9558         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
9559         instructions into .machine "z9-109".
9560         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
9561         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
9562
9563 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9564
9565         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
9566         between environment variables and auxiliary vector.
9567
9568 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
9569
9570         * Makefile: Add rules to build linkobj/libc.so.
9571         * include/libc-symbols.h: Define libc_hidden_nolink.
9572         * include/rpc/auth.h: Mark functions which are to be hidden.
9573         * include/rpc/auth_des.h: Likewise.
9574         * include/rpc/auth_unix.h: Likewise.
9575         * include/rpc/clnt.h: Likewise.
9576         * include/rpc/des_crypt.h: Likewise.
9577         * include/rpc/key_prot.h: Likewise.
9578         * include/rpc/pmap_clnt.h: Likewise.
9579         * include/rpc/pmap_prot.h: Likewise.
9580         * include/rpc/pmap_rmt.h: Likewise.
9581         * include/rpc/rpc_msg.h: Likewise.
9582         * include/rpc/svc.h: Likewise.
9583         * include/rpc/svc_auth.h: Likewise.
9584         * include/rpc/xdr.h: Likewise.
9585         * nis/Makefile: Link all DSOs against linkobj/libc.so.
9586         * nss/Makefile: Likewise.
9587         * sunrpc/Makefile: Don't install headers.  Build library with normal
9588         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
9589         * sunrpc/auth_des.c: Hide exported symbols by default, export some
9590         for the compat linking library.  Remove use of INTDEF/INTUSE.
9591         * sunrpc/auth_none.c: Likewise.
9592         * sunrpc/auth_unix.c: Likewise.
9593         * sunrpc/authdes_prot.c: Likewise.
9594         * sunrpc/authuxprot.c: Likewise.
9595         * sunrpc/clnt_gen.c: Likewise.
9596         * sunrpc/clnt_perr.c: Likewise.
9597         * sunrpc/clnt_raw.c: Likewise.
9598         * sunrpc/clnt_simp.c: Likewise.
9599         * sunrpc/clnt_tcp.c: Likewise.
9600         * sunrpc/clnt_udp.c: Likewise.
9601         * sunrpc/clnt_unix.c: Likewise.
9602         * sunrpc/des_crypt.c: Likewise.
9603         * sunrpc/des_soft.c: Likewise.
9604         * sunrpc/get_myaddr.c: Likewise.
9605         * sunrpc/key_call.c: Likewise.
9606         * sunrpc/key_prot.c: Likewise.
9607         * sunrpc/netname.c: Likewise.
9608         * sunrpc/pm_getmaps.c: Likewise.
9609         * sunrpc/pm_getport.c: Likewise.
9610         * sunrpc/pmap_clnt.c: Likewise.
9611         * sunrpc/pmap_prot.c: Likewise.
9612         * sunrpc/pmap_prot2.c: Likewise.
9613         * sunrpc/pmap_rmt.c: Likewise.
9614         * sunrpc/publickey.c: Likewise.
9615         * sunrpc/rpc_cmsg.c: Likewise.
9616         * sunrpc/rpc_common.c: Likewise.
9617         * sunrpc/rpc_dtable.c: Likewise.
9618         * sunrpc/rpc_prot.c: Likewise.
9619         * sunrpc/rpc_thread.c: Likewise.
9620         * sunrpc/rtime.c: Likewise.
9621         * sunrpc/svc.c: Likewise.
9622         * sunrpc/svc_auth.c: Likewise.
9623         * sunrpc/svc_authux.c: Likewise.
9624         * sunrpc/svc_raw.c: Likewise.
9625         * sunrpc/svc_run.c: Likewise.
9626         * sunrpc/svc_simple.c: Likewise.
9627         * sunrpc/svc_tcp.c: Likewise.
9628         * sunrpc/svc_udp.c: Likewise.
9629         * sunrpc/svc_unix.c: Likewise.
9630         * sunrpc/svcauth_des.c: Likewise.
9631         * sunrpc/xcrypt.c: Likewise.
9632         * sunrpc/xdr.c: Likewise.
9633         * sunrpc/xdr_array.c: Likewise.
9634         * sunrpc/xdr_float.c: Likewise.
9635         * sunrpc/xdr_intXX_t.c: Likewise.
9636         * sunrpc/xdr_mem.c: Likewise.
9637         * sunrpc/xdr_rec.c: Likewise.
9638         * sunrpc/xdr_ref.c: Likewise.
9639         * sunrpc/xdr_sizeof.c: Likewise.
9640         * sunrpc/xdr_stdio.c: Likewise.
9641
9642 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
9643
9644         [BZ #12650]
9645         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
9646         * sysdeps/ia64/dl-tls.h: Likewise.
9647         * sysdeps/powerpc/dl-tls.h: Likewise.
9648         * sysdeps/s390/dl-tls.h: Likewise.
9649         * sysdeps/sh/dl-tls.h: Likewise.
9650         * sysdeps/sparc/dl-tls.h: Likewise.
9651         * sysdeps/x86_64/dl-tls.h: Likewise.
9652         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
9653
9654 2011-03-14  Andreas Schwab  <schwab@redhat.com>
9655
9656         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
9657         rpath element also skip the following colon.
9658         (expand_dynamic_string_token): Add is_path parameter and pass
9659         down to DL_DST_REQUIRED and _dl_dst_substitute.
9660         (decompose_rpath): Call expand_dynamic_string_token with
9661         non-zero is_path.  Ignore empty rpaths.
9662         (_dl_map_object_from_fd): Call expand_dynamic_string_token
9663         with zero is_path.
9664
9665 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
9666
9667         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
9668         Make cancelable.
9669
9670 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
9671
9672         [BZ #12655]
9673         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
9674         Patch by Filipe David Manana <fdmanana@apache.org>.
9675
9676 2011-04-07  Andreas Schwab  <schwab@redhat.com>
9677
9678         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
9679         Maintain aligned stack.
9680         (CHECK_RSP): Remove unused macro.
9681
9682 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
9683
9684         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
9685         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
9686
9687 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
9688
9689         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
9690
9691         * include/features.h: Mention __USE_XOPEN2K8 in comment.
9692
9693 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
9694
9695         [BZ #12518]
9696         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
9697         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
9698         * sysdeps/x86_64/memmove.c: New file.
9699         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
9700         (memcpy): Renamed to ...
9701         (__new_memcpy): This.
9702         (memcpy): Provide GLIBC_2_14 memcpy.
9703         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
9704         (memcpy): Provide GLIBC_2_2_5 memcpy.
9705
9706 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
9707
9708         [BZ #12631]
9709         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
9710
9711 2011-03-30  Andreas Schwab  <schwab@redhat.com>
9712
9713         * misc/syncfs.c: New file.
9714         * misc/Makefile (routines): Add syncfs.
9715         * posix/unistd.h: Declare syncfs.
9716         * sysdeps/unix/syscalls.list: Add syncfs.
9717
9718 2011-04-01  Andreas Schwab  <schwab@redhat.com>
9719
9720         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
9721         open_by_handle_at.
9722         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
9723         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9724         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9725         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9726         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
9727         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
9728         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9729
9730 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
9731
9732         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
9733         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9734         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9735         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9736         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9737         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
9738         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9739
9740         * io/Makefile: Compile fallocate.c, fallocate64.c, and
9741         sync_file_range.c with -fexceptions.
9742         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
9743         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
9744         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
9745         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
9746         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
9747         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
9748         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
9749         sync_file_range as cancellation point
9750         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
9751         now a wrapper around __call_sync_file_range with cancellation handling.
9752         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
9753         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
9754         function name to __call_sync_file_range.
9755         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
9756         Add call_sync_file_range.
9757
9758 2011-04-01  Andreas Schwab  <schwab@redhat.com>
9759
9760         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
9761         bits/timex.h.
9762
9763 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
9764
9765         * iconv/iconv.h: Fix typo in comment.
9766         * io/fcntl.h: Likewise.
9767         * libio/stdio.h: Likewise.
9768         * posix/spawn.h: Likewise.
9769         * posix/unistd.h: Likewise.
9770         * stdlib/stdlib.h: Likewise.
9771         * time/time.h: Likewise.
9772         * wcsmbs/wchar.h: Likewise.
9773
9774         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
9775         open_by_handle): Add.
9776         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
9777         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
9778         Augment a few comments.
9779         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9780         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9781         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9782         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
9783         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9784         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
9785         open_by_handle.
9786
9787         * io/fcntl.h (AT_EMPTY_PATH): Define.
9788
9789 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
9790
9791         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
9792         * sysdeps/unix/sysv/linux/bits/time.h: New file.
9793         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
9794         to...
9795         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
9796         * Versions.def: Add GLIBC_2.14.
9797         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
9798         Export.
9799
9800 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
9801
9802         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
9803         round counter.
9804         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
9805
9806 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
9807
9808         [BZ #12597]
9809         * string/test-strncmp.c (do_page_test): New function.
9810         (check2): Likewise.
9811         (test_main): Call check2.
9812         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
9813
9814 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
9815
9816         [BZ #12587]
9817         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
9818         Handle cache information in CPU leaf 4.
9819         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
9820
9821 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
9822
9823         [BZ #12583]
9824         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
9825         character representation.
9826         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
9827
9828 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
9829
9830         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
9831         END(__isnan) to END(__isnanf) to match function entry point/label
9832         EALIGN(__isnanf,...).
9833
9834 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
9835
9836         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
9837
9838 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
9839
9840         [BZ #12510]
9841         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
9842         copy from the symbol referenced in the relocation to initialize the
9843         used variable.
9844         Patch by Piotr Bury <pbury@goahead.com>.
9845         * elf/Makefile: Add rules to build and tst-unique3.
9846         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
9847         * elf/tst-unique3.cc: New file.
9848         * elf/tst-unique3.h: New file.
9849         * elf/tst-unique3lib.cc: New file.
9850         * elf/tst-unique3lib2.cc: New file.
9851
9852         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
9853
9854 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
9855
9856         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
9857         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
9858         to _start.
9859
9860 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
9861
9862         * elf/dl-load.c (_dl_map_object): If we are looking for the first
9863         to-be-loaded object along a path to loader is ld.so.
9864
9865 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
9866             Ulrich Drepper  <drepper@gmail.com>
9867
9868         * sysdeps/x86_64/memset.S: After aligning destination, code
9869         branches to different locations depending on the value of
9870         misalignment, when multiarch is enabled. Fix this.
9871
9872 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
9873
9874         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
9875         Set _x86_64_preferred_memory_instruction for AMD processsors.
9876         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
9877         Set bit_Prefer_SSE_for_memop for AMD processors.
9878
9879 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
9880
9881         * libio/fmemopen.c (fmemopen): Optimize a bit.
9882
9883 2011-03-03  Andreas Schwab  <schwab@redhat.com>
9884
9885         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
9886
9887 2011-03-03  Roland McGrath  <roland@redhat.com>
9888
9889         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
9890
9891 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
9892
9893         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
9894         __bzero_ultra1 instead of __memset_ultra1.
9895
9896 2011-02-23  Andreas Schwab  <schwab@redhat.com>
9897             Ulrich Drepper  <drepper@gmail.com>
9898
9899         [BZ #12509]
9900         * include/link.h (struct link_map): Add l_orig_initfini.
9901         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
9902         returning unsuccessfully.
9903         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
9904         close of a file loaded at startup, restore the original l_initfini
9905         list.
9906         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
9907         list, store the pointer.
9908         * elf/Makefile ($(objpfx)noload-mem): New rule.
9909         (noload-ENV): Define.
9910         (tests): Add $(objpfx)noload-mem.
9911         * elf/noload.c: Include <memcheck.h>.
9912         (main): Call mtrace.  Close all opened handles.
9913
9914 2011-02-17  Andreas Schwab  <schwab@redhat.com>
9915
9916         [BZ #12454]
9917         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
9918         dependencies are missing.
9919
9920 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9921
9922         Fix __if_freereq crash: Unlike the generic version which uses free,
9923         Hurd needs munmap.
9924         * sysdeps/mach/hurd/ifreq.h: New file.
9925
9926 2011-01-27  Petr Baudis  <pasky@suse.cz>
9927             Ulrich Drepper  <drepper@gmail.com>
9928
9929         [BZ 12445]#
9930         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
9931         to extend_alloca().
9932         * stdio-common/bug23.c: New file.
9933         * stdio-common/Makefile (tests): Add bug23.
9934
9935 2010-09-28  Andreas Schwab  <schwab@redhat.com>
9936             Ulrich Drepper  <drepper@gmail.com>
9937
9938         [BZ #12489]
9939         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
9940         before performing relro protection.  At old place add assertion
9941         to make sure nothing changed.
9942
9943 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
9944             Glauber de Oliveira Costa  <glommer@gmail.com>
9945
9946         * elf/elf.h: Add new ARM TLS relocs.
9947
9948 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
9949
9950         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
9951         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
9952         cast from r3.
9953         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
9954         'tests' variable.
9955         * sysdeps/wordsize-64/tst-writev.c: New file.
9956
9957 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
9958
9959         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
9960         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
9961         insns in _dl_start to prevent a TOC reference before relocs are
9962         resolved.
9963
9964 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
9965
9966         [BZ #12469]
9967         * Makeconfig: Remove RANLIB definition.
9968         * Makerules: Don't use RANLIB.
9969         * aclocal.m4: Remove ranlib test.
9970         * configure.in: No need to check for ranlib.
9971         * elf/rtld-Rules: Don't use RANLIB.
9972
9973 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9974
9975         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
9976         protection macro.
9977         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
9978         inclusion protection macro.
9979
9980         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
9981         SIGRTMIN and SIGRTMAX and print information in that case only when
9982         SIGRTMIN is defined.
9983
9984 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
9985
9986         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
9987         arginfo fn returning -1.
9988
9989         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
9990         and thousands string is zero terminated.
9991
9992 2011-02-03  Andreas Schwab  <schwab@redhat.com>
9993
9994         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
9995         sysdeps/unix/sysv/linux/bits/socket.h.
9996
9997 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9998
9999         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
10000         (__CPU_COUNT): Remove old macros.
10001         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
10002         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
10003         (__CPU_ALLOC, __CPU_FREE): Add macros.
10004         (__sched_cpualloc, __sched_cpufree): Add declarations.
10005
10006 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
10007
10008         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
10009         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
10010         * nscd/aicache.c (addhstaiX): Return timeout of added value.
10011         (readdhstai): Return value of addhstaiX call.
10012         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
10013         (addgrbyX): Return value returned by cache_addgr.
10014         (readdgrbyname): Return value returned by addgrbyX.
10015         (readdgrbygid): Likewise.
10016         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
10017         (addpwbyX): Return value returned by cache_addpw.
10018         (readdpwbyname): Return value returned by addhstbyX.
10019         (readdpwbyuid): Likewise.
10020         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
10021         (addservbyX): Return value returned by cache_addserv.
10022         (readdservbyname): Return value returned by addservbyX:
10023         (readdservbyport): Likewise.
10024         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
10025         (addhstbyX): Return value returned by cache_addhst.
10026         (readdhstbyname): Return value returned by addhstbyX.
10027         (readdhstbyaddr): Likewise.
10028         (readdhstbynamev6): Likewise.
10029         (readdhstbyaddrv6): Likewise.
10030         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
10031         (readdinitgroups): Return value returned by addinitgroupsX.
10032         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
10033         (prune_cache): Keep track of timeout value of re-added entries.
10034         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
10035         * nscd/nscd.h: Adjust prototypes of readd* functions.
10036
10037 2011-02-04  Roland McGrath  <roland@redhat.com>
10038
10039         * nis/nis_server.c (nis_servstate): Use the right name for 0.
10040         (nis_stats): Likewise.
10041         * nis/nis_modify.c (nis_modify): Likewise.
10042         * nis/nis_remove.c (nis_remove): Likewise.
10043         * nis/nis_add.c (nis_add): Likewise.
10044
10045         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
10046
10047         * posix/fnmatch_loop.c: Add some consts.
10048
10049         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
10050
10051 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
10052
10053         [BZ #12460]
10054         * config.make.in (config-cflags-novzeroupper): Define.
10055         * configure.in: Substitute libc_cv_cc_novzeroupper.
10056         * elf/Makefile (AVX-CFLAGS): Define.
10057         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
10058         (CFLAGS-tst-auditmod4a.c): Likewise.
10059         (CFLAGS-tst-auditmod4b.c): Likewise.
10060         (CFLAGS-tst-auditmod6b.c): Likewise.
10061         (CFLAGS-tst-auditmod6c.c): Likewise.
10062         (CFLAGS-tst-auditmod7b.c): Likewise.
10063         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
10064
10065 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
10066
10067         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
10068         function to the callback.
10069         Patch partly by Jiri Olsa <jolsa@redhat.com>.
10070
10071 2011-02-02  Andreas Schwab  <schwab@redhat.com>
10072
10073         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
10074         of errno.
10075
10076 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
10077
10078         [BZ #11724]
10079         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
10080         of constructors.
10081         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
10082         of destructors.
10083         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
10084
10085         [BZ #11724]
10086         * elf/Makefile: Add rules to build and run new test.
10087         * elf/tst-initorder.c: New file.
10088         * elf/tst-initorder.exp: New file.
10089         * elf/tst-initordera1.c: New file.
10090         * elf/tst-initordera2.c: New file.
10091         * elf/tst-initordera3.c: New file.
10092         * elf/tst-initordera4.c: New file.
10093         * elf/tst-initorderb1.c: New file.
10094         * elf/tst-initorderb2.c: New file.
10095         * elf/tst-order-a1.c: New file.
10096         * elf/tst-order-a2.c: New file.
10097         * elf/tst-order-a3.c: New file.
10098         * elf/tst-order-a4.c: New file.
10099         * elf/tst-order-b1.c: New file.
10100         * elf/tst-order-b2.c: New file.
10101         * elf/tst-order-main.c: New file.
10102         New test case by George Gensure <werkt0@gmail.com>.
10103
10104 2010-10-01  Andreas Schwab  <schwab@redhat.com>
10105
10106         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
10107         decoding ACE if AI_CANONIDN.
10108
10109 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
10110
10111         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
10112
10113 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
10114
10115         * version.h (RELEASE): Bump for 2.13 release.
10116         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
10117
10118         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
10119
10120         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
10121         MADV_NOHUGEPAGE.
10122         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
10123         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
10124         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
10125         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
10126         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
10127         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
10128
10129         * posix/getconf.c: Update copyright year.
10130         * catgets/gencat.c: Likewise.
10131         * csu/version.c: Likewise.
10132         * debug/catchsegv.sh: Likewise.
10133         * debug/xtrace.sh: Likewise.
10134         * elf/ldconfig.c: Likewise.
10135         * elf/ldd.bash.in: Likewise.
10136         * elf/sprof.c (print_version): Likewise.
10137         * iconv/iconv_prog.c: Likewise.
10138         * iconv/iconvconfig.c: Likewise.
10139         * locale/programs/locale.c: Likewise.
10140         * locale/programs/localedef.c: Likewise.
10141         * malloc/memusage.sh: Likewise.
10142         * malloc/mtrace.pl: Likewise.
10143         * nscd/nscd.c (print_version): Likewise.
10144         * nss/getent.c: Likewise.
10145
10146         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
10147         PF_CAIF, and PF_ALG.
10148         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
10149
10150 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
10151
10152         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
10153         (modules-names): Use them.
10154         (ifunc-test-modules, ifunc-pie-tests): Define.
10155         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
10156         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
10157         (test-extras): Likewise.
10158         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
10159         $(compile-command.c).
10160         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
10161         (all-built-dso): Define.
10162         (check-textrel.out, check-execstack.out): Depend on it.
10163
10164         * configure.in: Don't override --enable-multi-arch.
10165
10166 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
10167
10168         [BZ #6812]
10169         * nscd/hstcache.c (tryagain): Define.
10170         (cache_addhst): Return tryagain not notfound for temporary errors.
10171         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
10172         failed.
10173
10174 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
10175
10176         [BZ #10563]
10177         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
10178         to make the syscall.
10179         * sysdeps/unix/sysv/linux/setgroups.c: New file.
10180
10181         [BZ #12378]
10182         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
10183         and fall back to matching as normal character if the string ends before
10184         the matching ']' is found.  This is what POSIX requires.
10185         * posix/testfnm.c: Adjust test result.
10186         * posix/globtest.sh: Adjust test result.  Add new test.
10187         * posix/tst-fnmatch.input: Likewise.
10188         * posix/tst-fnmatch2.c: Add new test.
10189
10190 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
10191
10192         * elf/Makefile (check-execstack): Revert last change.  Depend on
10193         check-execstack.h.
10194         (check-execstack.h): New target.
10195         (generated): Add check-execstack.h.
10196         * elf/check-execstack.c: Include "check-execstack.h".
10197         (main): Revert last change.
10198         (handle_file): Return zero if GNU_STACK is absent and
10199         DEFAULT_STACK_PERMS doesn't include PF_X.
10200
10201 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
10202
10203         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
10204         in child fails because the descriptor is already closed.
10205         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
10206         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
10207         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
10208
10209         [BZ #12397]
10210         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
10211         syscall.
10212
10213         [BZ #10484]
10214         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
10215         temporary buffer used to handle multi lookups locally.
10216         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
10217
10218 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
10219
10220         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
10221         loader is ld.so.
10222
10223 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
10224
10225         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
10226         alignment for SSE2.
10227
10228 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
10229
10230         [BZ #12394]
10231         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
10232         characters.  When rounding increased number of integer digits recompute
10233         number of groups.
10234         * stdio-common/tst-grouping.c: New file.
10235         * stdio-common/Makefile: Add rules to build and run tst-grouping.
10236
10237 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
10238
10239         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
10240         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
10241
10242         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
10243         void.
10244         * bits/select.h: Likewise.
10245
10246 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
10247
10248         * po/ja.po: Update from translation team.
10249
10250 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
10251
10252         [BZ #11155]
10253         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
10254         implementation just like for lxstat, fxstatat, et al.
10255
10256 2010-12-27  Jim Meyering  <meyering@redhat.com>
10257
10258         [BZ #12348]
10259         * posix/regexec.c (build_trtable): Return failure indication upon
10260         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
10261
10262 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
10263
10264         [BZ #12201]
10265         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
10266         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
10267         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
10268         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
10269
10270         [BZ #12207]
10271         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
10272
10273         [BZ #12204]
10274         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
10275         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
10276
10277 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
10278
10279         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
10280         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
10281         script has SORT_BY_INIT_PRIORITY.
10282         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
10283         NO_CTORS_DTORS_SECTIONS is defined.
10284         * elf/soinit.c: Likewise.
10285         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
10286         NO_CTORS_DTORS_SECTIONS is defined.
10287         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
10288         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
10289         * sysdeps/sh/init-first.c: Likewise.
10290         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
10291
10292 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
10293
10294         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
10295         always use the slow path.
10296
10297 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
10298
10299         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
10300         similar rule which adds the sysdep directories to the header search in
10301         order to pick up the correct platform stackinfo.h.
10302         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
10303         perform test if it is, otherwise return successfully without testing.
10304         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
10305         DEFAULT_STACK_PERMS define in stackinfo.h.
10306         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
10307         defined in stackinfo.h.
10308         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
10309         DEFAULT_STACK_PERMS defined in stackinfo.h.
10310         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
10311         * sysdeps/ia64/stackinfo.h: Likewise.
10312         * sysdeps/s390/stackinfo.h: Likewise.
10313         * sysdeps/sh/stackinfo.h: Likewise.
10314         * sysdeps/sparc/stackinfo.h: Likewise.
10315         * sysdeps/x86_64/stackinfo.h: Likewise.
10316         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
10317         PF_X for powerpc64.  Retain PF_X for powerpc32.
10318
10319 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
10320
10321         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
10322         accurately.
10323         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
10324         GETDENTS_64BIT_ALIGNED.
10325
10326 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
10327
10328         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
10329
10330 2010-12-10  Andreas Schwab  <schwab@redhat.com>
10331
10332         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
10333         _GNU_SOURCE.
10334
10335         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
10336         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
10337         Remove __restrict.
10338         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
10339         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
10340
10341 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
10342
10343         [BZ #11655]
10344         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
10345         are initialized.
10346
10347 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
10348
10349         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
10350
10351 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
10352
10353         * po/it.po: Update from translation team.
10354
10355 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
10356
10357         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
10358         unused codes.
10359
10360 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
10361
10362         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
10363
10364 2010-11-24  Andreas Schwab  <schwab@redhat.com>
10365
10366         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
10367         specially.
10368         (gaih_getanswer_slice): Likewise.
10369
10370 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
10371
10372         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
10373
10374 2010-05-31  Petr Baudis  <pasky@suse.cz>
10375
10376         [BZ #11149]
10377         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
10378         silently even in the chroot mode.
10379
10380 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
10381
10382         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
10383         last patch a bit.  Pretty printing
10384
10385 2010-05-31  Petr Baudis <pasky@suse.cz>
10386
10387         [BZ #10085]
10388         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
10389         initialization of skip_initgroups_dyn.
10390
10391 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
10392
10393         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
10394         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
10395
10396 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
10397
10398         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
10399
10400 2010-11-11  Andreas Schwab  <schwab@redhat.com>
10401
10402         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
10403         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
10404         (tst-fnmatch-ENV): Set MALLOC_TRACE.
10405         ($(objpfx)tst-fnmatch-mem): New rule.
10406         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
10407         * posix/tst-fnmatch.c (main): Call mtrace.
10408
10409 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
10410
10411         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
10412         Support Intel processor model 6 and model 0x2c.
10413
10414 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
10415
10416         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
10417           signed comparison.
10418
10419 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
10420
10421         [BZ #12205]
10422         * string/test-strncasecmp.c (check_result): New function.
10423         (do_one_test): Use it.
10424         (check1): New function.
10425         (test_main): Use it.
10426         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
10427         Support strcasecmp and strncasecmp.
10428
10429 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
10430
10431         [BZ #12194]
10432         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
10433         * sysdeps/x86_64/bits/byteswap.h: Likewise.
10434
10435 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
10436
10437         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
10438         IFUNC support.
10439         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
10440         memset-x86-64.
10441         * sysdeps/x86_64/multiarch/bzero.S: New file.
10442         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
10443         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
10444         * sysdeps/x86_64/multiarch/memset.S: New file.
10445         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
10446         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
10447         Set bit_Prefer_SSE_for_memop for Intel processors.
10448         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
10449         Define.
10450         (index_Prefer_SSE_for_memop): Define.
10451         (HAS_PREFER_SSE_FOR_MEMOP): Define.
10452
10453 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
10454
10455         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
10456         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
10457
10458 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
10459
10460         [BZ #12191]
10461         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
10462         (__x86_64_raw_data_cache_size_half): Likewise.
10463         (__x86_64_raw_shared_cache_size): Likewise.
10464         (__x86_64_raw_shared_cache_size_half): Likewise.
10465
10466         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
10467         (__x86_64_raw_data_cache_size_half): Likewise.
10468         (__x86_64_raw_shared_cache_size): Likewise.
10469         (__x86_64_raw_shared_cache_size_half): Likewise.
10470         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
10471         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
10472         and __x86_64_raw_shared_cache_size_half.  Round
10473         __x86_64_data_cache_size_half, __x86_64_data_cache_size
10474         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
10475         to multiple of 256 bytes.
10476
10477 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
10478
10479         [BZ #12167]
10480         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
10481         of inacessible symlinks.  Verify result of symlink before returning it.
10482         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
10483         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
10484
10485 2010-10-28  Erich Ritz  <erichritz@gmail.com>
10486
10487         * math/math.h (isinf): Fix typo in comment.
10488
10489 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
10490
10491         * po/da.po: Update from translation team.
10492
10493 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
10494
10495         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
10496         is added to the list.
10497
10498 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10499             Ulrich Drepper  <drepper@gmail.com>
10500
10501         * elf/dl-object.c (_dl_new_object): Don't append the new object to
10502         the global list here.  Move code to...
10503         (_dl_add_to_namespace_list): ...here.  New function.
10504         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
10505         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
10506         * elf/dl-load.c (lose): Don't remove the element from the list.
10507         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
10508         (_dl_map_object): Likewise.
10509
10510 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
10511
10512         [BZ #12159]
10513         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
10514         into all bytes of SSE register.
10515         Patch by Richard Li <richardpku@gmail.com>.
10516
10517 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
10518
10519         [BZ #12140]
10520         * malloc/malloc.c (_int_free): Fill correct number of bytes when
10521         perturbing.
10522
10523 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
10524
10525         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
10526         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
10527         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
10528         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
10529         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
10530         submachine.
10531         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
10532
10533 2010-10-22  Andreas Schwab  <schwab@redhat.com>
10534
10535         * include/dlfcn.h (__RTLD_SECURE): Define.
10536         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
10537         mode & __RTLD_SECURE instead.
10538         (open_path): Rename preloaded parameter to secure.
10539         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
10540         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
10541         * elf/dl-deps.c (openaux): Likewise.
10542         * elf/rtld.c (struct map_args): Remove is_preloaded.
10543         (map_doit): Don't use it.
10544         (dl_main): Likewise.
10545         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
10546         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
10547
10548 2010-09-09  Andreas Schwab  <schwab@redhat.com>
10549
10550         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
10551         (sysd-rules-targets): Remove duplicates.
10552         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
10553         rtld-%.$o dependency.
10554
10555 2010-10-18  Andreas Schwab  <schwab@redhat.com>
10556
10557         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
10558         _dl_map_object do it.
10559
10560 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
10561
10562         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
10563         fast fma builtins, define the macros in the C99 standard.
10564         (FP_FAST_FMAF): Likewise.
10565         (FP_FAST_FMAL): Likewise.
10566         * sysdeps/x86_64/bits/mathdef.h: Likewise.
10567
10568         * bits/mathdef.h: Update copyright year.
10569         * sysdeps/powerpc/bits/mathdef.h: Likewise.
10570
10571 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
10572
10573         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
10574         builtins, define the macros in the C99 standard.
10575         (FP_FAST_FMAF): Likewise.
10576         (FP_FAST_FMAL): Likewise.
10577         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
10578         multiply/add.
10579         (FP_FAST_FMAF): Likewise.
10580
10581 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
10582
10583         [BZ #3268]
10584         * math/libm-test.inc (fma_test): Some new testcases.
10585         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
10586         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
10587         y and infinite z.  Do multiplication by C already in long double.
10588         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
10589         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
10590         y and infinite z.  Do bitwise or of inexact bit into u.d.
10591         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
10592         * sysdeps/i386/fpu/s_fmaf.S: Removed.
10593         * sysdeps/i386/fpu/s_fma.S: Removed.
10594         * sysdeps/i386/fpu/s_fmal.S: Removed.
10595
10596 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
10597
10598         [BZ #3268]
10599         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
10600         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
10601         computation is not scheduled after fetestexcept.  Fix value
10602         of minimum denormal long double.
10603
10604 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
10605
10606         [BZ #3268]
10607         * math/libm-test.inc (fma_test): Add some more tests.
10608         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
10609         correctly.
10610
10611 2010-10-15  Andreas Schwab  <schwab@redhat.com>
10612
10613         * scripts/data/localplt-s390-linux-gnu.data: New file.
10614         * scripts/data/localplt-s390x-linux-gnu.data: New file.
10615
10616 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
10617
10618         [BZ #3268]
10619         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
10620         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
10621         instead of dbl-64.
10622         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
10623         inlines.
10624         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
10625         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
10626         if one of x and y is very large and the other is subnormal.
10627         * sysdeps/s390/fpu/s_fmaf.c: New file.
10628         * sysdeps/s390/fpu/s_fma.c: New file.
10629         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
10630         * sysdeps/powerpc/fpu/s_fma.S: New file.
10631         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
10632         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
10633         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
10634
10635 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
10636
10637         [BZ #3268]
10638         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
10639         fma tests.
10640         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
10641         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
10642         * sysdeps/i386/i686/multiarch/s_fma.c: Include
10643         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
10644         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
10645         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
10646         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
10647
10648 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
10649
10650         [BZ #12078]
10651         * posix/regcomp.c (parse_branch): One more memory leak plugged.
10652         * posix/bug-regex31.input: Add test case.
10653
10654 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
10655
10656         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
10657         * posix/bug-regex31.input: New file.
10658
10659         [BZ #12078]
10660         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
10661         (parse_sub_exp): Fix last change, use postorder.
10662
10663         * posix/bug-regex31.c: New file.
10664         * posix/Makefile: Add rules to build and run bug-regex31.
10665
10666         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
10667
10668         [BZ #12078]
10669         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
10670
10671         [BZ #12108]
10672         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
10673         to have entries in sys_siglist.
10674
10675         [BZ #12093]
10676         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
10677         be NULL.
10678
10679 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
10680
10681         [BZ #3268]
10682         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
10683         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
10684         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
10685         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
10686         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
10687         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
10688         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
10689         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
10690         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
10691         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
10692         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
10693         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
10694         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
10695         * math/ftestexcept.c (fetestexcept): Likewise.
10696         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
10697         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
10698         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
10699         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
10700         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
10701         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
10702         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
10703
10704 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
10705
10706         [BZ #12107]
10707         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
10708         newline.
10709
10710 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
10711
10712         * string/bug-strstr1.c: New file.
10713         * string/Makefile: Add rules to build and run bug-strstr1.
10714
10715 2010-10-05  Eric Blake  <eblake@redhat.com>
10716
10717         [BZ #12092]
10718         * string/str-two-way.h (two_way_long_needle): Always clear memory
10719         when skipping input due to the shift table.
10720
10721 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
10722
10723         [BZ #12005]
10724         * malloc/mcheck.c: Handle large requests.
10725
10726         [BZ #12077]
10727         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
10728         for strncmp and strncasecmp.
10729         * string/stratcliff.c: Add tests for strcmp and strncmp.
10730         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
10731
10732 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
10733
10734         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
10735         __set_fpscr.
10736
10737 2010-09-30  Andreas Jaeger  <aj@suse.de>
10738
10739         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
10740         (CGROUP_SUPER_MAGIC): Define.
10741         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
10742         Handle btrfs and cgroup file systems.
10743         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
10744         Likewise.
10745
10746 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
10747
10748         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
10749         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
10750
10751 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10752
10753         [BZ #12067]
10754         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
10755         trying to locate the ELF header.
10756
10757 2010-09-27  Andreas Schwab  <schwab@redhat.com>
10758
10759         [BZ #11611]
10760         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
10761         Mask out sign-bit copies when constructing f_fsid.
10762
10763 2010-09-24  Petr Baudis <pasky@suse.cz>
10764
10765         * debug/stack_chk_fail_local.c: Add missing licence exception.
10766         * debug/warning-nop.c: Likewise.
10767
10768 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
10769
10770         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
10771         implementing getdents64 using getdents syscall, set d_type if
10772         __ASSUME_GETDENTS32_D_TYPE.
10773
10774 2010-09-16  Andreas Schwab  <schwab@redhat.com>
10775
10776         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
10777         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
10778
10779 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
10780
10781         [BZ #12037]
10782         * posix/unistd.h: Undo change of feature selection for ftruncate from
10783         2010-01-11.
10784
10785 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
10786
10787         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
10788         detection.
10789
10790 2010-09-20  Andreas Schwab  <schwab@redhat.com>
10791
10792         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
10793         fanotify_mark.
10794         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
10795
10796 2010-09-14  Andreas Schwab  <schwab@redhat.com>
10797
10798         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
10799         variables after CHECK_SP call.
10800         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
10801
10802 2010-09-13  Andreas Schwab  <schwab@redhat.com>
10803             Ulrich Drepper  <drepper@redhat.com>
10804
10805         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
10806         re-relocationg ld.so.
10807         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
10808         _dl_init_paths call.
10809         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
10810         here anymore.
10811
10812 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
10813
10814         * resolv/res_init.c (__res_vinit): Count the default server we added.
10815
10816 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
10817             Ulrich Drepper  <drepper@redhat.com>
10818
10819         [BZ #11968]
10820         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
10821         (____longjmp_chk): Use %ebx for saving value across system call.
10822         Add unwind info.
10823
10824 2010-09-06  Andreas Schwab  <schwab@redhat.com>
10825
10826         * manual/Makefile: Don't mix pattern rules with normal rules.
10827
10828 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
10829
10830         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
10831         operation.
10832         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
10833         * libio/iofopncook.c (_IO_cookie_init): Likewise.
10834         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
10835         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
10836         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
10837         Likewise.
10838
10839 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
10840
10841         [BZ #11979]
10842         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
10843         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
10844
10845 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
10846
10847         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
10848         * sysdeps/x86_64/addmul_1.S: Likewise.
10849         * sysdeps/x86_64/lshift.S: Likewise.
10850         * sysdeps/x86_64/mul_1.S: Likewise.
10851         * sysdeps/x86_64/rshift.S: Likewise.
10852         * sysdeps/x86_64/sub_n.S: Likewise.
10853         * sysdeps/x86_64/submul_1.S: Likewise.
10854
10855 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10856
10857         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
10858         Define __sched_param instead of SCHED_* and sched_param when
10859         <bits/sched.h> is included with __need_schedparam defined.
10860         * bits/sched.h [__need_schedparam]
10861         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
10862         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
10863         (__defined_schedparam): Define to 1.
10864         (__sched_param): New structure, identical to sched_param.
10865         (__need_schedparam): Undefine.
10866
10867 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
10868
10869         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
10870         (epoll_create1): Declare.
10871
10872         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
10873
10874 2010-08-31  Andreas Schwab  <schwab@redhat.com>
10875
10876         [BZ #7066]
10877         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
10878         shifting retval into place.
10879
10880 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
10881
10882         * nis/rpcsvc/nis.h: Update copyright notice.
10883         * nis/rpcsvc/nis.x: Likewise.
10884         * nis/rpcsvc/nis_callback.h: Likewise.
10885         * nis/rpcsvc/nis_callback.x: Likewise.
10886         * nis/rpcsvc/nis_object.x: Likewise.
10887         * nis/rpcsvc/nis_tags.h: Likewise.
10888         * nis/rpcsvc/yp.h: Likewise.
10889         * nis/rpcsvc/yp.x: Likewise.
10890         * nis/rpcsvc/ypupd.h: Likewise.
10891         * nis/yp_xdr.c: Likewise.
10892         * nis/ypupdate_xdr.c: Likewise.
10893
10894         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
10895         mainly the body of pmap_getport.  Add parameters to specify timeouts.
10896         (pmap_getport): Use __libc_rpc_getport.
10897         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
10898         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
10899         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
10900
10901 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
10902
10903         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
10904         fanotify_mark.
10905
10906 2010-08-27  Roland McGrath  <roland@redhat.com>
10907
10908         * sysdeps/i386/i686/multiarch/Makefile
10909         (CFLAGS-varshift.c): New variable.
10910
10911 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
10912
10913         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
10914         * sysdeps/i386/i686/multiarch/varshift.c: New file.
10915
10916         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
10917
10918         * sysdeps/x86_64/strlen.S: Minimal code improvement.
10919
10920 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
10921
10922         * sysdeps/x86_64/strlen.S: Unroll the loop.
10923         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
10924         strlen-sse2 strlen-sse2-bsf.
10925         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
10926         __strlen_no_bsf if bit_Slow_BSF is set.
10927         (__strlen_sse42): Removed.
10928         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
10929         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
10930
10931 2010-08-25  Roland McGrath  <roland@redhat.com>
10932
10933         * sysdeps/x86_64/multiarch/varshift.S: File removed.
10934         * sysdeps/x86_64/multiarch/varshift.c: New file.
10935         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
10936         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
10937         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
10938         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
10939
10940 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
10941
10942         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
10943         strlen-sse2 strlen-sse2-bsf.
10944         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
10945         __strlen_sse2_bsf if bit_Slow_BSF is unset.
10946         (__strlen_sse2): Removed.
10947         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
10948         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
10949         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
10950         bit_Slow_BSF for Atom.
10951         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
10952         (index_Slow_BSF): Define.
10953         (HAS_SLOW_BSF): Define.
10954
10955 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
10956
10957         [BZ #10851]
10958         * resolv/res_init.c (__res_vinit): When no server address at all
10959         is given default to loopback.
10960
10961 2010-08-24  Roland McGrath  <roland@redhat.com>
10962
10963         * configure.in: Remove config-name.h generation.
10964         * configure: Regenerated.
10965         * config-name.in: File removed.
10966         * scripts/config-uname.sh: New file.
10967         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
10968         ($(objdir)config-name.h): New target.
10969
10970         * sunrpc/rpc_parse.h: Avoid nested comment.
10971
10972 2010-08-24  Richard Henderson  <rth@redhat.com>
10973             Ulrich Drepper  <drepper@redhat.com>
10974             H.J. Lu  <hongjiu.lu@intel.com>
10975
10976         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
10977         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
10978         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
10979         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
10980         _mm_alignr_epi8 with _mm_loadu_si128.
10981         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
10982         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
10983         (__m128i_shift_right): Removed.
10984         * sysdeps/i386/i686/multiarch/varshift.h: New file.
10985         * sysdeps/i386/i686/multiarch/varshift.S: New file.
10986         * sysdeps/x86_64/multiarch/varshift.h: New file.
10987         * sysdeps/x86_64/multiarch/varshift.S: New file.
10988
10989 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
10990
10991         * configure.in: Move assembler checks to before sysdep dir checking.
10992
10993 2010-08-20  Petr Baudis  <pasky@suse.cz>
10994
10995         * LICENSES: Sync the sunrpc license.
10996
10997 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
10998
10999         * sunrpc/auth_des.c: Update copyright notice once again.
11000         * sunrpc/auth_none.c: Likewise.
11001         * sunrpc/auth_unix.c: Likewise.
11002         * sunrpc/authdes_prot.c: Likewise.
11003         * sunrpc/authuxprot.c: Likewise.
11004         * sunrpc/bindrsvprt.c: Likewise.
11005         * sunrpc/clnt_gen.c: Likewise.
11006         * sunrpc/clnt_perr.c: Likewise.
11007         * sunrpc/clnt_raw.c: Likewise.
11008         * sunrpc/clnt_simp.c: Likewise.
11009         * sunrpc/clnt_tcp.c: Likewise.
11010         * sunrpc/clnt_udp.c: Likewise.
11011         * sunrpc/clnt_unix.c: Likewise.
11012         * sunrpc/des_crypt.c: Likewise.
11013         * sunrpc/des_soft.c: Likewise.
11014         * sunrpc/get_myaddr.c: Likewise.
11015         * sunrpc/getrpcport.c: Likewise.
11016         * sunrpc/key_call.c: Likewise.
11017         * sunrpc/key_prot.c: Likewise.
11018         * sunrpc/openchild.c: Likewise.
11019         * sunrpc/pm_getmaps.c: Likewise.
11020         * sunrpc/pm_getport.c: Likewise.
11021         * sunrpc/pmap_clnt.c: Likewise.
11022         * sunrpc/pmap_prot.c: Likewise.
11023         * sunrpc/pmap_prot2.c: Likewise.
11024         * sunrpc/pmap_rmt.c: Likewise.
11025         * sunrpc/rpc/auth.h: Likewise.
11026         * sunrpc/rpc/auth_unix.h: Likewise.
11027         * sunrpc/rpc/clnt.h: Likewise.
11028         * sunrpc/rpc/des_crypt.h: Likewise.
11029         * sunrpc/rpc/key_prot.h: Likewise.
11030         * sunrpc/rpc/netdb.h: Likewise.
11031         * sunrpc/rpc/pmap_clnt.h: Likewise.
11032         * sunrpc/rpc/pmap_prot.h: Likewise.
11033         * sunrpc/rpc/pmap_rmt.h: Likewise.
11034         * sunrpc/rpc/rpc.h: Likewise.
11035         * sunrpc/rpc/rpc_des.h: Likewise.
11036         * sunrpc/rpc/rpc_msg.h: Likewise.
11037         * sunrpc/rpc/svc.h: Likewise.
11038         * sunrpc/rpc/svc_auth.h: Likewise.
11039         * sunrpc/rpc/types.h: Likewise.
11040         * sunrpc/rpc/xdr.h: Likewise.
11041         * sunrpc/rpc_clntout.c: Likewise.
11042         * sunrpc/rpc_cmsg.c: Likewise.
11043         * sunrpc/rpc_common.c: Likewise.
11044         * sunrpc/rpc_cout.c: Likewise.
11045         * sunrpc/rpc_dtable.c: Likewise.
11046         * sunrpc/rpc_hout.c: Likewise.
11047         * sunrpc/rpc_main.c: Likewise.
11048         * sunrpc/rpc_parse.c: Likewise.
11049         * sunrpc/rpc_parse.h: Likewise.
11050         * sunrpc/rpc_prot.c: Likewise.
11051         * sunrpc/rpc_sample.c: Likewise.
11052         * sunrpc/rpc_scan.c: Likewise.
11053         * sunrpc/rpc_scan.h: Likewise.
11054         * sunrpc/rpc_svcout.c: Likewise.
11055         * sunrpc/rpc_tblout.c: Likewise.
11056         * sunrpc/rpc_util.c: Likewise.
11057         * sunrpc/rpc_util.h: Likewise.
11058         * sunrpc/rpcinfo.c: Likewise.
11059         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
11060         * sunrpc/rpcsvc/key_prot.x: Likewise.
11061         * sunrpc/rpcsvc/klm_prot.x: Likewise.
11062         * sunrpc/rpcsvc/mount.x: Likewise.
11063         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
11064         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
11065         * sunrpc/rpcsvc/rex.x: Likewise.
11066         * sunrpc/rpcsvc/rstat.x: Likewise.
11067         * sunrpc/rpcsvc/rusers.x: Likewise.
11068         * sunrpc/rpcsvc/sm_inter.x: Likewise.
11069         * sunrpc/rpcsvc/spray.x: Likewise.
11070         * sunrpc/rpcsvc/yppasswd.x: Likewise.
11071         * sunrpc/rtime.c: Likewise.
11072         * sunrpc/svc.c: Likewise.
11073         * sunrpc/svc_auth.c: Likewise.
11074         * sunrpc/svc_authux.c: Likewise.
11075         * sunrpc/svc_raw.c: Likewise.
11076         * sunrpc/svc_run.c: Likewise.
11077         * sunrpc/svc_simple.c: Likewise.
11078         * sunrpc/svc_tcp.c: Likewise.
11079         * sunrpc/svc_udp.c: Likewise.
11080         * sunrpc/svc_unix.c: Likewise.
11081         * sunrpc/svcauth_des.c: Likewise.
11082         * sunrpc/xcrypt.c: Likewise.
11083         * sunrpc/xdr.c: Likewise.
11084         * sunrpc/xdr_array.c: Likewise.
11085         * sunrpc/xdr_float.c: Likewise.
11086         * sunrpc/xdr_mem.c: Likewise.
11087         * sunrpc/xdr_rec.c: Likewise.
11088         * sunrpc/xdr_ref.c: Likewise.
11089         * sunrpc/xdr_sizeof.c: Likewise.
11090         * sunrpc/xdr_stdio.c: Likewise.
11091
11092         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
11093         handling.
11094
11095 2010-08-19  Andreas Schwab  <schwab@redhat.com>
11096
11097         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
11098
11099 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
11100
11101         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
11102         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
11103         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
11104         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
11105         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
11106         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
11107         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
11108         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
11109         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
11110         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
11111         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
11112         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
11113         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
11114         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
11115
11116 2010-07-26  Anton Blanchard  <anton@samba.org>
11117
11118         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
11119         * malloc/arena.c (heap_trim): Likewise.
11120
11121 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
11122
11123         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
11124         here.  Not...
11125         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
11126         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
11127
11128 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
11129
11130         * sysdeps/i386/elf/Makefile: New file.
11131
11132 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
11133
11134         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
11135         from fanotify_init.
11136         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
11137         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
11138
11139 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
11140
11141         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
11142         of strncasecmp_l.
11143         * sysdeps/multiarch/strcmp.S: Likewise.
11144
11145 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
11146
11147         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
11148         strncase_l-nonascii.
11149         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
11150         Add strncase_l-ssse3.
11151         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
11152         * sysdeps/x86_64/strcmp.S: Likewise.
11153         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
11154         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
11155         * sysdeps/x86_64/strncase.S: New file.
11156         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
11157         * sysdeps/x86_64/strncase_l.S: New file.
11158         * string/Makefile (strop-tests): Add strncasecmp.
11159         * string/test-strncasecmp.c: New file.
11160
11161         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
11162         warning.
11163
11164         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
11165         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
11166
11167 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
11168
11169         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
11170
11171 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
11172
11173         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
11174         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
11175         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
11176
11177 2010-05-01  Alan Modra  <amodra@gmail.com>
11178
11179         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
11180         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
11181         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
11182         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
11183         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
11184         tidying.  Don't tail-call __sigjmp_save for static lib.
11185         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
11186         save location.
11187         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
11188         (CALL_MCOUNT): Add eh info, and nop after bl.
11189         (TAIL_CALL_SYSCALL_ERROR): New macro.
11190         (PSEUDO_RET): Use it.
11191         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
11192         Correct save location of integer regs and cr.
11193         (_dl_profile_resolve): Correct cr save location.  Delete nops
11194         after bl when SHARED.  Reduce cfi size a little by better
11195         placement of cfi directives.
11196         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
11197         make a stack frame.  Instead use parm save area as a temp.
11198         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
11199         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
11200         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
11201         Don't make a stack frame for parent, use parm save area.
11202         Increase child stack frame to 112 bytes.  Don't save unused reg,
11203         and adjust reg usage.  Set up cfi on error recovery and
11204         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
11205         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
11206         (__makecontext): Add dummy nop after jump to exit.
11207         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
11208         Use correct parm save area and cr save, reduce stack frame.
11209         Correct cfi for possible PSEUDO_RET frame setup.
11210         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
11211         Branch to local label emitted by PSEUDO_RET rather than
11212         __syscall_error.
11213
11214 2010-08-12  Andreas Schwab  <schwab@redhat.com>
11215
11216         [BZ #11904]
11217         * locale/programs/locale.c (print_assignment): New function.
11218         (show_locale_vars): Use it.
11219
11220 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
11221
11222         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
11223         field.
11224         (struct statfs64): Likewise.
11225         (_STATFS_F_FLAGS): Define.
11226         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
11227         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
11228         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
11229         (ST_VALID): Define locally.
11230         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
11231         __statvfs_getflags, use the provided value.
11232         * sysdeps/unix/sysv/linux/kernel-features.h: Define
11233         __ASSUME_STATFS_F_FLAGS.
11234
11235         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
11236
11237         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
11238         Add sys/fanotify.h.
11239         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
11240         fanotify_mask for GLIBC_2.13.
11241         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
11242         fanotify_init and fanotify_mark.
11243         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
11244         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
11245
11246         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
11247         Add prlimit.
11248         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
11249         prlimit64 for GLIBC_2.13.
11250         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
11251         prlimit64.
11252         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
11253         syscall.
11254         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
11255         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
11256         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
11257         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
11258         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
11259         add prlimit alias.
11260         * sysdeps/unix/sysv/linux/prlimit.c: New file.
11261
11262         [BZ #11903]
11263         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
11264         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
11265
11266         * nss/Makefile: Add rules to build and run tst-nss-test1.
11267         * shlib-versions: Add entry for libnss_test1.
11268         * nss/nss_test1.c: New file.
11269         * nss/tst-nss-test1.c: New file.
11270
11271         * nss/nsswitch.c (__nss_database_custom): Define new variable.
11272         (__nss_configure_lookup): Set appropriate entry in
11273         __nss_configure_lookup to true.
11274         * nss/nsswitch.h: Define enum with indeces of databases in
11275         databases and __nss_database_custom arrays.  Declare
11276         __nss_database_custom.
11277         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
11278         to avoid using nscd when custom rules are installed.
11279         * nss/getXXbyYY_r.c: Likewise.
11280         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
11281
11282         * nss/nss_files/files-parse.c: Whitespace fixes.
11283
11284 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
11285
11286         [BZ #11883]
11287         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
11288         * posix/fnmatch_loop.c: Likewise.
11289
11290 2010-07-17  Andi Kleen  <ak@linux.intel.com>
11291
11292         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
11293         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
11294         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
11295         * Versions.def [GLIBC_2.13]: Add.
11296
11297 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
11298
11299         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
11300         Also fail if tpwd after pwuid call is NULL.
11301
11302 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11303
11304         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
11305         when converting to ms.
11306
11307 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11308
11309         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
11310         EOPNOTSUPP errors with ENOTTY.
11311         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
11312         EOPNOTSUPP errors with ENOTTY.
11313
11314 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
11315
11316         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
11317         Add strcasecmp_l-ssse3.
11318         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
11319         strcasecmp.
11320         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
11321         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
11322         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
11323
11324 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
11325
11326         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
11327
11328         * string/Makefile (strop-tests): Add strcasecmp.
11329         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
11330         strcasecmp_l-nonascii.
11331         (gen-as-const-headers): Add locale-defines.sym.
11332         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
11333         * sysdeps/x86_64/strcasecmp.S: New file.
11334         * sysdeps/x86_64/strcasecmp_l.S: New file.
11335         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
11336         * sysdeps/x86_64/locale-defines.sym: New file.
11337         * string/test-strcasecmp.c: New file.
11338
11339         * string/test-strcasestr.c: Test both ends of the range of characters.
11340         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
11341
11342 2010-07-29  Roland McGrath  <roland@redhat.com>
11343
11344         [BZ #11856]
11345         * manual/locale.texi (Yes-or-No Questions): Fix example code.
11346
11347 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
11348
11349         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
11350         for ld.so.
11351
11352 2010-07-27  Andreas Schwab  <schwab@redhat.com>
11353
11354         * manual/memory.texi (Malloc Tunable Parameters): Document
11355         M_PERTURB.
11356
11357 2010-07-26  Roland McGrath  <roland@redhat.com>
11358
11359         [BZ #11840]
11360         * configure.in (-fgnu89-inline check): Set and substitute
11361         gnu89_inline, not libc_cv_gnu89_inline.
11362         * configure: Regenerated.
11363         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
11364
11365 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
11366
11367         * string/test-strnlen.c: New file.
11368         * string/Makefile (strop-tests): Add strnlen.
11369         * string/tester.c (test_strnlen): Add a few more test cases.
11370         * string/tst-strlen.c: Better error reporting.
11371
11372         * sysdeps/x86_64/strnlen.S: New file.
11373
11374 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
11375
11376         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
11377         lower-latency instructions.
11378
11379 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
11380
11381         * string/test-strcasestr.c: New file.
11382         * string/test-strstr.c: New file.
11383         * string/Makefile (strop-tests): Add strstr and strcasestr.
11384         * string/str-two-way.h: Don't undefine MAX.
11385         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
11386
11387 2010-07-21  Andreas Schwab  <schwab@redhat.com>
11388
11389         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
11390         strcasestr-nonascii.
11391         (CFLAGS-strcasestr-nonascii.c): Define.
11392         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
11393         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
11394         Remove unused attribute.
11395
11396 2010-07-20  Roland McGrath  <roland@redhat.com>
11397
11398         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
11399         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
11400         ld.so.cache was broken.  With it, there is no way to disable dsocaps
11401         like LD_HWCAP_MASK can disable hwcaps.
11402
11403 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
11404
11405         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
11406
11407 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
11408
11409         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
11410         call in strcasestr.
11411         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
11412         __strcasestr_sse42_nonascii.
11413         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
11414         strcasestr-nonascii.c.
11415         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
11416
11417 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
11418
11419         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
11420         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
11421         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
11422         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
11423
11424 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
11425
11426         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
11427         fcntl.
11428
11429 2010-07-06  Andreas Schwab  <schwab@redhat.com>
11430
11431         [BZ #11577]
11432         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
11433         dl_signal_cerror.
11434
11435 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
11436
11437         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
11438         _PC_PIPE_BUF using F_GETPIPE_SZ.
11439
11440 2010-07-05  Roland McGrath  <roland@redhat.com>
11441
11442         * manual/arith.texi (Rounding Functions): Fix rint description
11443         implicit in round description.
11444
11445 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
11446
11447         * elf/Makefile: Fix linking for a few tests to make recent linker
11448         happy.
11449
11450 2010-06-30  Andreas Schwab  <schwab@redhat.com>
11451
11452         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
11453         $(common-objpfx)libc_nonshared.a.
11454
11455 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
11456
11457         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
11458         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
11459         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
11460         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
11461         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
11462         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
11463         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
11464         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
11465         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
11466         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
11467         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
11468         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
11469         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
11470         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
11471         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
11472         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
11473         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
11474         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
11475         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
11476         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
11477         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
11478         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
11479         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
11480         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
11481         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
11482         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
11483         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
11484         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
11485         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
11486         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
11487         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
11488         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
11489         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
11490         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
11491         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
11492         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
11493         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
11494         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
11495         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
11496         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
11497         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
11498         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
11499         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
11500         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
11501         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
11502         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
11503         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
11504         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
11505
11506 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
11507
11508         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
11509         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
11510         * string/memmove.c (memmove): Renamed to ...
11511         (MEMMOVE): ...this.  Default to memmove.
11512         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
11513         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
11514         (END_CHK): Define.
11515         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
11516         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
11517         mempcpy-ssse3-back memmove-ssse3-back.
11518         * sysdeps/x86_64/multiarch/bcopy.S: New file .
11519         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
11520         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
11521         * sysdeps/x86_64/multiarch/memcpy.S: New file.
11522         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
11523         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
11524         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
11525         * sysdeps/x86_64/multiarch/memmove.c: New file.
11526         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
11527         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
11528         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
11529         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
11530         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
11531         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
11532         Define.
11533         (index_Fast_Copy_Backward): Define.
11534         (HAS_ARCH_FEATURE): Define.
11535         (HAS_FAST_REP_STRING): Define.
11536         (HAS_FAST_COPY_BACKWARD): Define.
11537
11538 2010-06-21  Andreas Schwab  <schwab@redhat.com>
11539
11540         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
11541         Restore proper fallback handling.
11542
11543 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
11544
11545         [BZ #11701]
11546         * posix/group_member.c (__group_member): Correct checking loop.
11547
11548         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
11549         OOM in getpwuid_r correctly.  Return error number when the caller
11550         should return, otherwise -1.
11551         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
11552         call returning > 0 value.
11553         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
11554
11555 2010-06-07  Andreas Schwab  <schwab@redhat.com>
11556
11557         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
11558         libc_nonshared.a from targets in modules-names.
11559
11560 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
11561
11562         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
11563         requires it.
11564
11565 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
11566
11567         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
11568         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
11569         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
11570         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
11571
11572 2010-06-02  Andreas Schwab  <schwab@redhat.com>
11573
11574         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
11575
11576 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
11577
11578         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
11579         and F_GETPIPE_SZ.
11580         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
11581         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
11582         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
11583         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
11584         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
11585         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
11586
11587 2010-06-14  Roland McGrath  <roland@redhat.com>
11588
11589         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
11590
11591 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
11592
11593         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
11594         __REDIRECT followed by __THROW.
11595         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
11596         * posix/getopt.h (getopt): Likewise.
11597
11598 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
11599
11600         * hurd/lookup-at.c (__file_name_lookup_at): Accept
11601         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
11602         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
11603         in AT_FLAGS.
11604         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
11605         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
11606
11607 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
11608
11609         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
11610
11611 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
11612
11613         [BZ #11640]
11614         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
11615         Properly check family and model.
11616
11617 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
11618
11619         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
11620
11621 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
11622
11623         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
11624
11625 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
11626
11627         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
11628         symbol reference.
11629
11630 2010-05-19  Andreas Schwab  <schwab@redhat.com>
11631
11632         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
11633         symbol reference.
11634
11635 2010-05-21  Andreas Schwab  <schwab@redhat.com>
11636
11637         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
11638         and internal_recvmmsg.
11639         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
11640         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
11641         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
11642         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
11643
11644         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
11645         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
11646         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
11647
11648 2010-05-20  Andreas Schwab  <schwab@redhat.com>
11649
11650         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
11651
11652 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
11653
11654         POWER7 optimizations.
11655         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
11656         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
11657
11658 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
11659
11660         * version.h: Update for 2.13 development version.
11661
11662 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
11663
11664         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
11665         exceptions.  Return 0.
11666
11667 2010-05-07  Roland McGrath  <roland@redhat.com>
11668
11669         * elf/ldconfig.c (main): Add a const.
11670
11671 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
11672
11673         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
11674         (args_options): Add no-idn option.
11675         (ahosts_keys_int): Add idn_flags to ai_flags.
11676         (parse_option): Handle 'i' option to clear idn_flags.
11677
11678         * malloc/malloc.c (_int_free): Possible race in the most recently
11679         added check.  Only act on the data if no current modification
11680         happened.
11681
11682 See ChangeLog.17 for earlier changes.