Fix a bug when converting strings with 1 character using TCVN5712-1
[glibc.git] / ChangeLog
blob08c70131fb0a5a9be4d2e9aefa8fe970a5e0b07f
1 2012-03-30 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
3         [BZ #13691]
4         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
5         with only 1 character between 0x0041 and 0x01b0.
6         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
7         * wcsmbs/tst-mbsnrtowcs.c: New file.
9 2012-03-29  David S. Miller  <davem@davemloft.net>
11         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
12         small copies by hand.
14 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
16         [BZ #13761]
17         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
18         _nss_compat_initgroups_dyn): Fall back to malloc/free
19         for large group memberships.
21 2012-03-28  David S. Miller  <davem@davemloft.net>
23         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
24         that branches into memcpy.
25         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
26         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
27         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
28         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
29         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
30         bits.
31         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
32         implementation too.
33         * sysdeps/sparc/mempcpy.S: New file.
35         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
36         the IFUNC routine in the libc case.
37         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
39         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
40         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
41         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
42         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
43         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
44         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
45         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
46         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
48         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
49         loop to 256 bytes instead of 64 bytes and fix test signedness.
51         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
52         * sysdeps/sparc/sparc32/Makefile: rather than here...
53         * sysdeps/sparc/sparc64/Makefile: and here.
55 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
57         * malloc/mallocbug.c: Avoid warnings about unused variables.
59 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
61         [BZ #13760]
62         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
63         in the right place. Discard and retry query if response is
64         larger than input buffer size.
66 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
68         [BZ #369]
69         [BZ #2678]
70         [BZ #3866]
71         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
72         x for large integer exponent.
73         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
74         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
75         sign of result as needed afterwards.
76         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
77         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
78         result for underflowing pow the same as for overflow.
79         (__kernel_standard_l): Handle powl overflow and underflow here
80         rather than calling __kernel_standard.
81         * math/libm-test.inc (pow_test): Add more tests.
83         [BZ #3868]
84         [BZ #13879]
85         [BZ #13910]
86         [BZ #13911]
87         [BZ #13912]
88         [BZ #13913]
89         [BZ #13915]
90         [BZ #13916]
91         [BZ #13917]
92         [BZ #13918]
93         [BZ #13919]
94         [BZ #13920]
95         [BZ #13921]
96         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
97         * sysdeps/ieee754/k_standard.c: Include <float.h>.
98         (__kernel_standard_l): New function.
99         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
100         __kernel_standard.
101         * math/w_acosl.c (__acosl): Likewise.
102         * math/w_asinl.c (__asinl): Likewise.
103         * math/w_atan2l.c (__atan2l): Likewise.
104         * math/w_atanhl.c (__atanhl): Likewise.
105         * math/w_coshl.c (__coshl): Likewise.
106         * math/w_exp10l.c (__exp10l): Likewise.
107         * math/w_exp2l.c (__exp2l): Likewise.
108         * math/w_fmodl.c (__fmodl): Likewise.
109         * math/w_hypotl.c (__hypotl): Likewise.
110         * math/w_j0l.c (__j0l, __y0l): Likewise.
111         * math/w_j1l.c (__j1l, __y1l): Likewise.
112         * math/w_jnl.c (__jnl, __ynl): Likewise.
113         * math/w_lgammal.c (__lgammal): Likewise.
114         * math/w_log10l.c (__log10l): Likewise.
115         * math/w_log2l.c (__log2l): Likewise.
116         * math/w_logl.c (__logl): Likewise.
117         * math/w_powl.c (__powl): Likewise.
118         * math/w_remainderl.c (__remainderl): Likewise.
119         * math/w_scalbl.c (sysv_scalbl): Likewise.
120         * math/w_sinhl.c (__sinhl): Likewise.
121         * math/w_sqrtl.c (__sqrtl): Likewise.
122         * math/w_tgammal.c (__tgammal): Likewise.
123         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
124         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
125         * math/libm-test.inc (acos_test): Add more tests.
126         (acosh_test): Likewise.
127         (asin_test): Likewise.
128         (atanh_test): Likewise.
129         (exp_test): Likewise.
130         (exp10_test): Likewise.
131         (exp2_test): Likewise.
132         (expm1_test): Likewise.
133         (lgamma_test): Likewise.
134         (log_test): Likewise.
135         (log10_test): Likewise.
136         (log1p_test): Likewise.
137         (log2_test): Likewise.
138         (pow_test): Do not allow some spurious overflow exceptions.
139         (sqrt_test): Add more tests.
140         (tgamma_test): Likewise.
141         (y0_test): Likewise.
142         (y1_test): Likewise.
143         (yn_test): Likewise.
145 2012-03-27  Anton Blanchard  <anton@samba.org>
147         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
148         MAP_HUGETLB.
149         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
150         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
151         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
153 2012-03-27  David S. Miller  <davem@davemloft.net>
155         * conform/Makefile: Run run-conformtest.sh using $(BASH).
157         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
158         have-as-vis3 check.
160 2012-03-27  Andreas Jaeger  <aj@suse.de>
162         * sysdeps/x86_64/elf/configure.in: Moved to ...
163         * sysdeps/x86_64/configure.in: ... here.
164         * sysdeps/x86_64/elf/start.S: Moved to ...
165         * sysdeps/x86_64/start.S: ... here.
166         * sysdeps/x86_64/elf/configure: Delete.
168         * sysdeps/x86_64/configure.in: Merge contents from
169         sysdeps/i386/configure.in (without i686 check).
171         * sysdeps/i386/elf/Versions: Merge into ...
172         * sysdeps/i386/Versions: ... this.
173         * sysdeps/i386/elf/Versions: Delete file.
174         * sysdeps/i386/elf/start.S: Moved to ...
175         * sysdeps/i386/start.S: ...here.
176         * sysdeps/i386/elf/configure.in: Merge into...
177         * sysdeps/i386/configure.in: ...here.
178         * sysdeps/i386/elf/configure.in: Delete file.
179         * sysdeps/i386/elf/configure: Delete file.
181         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
182         * debug/backtracesyms.c: ... here.
183         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
184         * debug/backtracesymsfd.c: ... here.
185         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
186         * sysdeps/generic/ifunc-sel.h: ... here.
188         * sysdeps/unix/i386/start.c: Delete file.
189         * sysdeps/unix/sparc/start.c: Delete file.
190         * sysdeps/unix/start.c: Delete file.
192         * sysdeps/sh/elf/configure.in: Moved to ...
193         * sysdeps/sh/configure.in: ... here.
194         * sysdeps/sh/elf/start.S: Moved to ...
195         * sysdeps/sh/start.S: ... here.
196         * sysdeps/sh/elf/configure: Delete file.
198         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
199         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
200         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
201         * sysdeps/powerpc/powerpc64/entry.h: ... here.
202         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
203         * sysdeps/powerpc/powerpc64/start.S: here.
204         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
205         * sysdeps/powerpc/powerpc64/Makefile: ... this.
206         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
207         * sysdeps/powerpc/powerpc64/configure.in: ... this.
208         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
210         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
211         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
212         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
213         * sysdeps/powerpc/powerpc32/start.S: ... here.
214         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
215         * sysdeps/powerpc/powerpc32/configure.in: ... this.
216         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
218         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
219         * sysdeps/powerpc/ifunc-sel.h: ... here.
220         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
221         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
223         * sysdeps/sparc/elf/configure.in: Moved to ...
224         * sysdeps/sparc/configure.in: ... here.
225         * sysdeps/sparc/elf/configure: Delete file.
226         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
227         * sysdeps/sparc/sparc32/start.S: ... here.
228         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
229         * sysdeps/sparc/sparc64/start.S: ... here.
230         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
231         * sysdeps/sparc/sparc32/Makefile: ... this.
232         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
233         * sysdeps/sparc/sparc64/Makefile: ... this.
235         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
236         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
237         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
238         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
239         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
240         * sysdeps/s390/s390-32/setjmp.S: ... here.
241         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
242         * sysdeps/s390/s390-32/configure.in: ... here.
243         * sysdeps/s390/s390-32/elf/configure: Delete file.
244         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
245         * sysdeps/s390/s390-32/start.S: ... here.
247         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
248         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
249         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
250         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
251         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
252         * sysdeps/s390/s390-64/setjmp.S: ... here.
253         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
254         * sysdeps/s390/s390-64/configure.in: ... here
255         * sysdeps/s390/s390-64/elf/configure: Delete file.
256         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
257         * sysdeps/s390/s390-64/start.S: ... here.
258         * sysdeps/s390/s390-64/elf/configure: Delete.
260         * configure.in: Remove support for elf directories in sysdeps.
262         * configure: Regenerated.
263         * sysdeps/i386/configure: Regenerated.
264         * sysdeps/powerpc/powerpc32/configure: Regenerated.
265         * sysdeps/powerpc/powerpc64/configure: Regenerated.
266         * sysdeps/s390/s390-32/configure: Regenerated.
267         * sysdeps/s390/s390-64/configure: Regenerated.
268         * sysdeps/sh/configure: Regenerated.
269         * sysdeps/sparc/configure: Regenerated.
270         * sysdeps/x86_64/configure: Regenerated.
272 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
274         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
276         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
277         denormal result into account.
279 2012-03-25  Roland McGrath  <roland@hack.frob.com>
281         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
282         Reported by Allan McRae <allan@archlinux.org>.
284 2012-03-23  Jeff Law  <law@redhat.com>
286         * nss/getnssent.c (__nss_getent): Fix typo.
288 2012-03-23  David S. Miller  <davem@davemloft.net>
290         * sysdeps/sparc/fpu/libm-test-ulps: Update.
292 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
294         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
295         to pad to uint64_t for each field.
296         (dl_tls_index): Replace unsigned long with uint64_t.
298 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
299         Paul Pluzhnikov  <ppluzhnikov@google.com>
301         [BZ #6528]
302         * grp/Makefile (otherlibs): Don't set it.
303         * inet/Makefile (otherlibs): Likewise.
304         * login/Makefile (otherlibs): Likewise.
305         * nscd/Makefile (otherlibs): Likewise.
306         * posix/Makefile (otherlibs): Likewise.
307         * pwd/Makefile (otherlibs): Likewise.
308         * rt/Makefile (otherlibs): Likewise.
309         * sunrpc/Makefile (otherlibs): Likewise.
310         * nss/Makefile (otherlibs): Likewise.
311         Add libnss_files to routines and static-only-routines.
312         ($(objpfx)getent): Remove rule.
313         * resolv/Makefile: Add libnss_dns and libresolv to routines and
314         static-only-routines.
316 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
318         [BZ #13892]
319         * math/s_cexp.c: Include <float.h>.
320         (__cexp): Handle exp result overflowing not necessarily
321         overflowing both real and imaginary parts of result.
322         * math/s_cexpf.c: Likewise.
323         * math/s_cexpl.c: Likewise.
324         * math/libm-test.inc (cexp_test): Add more tests.
325         * sysdeps/i386/fpu/libm-test-ulps: Update.
326         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
328 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
330         * include/link.h (ELFW): New macro.
331         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
332         Replace ELF64_R_TYPE with ELFW(R_TYPE).
334 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
336         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
337         with uint64_t.
339 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
341         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
342         declaration.
343         (struct La_x32_retval): Likewise.
345 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
347         * sysdeps/x86_64/preconfigure.in: New file.
348         * sysdeps/x86_64/preconfigure: New generated file.
350 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
352         [BZ #13824]
353         * math/e_exp2l.c: Include <float.h>.
354         (__ieee754_exp2l): Handle overflow and underflow cases
355         separately.  Only pass fractional part of argument to
356         __ieee754_expl.
357         * math/libm-test.inc (exp2_test): Add more tests.
359         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
360         negating x to take absolute value.
361         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
362         Likewise.
363         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
364         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
365         Likewise.
366         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
367         computing low part if x was negated.
368         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
370 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
372         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
373         la_x32_gnu_pltexit.
374         (pltexit): Cast int_retval to ptrdiff_t.
375         * elf/tst-auditmod3b.c: Likewise.
376         * elf/tst-auditmod4b.c: Likewise.
377         * elf/tst-auditmod5b.c: Likewise.
378         * elf/tst-auditmod6b.c: Likewise.
379         * elf/tst-auditmod6c.c: Likewise.
380         * elf/tst-auditmod7b.c: Likewise.
382         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
383         and x32_gnu_pltexit.
385         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
386         __ELF_NATIVE_CLASS.
387         (La_x32_regs): New macro.
388         (La_x32_retval): Likewise.
389         (la_x32_gnu_pltenter): New function prototype.
390         (la_x32_gnu_pltexit): Likewise.
392 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
394         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
395         exponent.
397         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
399         * configure.in (libc_cv_cc_nofma): Check for option to disable
400         generation of FMA instructions.
401         * configure: Regenerate.
402         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
403         * sysdeps/ieee754/dbl-64/Makefile: New file.
404         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
405         Remove brandred-fma4.
406         (CFLAGS-brandred-fma4.c): Remove.
407         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
408         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
409         define.
410         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
411         define.
413 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
415         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
416         LLONG_MAX != LONG_MAX.
417         (_itoa_word): Use _ITOA_WORD_TYPE on value.
418         (_fitoa_word): Likewise.
419         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
420         LLONG_MAX != LONG_MAX.
421         * stdio-common/_itowa.h: Include <_itoa.h>.
422         (_itowa_word): Use _ITOA_WORD_TYPE on value.
423         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
424         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
425         only if not defined.
426         (_ITOA_WORD_TYPE): Likewise.
427         (_itoa_word): Use _ITOA_WORD_TYPE on value.
428         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
430 2012-03-21  David S. Miller  <davem@davemloft.net>
432         * sysdeps/sparc/fpu/libm-test-ulps: Update.
434 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
436         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
437         of x86_64 when setting libc_cv_slibdir, libdir and
438         libc_cv_localedir.
439         * sysdeps/unix/sysv/linux/configure: Regenerated.
441 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
443         * manual/lang.texi (Old Varargs): Remove section.
444         (How Variadic): Update menu.
445         (va_start): Do not mention varargs.h.
447 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
448             Joseph Myers  <joseph@codesourcery.com>
450         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
451         link test.
452         * configure: Regenerated.
454 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
456         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
457         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
458         conformtest.pl
460 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
462         * NOTES: Remove.
463         * Makefile (files-for-dist): Remove NOTES.
464         (NOTES): Remove rule.
465         * README: Don't refer to NOTES.
466         * manual/creature.texi: Don't include macros.texi.
467         * manual/intro.texi (creature.texi): Remove comment referring to
468         NOTES.
470         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
471         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
472         * configure: Regenerated.
473         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
474         LIBC_TRY_CC_OPTION.
475         (libc_cv_as_i686): Likewise.
476         (libc_cv_cc_avx): Likewise.
477         (libc_cv_cc_sse2avx): Likewise.
478         (libc_cv_cc_fma4): Likewise.
479         (libc_cv_cc_novzeroupper): Likewise.
480         * sysdeps/i386/configure: Regenerated.
482         [BZ #13883]
483         * sysdeps/i386/fpu/s_cexp.S: Remove.
484         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
485         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
486         * math/libm-test.inc (cexp_test): Add more tests.
487         * sysdeps/i386/fpu/libm-test-ulps: Update.
488         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
490 2012-03-21  Allan McRae  <allan@archlinux.org>
492         * timezone/Makefile: Do not install iso3166.tab and zone.tab
494 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
496         [BZ #13871]
497         * math/w_exp2.c: Do not include <float.h>.
498         (o_threshold, u_threshold): Remove.
499         (__exp2): Calculate result before checking finiteness and calling
500         __kernel_standard.
501         * math/w_exp2f.c: Likewise.
502         * math/w_exp2l.c: Likewise.
503         * math/libm-test.inc (exp2_test): Require overflow exception for
504         1e6 input.
506         [BZ #3866]
507         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
508         range of signed 64-bit integers before using fistpll.  Remove
509         checks for whether integers fit in mantissa bits.
510         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
511         the range of signed 32-bit integers before using fistpl.  Remove
512         checks for whether integers fit in mantissa bits.
513         * sysdeps/i386/fpu/e_powl.S (p64): New object.
514         (__ieee754_powl): Test for y outside the range of signed 64-bit
515         integers before using fistpll.  Reduce 64-bit values to 63-bit
516         ones as needed.
517         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
518         divide-by-zero is raised for zero to large negative powers.
519         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
520         (__ieee754_powl): Test for y outside the range of signed 64-bit
521         integers before using fistpll.  Reduce 64-bit values to 63-bit
522         ones as needed.
523         * math/libm-test.inc (pow_test): Add more tests.
525 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
527         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
528         <stdio-common/_itoa.h>.
529         * debug/segfault.c: Likewise.
530         * elf/dl-cache.c: Likewise.
531         * elf/dl-minimal.c: Likewise.
532         * elf/dl-misc.c: Likewise.
533         * elf/dl-sysdep.c: Likewise.
534         * elf/dl-version.c: Likewise.
535         * elf/rtld.c: Likewise.
536         * hurd/hurdsock.c: Likewise.
537         * hurd/lookup-retry.c: Likewise.
538         * malloc/malloc.c: Likewise.
539         * malloc/mtrace.c: Likewise.
540         * nscd/nscd_getgr_r.c: Likewise.
541         * nscd/nscd_getpw_r.c: Likewise.
542         * nscd/nscd_getserv_r.c: Likewise.
543         * posix/getopt_init.c: Likewise.
544         * posix/wordexp.c: Likewise.
545         * stdio-common/_itoa.c: Likewise.
546         * stdio-common/printf_fphex.c: Likewise.
547         * stdio-common/vfprintf.c: Likewise.
548         * string/_strerror.c: Likewise.
549         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
550         * sysdeps/i386/i686/hp-timing.h: Likewise.
551         * sysdeps/mach/_strerror.c: Likewise.
552         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
553         * sysdeps/mach/hurd/sethostid.c: Likewise.
554         * sysdeps/mach/hurd/xmknodat.c: Likewise.
555         * sysdeps/mach/xpg-strerror.c: Likewise.
556         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
557         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
558         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
559         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
560         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
561         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
562         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
563         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
564         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
565         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
566         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
567         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
568         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
569         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
570         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
571         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
572         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
573         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
574         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
575         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
576         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
578         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
580         * stdio-common/_itoa.h: Moved to ...
581         * sysdeps/generic/_itoa.h: Here.
583         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
585         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
586         instead of "_itoa.h" and "_itowa.h".
587         * stdio-common/vfprintf.: Likewise.
589 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
591         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
592         <bits/wordsize.h>.
593         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
594         (__signbit): Likwise.
595         (llrintf): Likwise.
596         (llrint): Likwise.
598 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
600         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
601         __WORDSIZE != 64.
603 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
605         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
606         OVERFLOW_EXCEPTION_OK.
607         * math/libm-test.inc ("Philosophy"): Update comment about
608         exception testing.
609         (OVERFLOW_EXCEPTION): Define.
610         (OVERFLOW_EXCEPTION_OK): Likewise.
611         (INVALID_EXCEPTION_OK): Renumber.
612         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
613         (IGNORE_ZERO_INF_SIGN): Likewise.
614         (test_exceptions): Handle FE_OVERFLOW.
615         (exp10_test): Expect overflow exceptions.
616         (exp2_test): Likewise.
617         (expm1_test): Likewise.
618         (nextafter_test): Likewise.
619         (pow_test): Likewise.
620         (scalbn_test): Likewise.
621         (scalbln_test): Likewise.
623 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
625         * sysdeps/x86_64/bits/atomic.h
626         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
627         64bit integer.
628         (atomic_exchange_acq): Likewise.
629         (__arch_exchange_and_add_body): Likewise.
630         (__arch_add_body): Likewise.
631         (atomic_add_negative): Likewise.
632         (atomic_add_zero): Likewise.
634 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
636         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
637         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
639 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
641         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
642         Check __x86_64__ instead of __WORDSIZE.
644 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
646         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
648 2012-03-19  David S. Miller  <davem@davemloft.net>
650         * sysdeps/sparc/fpu/libm-test-ulps: Update.
652         * sysdeps/sparc/fpu/fenv_private.h: New file.
653         * sysdeps/sparc/fpu/math_private.h: Use it.
654         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
655         Remove.
656         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
657         (libc_feholdexcept_setroundl): Remove.
658         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
659         Remove.
660         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
661         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
663 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
665         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
666         int64_t instead of long int.
667         (INSERT_WORDS64): Likwise.
669 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
671         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
672         _Unwind_GetCFA return to _Unwind_Ptr first.
674 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
676         [BZ #13629]
677         * math/s_clog.c: Include <float.h>.
678         (__clog): Scale large or subnormal inputs.
679         * math/s_clogf.c: Likewise.
680         * math/s_clogl.c: Likewise.
681         * math/s_clog10.c: Include <float.h>.
682         (M_LOG10_2): Define.
683         (__clog10): Scale large or subnormal inputs.
684         * math/s_clog10f.c: Likewise.
685         * math/s_clog10l.c: Likewise.
686         * math/libm-test.inc (clog_test): Add more tests.
687         (clog10_test): Likewise.
688         * sysdeps/i386/fpu/libm-test-ulps: Update.
689         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
691         [BZ #11451]
692         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
693         x and y.
694         * math/libm-test.inc (atan2_test): Add another test.
696         * Makerules (common-objdir-compile): Remove.
697         * sysdeps/unix/Makefile (config-generated): Do not add
698         $(unix-generated) to variable.
699         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
700         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
701         Remove rule.
702         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
703         Likewise.
704         [generic bits/local_lim.h] (before-compile): Do not append to
705         variable.
706         [generic bits/local_lim.h] (common-generated): Likewise.
707         [generic sys/param.h] (before-compile): Do not append to variable.
708         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
709         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
710         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
711         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
712         include.
713         [generic sys/param.h] (sys/param.h-includes): Remove variable.
714         [generic sys/param.h] (sys/param.h-includes): Remove rule.
715         [generic sys/param.h] ($(addprefix
716         $(common-objpfx),$(sys/param.h-includes))): Likewise.
717         [generic sys/param.h] (common-generated): Do not append to
718         variable.
719         [generic sys/param.h] (sysdep_headers): Likewise.
720         [generic bits/errno.h] (before-compile): Do not append to
721         variable.
722         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
723         rule.
724         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
725         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
726         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
727         [generic bits/errno.h] (common-generated): Do not append to
728         variable.
729         [generic bits/ioctls.h] (before-compile): Do not append to
730         variable.
731         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
732         rule.
733         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
734         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
735         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
736         rule.
737         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
738         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
739         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
740         [generic bits/ioctls.h] (common-generated): Do not append to
741         variable.
742         [generic sys/syscall.h] (syscall.h): Remove variable.
743         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
744         rule.
745         [generic sys/syscall.h] (before-compile): Do not append to
746         variable.
747         [generic sys/syscall.h] (common-generated): Likewise.
748         * sysdeps/unix/errnos-tmpl.c: Remove file.
749         * sysdeps/unix/errnos.awk: Likewise.
750         * sysdeps/unix/ioctls-tmpl.c: Likewise.
751         * sysdeps/unix/ioctls.awk: Likewise.
752         * sysdeps/unix/mk-local_lim.c: Likewise.
753         * sysdeps/unix/snarf-ioctls: Likewise.
755 2012-03-19  Richard Henderson  <rth@twiddle.net>
757         * sysdeps/i386/fpu/fenv_private.h: New file.
758         * sysdeps/i386/fpu/math_private.h: Use it.
759         (math_opt_barrier, math_force_eval): Remove.
760         (libc_feholdexcept_setround_53bit): Remove.
761         (libc_feupdateenv_53bit): Remove.
762         * sysdeps/x86_64/fpu/math_private.h: Likewise.
763         (math_opt_barrier, math_force_eval): Remove.
764         (libc_feholdexcept): Remove.
765         (libc_feholdexcept_setround): Remove.
766         (libc_fetestexcept, libc_fesetenv): Remove.
767         (libc_feupdateenv_test): Remove.
768         (libc_feupdateenv, libc_feholdsetround): Remove.
769         (libc_feresetround): Remove.
771         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
772         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
774         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
775         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
776         (libc_feupdateenv_testl): New.
777         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
778         (libc_feupdateenv_testf): New.
779         (libc_feupdateenv): Use libc_feupdateenv_test.
780         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
781         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
783         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
784         (libc_feholdsetroundf, libc_feholdsetroundl): New.
785         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
786         (libc_feresetround_noex): New.
787         (libc_feresetround_noexf): New.
788         (libc_feresetround_noexl): New.
789         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
790         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
791         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
792         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
793         SET_RESTORE_ROUND.
794         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
795         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
796         (__cos): Likewise.
797         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
798         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
799         SET_RESTORE_ROUND_NOEX.
800         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
801         SET_RESTORE_ROUND_NOEXF.
802         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
803         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
804         (libc_feholdsetroundf): New.
805         (libc_feresetround, libc_feresetroundf): New.
807         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
808         (libc_feholdexcept_setround_53bit): Convert from macro to function.
809         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
811         * sysdeps/generic/math_private.h: Include <fenv.h>.
812         (default_libc_feholdexcept): New.
813         (default_libc_feholdexcept_setround): New.
814         (default_libc_fesetenv, default_libc_feupdateenv): New.
815         (libc_feholdexcept): Only define if undefined.
816         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
817         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
818         (libc_feholdexcept_setroundl): Likewise.
819         (libc_feholdexcept_setround_53bit): Likewise.
820         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
821         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
822         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
823         (libc_feupdateenv_53bit): Likewise.
824         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
825         (libc_feholdexcept): Convert from macro to inline function.
826         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
827         (libc_fesetenv, libc_feupdateenv): Likewise.
829         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
830         not previously defined.
831         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
832         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
833         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
834         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
835         * sysdeps/ieee754/flt-32/math_private.h: New file.
836         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
837         math_private.h below SET_FLOAT_WORD.
838         (__isnan, __isinf_ns, __finite): Remove.
839         (__isnanf, __isinf_nsf, __finitef): Remove.
841 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
843         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
845 2012-03-17  David S. Miller  <davem@davemloft.net>
847         [BZ #6471]
848         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
849         for 2.16.
851 2012-03-16  David S. Miller  <davem@davemloft.net>
853         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
854         warnings.
856         [BZ #6471]
857         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
858         properly.
859         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
860         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
861         sysdep_routines when subdir is sysvipc.
862         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
863         __getshmlba helper.
865         * sysdeps/sparc/fpu/libm-test/ulps: Update.
867 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
869         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
870         [__LP64__].
872 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
874         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
875         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
876         (__lround): Renamed to ...
877         (__llround): This.  Replace long int with long long int.
878         Define lround functions as aliases of llround functions.
879         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
881 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
883         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
884         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
885         adresses to uintptr_t.  Replace "long int" and "unsigned long
886         int" with "greg_t" on va_arg.
888 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
890         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
891         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
893         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
894         Move e_machine check before EI_CLASS check.  Handle x32
895         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
896         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
897         SKIP_EM_IA_64 and include
898         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
900         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
901         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
902         (add_system_dir): New macro.
904         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
905         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
907 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
909         [BZ #2551]
910         [BZ #2552]
911         [BZ #2553]
912         [BZ #2554]
913         [BZ #2562]
914         [BZ #2563]
915         [BZ #2565]
916         [BZ #2566]
917         [BZ #2576]
918         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
919         (y0): Likewise.
920         * math/w_j0f.c (j0f): Likewise.
921         (y0f): Likewise.
922         * math/w_j0l.c (__j0l): Likewise.
923         (__y0l): Likewise.
924         * math/w_j1.c (j1): Likewise.
925         (y1): Likewise.
926         * math/w_j1f.c (j1f): Likewise.
927         (y1f): Likewise.
928         * math/w_j1l.c (__j1l): Likewise.
929         (__y1l): Likewise.
930         * math/w_jn.c (jn): Likewise.
931         (yn): Likewise.
932         * math/w_jnf.c (jnf): Likewise.
933         (ynf): Likewise.
934         * math/w_jnl.c (__jnl): Likewise.
935         (__ynl): Likewise.
936         * math/libm-test.inc (j0_test): Add more tests.
937         (j1_test): Likewise.
938         (jn_test): Likewise.  Add trailing semicolon to existing test.
939         (y0_test): Likewise.
940         (y1_test): Likewise.
941         * sysdeps/i386/fpu/libm-test-ulps: Update.
942         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
944         [BZ #13851]
945         [BZ #13854]
946         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
947         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
948         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
949         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
950         (__tanl): Set errno for infinite argument.
951         * sysdeps/i386/fpu/mptan.c: Remove.
952         * sysdeps/i386/fpu/s_tan.S: Likewise.
953         * sysdeps/i386/fpu/s_tanl.S: Likewise.
954         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
955         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
956         * math/libm-test.inc (tan_test): Add more tests and enable more
957         tests for double and long double.
958         * sysdeps/i386/fpu/libm-test-ulps: Update.
959         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
961 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
963         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
964         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
966 2012-03-16  Roland McGrath  <roland@hack.frob.com>
968         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
969         * configure.in: Use it for both main tree and add-ons.
970         * configure: Regenerated.
972 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
974         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
976 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
978         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
979         in comment.
981         [BZ #13851]
982         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
983         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
984         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
985         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
986         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
987         infinite argument.
988         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
989         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
990         != 0 for prec == 2.
991         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
992         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
993         * sysdeps/i386/fpu/s_cosl.S: Likewise.
994         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
995         * sysdeps/i386/fpu/s_sinl.S: Likewise.
996         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
997         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
998         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
999         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
1000         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
1001         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
1002         * math/libm-test.inc (cos_test): Add more tests and enable more
1003         tests for long double.
1004         (sin_test): Likewise.
1005         (sincos_test): Likewise.
1006         * sysdeps/i386/fpu/libm-test-ulps: Update.
1007         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1009 2012-03-16  David S. Miller  <davem@davemloft.net>
1011         * sysdeps/sparc/fpu/math_private.h: New file.
1013 2012-03-15  David S. Miller  <davem@davemloft.net>
1015         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
1016         file.
1017         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
1018         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
1019         file.
1020         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
1021         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
1022         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
1023         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
1024         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
1025         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
1026         sysdep routines.
1027         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
1029         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
1030         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
1032         * sysdeps/sparc/sparc-ifunc.h: New file.
1033         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
1034         sparc-ifunc.h
1035         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
1036         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
1037         Likewise.
1038         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
1039         Likewise.
1040         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
1041         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
1042         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
1043         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
1044         Likewise.
1045         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
1046         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
1047         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
1048         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
1049         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
1050         Likewise.
1051         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
1052         Likewise.
1053         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
1054         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
1055         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
1056         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
1057         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
1058         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
1059         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
1060         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
1061         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
1062         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
1063         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
1064         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
1065         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
1066         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
1067         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
1068         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
1069         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
1070         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
1071         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
1072         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
1073         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
1074         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
1075         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
1076         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
1078 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
1080         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
1081         scaling.
1082         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1084 2012-03-15  Andreas Jaeger  <aj@suse.de>
1086         [BZ #13852]
1087         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
1088         ieee754/flt-32 implementation for sin, cos and sincos.
1089         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
1090         * sysdeps/i386/fpu/s_cosf.S: Likewise.
1091         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
1092         * sysdeps/i386/fpu/s_sinf.S: Likewise.
1093         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
1094         ieee754/flt-32 implementation for tan.
1096         * math/libm-test.inc (cos_test): Enable some large input tests for
1097         float as well
1098         (sin_test): Likewise.
1099         (sincos_test): Likewise.
1100         (tan_test): Add tests for large input.
1102         * sysdeps/i386/fpu/libm-test-ulps: Update.
1104 2012-03-15  Andreas Jaeger  <aj@suse.de>
1106         [BZ #13658]
1107         * math/libm-test.inc (cos_test): Add more test cases.
1108         (sin_test): Likewise.
1109         (sincos_test): Likewise.
1111 2012-03-15  Andreas Jaeger  <aj@suse.de>
1113         [BZ #13837]
1114         * math/libm-test.inc (cos_test): Add a test case for large input
1115         value.
1116         (sin_test): Likewise.
1117         (sincos_test): Likewise.
1119 2012-03-15  Andreas Jaeger  <aj@suse.de>,
1120         Joseph Myers  <joseph@codesourcery.com>
1122         [BZ #13658]
1123         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
1124         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
1125         * sysdeps/i386/fpu/branred.c: Likewise.
1126         * sysdeps/i386/fpu/dosincos.c: Likewise.
1127         * sysdeps/i386/fpu/mpa.c: Likewise.
1128         * sysdeps/i386/fpu/s_cos.S: Likewise.
1129         * sysdeps/i386/fpu/s_sin.S: Likewise.
1130         * sysdeps/i386/fpu/s_sincos.S: Likewise.
1131         * sysdeps/i386/fpu/sincos32.c: Likewise.
1133         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
1134         Define.
1135         (libc_feupdateenv_53bit): Define.
1136         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
1137         Define.
1138         (libc_feupdateenv_53bit): Define.
1140         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
1141         53 bit (without extend i386 double precision).
1143         * math/libm-test.inc (sincos_test): Add tests for large input.
1144         (sin): Likewise.
1145         (cos): Likewise.
1147         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
1149 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
1151         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1153 2012-03-15  David S. Miller  <davem@davemloft.net>
1155         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
1156         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
1157         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
1158         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
1159         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
1160         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
1161         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
1162         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
1163         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
1164         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
1165         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
1166         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
1167         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
1168         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
1169         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
1170         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
1171         file.
1172         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
1173         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
1174         file.
1175         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
1176         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
1177         file.
1178         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
1179         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
1180         file.
1181         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
1182         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
1183         fmin/fmax sysdep routines.
1184         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
1186 2012-03-14  David S. Miller  <davem@davemloft.net>
1188         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
1189         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
1190         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
1191         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
1192         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
1193         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
1194         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
1195         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
1196         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
1197         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
1198         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
1199         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
1200         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
1201         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
1202         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
1203         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
1204         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
1205         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
1206         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
1207         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
1208         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
1209         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
1210         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
1211         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
1212         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
1213         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
1214         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
1215         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
1216         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
1217         routines.
1218         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
1219         file.
1220         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
1221         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
1222         file.
1223         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
1224         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
1225         file.
1226         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
1227         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
1228         file.
1229         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
1230         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
1231         file.
1232         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
1233         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
1234         file.
1235         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
1236         file.
1237         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
1238         file.
1239         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
1240         file.
1241         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
1242         New file.
1243         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
1244         file.
1245         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
1246         file.
1247         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
1248         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
1249         file.
1250         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
1251         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
1252         file.
1253         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
1254         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
1255         file.
1256         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
1257         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
1258         VIS3 routines.
1260         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
1261         New file.
1263         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1265         * sysdeps/sparc/configure.in: New file.
1266         * sysdeps/sparc/configure: Generate.
1267         * configure.in (libc_cv_sparc_as_vis3): Substitute.
1268         * configure: Regenerate.
1269         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
1270         * config.make.in (have-as-vis3): New.
1271         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
1272         available use -Av9d instead of -Av9a.
1273         * sysdeps/sparc/sparc64/Makefile: Likewise.
1274         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
1275         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
1276         New file.
1277         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
1278         file.
1279         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
1280         New file.
1281         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
1282         file.
1283         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
1284         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
1285         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
1286         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
1287         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
1289         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
1290         fzeros/fnegs to load 0x80000000 into a float register instead of
1291         using the stack.
1292         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
1294 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
1296         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1297         bits/syscall.h.
1298         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
1299         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
1300         ($(inst_includedir)/bits/syscall.h): Remove rule.
1301         ($(objpfx)bits/syscall.d): Include instead of
1302         $(objpfx)syscall-list.d.
1303         (generated): Change syscall-list.h and syscall-list.d to
1304         bits/syscall.h and bits/syscall.d.
1306 2012-03-14  Roland McGrath  <roland@hack.frob.com>
1308         [BZ #13846]
1309         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
1311 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
1313         [BZ #13841]
1314         * math/s_csqrt.c: Include <float.h>.
1315         (__csqrt): Scale large or subnormal inputs.
1316         * math/s_csqrtf.c: Likewise.
1317         * math/s_csqrtl.c: Likewise.
1318         * math/libm-test.inc (csqrt_test): Add more tests.
1319         * sysdeps/i386/fpu/libm-test-ulps: Update.
1320         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1322         [BZ #13840]
1323         * math/libm-test.inc (hypot_test): Add more tests.
1325 2012-03-13  David S. Miller  <davem@davemloft.net>
1327         [BZ #13840]
1328         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
1329         double-precision for the calculation instead of scaling.
1331 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
1333         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
1334         manipulate bits before adding and subtracting TWO52[sx].
1335         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
1336         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
1337         Likewise.
1338         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
1340 2012-03-13  David S. Miller  <davem@davemloft.net>
1342         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
1343         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
1344         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
1345         rtld-global-offsets.h
1346         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
1348         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
1349         large parameters.
1351         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
1353         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
1354         'err' in the ifdef scope in which it is actually used.
1356         * nss/nss_db/db-init.c: Include string.h
1358 2012-03-12  David S. Miller  <davem@davemloft.net>
1360         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
1361         masking out of the most significant byte of random value used.
1362         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
1363         Fix coding style in previous change.
1365         * sysdeps/unix/sysv/linux/kernel-features.h
1366         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
1367         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
1368         expression.
1369         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
1370         later.
1372 2012-03-11  David S. Miller  <davem@davemloft.net>
1374         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
1375         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
1376         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
1377         for 'resultvar' otherwise things get truncated on 64-bit.
1379         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
1380         Fix masking out of the most significant byte of random value used.
1382         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1384 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
1386         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1388 2012-03-09  David S. Miller  <davem@davemloft.net>
1390         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
1391         variables with appropriate CPP guards.
1392         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
1393         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
1394         on resulting framesize and the management of the outregs buffer for pltexit.
1395         Preserve floating point return values across _dl_call_pltexit call.
1396         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
1397         framesize and the management of the outregs buffer for pltexit.
1398         Preserve floating point return values across _dl_call_pltexit
1399         call.
1400         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
1401         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
1402         (print_exit): Fix format string for return register value.
1404 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
1406         * sunrpc/Makefile (others): Add rpcgen.
1407         ($(objpfx)rpcgen): Remove special build rule and dependency on
1408         libc.
1409         * sunrpc/rpcgen.c: New file.
1411 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
1413         [BZ #13673]
1414         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
1415         * stdio-common/bug-vfprintf-nargs.c: Likewise.
1416         * sysdeps/i386/crti.S: Likewise.
1417         * sysdeps/i386/crtn.S: Likewise.
1418         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
1419         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
1420         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
1421         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
1422         * sysdeps/sh/crti.S: Likewise.
1423         * sysdeps/sh/crtn.S: Likewise.
1424         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
1426         [BZ #13673]
1427         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
1428         with URL.
1429         * locale/programs/locfile-kw.gperf: Likewise.
1430         * locale/programs/charmap-kw.h: Regenerated.
1431         * locale/programs/locfile-kw.h: Likewise.
1433         [BZ #13673]
1434         * intl/plural.y: Replace FSF snail mail address with URL.
1435         * intl/plural.c: Regenerated.
1437 2012-03-09  Richard Henderson  <rth@twiddle.net>
1439         * include/math_private.h: Remove file.
1440         * math/math_private.h: Move file ...
1441         * sysdeps/generic/math_private.h: ... here.
1443         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
1444         * sysdeps/powerpc/fpu/math_private.h: Likewise.
1445         * sysdeps/x86_64/fpu/math_private.h: Likewise.
1447         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
1448         and <math_private.h>.
1449         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
1450         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
1451         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
1452         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
1453         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
1454         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
1455         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
1456         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
1457         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
1458         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
1459         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
1460         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
1461         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
1462         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
1463         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
1464         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
1465         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
1466         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
1467         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
1468         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
1469         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
1470         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
1471         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
1472         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
1473         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
1474         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
1475         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
1476         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
1477         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
1478         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
1479         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
1480         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
1481         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
1482         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
1483         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
1484         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
1485         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
1486         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
1487         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
1488         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
1489         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
1490         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
1491         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
1492         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
1493         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
1494         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
1495         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
1496         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
1497         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
1498         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
1499         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
1500         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
1501         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
1502         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
1503         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
1504         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
1505         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
1506         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
1507         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
1508         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
1509         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
1510         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
1511         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
1512         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
1513         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
1514         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
1515         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
1516         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
1517         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
1518         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
1519         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
1520         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
1521         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
1522         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
1523         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
1524         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
1525         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
1526         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
1527         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
1528         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
1529         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
1530         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
1531         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
1532         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
1533         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
1534         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
1535         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
1536         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
1537         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
1538         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
1539         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
1540         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
1541         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
1542         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
1543         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
1544         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
1545         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
1546         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
1547         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
1548         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
1549         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
1550         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
1551         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
1552         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
1553         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
1554         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
1555         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
1556         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
1557         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
1558         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
1559         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
1560         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
1561         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
1562         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
1563         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
1564         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
1565         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
1566         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
1567         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
1568         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
1569         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
1570         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
1571         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
1572         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
1573         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
1574         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
1575         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
1576         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
1577         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
1578         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
1579         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
1580         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
1581         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
1582         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
1583         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
1584         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
1585         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
1586         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
1587         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
1588         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
1589         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
1590         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
1591         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
1592         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
1593         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
1594         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
1595         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
1596         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
1597         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
1598         * sysdeps/ieee754/k_standard.c: Likewise.
1599         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
1600         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
1601         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
1602         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
1603         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
1604         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
1605         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
1606         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
1607         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
1608         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
1609         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
1610         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
1611         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
1612         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
1613         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
1614         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
1615         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
1616         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
1617         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
1618         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
1619         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
1620         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
1621         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
1622         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
1623         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
1624         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
1625         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
1626         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
1627         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
1628         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
1629         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
1630         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
1631         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
1632         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
1633         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
1634         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
1635         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
1636         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
1637         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
1638         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
1639         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
1640         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
1641         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
1642         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
1643         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
1644         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
1645         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
1646         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
1647         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
1648         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
1649         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
1650         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
1651         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
1652         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
1653         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
1654         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
1655         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
1656         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
1657         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
1658         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
1659         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
1660         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
1661         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
1662         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
1663         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
1664         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
1665         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
1666         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
1667         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
1668         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
1669         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
1670         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
1671         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
1672         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
1673         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
1674         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
1675         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
1676         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
1677         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
1678         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
1679         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
1680         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
1681         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
1682         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
1683         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
1684         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
1685         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
1686         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
1687         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
1688         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
1689         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
1690         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
1691         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
1692         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
1693         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
1694         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
1695         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
1696         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
1697         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
1698         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
1699         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
1700         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
1701         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
1702         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
1703         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
1704         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
1705         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
1706         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
1707         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
1708         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
1709         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
1710         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
1711         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
1712         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
1713         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
1714         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
1715         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
1716         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
1717         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
1718         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
1719         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
1720         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
1721         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
1722         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
1723         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
1724         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
1725         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
1726         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
1727         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
1728         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
1729         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
1730         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
1731         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
1732         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
1733         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
1734         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
1735         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
1736         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
1737         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
1738         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
1739         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
1740         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
1741         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
1742         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
1743         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
1744         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
1745         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
1746         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
1747         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
1748         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
1749         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
1750         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
1751         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
1752         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
1753         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
1754         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
1755         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
1756         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
1757         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
1758         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
1759         * sysdeps/ieee754/s_lib_version.c: Likewise.
1760         * sysdeps/ieee754/s_matherr.c: Likewise.
1761         * sysdeps/ieee754/s_signgam.c: Likewise.
1762         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
1763         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
1764         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
1765         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
1766         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
1767         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
1768         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
1769         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
1770         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
1771         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
1772         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
1773         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
1774         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
1775         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
1776         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
1777         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
1778         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
1779         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
1780         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
1781         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
1782         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
1784 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
1786         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
1787         * sunrpc/rpc_main.c: Likewise.
1788         * sunrpc/rpc_svcout.c: Likewise.
1790 2012-03-09  David S. Miller  <davem@davemloft.net>
1792         * include/math_private.h: New file.
1794 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
1796         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
1797         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
1798         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
1799         from <bits/socket_type.h>.
1800         (enum __socket_type): Don't define here.
1801         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
1802         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1803         bits/socket_type.h.
1805         [BZ #13566]
1806         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
1807         checking __USE_GNU.
1809         * Makerules ($(inst_includedir)/%.h): New rule.
1810         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
1811         (install-others): Remove variable setting.
1812         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
1814 2012-03-08  Richard Henderson  <rth@twiddle.net>
1816         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
1817         from macro to inline function; merge with the
1818         !__LIBC_INTERNAL_MATH_INLINES version.
1819         (__ieee754_sqrtf): Likewise.
1821         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
1822         to inline function.
1823         (__rintf, __floor, __floorf): Likewise.
1825         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
1826         macro to inline function.
1827         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
1829         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
1830         not <math/math_private.h>.
1832 2012-03-08  David S. Miller  <davem@davemloft.net>
1834         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
1835         copyright year.
1836         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
1838 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
1840         * resolv/gai_misc.c (handle_requests): Fix struct timespec
1841         normalization.
1842         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
1843         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
1845 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
1847         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
1848         be defined individually, they must be defined as a block.  Define
1849         S for printing a string instead of hidint the different by using a
1850         macro for adding the 'l'.
1851         * stdio-common/tst-fphex-wide.c: Adjust.
1853 2012-03-07  Marek Polacek  <polacek@redhat.com>
1855         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
1857 2012-03-08  Marek Polacek  <polacek@redhat.com>
1859         [BZ #13806]
1860         * stdio-common/Makefile (tests): Add tst-fphex-wide.
1861         * stdio-common/tst-fphex.c: Define a few macros to make the
1862         test reusable.  Use them.
1863         * stdio-common/tst-fphex-wide.c: New file.
1865 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
1867         [BZ #6911]
1868         * manual/macros.texi (gnusystems): New macro.
1869         (nongnusystems): Likewise.
1870         (gnulinuxhurdsystems): Likewise.
1871         (gnuhurdsystems): Likewise..
1872         (gnulinuxsystems): Likewise.
1873         * manual/charset.texi: Use new macros or @theglibc{} to refer to
1874         variants of the GNU system, not "GNU system".
1875         * manual/conf.texi: Likewise.
1876         * manual/errno.texi: Likewise.  Update example of errno macro
1877         expansion.
1878         * manual/filesys.texi: Likewise.
1879         (getumask): Document as specific to GNU/Hurd.
1880         * manual/install.texi: Likewise.  Reword some references to
1881         GNU/Linux.
1882         * manual/intro.texi: Likewise.
1883         * manual/io.texi: Likewise.
1884         (File Name Portability): Detail which constraints are inapplicable
1885         to all GNU systems and which are only inapplicable to GNU/Hurd.
1886         * manual/job.texi: Likewise.
1887         * manual/llio.texi: Likewise.
1888         (O_NOCTTY): Document as present on GNU/Linux.
1889         * manual/maint.texi: Likewise.
1890         * manual/memory.texi: Likewise.
1891         * manual/pattern.texi: Likewise.
1892         * manual/pipe.texi: Likewise.
1893         * manual/process.texi: Likewise.
1894         * manual/resource.texi: Likewise.
1895         (RUSAGE_CHILDREN): Remove statement about specifying a particular
1896         child on GNU/Hurd.
1897         * manual/setjmp.texi: Likewise.
1898         * manual/signal.texi: Likewise.
1899         * manual/startup.texi: Likewise.
1900         * manual/stdio.texi: Likewise.
1901         * manual/terminal.texi: Likewise.
1902         (ONLCR): Document as POSIX.
1903         (OXTABS): Document availability on GNU/Linux as XTABS.
1904         (ONOEOT): Document availability separately from other bits.
1905         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
1906         * manual/time.texi: Likewise.
1907         * manual/users.texi: Likewise.
1908         * INSTALL: Regenerated.
1909         * sysdeps/gnu/errlist.c: Regenerated.
1911         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
1912         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
1913         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
1914         puts.
1915         * configure: Regenerated.
1917 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
1919         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
1920         default includes instead of AC_HEADER_CHECK.
1921         * sysdeps/i386/configure: Regenerated.
1923         [BZ #10716]
1924         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
1925         * math/s_cacoshf.c (__cacoshf): Likewise.
1926         * math/s_cacoshl.c (__cacoshl): Likewise.
1927         * math/s_casinh.c (__casinh): Set signs of result from argument.
1928         * math/s_casinhf.c (__casinhf): Likewise.
1929         * math/s_casinhl.c (__casinhl): Likewise.
1930         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
1931         (casinh_test): Add more tests.
1932         * sysdeps/i386/fpu/libm-test-ulps: Update.
1933         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1935 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
1937         * po/zh_TW.po: Update from translation team.
1939         * login/Makefile (distribute): Remove variable.
1940         * catgets/Makefile: Likewise.
1941         * mach/Makefile: Likewise.
1942         * malloc/Makefile: Likewise.
1943         * misc/Makefile: Likewise.
1944         * iconv/Makefile: Likewise.
1945         * nscd/Makefile: Likewise.
1946         * hurd/Makefile: Likewise.
1947         * manual/Makefile: Likewise.
1948         * locale/Makefile: Likewise.
1949         * intl/Makefile: Likewise.
1950         * conform/Makefile: Likewise.
1951         * nss/Makefile: Likewise.
1952         * time/Makefile: Likewise.
1953         * soft-fp/Makefile: Likewise.
1954         * dirent/Makefile: Likewise.
1955         * gmon/Makefile: Likewise.
1956         * po/Makefile: Likewise.
1957         * rt/Makefile: Likewise.
1958         * socket/Makefile: Likewise.
1959         * math/Makefile: Likewise.
1960         * signal/Makefile: Likewise.
1961         * debug/Makefile: Likewise.
1962         * elf/Makefile: Likewise.
1963         * timezone/Makefile: Likewise.
1964         * stdlib/Makefile: Likewise.
1965         * iconvdata/Makefile: Likewise.
1966         * sunrpc/Makefile: Likewise.
1967         * io/Makefile: Likewise.
1968         * argp/Makefile: Likewise.
1969         * inet/Makefile: Likewise.
1970         * hesiod/Makefile: Likewise.
1971         * grp/Makefile: Likewise.
1972         * csu/Makefile: Likewise.
1973         * wctype/Makefile: Likewise.
1974         * crypt/Makefile: Likewise.
1975         * libio/Makefile: Likewise.
1976         * string/Makefile: Likewise.
1977         * nis/Makefile: Likewise.
1978         * resolv/Makefile: Likewise.
1979         * stdio-common/Makefile: Likewise.
1980         * wcsmbs/Makefile: Likewise.
1981         * dlfcn/Makefile: Likewise.
1982         * posix/Makefile: Likewise.
1984         * timezone/Makefile: Don't install timezone files, just the programs
1985         and scripts.
1987 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
1989         * nss/databases.def: Add missing gshadow entry.
1991         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
1993 2012-03-06  Marek Polacek  <polacek@redhat.com>
1995         [BZ #13726]
1996         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
1997         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
1998         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
1999         * stdio-common/tst-long-dbl-fphex.c: New file.
2001 2012-03-06  David S. Miller  <davem@davemloft.net>
2003         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
2004         (set_obp_int): New function.
2005         (get_obp_int): New function.
2006         (__get_clockfreq_via_dev_openprom): Likewise.
2007         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
2008         Avoid unused variable warnings on 'val' and use builtin_expect.
2009         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
2010         __builtin_expect.
2011         (INLINE_CLONE_SYSCALL): Likewise.
2013 2012-03-05  David S. Miller  <davem@davemloft.net>
2015         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2017 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
2019         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2021         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
2022         only for |x| >= 40.
2023         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
2025 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
2027         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
2028         Replace gettimeofday with __vdso_gettimeofday.
2030         * sysdeps/unix/sysv/linux/x86_64/init-first.c
2031         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
2032         __vdso_clock_gettime and __vdso_getcpu.
2034         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
2035         time with __vdso_time.
2037 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
2039         * manual/lang.texi (size_t): Note types to which size_t may be
2040         equivalent with the GNU C Library, but do not describe when
2041         differences between them are significant.
2043 2012-03-05  Andreas Jaeger  <aj@suse.de>
2045         * sysdeps/i386/fpu/libm-test-ulps: Update.
2047 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
2049         [BZ #3976]
2050         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
2051         (__ieee754_pow): Save and restore rounding mode and use
2052         round-to-nearest for main computations.
2053         * math/libm-test.inc (pow_test_tonearest): New function.
2054         (pow_test_towardzero): Likewise.
2055         (pow_test_downward): Likewise.
2056         (pow_test_upward): Likewise.
2057         (main): Call the new functions.
2058         * sysdeps/i386/fpu/libm-test-ulps: Update.
2059         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2061         [BZ #3976]
2062         * math/libm-test.inc (cosh_test_tonearest): New function.
2063         (cosh_test_towardzero): Likewise.
2064         (cosh_test_downward): Likewise.
2065         (cosh_test_upward): Likewise.
2066         (sinh_test_tonearest): Likewise.
2067         (sinh_test_towardzero): Likewise.
2068         (sinh_test_downward): Likewise.
2069         (sinh_test_upward): Likewise.
2070         (main): Call the new functions.
2071         * sysdeps/i386/fpu/libm-test-ulps: Update.
2072         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2074 2012-03-05  Tom de Vries  <tom@codesourcery.com>
2076         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
2077         default stack guard is set in last bytes.
2078         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
2080 2012-03-05  Kees Cook  <keescook@chromium.org>
2082         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
2084         [BZ #13656]
2085         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
2086         possibly allocate from heap instead of stack.
2087         * stdio-common/bug-vfprintf-nargs.c: New file.
2088         * stdio-common/Makefile (tests): Add nargs overflow test.
2090 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
2092         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2094 2012-03-03  Marek Polacek  <polacek@redhat.com>
2096         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
2097         * math/math_private.h: Likewise.
2098         * stdlib/tst-strtod.c: Likewise.
2099         * sysdeps/i386/i486/bits/atomic.h: Likewise.
2100         * sysdeps/x86_64/bits/atomic.h: Likewise.
2102 2012-03-02  David S. Miller  <davem@davemloft.net>
2104         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
2105         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
2106         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
2107         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
2108         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
2109         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
2110         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
2111         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
2113 2012-03-02  Roland McGrath  <roland@hack.frob.com>
2115         [BZ #13792]
2116         * manual/examples/README: New file, says the example source files
2117         can be used under GPL>=2.
2118         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
2119         line containing just "*/".
2120         * manual/examples/add.c: Add copyright header (GPL>=2).
2121         * manual/examples/argp-ex1.c: Likewise.
2122         * manual/examples/argp-ex2.c: Likewise.
2123         * manual/examples/argp-ex3.c: Likewise.
2124         * manual/examples/argp-ex4.c: Likewise.
2125         * manual/examples/atexit.c: Likewise.
2126         * manual/examples/db.c: Likewise.
2127         * manual/examples/dir.c: Likewise.
2128         * manual/examples/dir2.c: Likewise.
2129         * manual/examples/execinfo.c: Likewise.
2130         * manual/examples/filecli.c: Likewise.
2131         * manual/examples/filesrv.c: Likewise.
2132         * manual/examples/fmtmsgexpl.c: Likewise.
2133         * manual/examples/genpass.c: Likewise.
2134         * manual/examples/inetcli.c: Likewise.
2135         * manual/examples/inetsrv.c: Likewise.
2136         * manual/examples/isockad.c: Likewise.
2137         * manual/examples/longopt.c: Likewise.
2138         * manual/examples/memopen.c: Likewise.
2139         * manual/examples/memstrm.c: Likewise.
2140         * manual/examples/mkfsock.c: Likewise.
2141         * manual/examples/mkisock.c: Likewise.
2142         * manual/examples/mygetpass.c: Likewise.
2143         * manual/examples/pipe.c: Likewise.
2144         * manual/examples/popen.c: Likewise.
2145         * manual/examples/rprintf.c: Likewise.
2146         * manual/examples/search.c: Likewise.
2147         * manual/examples/select.c: Likewise.
2148         * manual/examples/setjmp.c: Likewise.
2149         * manual/examples/sigh1.c: Likewise.
2150         * manual/examples/sigusr.c: Likewise.
2151         * manual/examples/stpcpy.c: Likewise.
2152         * manual/examples/strdupa.c: Likewise.
2153         * manual/examples/strftim.c: Likewise.
2154         * manual/examples/strncat.c: Likewise.
2155         * manual/examples/subopt.c: Likewise.
2156         * manual/examples/swapcontext.c: Likewise.
2157         * manual/examples/termios.c: Likewise.
2158         * manual/examples/testopt.c: Likewise.
2159         * manual/examples/testpass.c: Likewise.
2160         * manual/examples/timeval_subtract.c: Likewise.
2162         [BZ #13792]
2163         * manual/time.texi (Elapsed Time): Move timeval_subtract example
2164         function to ...
2165         * manual/timeval_subtract.c.texi: ... here, new file.
2167 2012-03-02  David S. Miller  <davem@davemloft.net>
2169         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
2171 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
2173         [BZ #3976]
2174         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
2175         (__sin): Save and restore rounding mode and use round-to-nearest
2176         for all computations.
2177         (__cos): Save and restore rounding mode and use round-to-nearest
2178         for all computations.
2179         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
2180         <fenv.h>.
2181         (tan): Save and restore rounding mode and use round-to-nearest for
2182         all computations.
2183         * math/libm-test.inc (cos_test_tonearest): New function.
2184         (cos_test_towardzero): Likewise.
2185         (cos_test_downward): Likewise.
2186         (cos_test_upward): Likewise.
2187         (sin_test_tonearest): Likewise.
2188         (sin_test_towardzero): Likewise.
2189         (sin_test_downward): Likewise.
2190         (sin_test_upward): Likewise.
2191         (tan_test_tonearest): Likewise.
2192         (tan_test_towardzero): Likewise.
2193         (tan_test_downward): Likewise.
2194         (tan_test_upward): Likewise.
2195         (main): Call the new functions.
2196         * sysdeps/i386/fpu/libm-test-ulps: Update.
2197         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2199         [BZ #10135]
2200         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
2201         small n, then large n, before computing and testing k+n.
2202         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
2203         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
2204         Likewise.
2205         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
2206         Likewise.
2207         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
2208         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
2209         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
2210         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
2211         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
2212         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
2213         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
2214         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
2215         * math/libm-test.inc (scalbn_test): Add more tests.
2216         (scalbln_test): Likewise.
2218         * manual/filesys.texi (mode_t): Describe constraints on size and
2219         signedness, not exact equivalence to a particular type.
2220         (ino_t): Likewise.
2221         (ino64_t): Likewise.
2222         (dev_t): Likewise.
2223         (nlink_t): Likewise.
2224         (blkcnt_t): Likewise.
2225         (blkcnt64_t): Likewise.
2226         * manual/llio.texi (off_t): Likewise.
2228         [BZ #3976]
2229         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
2230         (__ieee754_exp): Save and restore rounding mode and use
2231         round-to-nearest for all computations.
2232         * math/libm-test.inc (exp_test_tonearest): New function.
2233         (exp_test_towardzero): Likewise.
2234         (exp_test_downward): Likewise.
2235         (exp_test_upward): Likewise.
2236         (main): Call the new functions.
2237         * sysdeps/i386/fpu/libm-test-ulps: Update.
2238         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2240 2012-03-01  Chris Demetriou  <cgd@google.com>
2242         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
2243         have predictable order.
2245 2012-03-01  David S. Miller  <davem@davemloft.net>
2247         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
2249         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
2250         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
2251         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
2252         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
2254         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
2255         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
2256         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
2257         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
2258         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
2259         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
2260         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
2261         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
2262         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
2264         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2266         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
2267         * sysdeps/sparc/fpu/libm-test-ulps: to here.
2268         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
2270         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
2271         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
2272         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
2273         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
2274         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
2275         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
2276         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
2277         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
2278         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
2279         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
2280         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
2281         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
2282         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
2283         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
2284         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
2285         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
2286         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
2287         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
2288         * sysdeps/sparc/elf/configure: Regenerated.
2290 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
2292         * configure.in (AS, LD): Require binutils 2.20 or later.
2293         * configure: Regenerated.
2294         * manual/install.texi (Tools for Compilation): Give binutils 2.20
2295         as required minimum version.
2296         * INSTALL: Regenerated.
2298         [BZ #2541]
2299         [BZ #4108]
2300         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
2301         before squaring exponent.
2302         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
2303         bottom long double and 27 bits of top long double before squaring
2304         exponent.
2305         * math/libm-test.inc (erfc_test): Add more tests.
2306         * sysdeps/i386/fpu/libm-test-ulps: Update.
2307         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
2308         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2310 2012-03-01  Kai Tietz  <ktietz@redhat.com>
2312         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
2313         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
2314         containing bit-fields.
2315         * soft-fp/extended.h (_FP_UNION_E): Likewise.
2316         * soft-fp/single.h (_FP_UNION_S): Likewise.
2317         * soft-fp/double.h (_FP_UNION_D): Likewise.
2319 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
2321         [BZ #13786]
2322         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
2323         not include ../strcmp.S.
2324         [USE_AS_STRNCASECMP_L]: Likewise.
2325         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
2326         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
2327         * sysdeps/i386/i686/multiarch/strncase_l-c.c
2328         (__strncasecmp_l_ia32): Define as alias to
2329         __strncasecmp_l_nonascii.
2331         [BZ #5794]
2332         * math/libm-test.inc (expm1_test): Add test for bug 5794.
2333         * sysdeps/i386/fpu/libm-test-ulps: Update.
2334         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2336         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
2337         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2339 2012-02-29  Jeff Law  <law@redhat.com>
2341         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
2342         out of bounds read.
2344 2012-02-29  Marek Polacek  <polacek@redhat.com>
2346         [BZ #13706]
2347         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
2348         * elf/Makefile: Add rules to run tst-unused-dep.out.
2350 2012-02-28  David S. Miller  <davem@davemloft.net>
2352         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
2353         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
2354         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
2355         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
2356         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
2357         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
2359 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
2361         * math/libm-test.inc (llround_test): Move one test from
2362         lround_test.  Use TEST_f_L in moved test.
2363         (lround_test): Move misplaced test to llround_test.  Add testcase
2364         from bug 2561.
2366 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
2368         * sysdeps/x86_64/fpu/e_expf.S: New file.
2369         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
2371 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
2373         [BZ #13637]
2374         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
2375         of remain_len that may cause incomplete multi-byte character and
2376         false match.
2377         * posix/bug-regex33.c: New file.
2378         * posix/Makefile (tests): Add bug-regex33.
2380 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
2382         * manual/macros.texi: New file.
2383         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
2384         * manual/libc.texinfo: Include macros.texi.
2385         * manual/creatute.texi: Likewise.
2386         * manual/install.texi: Likewise.
2387         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
2388         @glibcadj{} in references to the GNU C Library.
2389         * manual/charset.texi: Likewise.
2390         * manual/conf.texi: Likewise.
2391         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
2392         when not using those macros.
2393         * manual/creature.texi: Likewise.
2394         * manual/crypt.texi: Likewise.
2395         * manual/errno.texi: Likewise.
2396         * manual/filesys.texi: Likewise.
2397         * manual/header.texi: Likewise.
2398         * manual/install.texi: Likewise.
2399         * manual/intro.texi: Likewise.
2400         * manual/io.texi: Likewise.
2401         * manual/job.texi: Likewise.
2402         * manual/lang.texi: Likewise.
2403         * manual/libc.texiinfo: Likewise.
2404         * manual/llio.texi: Likewise.
2405         * manual/locale.texi: Likewise.
2406         * manual/maint.texi: Likewise.
2407         * manual/math.texi: Likewise.
2408         * manual/memory.texi: Likewise.
2409         * manual/message.texi: Likewise.
2410         * manual/nss.texi: Likewise.
2411         * manual/pattern.texi: Likewise.
2412         * manual/process.texi: Likewise.
2413         * manual/resource.texi: Likewise.
2414         * manual/search.texi: Likewise.
2415         * manual/setjmp.texi: Likewise.
2416         * manual/signal.texi: Likewise.
2417         * manual/socket.texi: Likewise.
2418         * manual/startup.texi: Likewise.
2419         * manual/stdio.texi: Likewise.
2420         * manual/string.texi: Likewise.
2421         * manual/sysinfo.texi: Likewise.
2422         * manual/syslog.texi: Likewise.
2423         * manual/terminal.texi: Likewise.
2424         * manual/time.texi: Likewise.
2425         * manual/users.texi: Likewise.
2426         * INSTALL: Regenerated.
2427         * NOTES: Regenerated.
2428         * sysdeps/gnu/errlist.c: Regenerated.
2430 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
2432         * include/dirent.h: Include <dirstream.h> before
2433         <dirent/dirent.h>.
2435 2012-02-28  David S. Miller  <davem@davemloft.net>
2437         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
2438         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
2439         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
2440         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
2442 2012-02-27  David S. Miller  <davem@davemloft.net>
2444         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
2445         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
2446         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
2447         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
2449         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
2450         frame pointer instead of stack pointer relative arg slot.
2451         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
2452         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
2453         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
2455 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
2457         [BZ #3992]
2458         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
2460 2012-02-27  David S. Miller  <davem@davemloft.net>
2462         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
2463         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
2464         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
2465         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
2466         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
2467         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
2468         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
2469         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
2471 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
2473         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
2474         later.  Allow versions 5-9.
2475         * configure: Regenerated.
2476         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
2477         required minimum version and 4.6 as recommended version.  Do not
2478         mention bugs in GCC 2.7 and 2.8.
2479         * INSTALL: Regenerated.
2481 2012-02-27  David S. Miller  <davem@davemloft.net>
2483         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
2484         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
2485         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
2486         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
2487         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
2488         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
2489         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
2490         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
2492         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
2493         manipulate bits before adding and subtracting TWO112[sx].
2494         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
2496 2012-02-27  Roland McGrath  <roland@hack.frob.com>
2498         [BZ #13775]
2499         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
2500         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
2501         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
2502         being in POSIX, because they are in 1003.1-2008.
2504         * rt/tst-aio.c: Include <fcntl.h>.
2505         * rt/tst-aio7.c: Likewise.
2506         * rt/tst-aio64.c: Likewise.
2508         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
2510 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
2512         * manual/install.texi (--with-headers): Describe headers as
2513         interface headers, not private headers.
2514         (Specific advice for GNU/Linux systems): Describe use of headers
2515         from "make headers_install", not private headers from older
2516         kernels.
2517         * INSTALL: Regenerated.
2518         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
2519         Change to 2.6.19.
2520         * sysdeps/unix/sysv/linux/configure: Regenerated.
2522         * manual/llio.texi (fclean): Remove documentation.
2524         * manual/Makefile (libc-texi-generated): New variable.  Include
2525         version.texi.
2526         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
2527         $(libc-texi-generated), not duplicated list of files.
2528         (version.texi, stamp-version): New rules.
2529         (realclean): Remove $(libc-texi-generated), not individual files
2530         from that list.  Do not remove dir-add.texinfo.
2531         * manual/libc.texinfo: Comment out uses of edition numbers and
2532         references to printed manual.  Remove last-updated dates.
2533         (EDITION): Comment out.
2534         (ISBN): Likewise.
2535         (VERSION, UPDATED): Remove.
2536         (version.texi): Include.
2538 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
2540         * sysdeps/posix/spawni.c: Include <signal.h>.
2541         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
2542         * sysdeps/pthread/aio_fsync.c: Likewise.
2544 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
2546         * conform/Makefile (tests): Run only when not cross-compiling and
2547         when fast-check is not defined.
2549         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
2550         * conform/data/limits.h-data: Fixes for POSIX2008.
2551         * conform/run-conformtest.sh: Run all tests.
2552         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
2553         headers.
2554         * include/bits/dlfcn.h: Likewise.
2555         * include/langinfo.h: Likewise.
2556         * include/monetary.h: Likewise.
2557         * include/sys/poll.h: Likewise.
2559         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
2560         for __USE_GNU.
2561         * posix/spawn.h: Define __need_sigset_t.
2562         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
2563         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
2564         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
2565         to get sigevent_t only.
2566         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
2567         only for __USE_GNU.
2568         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
2569         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
2570         process_vm_writev only for __USE_GNU.
2571         * termios/termios.h: Declare tcgetsid also for POSIX2008.
2573         * conform/Makefile: For now ignore errors from run-conformtest.
2574         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
2575         POSIX to avoid namespace pollution.  Don't prepend headers.
2576         * conform/data/aio.h-data: Fixes for POSIX testing.
2577         * conform/data/fcntl.h-data: Likewise.
2578         * conform/data/glob.h-data: Likewise.
2579         * conform/data/grp.h-data: Likewise.
2580         * conform/data/pthread.h-data: Likewise.
2581         * conform/data/pwd.h-data: Likewise.
2582         * conform/data/signal.h-data: Likewise.
2583         * conform/data/spawn.h-data: Likewise.
2584         * conform/data/stdio.h-data: Likewise.
2585         * conform/data/stdlib.h-data: Likewise.
2586         * conform/data/stropts.h-data: Likewise.
2587         * conform/data/sys/mman.h-data: Likewise.
2588         * conform/data/sys/stat.h-data: Likewise.
2589         * conform/data/sys/types.h-data: Likewise.
2590         * conform/data/sys/wait.h-data: Likewise.
2591         * conform/data/time.h-data: Likewise.
2592         * conform/data/unistd.h-data: Likewise.
2593         * conform/data/utime.h-data: Likewise.
2595         * io/sys/stat.h: fchmod was always in POSIX.
2596         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
2597         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
2598         * rt/aio.h: Define __need_timespec before including <time.h>.
2599         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
2600         struct.  Add forward declaration of pthread_attr_t and use it in
2601         sigevent.
2602         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
2603         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
2604         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
2605         always remove CLK_TCK definition.
2607 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
2609         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
2611 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
2613         * conform/run-conformtest.sh: New file.
2614         * conform/Makefile: Run run-conformtest for tests.
2615         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
2616         support.
2618         * conform/data/uchar.h-data: New file.
2619         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
2620         * conform/data/arpa/inet.h-data: Likewise.
2621         * conform/data/assert.h-data: Likewise.
2622         * conform/data/complex.h-data: Likewise.
2623         * conform/data/cpio.h-data: Likewise.
2624         * conform/data/ctype.h-data: Likewise.
2625         * conform/data/dirent.h-data: Likewise.
2626         * conform/data/dlfcn.h-data: Likewise.
2627         * conform/data/errno.h-data: Likewise.
2628         * conform/data/fcntl.h-data: Likewise.
2629         * conform/data/float.h-data: Likewise.
2630         * conform/data/fmtmsg.h-data: Likewise.
2631         * conform/data/fnmatch.h-data: Likewise.
2632         * conform/data/ftw.h-data: Likewise.
2633         * conform/data/glob.h-data: Likewise.
2634         * conform/data/grp.h-data: Likewise.
2635         * conform/data/iconv.h-data: Likewise.
2636         * conform/data/inttypes.h-data: Likewise.
2637         * conform/data/langinfo.h-data: Likewise.
2638         * conform/data/libgen.h-data: Likewise.
2639         * conform/data/limits.h-data: Likewise.
2640         * conform/data/locale.h-data: Likewise.
2641         * conform/data/math.h-data: Likewise.
2642         * conform/data/monetary.h-data: Likewise.
2643         * conform/data/mqueue.h-data: Likewise.
2644         * conform/data/ndbm.h-data: Likewise.
2645         * conform/data/net/if.h-data: Likewise.
2646         * conform/data/netdb.h-data: Likewise.
2647         * conform/data/netinet/in.h-data: Likewise.
2648         * conform/data/nl_types.h-data: Likewise.
2649         * conform/data/poll.h-data: Likewise.
2650         * conform/data/pthread.h-data: Likewise.
2651         * conform/data/pwd.h-data: Likewise.
2652         * conform/data/regex.h-data: Likewise.
2653         * conform/data/sched.h-data: Likewise.
2654         * conform/data/search.h-data: Likewise.
2655         * conform/data/semaphore.h-data: Likewise.
2656         * conform/data/setjmp.h-data: Likewise.
2657         * conform/data/signal.h-data: Likewise.
2658         * conform/data/spawn.h-data: Likewise.
2659         * conform/data/stdarg.h-data: Likewise.
2660         * conform/data/stdio.h-data: Likewise.
2661         * conform/data/stdlib.h-data: Likewise.
2662         * conform/data/string.h-data: Likewise.
2663         * conform/data/strings.h-data: Likewise.
2664         * conform/data/stropts.h-data: Likewise.
2665         * conform/data/sys/ipc.h-data: Likewise.
2666         * conform/data/sys/mman.h-data: Likewise.
2667         * conform/data/sys/msg.h-data: Likewise.
2668         * conform/data/sys/resource.h-data: Likewise.
2669         * conform/data/sys/select.h-data: Likewise.
2670         * conform/data/sys/sem.h-data: Likewise.
2671         * conform/data/sys/shm.h-data: Likewise.
2672         * conform/data/sys/socket.h-data: Likewise.
2673         * conform/data/sys/stat.h-data: Likewise.
2674         * conform/data/sys/statvfs.h-data: Likewise.
2675         * conform/data/sys/time.h-data: Likewise.
2676         * conform/data/sys/timeb.h-data: Likewise.
2677         * conform/data/sys/times.h-data: Likewise.
2678         * conform/data/sys/types.h-data: Likewise.
2679         * conform/data/sys/uio.h-data: Likewise.
2680         * conform/data/sys/un.h-data: Likewise.
2681         * conform/data/sys/utsname.h-data: Likewise.
2682         * conform/data/sys/wait.h-data: Likewise.
2683         * conform/data/syslog.h-data: Likewise.
2684         * conform/data/tar.h-data: Likewise.
2685         * conform/data/termios.h-data: Likewise.
2686         * conform/data/utime.h-data: Likewise.
2687         * conform/data/utmpx.h-data: Likewise.
2688         * conform/data/varargs.h-data: Likewise.
2689         * conform/data/wchar.h-data: Likewise.
2690         * conform/data/wctype.h-data: Likewise.
2691         * conform/data/wordexp.h-data: Likewise.
2693         * include/stropts.h: New file.
2694         * include/uchar.h: New file.
2695         * include/aio.h: Changes to allow conformtest.pl to use the headers.
2696         * include/assert.h: Likewise.
2697         * include/ctype.h: Likewise.
2698         * include/dirent.h: Likewise.
2699         * include/dlfcn.h: Likewise.
2700         * include/fcntl.h: Likewise.
2701         * include/fnmatch.h: Likewise.
2702         * include/glob.h: Likewise.
2703         * include/grp.h: Likewise.
2704         * include/libio.h: Likewise.
2705         * include/locale.h: Likewise.
2706         * include/math.h: Likewise.
2707         * include/net/if.h: Likewise.
2708         * include/netdb.h: Likewise.
2709         * include/netinet/in.h: Likewise.
2710         * include/pthread.h: Likewise.
2711         * include/pwd.h: Likewise.
2712         * include/regex.h: Likewise.
2713         * include/sched.h: Likewise.
2714         * include/search.h: Likewise.
2715         * include/setjmp.h: Likewise.
2716         * include/signal.h: Likewise.
2717         * include/stdio.h: Likewise.
2718         * include/stdlib.h: Likewise.
2719         * include/string.h: Likewise.
2720         * include/sys/cdefs.h: Likewise.
2721         * include/sys/mman.h: Likewise.
2722         * include/sys/msg.h: Likewise.
2723         * include/sys/resource.h: Likewise.
2724         * include/sys/select.h: Likewise.
2725         * include/sys/socket.h: Likewise.
2726         * include/sys/stat.h: Likewise.
2727         * include/sys/statvfs.h: Likewise.
2728         * include/sys/time.h: Likewise.
2729         * include/sys/times.h: Likewise.
2730         * include/sys/uio.h: Likewise.
2731         * include/sys/utsname.h: Likewise.
2732         * include/sys/wait.h: Likewise.
2733         * include/termios.h: Likewise.
2734         * include/time.h: Likewise.
2735         * include/ulimit.h: Likewise.
2736         * include/unistd.h: Likewise.
2737         * include/utime.h: Likewise.
2738         * include/wchar.h: Likewise.
2739         * include/wctype.h: Likewise.
2740         * include/wordexp.h: Likewise.
2742         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
2744         * time/time.h: TIME_UTC must be a macro.
2745         Make timespec_get available for ISO C11 only as well.
2747 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
2749         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
2750         Reported by Peng Haitao <penght@cn.fujitsu.com>.
2752 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
2754         * configure.in: Use -o not -a in test for unsupported multi-arch.
2756 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
2758         * manual/texinfo.tex: Update to version 2012-01-19.16.
2760 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
2762         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
2764 2012-02-24  Roland McGrath  <roland@hack.frob.com>
2766         [BZ #13738]
2767         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
2768         * manual/fdl-1.3.texi: New file.
2769         * manual/fdl-1.1.texi: File removed.
2771         [BZ #13738]
2772         * manual/libc.texinfo (FDL_VERSION): New @set.
2773         Use it for mention of FDL in cover text.
2774         (Documentation License): Use it in @include file name.
2776 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
2777             Roland McGrath  <roland@hack.frob.com>
2779         [BZ #5461]
2780         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
2781         not LONG_LONG_MAX and LONG_LONG_MIN.
2782         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
2783         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
2784         name.
2785         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
2787 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
2789         [BZ #2547]
2790         [BZ #11365]
2791         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
2792         manipulate bits before adding and subtracting TWO23[sx].
2793         * math/libm-test.inc (nearbyint_test): Add more tests.
2795 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
2797         [BZ #2548]
2798         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
2799         bits before adding and subtracting TWO23[sx].
2800         * math/libm-test.inc (rint_test): Add more tests.
2801         (rint_test_tonearest): Likewise.
2802         (rint_test_towardzero): Likewise.
2803         (rint_test_downward): Likewise.
2804         (rint_test_upward: Likewise.
2806 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
2808         [BZ #10110]
2809         * include/stdc-predef.h: New file.  Extracted from features.h.
2810         * include/features.h: Include stdc-predef.h.
2811         * Makefile (headers): Add stdc-predef.h.
2812         * CONFORMANCE (Compiler limitations): Update.
2814 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
2816         * manual/libc.texinfo (VERSION, UPDATED): Revert.
2818 2012-02-21  David S. Miller  <davem@davemloft.net>
2820         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
2821         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
2823 2012-02-20  David S. Miller  <davem@davemloft.net>
2825         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
2826         using a normal save/restore sequence, rather than allocating a
2827         dummy stack frame just to store a frame pointer and restore.
2828         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
2830 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
2832         * manual/install.texi: Fix stray word in line-wrapped comment.
2834 2012-02-20  David S. Miller  <davem@davemloft.net>
2836         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
2837         both binutils and gcc support GOTDATA.
2839         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
2840         "rd %pc" in the PIC register setup sequences.
2842         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
2843         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
2844         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
2845         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
2846         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
2847         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
2848         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
2849         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
2850         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
2851         (SYSCALL_ERROR_HANDLER): Likewise.
2852         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
2853         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
2854         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
2855         (SYSCALL_ERROR_HANDLER): Likewise.
2857         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
2858         (HAVE_GCC_GOTDATA): New.
2859         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
2860         relocation support in both binutils and gcc.
2861         * sysdeps/sparc/elf/configure: Regenerate.
2863         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
2864         * sysdeps/sparc/sparc32/elf/configure: Delete.
2865         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
2866         * sysdeps/sparc/sparc64/elf/configure: Delete.
2867         * sysdeps/sparc/elf/configure.in: New file.
2868         * sysdeps/sparc/elf/configure: Generate.
2870         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
2871         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
2872         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
2873         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
2874         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
2876 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
2878         * manual/install.texi: Do not mention specific glibc version
2879         numbers.
2880         * manual/libc.texinfo (VERSION, UPDATED): Update.
2881         (@copying): Use @copyright{} and range of years.
2883 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
2885         [BZ #13695]
2886         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
2887         [crti.S not in sysdirs] (generated): Do not append.
2888         [crti.S not in sysdirs] (omit-deps): Likewise.
2889         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
2890         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
2891         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
2892         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
2893         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
2894         Likewise.
2895         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
2896         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
2897         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
2898         * csu/defs.awk: Remove file.
2899         * sysdeps/generic/initfini.c: Likewise.
2900         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
2901         variable.
2902         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
2903         Likewise.
2905 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
2907         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
2908         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
2909         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
2910         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
2911         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
2912         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
2913         <bits/epoll.h>.
2914         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
2915         (__EPOLL_PACKED): Define to empty if not defined by
2916         <bits/epoll.h>.
2917         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
2918         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2919         bits/epoll.h.
2921 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
2923         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
2924         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
2925         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
2926         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
2927         <bits/timerfd.h>.
2928         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
2929         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2930         bits/timerfd.h.
2932 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
2934         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
2935         in C locale.
2936         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
2937         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
2938         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
2939         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2941 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
2943         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
2944         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
2946 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
2948         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
2949         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
2950         defined.
2951         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
2952         Likewise.
2953         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
2954         entry for 2.16.
2956 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
2958         * math/w_acos.c: Use non-signaling floating-point comparisons.
2959         * math/w_acosf.c: Likewise.
2960         * math/w_acosh.c: Likewise.
2961         * math/w_acoshf.c: Likewise.
2962         * math/w_acoshl.c: Likewise.
2963         * math/w_acosl.c: Likewise.
2964         * math/w_asin.c: Likewise.
2965         * math/w_asinf.c: Likewise.
2966         * math/w_asinl.c: Likewise.
2967         * math/w_atanh.c: Likewise.
2968         * math/w_atanhf.c: Likewise.
2969         * math/w_atanhl.c: Likewise.
2970         * math/w_exp2.c: Likewise.
2971         * math/w_exp2f.c: Likewise.
2972         * math/w_exp2l.c: Likewise.
2973         * math/w_j0.c: Likewise.
2974         * math/w_j0f.c: Likewise.
2975         * math/w_j0l.c: Likewise.
2976         * math/w_j1.c: Likewise.
2977         * math/w_j1f.c: Likewise.
2978         * math/w_j1l.c: Likewise.
2979         * math/w_jn.c: Likewise.
2980         * math/w_jnf.c: Likewise.
2981         * math/w_log.c: Likewise.
2982         * math/w_log10.c: Likewise.
2983         * math/w_log10f.c: Likewise.
2984         * math/w_log10l.c: Likewise.
2985         * math/w_log2.c: Likewise.
2986         * math/w_log2f.c: Likewise.
2987         * math/w_log2l.c: Likewise.
2988         * math/w_logf.c: Likewise.
2989         * math/w_logl.c: Likewise.
2990         * math/w_sqrt.c: Likewise.
2991         * math/w_sqrtf.c: Likewise.
2992         * math/w_sqrtl.c: Likewise.
2993         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
2994         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
2995         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
2996         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
2997         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
2999 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
3001         [BZ #9739]
3002         * manual/string.texi (strnlen): Use correct parameter name in
3003         equivalent expression.
3005 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
3007         [BZ #11174]
3008         * manual/users.texi (seteuid): Consistently use neweuid for
3009         argument name.
3011 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
3013         [BZ #13704]
3014         * manual/nss.texi (Services in the NSS configuration): Correct
3015         list of services in example configuration file.
3017 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
3019         [BZ #11322]
3020         * manual/arith.texi: Remove statements about negative zero
3021         behaving identically to zero.
3023 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
3025         [BZ #5993]
3026         * manual/install.texi: Do not document upgrading from libc5.
3028 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
3030         [BZ #4596]
3031         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
3033 2012-02-18  David S. Miller  <davem@davemloft.net>
3035         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
3036         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
3037         %o7 across the call.
3038         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
3039         instead.
3040         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
3041         SETUP_PIC_REG_LEAF.
3042         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
3043         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
3044         * sysdeps/sparc/crtn.S: Likewise.
3046 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
3048         * aout/Makefile: Remove.
3050 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
3052         [BZ #13058]
3053         * manual/examples/argp-ex1.c (main): Format definition in GNU
3054         style.
3055         * manual/examples/argp-ex2.c (main): Likewise.
3056         * manual/examples/argp-ex3.c (main): Likewise.
3057         * manual/examples/argp-ex4.c (main): Likewise.
3058         * manual/examples/longopt.c (main): Use new-style prototype
3059         definition.
3060         * manual/examples/strncat.c (main): Specify return type and use
3061         (void) for arguments.
3062         * manual/examples/subopt.c (main): Use char **argv argument.
3064 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
3066         [BZ #5077]
3067         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
3068         rounding modes.
3070 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
3072         [BZ #6907]
3073         * manual/string.texi (strchr): Change when strchrnul is
3074         recommended.
3076 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
3078         [BZ #174]
3079         * manual/locale.texi (setlocale): Document LOCPATH.
3081 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
3083         [BZ #10210]
3084         * manual/process.texi (execle): Move @dots{} before last argument.
3086 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
3088         [BZ #12047]
3089         * manual/charset.texi (Generic Charset Conversion): Fix typo
3090         (LC_TYPE -> LC_CTYPE).
3092 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
3094         [BZ #5805]
3095         * manual/arith.texi (scalbn): Use @var{} on parameter names.
3096         (scalbnf): Likewise.
3097         (scalbnl): Likewise.
3098         (scalbln): Likewise.
3099         (scalblnf): Likewise.
3100         (scalblnl): Likewise.
3101         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
3102         (vwarnx): Likewise.
3103         (verr): Likewise.
3104         (verrx): Likewise.
3105         * manual/filesys.texi (telldir): Use braces around return type.
3106         * manual/llio.texi (mmap): Add space after comma.
3107         (mmap64): Likewise.
3108         * manual/math.texi (jn): Use @var{} on parameter names.
3109         (jnf): Likewise.
3110         (jnl): Likewise.
3111         (yn): Likewise.
3112         (ynf): Likewise.
3113         (ynl): Likewise.
3114         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
3115         line.
3116         * manual/resource.texi (ulimit): Use @dots{} instead of literal
3117         "...".
3118         (sched_get_priority_min): Remove semicolon on @deftypefun line.
3119         (sched_get_priority_max): Likewise.
3120         * manual/signal.texi (sigvec): Add space after comma.
3121         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
3122         names.
3123         (if_indextoname): Likewise.
3124         (if_freenameindex): Likewise.
3125         (sendto): Use ',' instead of '.' in prototype.
3126         * manual/startup.texi (syscall): Use @dots{} instead of literal
3127         "...".
3128         * manual/stdio.texi (__fpending): Separate initial words of
3129         paragraph from @deftypefun line.
3130         * manual/syslog.texi (syslog): Use @dots{} instead of literal
3131         "...".
3132         (vsyslog): Use @var{} on parameter names.
3133         * manual/terminal.texi (stty): Use @var{} on parameter names.
3134         * manual/users.texi (getutmp): Use @var{} on parameter names.
3135         (getutmpx): Likewise.
3137 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
3139         [BZ #6884]
3140         * manual/stdio.texi (fopen): Fix typos in description of
3141         ",ccs=STRING".
3143 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
3145         [BZ #4026]
3146         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
3147         get clock_id definition.
3149 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
3151         [BZ #4822]
3152         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
3153         (madvise): Cast every argument to void on its own.
3155 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
3157         [BZ #9902]
3158         * manual/startup.texi (Exit Status): Fix typo.
3160 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
3162         [BZ #10140]
3163         * manual/examples/argp-ex1.c: Include <stdlib.h>.
3164         * manual/examples/argp-ex2.c: Likewise.
3165         * manual/examples/argp-ex3.c: Likewise.
3167 2012-02-16  Richard Henderson  <rth@redhat.com>
3169         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
3170         * sysdeps/s390/s390-32/initfini.c: Remove.
3171         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
3172         * sysdeps/s390/s390-64/initfini.c: Remove.
3174 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3176         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
3177         compiler output for sysdeps/generic/initfini.c.
3178         * sysdeps/sh/elf/initfini.c: Remove file.
3180 2012-02-16  David S. Miller  <davem@davemloft.net>
3182         [BZ #11494]
3183         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
3185         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
3186         * sysdeps/sparc/crti.S: New file.
3187         * sysdeps/sparc/crtn.S: New file.
3188         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
3189         * sysdeps/sparc/sparc64/Makefile: Likewise.
3191 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
3193         [BZ #3335]
3194         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
3196 2012-02-15  Roland McGrath  <roland@hack.frob.com>
3198         [BZ #4822]
3199         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
3201         * mach/devstream.c (cookie_io_functions_t): Macro removed.
3202         (write, read, close): Likewise.
3203         Patch by Aurelien Jarno <aurelien@aurel32.net>.
3205 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
3207         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
3208         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
3209         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
3210         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
3211         <bits/signalfd.h>.
3212         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
3213         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3214         bits/signalfd.h.
3216 2012-02-14  Marek Polacek  <polacek@redhat.com>
3218         * sysdeps/x86_64/crti.S: New file.
3219         * sysdeps/x86_64/crtn.S: New file.
3220         * sysdeps/x86_64/elf/initfini.c: Remove file.
3222 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
3224         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
3225         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
3226         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
3227         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
3228         <bits/inotify.h>.
3229         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
3230         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3231         bits/inotify.h.
3233 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
3235         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
3236         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
3237         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
3238         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
3239         <bits/eventfd.h>.
3240         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
3241         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3242         bits/eventfd.h.
3244 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
3246         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
3247         __feraiseexcept instead of feraiseexcept.
3249         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
3250         nanosleep invocations.
3251         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
3252         strings, and add error checking for a nanosleep invocations.
3254 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
3256         Replace FSF snail mail address with URLs, as per GNU coding standards.
3257         Most of the snail mail addresses were wrong anyway, and omitting
3258         them makes the source code easier to maintain.  Almost all of the
3259         changes are to license notices and to locale LC_IDENTIFICATION
3260         addresses, except for this one:
3261         * manual/libc.texinfo: In "Published by", give the FSF's URL,
3262         not its snail mail address.
3264 2012-02-09  Richard Henderson  <rth@twiddle.net>
3266         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
3267         of kernel-features.h.
3269         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
3271 2012-02-08  Marek Polacek  <polacek@redhat.com>
3273         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
3274         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
3275         * sysdeps/gnu/_G_config.h: Likewise.
3276         * sysdeps/generic/_G_config.h: Likewise.
3278 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
3280         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
3281         tests.
3282         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3284         * sysdeps/powerpc/powerpc32/crti.S: New file.
3285         * sysdeps/powerpc/powerpc32/crtn.S: New file.
3286         * sysdeps/powerpc/powerpc64/crti.S: New file.
3287         * sysdeps/powerpc/powerpc64/crtn.S: New file.
3289         * Makeconfig (have-initfini): Don't set.
3290         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
3291         * configure.in (nopic_initfini): Don't substitute.
3292         * config.h.in (HAVE_INITFINI): Don't #undef.
3293         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
3294         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
3296 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
3298         Support crti.S and crtn.S provided directly by architectures.
3299         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
3300         [crti.S in sysdirs] (omit-deps): Likewise.
3301         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
3302         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
3303         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
3304         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
3305         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
3306         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
3307         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
3308         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
3309         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
3310         compiler output for sysdeps/generic/initfini.c.
3311         * sysdeps/i386/elf/Makefile: Remove file.
3312         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
3314 2012-02-07  Marek Polacek  <polacek@redhat.com>
3316         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
3317         * sysdeps/gnu/_G_config.h: Likewise.
3318         * sysdeps/mach/hurd/_G_config.h: Likewise.
3320 2012-02-07  Marek Polacek  <polacek@redhat.com>
3322         * math/Makefile (tests): Add tst-CMPLX2.
3323         * math/tst-CMPLX2.c: New file.
3325 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
3327         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
3329         * math/libm-test.inc (jn_test): Add missing L suffix.
3331 2012-02-06  Marek Polacek  <polacek@redhat.com>
3333         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
3334         * sysdeps/i386/fpu/e_powf.S: Likewise.
3335         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
3336         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
3337         * sysdeps/i386/fpu/e_acosh.S: Likewise.
3338         * sysdeps/i386/fpu/e_pow.S: Likewise.
3339         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
3340         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
3341         * sysdeps/i386/fpu/s_expm1.S: Likewise.
3342         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
3343         * sysdeps/i386/fpu/e_log2.S: Likewise.
3344         * sysdeps/i386/fpu/e_log2l.S: Likewise.
3345         * sysdeps/i386/fpu/e_scalb.S: Likewise.
3346         * sysdeps/i386/fpu/e_powl.S: Likewise.
3347         * sysdeps/i386/fpu/s_log1p.S: Likewise.
3348         * sysdeps/i386/fpu/e_log10f.S: Likewise.
3349         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
3350         * sysdeps/i386/fpu/e_logl.S: Likewise.
3351         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
3352         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
3353         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
3354         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
3355         * sysdeps/i386/fpu/e_log2f.S: Likewise.
3356         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
3357         * sysdeps/i386/fpu/e_log.S: Likewise.
3358         * sysdeps/i386/fpu/s_cexp.S: Likewise.
3359         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
3360         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
3361         * sysdeps/i386/fpu/e_logf.S: Likewise.
3362         * sysdeps/i386/fpu/e_log10l.S: Likewise.
3363         * sysdeps/i386/fpu/e_atanh.S: Likewise.
3364         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
3365         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
3366         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
3367         * sysdeps/i386/fpu/e_log10.S: Likewise.
3368         * sysdeps/i386/fpu/s_frexp.S: Likewise.
3369         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
3370         * sysdeps/i386/fpu/s_asinh.S: Likewise.
3371         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
3372         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
3373         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
3374         * sysdeps/i386/asm-syntax.h: Likewise.
3375         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
3376         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
3377         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
3378         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
3379         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
3380         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
3381         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
3382         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
3383         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
3384         * sysdeps/powerpc/sysdep.h: Likewise.
3385         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
3386         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
3388 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
3390         [BZ #411]
3391         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
3393 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
3395         * sysdeps/i386/sysdep.h: Include <features.h>.
3396         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
3397         version.
3399 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
3401         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
3402         Define.
3403         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
3404         LOAD_PIC_REG_STR.
3406 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
3408         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
3409         (SETUP_PIC_REG): Use GET_PC_THUNK.
3410         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
3411         macro.
3413 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
3415         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
3416         for non-PIC compilation.
3417         (SETUP_PIC_REG): Add .p2align directive.
3418         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
3419         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
3420         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
3421         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
3422         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
3423         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
3424         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
3425         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
3426         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
3427         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
3428         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
3429         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
3430         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
3431         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
3432         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
3433         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
3434         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
3435         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
3436         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
3437         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
3438         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
3439         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
3440         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
3441         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
3442         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
3443         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
3444         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
3445         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
3446         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
3447         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
3448         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
3449         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
3450         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
3451         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
3452         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
3453         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
3454         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
3455         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
3456         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
3457         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
3458         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
3460 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
3462         * math/tst-CMPLX.c: Include <stdio.h>.
3464 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
3466         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
3467         float.
3468         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
3469         * sysdeps/sparc/bits/mathdef.h: Likewise.
3471 2012-01-31  Marek Polacek  <polacek@redhat.com>
3473         * libio/libio.h: Don't define _PARAMS.
3474         * locale/programs/config.h: Don't define PARAMS.
3475         * stdlib/strtol_l.c: Likewise.
3476         (__strtol_l): Remove PARAMS from the prototype.
3478 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
3480         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
3481         names.  Just use the correct names.  Remove unnecessary wrapper
3482         functions.
3483         * malloc/arena.c: Likewise.
3484         * malloc/hooks.c: Likewise.
3486         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
3487         ARENA_TEST says not to.  Simplify test for creation of a new arena.
3488         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
3490 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
3492         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
3493         into tail calls.
3494         (update_get_addr): New function.
3495         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
3496         GET_ADDR_MODULE parameter.
3498 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
3500         * crypt/cert.c: Remove __STDC__ conditionals.
3501         * crypt/crypt-entry.c: Likewise.
3502         * crypt/crypt_util.c: Likewise.
3503         * libio/filedoalloc.c: Likewise.
3504         * libio/fileops.c: Likewise.
3505         * libio/genops.c: Likewise.
3506         * libio/iofclose.c: Likewise.
3507         * libio/iofdopen.c: Likewise.
3508         * libio/iofopen.c: Likewise.
3509         * libio/iofopen64.c: Likewise.
3510         * libio/iogetdelim.c: Likewise.
3511         * libio/iopopen.c: Likewise.
3512         * libio/obprintf.c: Likewise.
3513         * libio/oldfileops.c: Likewise.
3514         * libio/oldiofclose.c: Likewise.
3515         * libio/oldiofdopen.c: Likewise.
3516         * libio/oldiofopen.c: Likewise.
3517         * libio/oldiopopen.c: Likewise.
3518         * libio/wfiledoalloc.c: Likewise.
3519         * libio/wgenops.c: Likewise.
3520         * locale/programs/xmalloc.c: Likewise.
3521         * misc/syslog.c: Likewise.
3522         * stdio-common/xbug.c: Likewise.
3523         * string/memchr.c: Likewise.
3524         * string/memcmp.c: Likewise.
3525         * string/memrchr.c: Likewise.
3526         * string/rawmemchr.c: Likewise.
3527         * sysdeps/posix/getcwd.c: Likewise.
3528         * time/strftime_l.c: Likewise.
3530 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
3532         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
3533         * config.make.in (config-cflags-sse2avx): Define.
3534         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
3535         Fix typo.
3537 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
3539         * scripts/config.guess: Update from upstream config git repository.
3540         * scripts/config.sub: Likewise.
3542 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
3544         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
3545         (EM_NUM): Update.
3546         (R_TILEPRO_*, R_TILEGX_*): New macros.
3548         * scripts/firstversions.awk: Fix bug in version range handling.
3550         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
3552         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
3554         * include/sys/epoll.h: New file.
3555         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
3556         libc_hidden_def.
3558 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
3560         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
3561         Avoid unnecessary __WORDSIZE == 64 test.
3562         (fmaxf): Use VEX format if possible.
3563         (fmax): Likewise.
3564         (fminf): Likewise.
3565         (fmin): Likewise.
3567         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
3568         * math/math_private.h: Remove libc_fegetround* and
3569         libc_fesetround*.
3570         * sysdeps/i386/configure.in: Check for -msse2avx.
3571         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
3572         also if SSE2AVX is defined.
3573         Remove libc_fegetround* and libc_fesetround*.
3574         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
3575         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
3576         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
3577         of HAS_YMM_USABLE.
3578         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
3579         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
3580         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
3581         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
3582         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
3584         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
3586 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3588         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
3589         size is not set.
3590         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
3592 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
3594         [BZ #13618]
3595         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
3596         relocation.
3597         * Makeconfig (libm): Define.
3598         * elf/Makefile: Add rules to build and run tst-relsort1.
3599         * elf/tst-relsort1.c: New file.
3600         * elf/tst-relsort1mod1.c: New file.
3601         * elf/tst-relsort1mod2.c: New file.
3603 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
3605         * math/s_ldexp.c: Remove __STDC__ conditionals.
3606         * math/s_ldexpf.c: Likewise.
3607         * math/s_ldexpl.c: Likewise.
3608         * math/s_nextafter.c: Likewise.
3609         * math/s_nexttowardf.c: Likewise.
3610         * math/s_significand.c: Likewise.
3611         * math/s_significandf.c: Likewise.
3612         * math/s_significandl.c: Likewise.
3613         * math/w_jnl.c: Likewise.
3614         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
3615         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
3616         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
3617         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
3618         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
3619         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
3620         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
3621         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
3622         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
3623         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
3624         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
3625         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
3626         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
3627         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
3628         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
3629         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
3630         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
3631         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
3632         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
3633         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
3634         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
3635         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
3636         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
3637         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
3638         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
3639         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
3640         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
3641         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
3642         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
3643         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
3644         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
3645         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
3646         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
3647         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
3648         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
3649         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
3650         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
3651         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
3652         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
3653         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
3654         * sysdeps/ieee754/k_standard.c: Likewise.
3655         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
3656         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
3657         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
3658         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
3659         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
3660         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
3661         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
3662         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
3663         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
3664         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
3665         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
3666         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
3667         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
3668         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
3669         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
3670         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
3671         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
3672         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
3673         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
3674         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
3675         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
3676         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
3677         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
3678         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
3679         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
3680         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
3681         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
3682         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
3683         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
3684         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
3685         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
3686         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
3687         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
3688         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
3689         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
3690         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
3691         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
3692         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
3693         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
3694         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
3695         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
3696         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
3697         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
3698         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
3699         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
3700         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
3701         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
3702         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
3703         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
3704         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
3705         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
3706         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
3707         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
3708         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
3709         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
3710         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
3711         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
3712         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
3713         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
3714         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
3715         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
3716         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
3717         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
3718         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
3719         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
3720         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
3721         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
3722         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
3723         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
3724         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
3725         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
3726         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
3727         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
3728         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
3729         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
3730         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
3731         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
3732         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
3733         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
3734         * sysdeps/ieee754/s_matherr.c: Likewise.
3735         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
3736         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
3737         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
3738         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
3740 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
3742         * crypt/md5.h: Remove __STDC__ conditionals.
3743         * libio/libioP.h: Likewise.
3744         * locale/programs/config.h: Likewise.
3745         * sysdeps/generic/sysdep.h: Likewise.
3746         * sysdeps/i386/asm-syntax.h: Likewise.
3747         * sysdeps/s390/asm-syntax.h: Likewise.
3748         * sysdeps/unix/sysdep.h: Likewise.
3749         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
3750         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
3752 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
3754         * libio/libio.h: Remove __STDC__ conditionals.
3755         * malloc/obstack.h: Likewise.
3756         * math/complex.h: Likewise.
3757         * math/math.h: Likewise.
3758         * sysdeps/generic/_G_config.h: Likewise.
3759         * sysdeps/gnu/_G_config.h: Likewise.
3760         * sysdeps/mach/hurd/_G_config.h: Likewise.
3761         * sysdeps/powerpc/bits/mathdef.h: Likewise.
3762         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
3763         * sysdeps/sparc/bits/mathdef.h: Likewise.
3765 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
3767         [BZ #13583]
3768         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
3769         Clean up HAS_* macros.
3770         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
3771         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
3772         possible.
3773         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
3774         HAS_AVX.
3775         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
3776         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
3777         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
3778         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
3779         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
3781 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
3783         * elf/tst-unique3.cc (gets): Remove declaration.
3784         * elf/tst-unique3lib.cc (gets): Likewise.
3785         * elf/tst-unique3lib2.cc (gets): Likewise.
3786         * elf/tst-unique4.cc (gets): Likewise.
3788 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
3790         * include/stdio.h: Add C++ protection.  Add gets declarations and
3791         definitions.
3792         * debug/tst-chk1.c: Don't declare gets here.
3793         * stdio-common/tst-gets.c: Likewise.
3795 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
3797         * posix/glob: Remove directory.
3799 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
3801         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
3803 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
3805         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
3806         of the non-standard EPFNOSUPPORT.
3808 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3810         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
3811         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
3812         ANYWHERE set to 1 only on KERN_NO_SPACE error.
3814 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
3816         * wcsmbs/uchar.h: Test __STDC_VERSION__.
3818 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
3820         * nscd/aicache.c (addhstaiX): Do not cache negative results of
3821         transient errors.
3822         * nscd/grpcache.c (cache_addgr): Likewise.
3823         * nscd/hstcache.c (cache_addhst): Likewise.
3824         * nscd/initgrcache.c (addinitgroupsX): Likewise.
3825         * nscd/pwdcache.c (cache_addpw): Likewise.
3826         * nscd/servicescache.c (cache_addserv): Likewise.
3828 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
3830         * malloc/malloc.c: Various cleanups.
3831         * malloc/hooks.c: Likewise.
3833         * stdlib/Makefile (tests): Add bug-fmtmsg1.
3834         * stdlib/bug-fmtmsg1.c: New file.
3836         * stdlib/fmtmsg.c (init): Add missing unlock.
3837         Patch by Peng Haitao <penght@cn.fujitsu.com>.
3839 2012-01-12  Marek Polacek  <polacek@redhat.com>
3841         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
3842         and _GNU_SOURCE.
3844 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
3846         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
3847         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
3848         macro to ensure uniqueness of label name.
3849         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
3850         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
3852 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
3854         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
3856         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
3857         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
3858         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
3859         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
3861 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
3863         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
3865         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
3866         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
3867         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
3869         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
3871         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
3872         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
3873         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
3874         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
3876         * math/bits/math-finite.h: Add ldexp support.
3878 2012-01-10  Marek Polacek  <polacek@redhat.com>
3880         * locale/programs/localedef.h (show_archive_content): Add noreturn
3881         attribute.
3883 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
3885         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
3887 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
3889         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
3891         * io/Makefile (headers): Add bits/poll2.h.
3893 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
3895         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
3896         typo #include statement.
3898 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
3900         * include/sys/cdefs.h: Define __attribute_alloc_size.
3901         * catgets/gencat.c: Add alloc_size attribute and apply consistently
3902         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
3903         * elf/pldd.c: Likewise.
3904         * iconv/iconv_charmap.c: Likewise.
3905         * iconv/iconvconfig.c: Likewise.
3906         * iconv/strtab.c: Likewise.
3907         * locale/programs/locale.c: Likewise.
3908         * locale/programs/localedef.h: Likewise.
3909         * locale/programs/simple-hash.c: Likewise.
3910         * nscd/nscd.h: Likewise.
3911         * nss/makedb.c: Likewise.
3912         * sysdeps/generic/ldconfig.h: Likewise.
3913         * locale/programs/localedef.c: Remove xmalloc prototype.
3914         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
3916 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
3918         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
3919         appropriate.
3921 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
3923         * math/Makefile (tests): Add tst-CMPLX.
3924         * math/tst-CMPLX.c: New file.
3926         * math/complex.h (CMPLXL): Fix typo.
3928         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
3929         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
3930         GLIBC_2.16.
3931         * debug/tst-chk1.c: Add poll and ppoll tests.
3932         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
3933         * include/sys/poll.h: Add hidden proto for ppoll.
3934         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
3935         * sysdeps/mach/hurd/ppoll.c: Likewise.
3936         * io/ppoll.c: Likewise.
3937         * debug/poll_chk.c: New file.
3938         * debug/ppoll_chk.c: New file.
3939         * include/bits/poll2.h: New file.
3940         * io/bits/poll2.h: New file.
3942         [BZ #1350]
3943         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
3945         * configure.in: static is always set to yes.  Remove.
3946         * config.make.in: Don't set build-static.
3947         * Makeconfig: Remove use of build-static.
3948         * dlfcn/Makefile: Likewise.
3949         * elf/Makefile: Likewise.
3950         * math/Makefile: Likewise.
3951         * misc/Makefile: Likewise.
3952         * nptl/Makefile: Likewise.
3953         * sysdeps/mach/hurd/Makefile: Likewise.
3955         * configure.in: PWD_P is not used anymore.
3956         * config.make.in: Remove PWD_P entry.
3958         * configure.in: Remove last remnants of RANLIB.
3959         No need to check for signed size_t anymore.
3960         Don't set libc_commonpagesize and libc_relro_required here for Alpha
3961         and IA-64.
3962         Remove __builtin_expect test because we require at least gcc 3.4.
3963         * aclocal.m4: Likewise.
3965         * wcsmbs/mbrtoc16.c: Implement using towc function.
3966         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
3967         * wcsmbs/wcsmbsload.c: Likewise.
3968         * iconv/gconv_simple.c: Likewise.
3969         * iconv/gconv_int.h: Likewise.
3970         * iconv/gconv_builtin.h: Likewise.
3971         * iconv/iconv_prog.c: Remove CHAR16 handling.
3973         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
3975         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
3977         * configure.in: Remove --with-elf and --enable-bounded options.
3978         Dont set base_machine for ia64.  More non-ELF conditions removed.
3979         Remove testing and setting of leading underscore information.
3980         * config.make.in (build-bounded): Set to no.
3981         * config.h.in: Remove NO_UNDERSCORES entry.
3982         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
3983         them.
3984         * csu/start.c: Remove !NO_UNDERSCORE code.
3985         * locale/localeinfo.h: Likewise.
3986         * sysdeps/generic/machine-gmon.h: Likewise.
3987         * sysdeps/generic/sysdep.h: Likewise.
3988         * sysdeps/i386/sysdep.h: Likewise.
3989         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
3990         * sysdeps/mach/sysdep.h: Likewise.
3991         * sysdeps/s390/s390-32/sysdep.h: Likewise.
3992         * sysdeps/s390/s390-64/sysdep.h: Likewise.
3993         * sysdeps/sh/sysdep.h: Likewise.
3994         * sysdeps/sparc/sparc32/alloca.S: Likewise.
3995         * sysdeps/unix/i386/sysdep.S: Likewise.
3996         * sysdeps/unix/sparc/start.c: Likewise.
3997         * sysdeps/unix/sparc/sysdep.S: Likewise.
3998         * sysdeps/unix/sparc/sysdep.h: Likewise.
3999         * sysdeps/unix/start.c: Likewise.
4000         * sysdeps/unix/x86_64/sysdep.S: Likewise.
4001         * sysdeps/x86_64/sysdep.h: Likewise.
4003 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
4005         [BZ #13553]
4006         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
4007         for non-gcc.
4008         * argp/argp-fmtstream.h: Use const instead __const.
4009         * argp/argp.h: Likewise.
4010         * assert/assert.h: Likewise.
4011         * bits/fenv.h: Likewise.
4012         * bits/sched.h: Likewise.
4013         * bits/sigset.h: Likewise.
4014         * bits/sigthread.h: Likewise.
4015         * catgets/nl_types.h: Likewise.
4016         * conform/data/pthread.h-data: Likewise.
4017         * crypt/crypt-private.h: Likewise.
4018         * crypt/crypt.h: Likewise.
4019         * crypt/crypt_util.c: Likewise.
4020         * ctype/ctype.h: Likewise.
4021         * debug/execinfo.h: Likewise.
4022         * debug/mbsnrtowcs_chk.c: Likewise.
4023         * debug/mbsrtowcs_chk.c: Likewise.
4024         * debug/wcsnrtombs_chk.c: Likewise.
4025         * debug/wcsrtombs_chk.c: Likewise.
4026         * debug/wcstombs_chk.c: Likewise.
4027         * dirent/dirent.h: Likewise.
4028         * dlfcn/dlfcn.h: Likewise.
4029         * elf/neededtest4.c: Likewise.
4030         * grp/grp.h: Likewise.
4031         * gshadow/gshadow.h: Likewise.
4032         * iconv/gconv.h: Likewise.
4033         * iconv/gconv_int.h: Likewise.
4034         * iconv/gconv_simple.c: Likewise.
4035         * iconv/iconv.h: Likewise.
4036         * iconv/loop.c: Likewise.
4037         * iconv/skeleton.c: Likewise.
4038         * include/aio.h: Likewise.
4039         * include/aliases.h: Likewise.
4040         * include/argz.h: Likewise.
4041         * include/arpa/inet.h: Likewise.
4042         * include/assert.h: Likewise.
4043         * include/dirent.h: Likewise.
4044         * include/dlfcn.h: Likewise.
4045         * include/execinfo.h: Likewise.
4046         * include/fcntl.h: Likewise.
4047         * include/fenv.h: Likewise.
4048         * include/glob.h: Likewise.
4049         * include/grp.h: Likewise.
4050         * include/libintl.h: Likewise.
4051         * include/mntent.h: Likewise.
4052         * include/netdb.h: Likewise.
4053         * include/pwd.h: Likewise.
4054         * include/rpc/netdb.h: Likewise.
4055         * include/sched.h: Likewise.
4056         * include/search.h: Likewise.
4057         * include/shadow.h: Likewise.
4058         * include/signal.h: Likewise.
4059         * include/stdio.h: Likewise.
4060         * include/stdlib.h: Likewise.
4061         * include/string.h: Likewise.
4062         * include/sys/socket.h: Likewise.
4063         * include/sys/stat.h: Likewise.
4064         * include/sys/statfs.h: Likewise.
4065         * include/sys/statvfs.h: Likewise.
4066         * include/sys/syslog.h: Likewise.
4067         * include/sys/time.h: Likewise.
4068         * include/sys/uio.h: Likewise.
4069         * include/time.h: Likewise.
4070         * include/unistd.h: Likewise.
4071         * include/utmp.h: Likewise.
4072         * include/wchar.h: Likewise.
4073         * include/wctype.h: Likewise.
4074         * inet/aliases.h: Likewise.
4075         * inet/arpa/inet.h: Likewise.
4076         * inet/netinet/ether.h: Likewise.
4077         * inet/netinet/in.h: Likewise.
4078         * intl/libintl.h: Likewise.
4079         * io/bits/fcntl2.h: Likewise.
4080         * io/fcntl.h: Likewise.
4081         * io/ftw.h: Likewise.
4082         * io/sys/poll.h: Likewise.
4083         * io/sys/stat.h: Likewise.
4084         * io/sys/statfs.h: Likewise.
4085         * io/sys/statvfs.h: Likewise.
4086         * io/utime.h: Likewise.
4087         * libio/bits/stdio.h: Likewise.
4088         * libio/bits/stdio2.h: Likewise.
4089         * libio/libio.h: Likewise.
4090         * libio/libioP.h: Likewise.
4091         * libio/stdio.h: Likewise.
4092         * locale/lc-ctype.c: Likewise.
4093         * locale/locale.h: Likewise.
4094         * login/utmp.h: Likewise.
4095         * malloc/arena.c: Likewise.
4096         * malloc/malloc.c: Likewise.
4097         * malloc/malloc.h: Likewise.
4098         * malloc/mcheck.c: Likewise.
4099         * malloc/mtrace.c: Likewise.
4100         * math/bits/mathcalls.h: Likewise.
4101         * math/fenv.h: Likewise.
4102         * math/math_private.h: Likewise.
4103         * misc/bits/error.h: Likewise.
4104         * misc/bits/syslog.h: Likewise.
4105         * misc/err.h: Likewise.
4106         * misc/error.h: Likewise.
4107         * misc/fstab.h: Likewise.
4108         * misc/mntent.h: Likewise.
4109         * misc/regexp.h: Likewise.
4110         * misc/search.h: Likewise.
4111         * misc/sgtty.h: Likewise.
4112         * misc/sys/mman.h: Likewise.
4113         * misc/sys/syslog.h: Likewise.
4114         * misc/sys/uio.h: Likewise.
4115         * misc/sys/xattr.h: Likewise.
4116         * misc/ttyent.h: Likewise.
4117         * nis/rpcsvc/ypclnt.h: Likewise.
4118         * nss/nss.h: Likewise.
4119         * posix/bits/unistd.h: Likewise.
4120         * posix/fnmatch.h: Likewise.
4121         * posix/glob.h: Likewise.
4122         * posix/sched.h: Likewise.
4123         * posix/spawn.h: Likewise.
4124         * posix/sys/wait.h: Likewise.
4125         * posix/unistd.h: Likewise.
4126         * posix/wordexp.h: Likewise.
4127         * pwd/pwd.h: Likewise.
4128         * resolv/netdb.h: Likewise.
4129         * resource/sys/resource.h: Likewise.
4130         * rt/aio.h: Likewise.
4131         * rt/bits/mqueue2.h: Likewise.
4132         * rt/mqueue.h: Likewise.
4133         * shadow/shadow.h: Likewise.
4134         * signal/signal.h: Likewise.
4135         * socket/send.c: Likewise.
4136         * socket/sendto.c: Likewise.
4137         * socket/sys/socket.h: Likewise.
4138         * stdio-common/printf.h: Likewise.
4139         * stdlib/bits/stdlib.h: Likewise.
4140         * stdlib/fmtmsg.h: Likewise.
4141         * stdlib/monetary.h: Likewise.
4142         * stdlib/stdlib.h: Likewise.
4143         * stdlib/ucontext.h: Likewise.
4144         * streams/stropts.h: Likewise.
4145         * string/argz.h: Likewise.
4146         * string/bits/string2.h: Likewise.
4147         * string/string.h: Likewise.
4148         * string/strings.h: Likewise.
4149         * sunrpc/rpc/auth.h: Likewise.
4150         * sunrpc/rpc/auth_des.h: Likewise.
4151         * sunrpc/rpc/clnt.h: Likewise.
4152         * sunrpc/rpc/netdb.h: Likewise.
4153         * sunrpc/rpc/pmap_clnt.h: Likewise.
4154         * sunrpc/rpc/xdr.h: Likewise.
4155         * sysdeps/generic/inttypes.h: Likewise.
4156         * sysdeps/generic/net/if.h: Likewise.
4157         * sysdeps/generic/sys/swap.h: Likewise.
4158         * sysdeps/gnu/net/if.h: Likewise.
4159         * sysdeps/gnu/utmpx.h: Likewise.
4160         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
4161         * sysdeps/i386/i486/bits/string.h: Likewise.
4162         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
4163         * sysdeps/s390/bits/string.h: Likewise.
4164         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
4165         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
4166         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
4167         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
4168         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
4169         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
4170         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
4171         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
4172         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
4173         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
4174         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
4175         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
4176         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
4177         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
4178         * sysdeps/unix/sysv/linux/readv.c: Likewise.
4179         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
4180         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
4181         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
4182         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
4183         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
4184         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
4185         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
4186         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
4187         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
4188         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
4189         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
4190         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
4191         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
4192         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
4193         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
4194         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
4195         * sysvipc/sys/ipc.h: Likewise.
4196         * sysvipc/sys/msg.h: Likewise.
4197         * sysvipc/sys/sem.h: Likewise.
4198         * sysvipc/sys/shm.h: Likewise.
4199         * termios/termios.h: Likewise.
4200         * time/sys/time.h: Likewise.
4201         * time/time.h: Likewise.
4202         * wcsmbs/bits/wchar2.h: Likewise.
4203         * wcsmbs/uchar.h: Likewise.
4204         * wcsmbs/wchar.h: Likewise.
4205         * wctype/wctype.h: Likewise.
4207         [BZ #13551]
4208         * Makeconfig: Remove all but ELF support including AIX support.
4209         * Makerules: Likewise.
4210         * config.h.in: Likewise.
4211         * config.make.in: Likewise.
4212         * configure: Likewise.
4213         * configure.in: Likewise.
4214         * csu/Makefile: Likewise.
4215         * csu/version.c: Likewise.
4216         * debug/Makefile: Likewise.
4217         * dlfcn/Makefile: Likewise.
4218         * elf/Makefile: Likewise.
4219         * extra-lib.mk: Likewise.
4220         * iconv/Makefile: Likewise.
4221         * include/libc-symbols.h: Likewise.
4222         * include/shlib-compat.h: Likewise.
4223         * resolv/Makefile: Likewise.
4224         * resolv/res_libc.c: Likewise.
4225         * rt/Makefile: Likewise.
4226         * sysdeps/i386/asm-syntax.h: Likewise.
4227         * sysdeps/i386/sysdep.h: Likewise.
4228         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
4229         * sysdeps/mach/sysdep.h: Likewise.
4230         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
4231         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
4232         * sysdeps/s390/asm-syntax.h: Likewise.
4233         * sysdeps/s390/s390-32/sysdep.h: Likewise.
4234         * sysdeps/s390/s390-64/sysdep.h: Likewise.
4235         * sysdeps/sh/sysdep.h: Likewise.
4236         * sysdeps/unix/sparc/sysdep.h: Likewise.
4237         * sysdeps/wordsize-32/divdi3.c: Likewise.
4238         * sysdeps/x86_64/sysdep.h: Likewise.
4240         * argp/Versions: Remove _argp_unlock_xxx.
4242         [BZ #13559]
4243         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
4244         * abilist/libBrokenLocale.abilist: Likewise.
4245         * abilist/libanl.abilist: Likewise.
4246         * abilist/libc.abilist: Likewise.
4247         * abilist/libcrypt.abilist: Likewise.
4248         * abilist/libdl.abilist: Likewise.
4249         * abilist/libm.abilist: Likewise.
4250         * abilist/libnsl.abilist: Likewise.
4251         * abilist/libpthread.abilist: Likewise.
4252         * abilist/libresolv.abilist: Likewise.
4253         * abilist/librt.abilist: Likewise.
4254         * abilist/libthread_db.abilist: Likewise.
4255         * abilist/libutil.abilist: Likewise.
4256         * abilist/libnss_db.abilist: New file.
4258         * scripts/abilist.awk: Add support for indirect functions.
4260         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
4262         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
4264         * shlib-versions: Remove entries for ports architectures.
4266         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
4267         files in ports.
4268         * elf/stackguard-macros.h: Remove support for IA-64.
4269         * elf/tst-auditmod1.c: Likewise.
4270         * sysdeps/generic/ldsodefs.h: Likewise.
4272         * sysdeps/unix/sysv/linux/configure.in: Ports should define
4273         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
4274         configure files.
4276         [BZ #13552]
4277         * configure.in: Remove --enable-omitfp support.
4278         * FAQ.in: Adjust.
4279         * config.make.in: Likewise.
4280         * Makeconfig: Likewise.
4281         * manual/install.texi: Likewise.
4283         In case anyone cares, the IA-64 architecture could move to ports.
4284         * sysdeps/ia64/*: Removed.
4285         * sysdeps/unix/sysv/linux/ia64/*: Removed.
4286         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
4288         [BZ #13555]
4289         * configure.in: Remove entries for unsupported architectures.
4291         [BZ #13533]
4292         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
4293         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
4294         routines.
4295         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
4296         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
4297         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
4298         fall back to using wcrtomb.
4299         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
4300         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
4301         renaming.
4302         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
4303         * wcsmbs/tst-c16c32-1.c: New file.
4305         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
4306         local variable.
4308         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
4310         * elf/tst-unique3.cc: Add explicit declaration of gets.
4311         * elf/tst-unique3lib.cc: Likewise.
4312         * elf/tst-unique3lib2.cc: Likewise.
4313         * elf/tst-unique4.cc: Likewise.
4315         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
4317 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
4319         [BZ #13566]
4320         * assert/assert.h (static_assert): Don't define for C++.
4321         * libio/stdio.h (gets): Do declare for C++ <= C++11.
4322         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
4324 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
4326         * iconv/loop.c (single loop): Fix assertion in storing of
4327         remaining bytes.
4329         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
4331 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
4333         * posix/getconf.c: Update copyright year.
4334         * nss/getent.c: Likewise.
4335         * nss/makedb.c: Likewise.
4336         * iconv/iconvconfig.c: Likewise.
4337         * iconv/iconv_prog.c: Likewise.
4338         * elf/ldconfig.c: Likewise.
4339         * elf/pldd.c: Likewise.
4340         * elf/sotruss.ksh: Likewise.
4341         * catgets/gencat.c: Likewise.
4342         * csu/version.c: Likewise.
4343         * elf/ldd.bash.in: Likewise.
4344         * elf/sprof.c (print_version): Likewise.
4345         * locale/programs/locale.c: Likewise.
4346         * locale/programs/localedef.c: Likewise.
4347         * login/programs/pt_chown.c: Likewise.
4348         * nscd/nscd.c (print_version): Likewise.
4349         * debug/xtrace.sh: Likewise.
4350         * malloc/memusage.sh: Likewise.
4351         * malloc/mtrace.pl: Likewise.
4352         * debug/catchsegv.sh: Likewise.
4354 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
4356         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
4357         pure attribute.
4359 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
4361         [BZ #13533]
4362         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
4363         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
4364         transformations.
4365         * iconv/gconv_int.h: Likewise.
4366         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
4367         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
4368         from libc for GLIBC_2.16.
4369         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
4370         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
4371         * wcsmbs/uchar.h: Really define mbstate_t.
4372         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
4373         * wcsmbs/c16rtomb.c: New file.
4374         * wcsmbs/mbrtoc16.c: New file.
4375         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
4376         for C/POSIX locale.
4377         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
4378         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
4380         * wcsmbs/wchar.h: Add missing __restrict.
4382 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
4384         [BZ #13532]
4385         * time/Makefile (routines): Add timespec_get.
4386         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
4387         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
4388         timespec for ISO C11.
4389         * time/timespec_get.c: New file.
4390         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
4391         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
4393         [BZ #13531]
4394         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
4395         * stdlib/stdlib.h: Declare aligned_alloc.
4396         * Versions.def: Add GLIBC_2.16 for libc.
4397         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
4399         [BZ 13527]
4400         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
4401         ISO C11.
4403         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
4404         code.
4406         [BZ #13528]
4407         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
4409         [BZ #13529]
4410         * assert/assert.h (static_assert): Define.
4412         * version.h: Update for 2.16 development version.
4414         [BZ #13526]
4415         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
4416         _ISOC11_SOURCE.
4418         * version.h (RELEASE): Bump for 2.15 release.
4419         * include/features.h (__GLIBC_MINOR__): Bump to 15.
4421         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
4422         Patch by Marek Polacek <mpolacek@redhat.com>.
4424         * bits/byteswap.h: Protect long long constants with __extension__.
4425         * sysdeps/i386/bits/byteswap.h: Likewise.
4426         * sysdeps/ia64/bits/byteswap.h: Likewise.
4427         * sysdeps/s390/bits/byteswap.h: Likewise.
4428         * sysdeps/x86_64/bits/byteswap.h: Likewise.
4430 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
4432         [BZ #13540]
4433         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
4434         destination buffer.
4435         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
4437 2011-12-23  Marek Polacek  <polacek@redhat.com>
4439         * elf/dl-addr.c (determine_info): Add inline keyword.
4440         * elf/tst-auditmod4b.c (check_avx): Likewise.
4441         * elf/tst-auditmod6b.c (check_avx): Likewise.
4442         * elf/tst-auditmod6c.c (check_avx): Likewise.
4443         * elf/tst-auditmod7b.c (check_avx): Likewise.
4445 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
4447         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
4448         !__SSE_MATH__.
4450 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
4452         [BZ #13540]
4453         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
4454         processing for last bytes.
4456 2011-08-06  Bruno Haible  <bruno@clisp.org>
4458         [BZ #13061]
4459         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
4460         U+0385, not to U+1FEE.
4462         [BZ #13062]
4463         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
4464         entry for U+00A5 U+0301.
4466 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
4468         [BZ #13166]
4469         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
4470         buffer for the output is too small.
4472         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
4473         optimization.
4475         [BZ #13185]
4476         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
4477         SSE flags if possible.
4479 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
4481         [BZ #13540]
4482         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
4483         processing for last bytes.
4485 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
4487         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
4488         (syscall-list-default-options, syscall-list-default-condition)
4489         (syscall-list-includes): Define.
4490         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
4491         list of ABIs and options and #if conditions for each ABI.  Do not
4492         handle common syscalls between ABIs specially.
4493         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
4494         Remove.
4495         (syscall-list-variants, syscall-list-32bit-options)
4496         (syscall-list-32bit-condition, syscall-list-64bit-options)
4497         (syscall-list-64bit-condition): Define.
4498         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
4499         (syscall-list-variants, syscall-list-32bit-options)
4500         (syscall-list-32bit-condition, syscall-list-64bit-options)
4501         (syscall-list-64bit-condition): Define.
4502         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
4503         Remove.
4504         (syscall-list-variants, syscall-list-32bit-options)
4505         (syscall-list-32bit-condition, syscall-list-64bit-options)
4506         (syscall-list-64bit-condition): Define.
4507         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
4508         Remove.
4509         (syscall-list-variants, syscall-list-32bit-options)
4510         (syscall-list-32bit-condition, syscall-list-64bit-options)
4511         (syscall-list-64bit-condition): Define.
4513 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
4515         * locale/iso-639.def: Add brx entry.
4517         [BZ #13328]
4518         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
4519         Proposed by Mariusz_Cukr <marcukr@op.pl>.
4521         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
4522         __feraiseexcept_renamed.
4524 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
4526         [BZ #13538]
4527         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
4528         EPOLLET with unsigned values.
4529         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
4530         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
4532         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
4533         to large cancellation.
4534         * math/s_cacoshf.c: Likewise.
4535         * math/s_cacoshl.c: Likewise.
4537 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
4539         [BZ #13305]
4540         [BZ #12786]
4541         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
4542         * math/s_cacoshf.c: Likewise.
4543         * math/s_cacoshl.c: Likewise.
4545 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
4547         [BZ #13439]
4548         * iconv/gconv.h: Define __GCONV_SWAP.
4549         * iconvdata/unicode.c: The swap bit must be stored in __flags.
4550         * iconvdata/utf-16.c: Likewise.
4551         * iconvdata/utf-32.c: Likewise.
4553 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
4555         [BZ #13524]
4556         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
4557         numerator after shifting it by one limb.
4559 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
4561         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
4562         under [__USE_EXTERN_INLINES].
4564 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
4566         [BZ #13446]
4567         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
4569 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4571         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
4572         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
4573         optimized code.
4574         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
4575         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
4576         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
4577         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
4578         for strncasecmp/strncasecmp_l compilation.
4579         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
4580         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
4582 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
4584         [BZ #13484]
4585         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
4586         of __asm__.
4588 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
4590         [BZ #13506]
4591         * time/tzfile.c (__tzfile_read): Check values from file header.
4593 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
4595         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
4596         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
4597         * powerpc/powerpc32/dl-start.S: Likewise.
4598         * powerpc/powerpc32/elf/start.S: Likewise.
4599         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
4600         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
4601         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
4602         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
4603         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
4604         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
4605         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
4606         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
4607         * powerpc/powerpc32/fpu/s_round.S: Likewise.
4608         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
4609         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
4610         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
4611         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
4612         * powerpc/powerpc32/memset.S: Likewise.
4613         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
4614         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
4615         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
4616         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
4617         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
4618         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
4619         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
4620         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
4621         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
4622         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
4623         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
4624         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
4625         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
4627 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4629         * math/libm-test.inc: Added more nearbyint tests.
4630         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
4631         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
4632         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
4633         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
4635 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
4637         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
4638         FD_CLOEXEC.
4640 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
4642         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
4643         Add wcscpy-ssse3 wcscpy-c.
4644         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
4645         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
4646         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
4647         * sysdeps/x86_64/wcschr.S: New file.
4648         * sysdeps/x86_64/wcsrchr.S: New file.
4649         * string/test-strcmp.c: Remove checking of wcscmp function for
4650         wrong alignments.
4651         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
4652         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
4653         wcsrchr-sse2 wcsrchr-c.
4654         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
4655         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
4656         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
4657         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
4658         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
4659         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
4660         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
4661         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
4662         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
4663         * wcsmbc/wcschr.c (WCSCHR): New macro.
4665 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
4667         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
4668         * wcsmbs/test-wcsrchr.c: New file.
4669         * string/test-strrchr.c: Add wcsrchr support.
4670         (WIDE): New macro.
4671         * wcsmbs/test-wcscpy.c: New file.
4672         * string/test-strcpy.c: Add wcscpy support.
4673         (WIDE): New macro.
4675 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
4677         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
4678         the inner loop.
4680 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
4682         [BZ #13472]
4683         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
4685 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
4687         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
4688         Minor optimizations.
4690         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
4691         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
4692         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
4694 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
4696         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
4697         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
4698         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
4699         for gcc to avoid warnings.
4700         * inet/Makefile (tests): Add tst-checks.
4701         * inet/tst-checks.c: New file.
4703         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
4704         warning.
4706         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
4707         __wmemcmp_sse2.
4709         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
4710         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
4712         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
4714 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
4716         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
4717         problem.
4719         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
4721 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
4723         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
4724         conditional on GCC version.
4725         (__arch_compare_and_exchange_val_8_acq)
4726         (__arch_compare_and_exchange_val_16_acq)
4727         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
4728         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
4729         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
4731 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
4733         * sysdeps/sh/backtrace.c: New file.
4735 2011-12-02  Andreas Schwab  <schwab@redhat.com>
4737         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
4738         parenthesis.
4740 2011-12-01  Andreas Schwab  <schwab@redhat.com>
4742         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
4743         falling back to utime.
4745 2011-11-30  Andreas Schwab  <schwab@redhat.com>
4747         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
4748         expectations for float.
4750 2011-11-29  Andreas Schwab  <schwab@redhat.com>
4752         * locale/weight.h (findidx): Add parameter len.
4753         * locale/weightwc.h (findidx): Likewise.
4754         * posix/fnmatch_loop.c (FCT): Adjust caller.
4755         * posix/regcomp.c (build_equiv_class): Likewise.
4756         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
4757         * posix/regexec.c (check_node_accept_bytes): Likewise.
4758         * string/strcoll_l.c (STRCOLL): Likewise.
4759         * string/strxfrm_l.c (STRXFRM): Likewise.
4761 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
4763         * Makefile.in: Remove CVSOPT handling.
4764         * configure.in: Remove use of AC_REVISION.
4765         * iconvdata/Makefile (distribute): No need to filter out CVS.
4766         * scripts/list-sources.sh: Remove CVS, subversion and monotone
4767         handling.
4769 2011-11-16  Andreas Schwab  <schwab@redhat.com>
4771         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
4772         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
4773         [USE_AS_STRNCASECMP_L]: Likewise.
4774         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
4775         NO_TLS_DIRECT_SEG_REFS.
4776         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
4777         Fix argument offsets for non-PIC.
4778         [USE_AS_STRNCASECMP_L]: Likewise.
4779         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
4780         NO_TLS_DIRECT_SEG_REFS.
4782 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
4784         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
4785         O_CLOEXEC.
4786         * locale/loadlocale.c (_nl_load_locale): Likewise.
4788 2011-11-15  Andreas Schwab  <schwab@redhat.com>
4790         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
4791         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
4792         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
4793         (SYSCALL_GETTIME): Set errno on error.
4795         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
4796         count references to noai6ai_cached.
4798 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
4800         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
4802         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
4803         FD_CLOEXEC for /proc/self/maps.
4805         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
4806         FD_CLOEXEC for /proc/meminfo.
4808         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
4809         gai.conf.
4811         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
4812         FD_CLOEXEC for given file.
4814         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
4816         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
4817         FD_CLOEXEC for /etc/hosts.
4818         (_gethtent): Likewise.
4820         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
4822         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
4823         cancellation and set FD_CLOEXEC for /etc/netgroup.
4825         * nss/nss_files/files-key.c (search): Don't allow cancellation when
4826         reading /etc/publickey.
4828         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
4829         allow cancellation when reading /etc/group.
4831         * nss/nss_files/files-alias.c (internal_setent): Don't allow
4832         cancellation.
4833         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
4835         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
4836         when using data file.
4838         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
4840         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
4841         (write_nis_obj): Use "c" and "e" in fopen.
4843         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
4845         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
4847         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
4849         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
4851         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
4852         locale.alias.
4854         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
4856         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
4858         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
4860         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
4861         file parsing and set FD_CLOEXEC.
4863 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
4865         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
4867 2011-11-14  Andreas Schwab  <schwab@redhat.com>
4869         * malloc/arena.c (arena_get2): Don't call reused_arena when
4870         _int_new_arena failed.
4872 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
4874         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
4875         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
4876         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
4877         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
4878         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
4879         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
4880         to compile strcasecmp and strncasecmp.
4881         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
4882         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
4884         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
4886 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
4888         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
4889         locale-defines.sym to gen-as-const-headers.
4890         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
4891         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
4892         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
4893         to compile strcasecmp and strncasecmp.
4894         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
4895         strcasecmp_l and strncasecmp_l.
4896         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
4897         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
4898         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
4899         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
4900         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
4901         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
4902         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
4903         * sysdeps/i386/i686/multiarch/strncase.S: New file.
4904         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
4905         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
4906         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
4908 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
4910         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
4911         result of SYSDEP_GETTIME_CPU to retval.
4912         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
4913         parameter list to macro.  Remove trailing semicolon.  Adjust users.
4915         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
4916         variable.
4918         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
4919         mantissa words.
4920         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
4922         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
4923         from unused variable.
4925         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
4926         DWARF definitions.
4927         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
4928         for assembling.
4930         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
4931         over namespaces.
4933         * sunrpc/rpc_prot.c (rejected): Fix case value.
4935         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
4936         unsigned long long int to avoid warnings in shift.
4938         * posix/regex_internal.c (re_string_reconstruct): Actually use result
4939         of use of trans.
4940         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
4941         variable tmp.
4943         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
4944         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
4945         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
4947         * nis/nis_table.c (nis_list): Use variable of correct type for
4948         result of __follow_path call.
4950 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4952         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
4953         of math functions ceil, trunc, floor, round, and sqrt, when
4954         avaliable on the platform.
4955         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
4956         name clash.
4957         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
4958         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
4959         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
4961 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
4963         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
4964         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
4966 2011-11-11  Roland McGrath  <roland@hack.frob.com>
4968         * include/unistd.h: Fix __readlink return type.
4969         Reported by Chris Metcalf <cmetcalf@tilera.com>.
4971 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
4973         * stdlib/ucontext.h: Undo last change for makecontext.
4975 2011-11-11  Andreas Schwab  <schwab@redhat.com>
4977         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
4979         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
4980         * setjmp/setjmp.h: Mark functions as non-leaf.
4981         * setjmp/bits/setjmp2.h: Likewise.
4982         * stdlib/ucontext.h: Likewise.
4984 2011-11-10  Andreas Schwab  <schwab@redhat.com>
4986         * malloc/arena.c (_int_new_arena): Don't increment narenas.
4987         (reused_arena): Don't check arena limit.
4988         (arena_get2): Atomically check arena limit.
4990 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
4992         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
4993         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
4995         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
4996         instructions.
4998 2011-11-07  Andreas Schwab  <schwab@redhat.com>
5000         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
5001         handler when locking.
5003         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
5004         Fix size of allocated buffer.
5006 2011-11-04  Andreas Schwab  <schwab@redhat.com>
5008         [BZ #10103]
5009         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
5010         declarations for long double functions.
5011         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
5013         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
5015 2011-11-03  Andreas Schwab  <schwab@redhat.com>
5017         * nscd/nscd.c (main): Don't start AVC thread until credentials are
5018         installed.
5020         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
5021         is disabled.
5023 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5025         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
5027 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
5029         * include/alloca.h (stackinfo_alloca_round): Define.
5030         (extend_alloca): Use it.
5031         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
5032         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
5033         here.
5035         * scripts/check-local-headers.sh: Ignore libaudit.h.
5037         * nscd/Makefile (extra-objs): Make recursively expanded.
5039 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
5041         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
5042         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
5044         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
5045         * posix/tst-rfc3484-2.c: Likewise.
5046         * posix/tst-rfc3484-3.c: Likewise.
5048         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
5049         process_vm_writev.
5050         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
5051         process_vm_writev.
5052         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
5053         process_vm_writev from libc using GLIBC_2.15 version.
5055         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
5057 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
5059         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
5060         stack usage.
5062 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
5064         [BZ #13367]
5065         * nss/getent.c (initgroups_keys): Show error message in case no group
5066         names are given.
5068         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
5069         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
5070         __bump_nl_timestamp.
5071         * nscd/connections (nscd_init): When host database is served open
5072         netlink socket and request notification about configuration changes.
5073         (main_loop_poll): Track netlink file descriptor and bump timestamp
5074         in case data becomes available.
5075         (main_loop_epoll): Likewise.
5076         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
5077         (database_pers_head): Add extra_data fileds.
5078         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
5079         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
5080         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
5081         Adjust caller.
5082         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
5083         in6ai data, call __free_in6ai.
5084         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
5085         Add -DHAVE_NETLINK.
5086         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
5087         interface information.  Reuse previous data if netlink timestamp
5088         is not changed.
5089         (__bump_nl_timestamp): New function.
5090         (__free_in6ai): New function.
5092 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
5094         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
5095         close_not_cancel_no_status here.
5096         (__check_pf): Reorganize code a bit to not call close twice if OOM.
5098 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
5100         [BZ #13276]
5101         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
5102         return value.
5104         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
5105         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
5106         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
5108 2011-07-03  Andreas Jaeger  <aj@suse.de>
5110         [BZ #10709]
5111         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
5112         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
5113         * math/libm-test.inc (sin_test): Add test case.
5115 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
5117         [BZ #13337]
5118         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
5119         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
5121         * elf/chroot_canon.c (chroot_canon): Cleanups.
5123         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
5125         [BZ #13335]
5126         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
5127         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
5129         * string/test-strchr.c: Make usable for strchrnul testing.
5130         * string/test-strchrnul.c: New file.
5131         * string/Makefile (strop-tests): Add strchrnul.
5133         * po/it.po: Update from translation team.
5134         * po/es.po: Likewise.
5136 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
5138         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
5139         the three constants needed as parameters.  Drop the others.
5140         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
5141         __m128i_strloadu_tolower.
5142         Create and initialize variable zero and use it in all the places
5143         where _mm_setzero_si128 was used.
5145         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
5146         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
5147         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
5148         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
5149         anymore.
5150         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
5151         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
5152         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
5153         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
5154         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
5155         __mpranred, __mptan.
5156         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
5157         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
5158         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
5159         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
5160         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
5161         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
5162         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
5163         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
5164         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
5166 2011-10-28  Andreas Schwab  <schwab@redhat.com>
5168         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
5169         redefine if SHARED.
5170         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
5172         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
5173         wide char related routines to wcsmbs subdir.
5175 2011-10-27  Andreas Schwab  <schwab@redhat.com>
5177         [BZ #13344]
5178         * misc/sys/cdefs.h (__THROWNL): Define.
5179         * posix/unistd.h: Use __THREADNL instead of __THREAD
5180         for memory synchronization functions.
5182 2011-10-26  Roland McGrath  <roland@hack.frob.com>
5184         [BZ #13349]
5185         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
5186         doesn't exist.
5187         * manual/stdio.texi (Obstack Streams): Node removed.
5189 2011-10-26  Andreas Schwab  <schwab@redhat.com>
5191         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
5192         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
5193         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
5195         * math/math_private.h (math_force_eval): Allow non-addressable
5196         arguments.
5197         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
5199 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
5201         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
5202         file is not needed.
5204         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
5205         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
5206         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
5207         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
5208         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
5209         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
5210         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
5211         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
5212         Add AVX variants.
5213         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
5214         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
5215         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
5216         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
5217         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
5218         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
5219         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
5220         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
5221         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
5222         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
5223         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
5224         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
5225         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
5226         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
5227         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
5228         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
5229         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
5230         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
5231         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
5233         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
5234         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
5236         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
5237         place.  Use VEX encoding when compiling for AVX.
5239 2011-10-25  Andreas Schwab  <schwab@redhat.com>
5241         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
5242         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
5244         * string/test-strchr.c (do_test): Don't generate NUL bytes.
5246 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
5248         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
5249         useless if() expression.
5250         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
5251         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
5252         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
5253         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
5254         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
5255         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
5256         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
5257         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
5258         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
5259         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
5260         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
5261         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
5262         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
5263         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
5264         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
5265         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
5266         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
5267         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
5268         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
5270         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
5272 2011-10-25  Andreas Schwab  <schwab@redhat.com>
5274         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
5275         condition.
5276         * elf/dl-fini.c (_dl_sort_fini): Likewise.
5278 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
5280         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
5281         .text section.  Avoid duplicate constants.
5282         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
5283         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
5284         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
5285         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
5286         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
5287         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
5288         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
5289         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
5290         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
5291         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
5292         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
5293         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
5294         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
5295         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
5296         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
5297         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
5298         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
5299         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
5300         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
5301         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
5302         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
5303         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
5304         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
5305         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
5306         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
5307         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
5308         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
5309         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
5310         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
5311         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
5312         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
5313         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
5314         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
5315         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
5316         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
5317         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
5318         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
5319         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
5320         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
5321         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
5322         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
5323         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
5324         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
5325         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
5326         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
5328 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
5330         * sysdeps/x86_64/dla.h: Move to ...
5331         * sysdeps/x86_64/fpu/dla.h: ...here.
5332         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
5333         situations.  Use __builtin_fma only for gcc 4.6 and up.
5335         * config.make.in: Add have-mfma4 entry.
5336         * configure.in: Substitute libc_cv_cc_fma4.
5337         * math/Makefile (dbl-only-routines): Add sincostab.
5338         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
5339         Use __sincostab not sincos.
5340         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
5341         name is a macro.
5342         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
5343         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
5344         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
5345         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
5346         using __copysign.
5347         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
5348         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
5349         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
5350         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
5351         and __inv.
5352         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
5353         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
5354         __copysign.
5355         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
5356         define aliases when function name is a macro.
5357         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
5358         sysdeps/ieee754/dbl-64/sincos.tbl.
5359         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
5360         fma4-enabled routines.
5361         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
5362         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
5363         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
5364         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
5365         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
5366         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
5367         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
5368         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
5369         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
5370         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
5371         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
5372         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
5373         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
5374         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
5375         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
5376         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
5377         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
5378         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
5379         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
5380         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
5381         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
5382         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
5383         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
5384         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
5385         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
5386         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
5387         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
5388         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
5389         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
5390         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
5392         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
5393         rename.
5394         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
5395         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
5396         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
5397         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
5398         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
5399         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
5400         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
5401         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
5403 2011-10-24  Andreas Schwab  <schwab@redhat.com>
5405         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
5407 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
5409         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
5411         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
5412         prediction.
5413         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
5415         * string/strnlen.c: Don't define STRNLEN, reverse logic.
5416         Remove unused variable magic_bits.
5417         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
5419         * string/strnlen.c: Define and use STRNLEN macro.
5420         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
5421         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
5422         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
5423         * wcsmbs/wcslen.c: Define and use WCSLEN.
5424         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
5425         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
5426         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
5427         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
5428         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
5429         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
5430         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
5432 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5434         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
5435         strnlen-sse2-no-bsf.
5436         Rename strlen-no-bsf to strlen-sse2-no-bsf.
5437         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
5438         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
5439         Add strnlen support.
5440         (USE_AS_STRNLEN): New macro.
5441         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
5442         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
5443         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
5444         * sysdeps/x86_64/wcslen.S: New file.
5446 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
5448         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
5449         XMM-moves are used for copying on small sizes.
5451 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5453         * wcsmbs/Makefile (strop-tests): Add wcschr.
5454         * wcsmbs/test-wcschr.c: New file.
5455         * string/test-strchr.c: Update.
5456         Add wcschr support.
5457         (WIDE): New macro.
5459 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5461         * wcsmbs/Makefile (strop-tests): Add wcslen.
5462         * wcsmbs/test-wcslen.c: New file.
5463         * string/test-strlen.c: Update.
5464         Add wcslen support.
5465         (WIDE): New macro.
5467 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
5469         * po/it.po: Update from translation team.
5471 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5473         * sysdeps/x86_64/wcscmp.S: Update.
5474         Fix wrong comparison semantics.
5475         wcscmp shall use signed comparison not unsigned.
5476         Don't use substraction to avoid overflow bug.
5477         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
5478         * wcsmbc/wcscmp.c: Likewise.
5479         * string/test-strcmp.c: Likewise.
5480         Add new tests to check cases with negative values.
5482 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
5484         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
5485         * sysdeps/x86_64/dla.h: ...here.  New file.
5486         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
5487         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
5488         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
5489         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
5490         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
5491         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
5492         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
5493         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
5494         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
5496 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
5498         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
5499         __ynl_finite aliases.
5501 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
5503         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
5505         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
5506         define DLA_FMA.
5507         [DLA_FMA] (EMULV): Use DLA_FMA.
5508         [DLA_FMA] (MUL12): Use EMULV.
5509         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
5510         that are not needed.
5511         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
5512         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
5513         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
5514         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
5515         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
5516         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
5517         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
5519 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
5521         * math/s_nan.c: Undef __nan.
5522         * math/s_nanf.c: Undef __nanf.
5523         * math/s_nanl.c: Undef __nanl.
5524         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
5525         "math_private.h".
5527 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
5529         * math/s_catan.c: Add branch predictions.
5530         * math/s_catanf.c: Likewise.
5531         * math/s_catanh.c: Likewise.
5532         * math/s_catanhf.c: Likewise.
5533         * math/s_catanhl.c: Likewise.
5534         * math/s_catanl.c: Likewise.
5535         * math/s_cexp.c: Likewise.
5536         * math/s_cexpf.c: Likewise.
5537         * math/s_cexpl.c: Likewise.
5538         * math/s_clog.c: Likewise.
5539         * math/s_clog10.c: Likewise.
5540         * math/s_clog10f.c: Likewise.
5541         * math/s_clog10l.c: Likewise.
5542         * math/s_clogf.c: Likewise.
5543         * math/s_clogl.c: Likewise.
5544         * math/s_csqrt.c: Likewise.
5545         * math/s_csqrtf.c: Likewise.
5546         * math/s_csqrtl.c: Likewise.
5547         * math/s_ctanf.c: Likewise.
5548         * math/s_ctanh.c: Likewise.
5549         * math/s_ctanhf.c: Likewise.
5550         * math/s_ctanhl.c: Likewise.
5551         * math/s_ctanl.c: Likewise.
5553         * math/math_private.h: Define __nan, __nanf, __nanl.
5554         * math/s_cacosh.c: Include <math_private.h>.
5555         * math/s_cacoshl.c: Likewise.
5556         * math/s_casinh.c: Likewise.
5557         * math/s_casinhf.c: Likewise.
5558         * math/s_casinhl.c: Likewise.
5559         * math/s_ccos.c: Rely entire on ccosh.
5560         * math/s_ccosf.c: Rely entire on ccoshf.
5561         * math/s_ccosl.c: Rely entirely on ccoshl.
5562         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
5563         Remove tests for FE_INVALID.
5564         * math/s_ccoshf.c: Likewise.
5565         * math/s_ccoshl.c: Likewise.
5566         * math/s_csin.c: Likewise.
5567         * math/s_csinf.c: Likewise.
5568         * math/s_csinh.c Likewise.
5569         * math/s_csinhf.c: Likewise.
5570         * math/s_csinhl.c: Likewise.
5571         * math/s_csinl.c: Likewise.
5572         * math/s_ctan.c: Likewise.
5573         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
5574         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
5575         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
5577 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
5579         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
5580         compilation problems.
5582         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
5583         __builtin_expect.
5585 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
5587         * sysdeps/i386/configure.in: Test for -mfma4 option.
5588         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
5589         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
5590         COMMON_CPUID_INDEX_80000001.
5591         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
5592         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
5593         use it if FMA3 is not supported.
5594         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
5596         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
5597         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
5599 2011-10-20  Andreas Schwab  <schwab@redhat.com>
5601         [BZ #12892]
5602         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
5603         it would create a cycle with a link time dependency.
5605 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
5607         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
5608         instruction.
5609         * string/Makefile (strop-tests): Add rawmemchr.
5610         * string/test-rawmemchr.c: New file.
5612         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
5613         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
5614         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
5615         when compiling str{,n}casecmp and when AVX is available.  Hook up
5616         new optimized code in initializers.
5618 2011-10-19  Andreas Schwab  <schwab@redhat.com>
5620         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
5621         __feraiseexcept instead of feraiseexcept.
5623 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
5625         * math/math_private.h: Define defaults for libc_fetestexcept and
5626         libc_feupdateenv.
5627         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
5628         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
5629         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
5630         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
5631         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
5632         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
5633         libc_fetestexcept and libc_feupdateenv.
5635         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
5636         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
5637         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
5638         * sysdeps/x86_64/fpu/math_private.h: Define special version of
5639         libc_feholdexcept_setround.
5641         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
5642         Add s_nearbyint-c and s_nearbyintf-c.
5643         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
5644         nearbyintf inlines.
5645         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
5646         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
5647         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
5648         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
5650         * math/math_private.h: Define defaults for libc_fegetround,
5651         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
5652         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
5653         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
5654         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
5655         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
5656         standard functions.
5657         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
5658         Remove comments and hacks for old compiler versions.
5659         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
5660         libc_fegetround, libc_fesetround, libc_feholdexcept, and
5661         libc_feholdexceptl.
5663 2011-10-18  Andreas Schwab  <schwab@redhat.com>
5665         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
5666         (__feraiseexcept_renamed): Add __NTH.
5667         (feraiseexcept): Add __NTH.  Rename local variables to fix
5668         namespace violations.
5670 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
5672         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
5674         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
5676         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
5677         recently added interfaces.
5678         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
5680         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
5681         about macro parameter expansion.
5683         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
5684         __NO_MATH_INLINES is defined.  Cleanups.
5686         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
5687         and __floorf is target has SSE4.1.
5688         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
5689         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
5690         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
5691         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
5693         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
5694         name.
5695         (floorf): Likewise.
5697         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
5699 2011-10-17  Andreas Schwab  <schwab@redhat.com>
5701         * misc/sys/cdefs.h: Fix last change.
5703         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
5704         database lookup.
5706 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
5708         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
5710         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
5711         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
5712         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
5713         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
5714         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
5715         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
5716         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
5717         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
5718         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
5719         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
5720         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
5721         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
5722         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
5723         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
5724         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
5725         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
5726         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
5727         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
5728         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
5729         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
5730         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
5731         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
5733         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
5734         ceil, ceilf, floor, floorf.
5736         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
5737         Perform IRELATIVE relocations last.
5739         * elf/do-rel.h: Add another parameter nrelative, replacing the
5740         local variable with the same name.  Change name of the function
5741         to end in Rel or Rela (uppercase).
5742         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
5743         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
5744         elf_dynamic_do_##reloc function.
5746 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
5748         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
5749         is sufficient, at least on modern CPUs.
5751         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
5753         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
5754         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
5756         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
5757         __expl_finite.
5758         * math/bits/math-finite.h: Add entries for exp.
5759         * math/e_expl.c: Add __*_finite alias.
5760         * sysdeps/i386/fpu/e_exp.S: Likewise.
5761         * sysdeps/i386/fpu/e_expf.S: Likewise.
5762         * sysdeps/i386/fpu/e_expl.c: Likewise.
5763         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
5764         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
5765         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
5766         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
5767         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
5768         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
5769         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
5771         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
5772         is sufficient, at least on modern CPUs.
5774         * ctype/ctype-info.c (__ctype_init): Define.
5775         * include/ctype.h (__ctype_init): Declare.
5776         (__ctype_b_loc): The variable is always initialized.
5777         (__ctype_toupper_loc): Likewise.
5778         (__ctype_tolower_loc): Likewise.
5779         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
5780         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
5782 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
5784         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
5786         * configure.in: Also look in $cxxmachine/include for C++ system
5787         headers.
5789 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5791         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
5792         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
5793         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
5794         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
5795         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
5796         (USE_AS_WMEMCMP): New macro.
5797         Fixing indents.
5798         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
5799         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
5800         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
5801         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
5802         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
5803         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
5804         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
5805         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
5806         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
5807         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
5808         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
5809         (USE_AS_WMEMCMP): New macro.
5810         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
5811         * sysdeps/string/test-memcmp.c: Update.
5812         Fix simple_wmemcmp.
5813         Add new tests.
5814         * wcsmbs/wmemcmp.c: Update.
5815         (WMEMCMP): New macro.
5816         Fix overflow bug.
5818 2011-10-12  Andreas Jaeger  <aj@suse.de>
5820         [BZ #13268]
5821         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
5823 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
5825         * libio/iofwide.c (do_length): Avoid warning.
5827         * ctype/ctype.h (__isctype_f): Add missing __THROW.
5829 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
5831         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
5833         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
5834         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
5835         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
5836         * sysdeps/i386/i686/fpu/e_log.S: New file.
5837         * sysdeps/i386/i686/fpu/e_logf.S: New file.
5838         * sysdeps/i386/i686/fpu/e_logl.S: New file.
5840         * ctype/ctype.h: Add support for inlined isXXX functions when
5841         compiling C++ code.
5843 2011-10-14  Andreas Schwab  <schwab@redhat.com>
5845         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
5847         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
5849 2011-10-13  Roland McGrath  <roland@hack.frob.com>
5851         [BZ #13291]
5852         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
5854 2011-10-13  Andreas Schwab  <schwab@redhat.com>
5856         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
5857         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
5858         feraiseexcept.
5860         * sysdeps/x86_64/memrchr.S: Check for zero size.
5862         * string/stratcliff.c: Add memrchr tests.
5864 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5866         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
5867         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
5868         rawmemchr-sse2 rawmemchr-sse2-bsf.
5869         * sysdeps/i386/i686/multiarch/memchr.S: New file.
5870         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
5871         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
5872         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
5873         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
5874         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
5875         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
5876         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
5877         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
5878         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
5879         * string/memrchr.c (MEMRCHR): New macro.
5881 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
5883         Add integration with gcc's -ffinite-math-only and optimize wrapper
5884         functions in libm.
5885         * Versions.def: Define GLIBC_2.15 version for libm.
5886         * math/Makefile (headers): Add bits/math-finite.h.
5887         * math/bits/math-finite.h: New file.
5888         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
5889         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
5890         * math/e_acoshl.c: Add __*_finite alias.
5891         * math/e_acosl.c: Likewise.
5892         * math/e_asinl.c: Likewise.
5893         * math/e_atan2l.c: Likewise.
5894         * math/e_atanhl.c: Likewise.
5895         * math/e_coshl.c: Likewise.
5896         * math/e_exp10.c: Likewise.
5897         * math/e_exp10f.c: Likewise.
5898         * math/e_exp10l.c: Likewise.
5899         * math/e_exp2l.c: Likewise.
5900         * math/e_fmodl.c: Likewise.
5901         * math/e_gammal_r.c: Likewise.
5902         * math/e_hypotl.c: Likewise.
5903         * math/e_j0l.c: Likewise.
5904         * math/e_j1l.c: Likewise.
5905         * math/e_jnl.c: Likewise.
5906         * math/e_lgammal_r.c: Likewise.
5907         * math/e_log10l.c: Likewise.
5908         * math/e_log2l.c: Likewise.
5909         * math/e_logl.c: Likewise.
5910         * math/e_powl.c: Likewise.
5911         * math/e_sinhl.c: Likewise.
5912         * math/e_sqrtl.c: Likewise.
5913         * math/e_scalb.c: Completely rewritten and optimized.
5914         * math/e_scalbf.c: Likewise.
5915         * math/e_scalbl.c: Likewise.
5916         * math/w_acos.c: Likewise.
5917         * math/w_acosf.c: Likewise.
5918         * math/w_acosl.c: Likewise.
5919         * math/w_acosh.c: Likewise.
5920         * math/w_acoshf.c: Likewise.
5921         * math/w_acoshl.c: Likewise.
5922         * math/w_asin.c: Likewise.
5923         * math/w_asinf.c: Likewise.
5924         * math/w_asinl.c: Likewise.
5925         * math/w_atan2.c: Likewise.
5926         * math/w_atan2f.c: Likewise.
5927         * math/w_atan2l.c: Likewise.
5928         * math/w_atanh.c: Likewise.
5929         * math/w_atanhf.c: Likewise.
5930         * math/w_atanhl.c: Likewise.
5931         * math/w_exp10.c: Likewise.
5932         * math/w_exp10f.c: Likewise.
5933         * math/w_exp10l.c: Likewise.
5934         * math/w_fmod.c: Likewise.
5935         * math/w_fmodf.c: Likewise.
5936         * math/w_fmodl.c: Likewise.
5937         * math/w_j0.c: Likewise.
5938         * math/w_j0f.c: Likewise.
5939         * math/w_j0l.c: Likewise.
5940         * math/w_j1.c: Likewise.
5941         * math/w_j1f.c: Likewise.
5942         * math/w_j1l.c: Likewise.
5943         * math/w_jn.c: Likewise.
5944         * math/w_jnf.c: Likewise.
5945         * math/w_log.c: Likewise.
5946         * math/w_logf.c: Likewise.
5947         * math/w_logl.c: Likewise.
5948         * math/w_log10.c: Likewise.
5949         * math/w_log10f.c: Likewise.
5950         * math/w_log10l.c: Likewise.
5951         * math/w_log2.c: Likewise.
5952         * math/w_log2f.c: Likewise.
5953         * math/w_log2l.c: Likewise.
5954         * math/w_pow.c: Likewise.
5955         * math/w_powf.c: Likewise.
5956         * math/w_powl.c: Likewise.
5957         * math/w_remainder.c: Likewise.
5958         * math/w_remainderf.c: Likewise.
5959         * math/w_remainderl.c: Likewise.
5960         * math/w_scalb.c: Likewise.
5961         * math/w_scalbf.c: Likewise.
5962         * math/w_scalbl.c: Likewise.
5963         * math/w_sqrt.c: Likewise.
5964         * math/w_sqrtf.c: Likewise.
5965         * math/w_sqrtl.c: Likewise.
5966         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
5967         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
5968         used.
5969         * math/math_private.h: Declare __kernel_standard_f.
5970         * math/w_cosh.c: Remove cruft and optimize a bit.
5971         * math/w_coshf.c: Likewise.
5972         * math/w_coshl.c: Likewise.
5973         * math/w_exp2.c: Likewise.
5974         * math/w_exp2f.c: Likewise.
5975         * math/w_exp2l.c: Likewise.
5976         * math/w_hypot.c: Likewise.
5977         * math/w_hypotf.c: Likewise.
5978         * math/w_hypotl.c: Likewise.
5979         * math/w_lgamma.c: Likewise.
5980         * math/w_lgamma_r.c: Likewise.
5981         * math/w_lgammaf.c: Likewise.
5982         * math/w_lgammaf_r.c: Likewise.
5983         * math/w_lgammal.c: Likewise.
5984         * math/w_lgammal_r.c: Likewise.
5985         * math/w_sinh.c: Likewise.
5986         * math/w_sinhf.c: Likewise.
5987         * math/w_sinhl.c: Likewise.
5988         * math/w_tgamma.c: Likewise.
5989         * math/w_tgammaf.c: Likewise.
5990         * math/w_tgammal.c: Likewise.
5991         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
5992         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
5993         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
5994         Minor optimizations.  Pretty printing.  Remove cruft.
5995         * sysdeps/i386/fpu/e_acosf.S: Likewise.
5996         * sysdeps/i386/fpu/e_acosh.S: Likewise.
5997         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
5998         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
5999         * sysdeps/i386/fpu/e_acosl.c: Likewise.
6000         * sysdeps/i386/fpu/e_asin.S: Likewise.
6001         * sysdeps/i386/fpu/e_asinf.S: Likewise.
6002         * sysdeps/i386/fpu/e_atan2.S: Likewise.
6003         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
6004         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
6005         * sysdeps/i386/fpu/e_atanh.S: Likewise.
6006         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
6007         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
6008         * sysdeps/i386/fpu/e_exp10.S: Likewise.
6009         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
6010         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
6011         * sysdeps/i386/fpu/e_exp2.S: Likewise.
6012         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
6013         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
6014         * sysdeps/i386/fpu/e_fmod.S: Likewise.
6015         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
6016         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
6017         * sysdeps/i386/fpu/e_hypot.S: Likewise.
6018         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
6019         * sysdeps/i386/fpu/e_log.S: Likewise.
6020         * sysdeps/i386/fpu/e_log10.S: Likewise.
6021         * sysdeps/i386/fpu/e_log10f.S: Likewise.
6022         * sysdeps/i386/fpu/e_log10l.S: Likewise.
6023         * sysdeps/i386/fpu/e_log2.S: Likewise.
6024         * sysdeps/i386/fpu/e_log2f.S: Likewise.
6025         * sysdeps/i386/fpu/e_log2l.S: Likewise.
6026         * sysdeps/i386/fpu/e_logf.S: Likewise.
6027         * sysdeps/i386/fpu/e_logl.S: Likewise.
6028         * sysdeps/i386/fpu/e_pow.S: Likewise.
6029         * sysdeps/i386/fpu/e_powf.S: Likewise.
6030         * sysdeps/i386/fpu/e_powl.S: Likewise.
6031         * sysdeps/i386/fpu/e_remainder.S: Likewise.
6032         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
6033         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
6034         * sysdeps/i386/fpu/e_scalb.S: Likewise.
6035         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
6036         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
6037         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
6038         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
6039         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
6040         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
6041         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
6042         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
6043         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
6044         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
6045         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
6046         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
6047         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
6048         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
6049         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
6050         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
6051         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
6052         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
6053         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
6054         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
6055         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
6056         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
6057         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
6058         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
6059         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
6060         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
6061         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
6062         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
6063         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
6064         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
6065         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
6066         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
6067         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
6068         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
6069         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
6070         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
6071         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
6072         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
6073         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
6074         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
6075         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
6076         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
6077         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
6078         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
6079         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
6080         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
6081         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
6082         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
6083         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
6084         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
6085         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
6086         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
6087         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
6088         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
6089         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
6090         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
6091         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
6092         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
6093         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
6094         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
6095         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
6096         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
6097         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
6098         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
6099         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
6100         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
6101         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
6102         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
6103         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
6104         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
6105         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
6106         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
6107         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
6108         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
6109         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
6110         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
6111         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
6112         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
6113         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
6114         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
6115         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
6116         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
6117         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
6118         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
6119         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
6120         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
6121         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
6122         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
6123         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
6124         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
6125         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
6126         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
6127         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
6128         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
6129         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
6130         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
6131         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
6132         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
6133         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
6134         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
6135         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
6136         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
6137         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
6138         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
6139         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
6140         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
6141         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
6142         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
6143         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
6144         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
6145         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
6146         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
6147         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
6148         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
6149         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
6150         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
6151         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
6152         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
6153         (__isnanf): Likewise.
6154         (__isinf_ns): Likewise.
6155         (__isinf_nsf): Likewise.
6156         (__finite): Likewise.
6157         (__finitef): Likewise.
6158         (__ieee754_sqrt): Define as macro.
6159         (__ieee754_sqrtf): Define as macro.
6160         (__ieee754_sqrtl): Define as macro.
6161         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
6162         inlined copy.
6163         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
6164         __FINITE_MATH_ONLY__ consistent.
6165         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
6167 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
6169         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
6170         of rawmemchr.
6172         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
6174 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
6176         * po/ja.po: Update from translation team.
6178 2011-10-08  Roland McGrath  <roland@hack.frob.com>
6180         * locale/programs/locarchive.c (prepare_address_space): New function.
6181         (create_archive, enlarge_archive, open_archive): Use it.
6183         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
6184         inside [SHARED], where it is used.
6186         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
6188         * nss/getent.c (netgroup_keys): Remove unused variable.
6189         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
6191 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
6193         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
6194         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
6195         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
6196         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
6197         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
6198         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
6199         * math/Makefile (libm-calls): Add s_isinf_ns.
6200         * math/divtc3.c: Use __isinf_nsl instead of isinf.
6201         * math/multc3.c: Likewise.
6202         * math/s_casin.c: Likewise.
6203         * math/s_casinf.c: Likewise.
6204         * math/s_casinl.c: Likewise.
6205         * math/s_ccos.c: Likewise.
6206         * math/s_ccosf.c: Likewise.
6207         * math/s_ccosl.c: Likewise.
6208         * math/s_ctan.c: Likewise.
6209         * math/s_ctanf.c: Likewise.
6210         * math/s_ctanh.c: Likewise.
6211         * math/s_ctanhf.c: Likewise.
6212         * math/s_ctanhl.c: Likewise.
6213         * math/s_ctanl.c: Likewise.
6214         * math/w_fmod.c: Likewise.
6215         * math/w_fmodf.c: Likewise.
6216         * math/w_fmodl.c: Likewise.
6217         * math/w_remainder.c: Likewise.
6218         * math/w_remainderf.c: Likewise.
6219         * math/w_remainderl.c: Likewise.
6220         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
6221         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
6222         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
6223         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
6224         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
6225         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
6226         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
6227         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
6229         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
6230         of the number.
6231         * stdio-common/printf_fphex.c: Likewise.
6232         * stdio-common/printf_size.c: Likewise.
6234         * math/e_exp10.c: Include math_private.h using <...> not "...".
6235         * math/e_exp10f.c: Likewise.
6236         * math/e_exp10l.c: Likewise.
6237         * math/e_exp2l.c: Likewise.
6238         * math/e_j0l.c: Likewise.
6239         * math/e_j1l.c: Likewise.
6240         * math/e_jnl.c: Likewise.
6241         * math/e_lgammal_r.c: Likewise.
6242         * math/e_rem_pio2l.c: Likewise.
6243         * math/e_scalb.c: Likewise.
6244         * math/e_scalbf.c: Likewise.
6245         * math/e_scalbl.c: Likewise.
6246         * math/k_cosl.c: Likewise.
6247         * math/k_sinl.c: Likewise.
6248         * math/k_tanl.c: Likewise.
6249         * math/s_cacoshf.c: Likewise.
6250         * math/s_catan.c: Likewise.
6251         * math/s_catanf.c: Likewise.
6252         * math/s_catanh.c: Likewise.
6253         * math/s_catanhf.c: Likewise.
6254         * math/s_catanhl.c: Likewise.
6255         * math/s_catanl.c: Likewise.
6256         * math/s_ccosh.c: Likewise.
6257         * math/s_ccoshf.c: Likewise.
6258         * math/s_ccoshl.c: Likewise.
6259         * math/s_cexp.c: Likewise.
6260         * math/s_cexpf.c: Likewise.
6261         * math/s_cexpl.c: Likewise.
6262         * math/s_clog.c: Likewise.
6263         * math/s_clog10.c: Likewise.
6264         * math/s_clog10f.c: Likewise.
6265         * math/s_clog10l.c: Likewise.
6266         * math/s_clogf.c: Likewise.
6267         * math/s_clogl.c: Likewise.
6268         * math/s_csin.c: Likewise.
6269         * math/s_csinf.c: Likewise.
6270         * math/s_csinh.c: Likewise.
6271         * math/s_csinhf.c: Likewise.
6272         * math/s_csinhl.c: Likewise.
6273         * math/s_csinl.c: Likewise.
6274         * math/s_csqrt.c: Likewise.
6275         * math/s_csqrtf.c: Likewise.
6276         * math/s_csqrtl.c: Likewise.
6277         * math/s_ctan.c: Likewise.
6278         * math/s_ctanf.c: Likewise.
6279         * math/s_ctanh.c: Likewise.
6280         * math/s_ctanhf.c: Likewise.
6281         * math/s_ctanhl.c: Likewise.
6282         * math/s_ctanl.c: Likewise.
6283         * math/s_ldexp.c: Likewise.
6284         * math/s_ldexpf.c: Likewise.
6285         * math/s_ldexpl.c: Likewise.
6286         * math/s_significand.c: Likewise.
6287         * math/s_significandf.c: Likewise.
6288         * math/s_significandl.c: Likewise.
6289         * math/w_acos.c: Likewise.
6290         * math/w_acosf.c: Likewise.
6291         * math/w_acosh.c: Likewise.
6292         * math/w_acoshf.c: Likewise.
6293         * math/w_acoshl.c: Likewise.
6294         * math/w_acosl.c: Likewise.
6295         * math/w_asin.c: Likewise.
6296         * math/w_asinf.c: Likewise.
6297         * math/w_asinl.c: Likewise.
6298         * math/w_atan2.c: Likewise.
6299         * math/w_atan2f.c: Likewise.
6300         * math/w_atan2l.c: Likewise.
6301         * math/w_atanh.c: Likewise.
6302         * math/w_atanhf.c: Likewise.
6303         * math/w_atanhl.c: Likewise.
6304         * math/w_cosh.c: Likewise.
6305         * math/w_coshf.c: Likewise.
6306         * math/w_coshl.c: Likewise.
6307         * math/w_dremf.c: Likewise.
6308         * math/w_exp10.c: Likewise.
6309         * math/w_exp10f.c: Likewise.
6310         * math/w_exp10l.c: Likewise.
6311         * math/w_exp2.c: Likewise.
6312         * math/w_exp2f.c: Likewise.
6313         * math/w_fmod.c: Likewise.
6314         * math/w_fmodf.c: Likewise.
6315         * math/w_fmodl.c: Likewise.
6316         * math/w_hypot.c: Likewise.
6317         * math/w_hypotf.c: Likewise.
6318         * math/w_hypotl.c: Likewise.
6319         * math/w_j0.c: Likewise.
6320         * math/w_j0f.c: Likewise.
6321         * math/w_j0l.c: Likewise.
6322         * math/w_j1.c: Likewise.
6323         * math/w_j1f.c: Likewise.
6324         * math/w_j1l.c: Likewise.
6325         * math/w_jn.c: Likewise.
6326         * math/w_jnf.c: Likewise.
6327         * math/w_jnl.c: Likewise.
6328         * math/w_lgamma.c: Likewise.
6329         * math/w_lgamma_r.c: Likewise.
6330         * math/w_lgammaf.c: Likewise.
6331         * math/w_lgammaf_r.c: Likewise.
6332         * math/w_lgammal.c: Likewise.
6333         * math/w_lgammal_r.c: Likewise.
6334         * math/w_log.c: Likewise.
6335         * math/w_log10.c: Likewise.
6336         * math/w_log10f.c: Likewise.
6337         * math/w_log10l.c: Likewise.
6338         * math/w_log2.c: Likewise.
6339         * math/w_log2f.c: Likewise.
6340         * math/w_log2l.c: Likewise.
6341         * math/w_logf.c: Likewise.
6342         * math/w_logl.c: Likewise.
6343         * math/w_pow.c: Likewise.
6344         * math/w_powf.c: Likewise.
6345         * math/w_powl.c: Likewise.
6346         * math/w_remainder.c: Likewise.
6347         * math/w_remainderf.c: Likewise.
6348         * math/w_remainderl.c: Likewise.
6349         * math/w_scalb.c: Likewise.
6350         * math/w_scalbf.c: Likewise.
6351         * math/w_scalbl.c: Likewise.
6352         * math/w_sinh.c: Likewise.
6353         * math/w_sinhf.c: Likewise.
6354         * math/w_sinhl.c: Likewise.
6355         * math/w_sqrt.c: Likewise.
6356         * math/w_sqrtf.c: Likewise.
6357         * math/w_sqrtl.c: Likewise.
6358         * math/w_tgamma.c: Likewise.
6359         * math/w_tgammaf.c: Likewise.
6360         * math/w_tgammal.c: Likewise.
6362         * po/ja.po: Update from translation team.
6364 2011-09-29  Andreas Jaeger  <aj@suse.de>
6366         [BZ #13179]
6367         * sunrpc/netname.c (netname2host): Fix logic.
6369         [BZ #6779]
6370         [BZ #6783]
6371         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
6372         correctly.
6373         * math/w_remainder.c (__remainder): Likewise.
6374         * math/w_remainderf.c (__remainderf): Likewise.
6375         * math/libm-test.inc (remainder_test): Add test cases.
6377 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6379         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
6380         sdiv_qrnnd.
6382 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
6384         * string/test-memcmp.c: Avoid unncessary #defines.
6385         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
6387 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6389         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
6390         Use new sse2 version for core i3 - i7 as it's faster
6391         than sse42 version.
6392         (bit_Prefer_PMINUB_for_stringop): New.
6393         * sysdeps/x86_64/rawmemchr.S: Update.
6394         Replace with faster SSE2 version.
6395         * sysdeps/x86_64/memrchr.S: New file.
6396         * sysdeps/x86_64/memchr.S: Update.
6397         Replace with faster SSE2 version.
6399 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
6401         * elf/dl-load.c (lose): Add cast to avoid warning.
6403 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
6405         * po/ca.po: Update from translation team.
6407         * inet/getnetgrent_r.c: Hook up nscd.
6408         * nscd/Makefile (routines): Add nscd_netgroup.
6409         (nscd-modules): Add netgroupcache.
6410         (CFLAGS-netgroupcache.c): Define.
6411         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
6412         (cache_search): Add const to second parameter.
6413         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
6414         INNETGR.
6415         (dbs): Add netgrdb entry.
6416         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
6417         (verify_persistent_db): Handle netgrdb.
6418         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
6419         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
6420         GETFDNETGR.
6421         (netgroup_response_header): Define.
6422         (innetgroup_response_header): Define.
6423         (datahead): Add netgroup_response_header and innetgroup_response_header
6424         elements.
6425         * nscd/nscd.conf: Add entries for netgroup cache.
6426         * nscd/nscd.h (dbtype): Add netgrdb.
6427         (_PATH_NSCD_NETGROUP_DB): Define.
6428         (netgroup_iov_disabled): Declare.
6429         (xmalloc, xcalloc, xrealloc): Move declarations here.
6430         (cache_search): Adjust prototype.
6431         Add netgroup-related prototypes.
6432         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
6433         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
6434         (__nscd_innetgr): Declare.
6435         * nscd/selinux.c (perms): Use access_vector_t as element type and
6436         add netgroup-related initializers.
6437         * nscd/netgroupcache.c: New file.
6438         * nscd/nscd_netgroup.c: New file.
6439         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
6440         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
6441         For four parameters use innetgr.
6442         * nss/nss_files/files-init.c: Add definition and callback for netgr.
6443         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
6444         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
6445         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
6447         * nscd/connections.c (register_traced_file): Don't register file
6448         for disabled databases.
6450 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
6452         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
6454         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
6455         from tree and freeing node.
6457 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
6459         * nss/nsswitch.c (__nss_database_lookup): Handle
6460         nss_parse_service_list out of memory case.
6462 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
6464         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
6465         out of memory case.
6467 2011-10-04  Andreas Schwab  <schwab@redhat.com>
6469         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
6470         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
6471         pass it down.
6472         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
6473         elf_machine_rela, elf_machine_lazy_rel.
6474         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
6475         (ELF_DYNAMIC_DO_REL): Likewise.
6476         (ELF_DYNAMIC_DO_RELA): Likewise.
6477         (ELF_DYNAMIC_RELOCATE): Likewise.
6478         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
6479         to ELF_DYNAMIC_DO_REL.
6480         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
6481         (dl_main): In trace mode always set __RTLD_NOIFUNC.
6482         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
6483         elf_machine_rela.
6484         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
6485         skip_ifunc, don't call ifunc function if non-zero.
6486         (elf_machine_rela): Likewise.
6487         (elf_machine_lazy_rel): Likewise.
6488         (elf_machine_lazy_rela): Likewise.
6489         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
6490         (elf_machine_lazy_rel): Likewise.
6491         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
6492         Likewise.
6493         (elf_machine_lazy_rel): Likewise.
6494         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
6495         Likewise.
6496         (elf_machine_lazy_rel): Likewise.
6497         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
6498         (elf_machine_lazy_rel): Likewise.
6499         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
6500         (elf_machine_lazy_rel): Likewise.
6501         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
6502         (elf_machine_lazy_rel): Likewise.
6503         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
6504         (elf_machine_lazy_rel): Likewise.
6505         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
6506         (elf_machine_lazy_rel): Likewise.
6507         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
6508         (elf_machine_lazy_rel): Likewise.
6510 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
6512         * nss/nss_files/files-init.c (_nss_files_init): Use static
6513         initialization for all the *_traced_file variables.
6515 2011-09-28  Andreas Schwab  <schwab@redhat.com>
6517         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
6519 2011-09-27  Roland McGrath  <roland@hack.frob.com>
6521         [BZ #13226]
6522         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
6524 2011-09-27  Andreas Schwab  <schwab@redhat.com>
6526         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
6527         Reread the line before reparsing it.
6529 2011-09-26  Andreas Schwab  <schwab@redhat.com>
6531         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
6533 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
6534             Maxim Kuvyrkov  <maxim@codesourcery.com>
6535             Joseph Myers  <joseph@codesourcery.com>
6537         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
6538         if needed for __stack_chk_guard.
6540 2011-09-19  Roland McGrath  <roland@hack.frob.com>
6542         * sysdeps/posix/spawni.c (script_execute): Always define it.
6543         It will be optimized away if unused.
6544         (maybe_script_execute): New function.
6545         (__spawni): Call it.
6547         * Makerules: Don't include tls.make.
6548         (config-tls): Always set to thread.
6549         * tls.make.c: File removed.
6551 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
6553         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
6554         * config.make.in (CPPFLAGS-config): New substituted variable.
6556 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
6558         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
6560         [BZ #13192]
6561         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
6562         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
6564 2011-09-15  Roland McGrath  <roland@hack.frob.com>
6566         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
6567         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
6568         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
6569         (CALL_FAIL): Likewise.
6570         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
6571         (CALL_FAIL): Macro removed.
6572         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
6574 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
6576         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
6577         for __FINITE_MATH_ONLY__ == 1.
6579 2011-09-15  Andreas Schwab  <schwab@redhat.com>
6581         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
6582         __ieee754_sqrt instead of sqrt.
6583         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
6584         __ieee754_sqrtf instead of sqrtf.
6585         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
6586         __floorf instead of floorf.
6587         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
6588         __floorf, __truncf instead of floorf, truncf.
6590 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
6592         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
6594         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
6595         __extern_always_inline.
6596         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
6597         32-bit.
6599 2011-09-14  Andreas Schwab  <schwab@redhat.com>
6601         * elf/rtld.c (dl_main): Also relocate in dependency order when
6602         doing symbol dependency testing.
6604 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
6606         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
6607         Always define `refsym'.
6609 2011-09-13  Andreas Schwab  <schwab@redhat.com>
6611         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
6612         (__FD_ELT): Renamed from __FDELT.
6613         * misc/bits/select2.h (__FD_ELT): Likewise.
6614         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
6615         __FD_MASK instead of __FDELT, __FDMASK.
6616         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
6617         Likewise.
6618         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
6619         Likewise.
6621         * elf/Makefile (gen-ldd): Fix pattern.
6623         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
6624         (init_tls): Likewise.
6626 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
6628         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
6630 2011-09-12  Andreas Schwab  <schwab@redhat.com>
6632         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
6633         `struct cmsghdr *' instead of `void *'.
6634         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
6635         Likewise.
6637 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
6639         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
6640         if non-absolute.
6641         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
6642         ldd_rewrite_script.
6644 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
6646         * configure.in: Remove --with-tls option.
6647         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
6648         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
6649         out in case it is missing.
6650         * sysdeps/ia64/elf/configure.in: Likewise.
6651         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
6652         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
6653         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
6654         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
6655         * sysdeps/sh/elf/configure.in: Likewise.
6656         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
6657         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
6658         * sysdeps/x86_64/elf/configure.in: Likewise.
6659         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
6660         * sysdeps/mach/hurd/tls.h: Likewise.
6662         [BZ #13067]
6663         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
6665         [BZ #13090]
6666         * configure.in: Fix use of AC_INIT.
6668         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
6670 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
6672         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
6673         __set_errno.
6674         * malloc/hooks.c: Likewise.
6676         [BZ #11929]
6677         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
6678         variables statically.
6679         (narenas): Initialize.
6680         (list_lock): Initialize.
6681         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
6682         initializtion of main_arena and list_lock.  Small cleanups.
6683         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
6684         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
6685         Add initializers to main_arena and mp_.
6686         (malloc_state): Remove pagesize member.  Change all users to use
6687         GLRO(dl_pagesize).
6689         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
6690         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
6691         is always initialized.
6693         * malloc/malloc.c: Removed unused configurations and dead code.
6694         * malloc/arena.c: Likewise.
6695         * malloc/hooks.c: Likewise.
6696         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
6698         * include/tls.h: Removed.  USE___THREAD must always be defined.
6699         * bits/libc-tsd.h: Don't handle !USE___THREAD.
6700         * elf/dl-libc.c: Likewise.
6701         * elf/dl-tsd.c: Likewise.
6702         * include/errno.h: Likewise.
6703         * include/netdb.h: Likewise.
6704         * include/resolv.h: Likewise.
6705         * inet/herrno-loc.c: Likewise.
6706         * inet/herrno.c: Likewise.
6707         * malloc/arena.c: Likewise.
6708         * malloc/hooks.c: Likewise.
6709         * malloc/malloc.c: Likewise.
6710         * resolv/res-state.c: Likewise.
6711         * resolv/res_libc.c: Likewise.
6712         * sysdeps/i386/dl-machine.h: Likewise.
6713         * sysdeps/ia64/dl-machine.h: Likewise.
6714         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
6715         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
6716         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
6717         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
6718         * sysdeps/sh/dl-machine.h: Likewise.
6719         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
6720         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
6721         * sysdeps/unix/i386/sysdep.S: Likewise.
6722         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
6723         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
6724         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
6725         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
6726         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
6727         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
6728         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
6729         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
6730         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
6731         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
6732         * sysdeps/unix/x86_64/sysdep.S: Likewise.
6733         * sysdeps/x86_64/dl-machine.h: Likewise.
6734         * tls.make.c: Likewise.
6736         * configure.in: Remove --with-__thread option.  Make tests for
6737         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
6738         tls_model attribute fail if no support is available.  Remove
6739         USE_IN_LIBIO.
6740         * Makeconfig: Adjust for dropped configure option.  All features are
6741         now mandatory.
6742         * Makerules: Likewise.
6743         * Versions.def: Likewise.
6744         * argp/argp-fmtstream.c: Likewise.
6745         * argp/argp-fmtstream.h: Likewise.
6746         * argp/argp-help.c: Likewise.
6747         * assert/assert.c: Likewise.
6748         * config.h.in: Likewise.
6749         * config.make.in: Likewise.
6750         * configure: Likewise.
6751         * configure.in: Likewise.
6752         * csu/Versions: Likewise.
6753         * csu/init.c: Likewise.
6754         * elf/tst-audit2.c: Likewise.
6755         * elf/tst-tls10.c: Likewise.
6756         * elf/tst-tls10.h: Likewise.
6757         * elf/tst-tls11.c: Likewise.
6758         * elf/tst-tls12.c: Likewise.
6759         * elf/tst-tls14.c: Likewise.
6760         * elf/tst-tlsmod11.c: Likewise.
6761         * elf/tst-tlsmod12.c: Likewise.
6762         * elf/tst-tlsmod13.c: Likewise.
6763         * elf/tst-tlsmod13a.c: Likewise.
6764         * elf/tst-tlsmod14a.c: Likewise.
6765         * elf/tst-tlsmod15b.c: Likewise.
6766         * elf/tst-tlsmod16a.c: Likewise.
6767         * elf/tst-tlsmod16b.c: Likewise.
6768         * elf/tst-tlsmod7.c: Likewise.
6769         * elf/tst-tlsmod8.c: Likewise.
6770         * elf/tst-tlsmod9.c: Likewise.
6771         * gmon/gmon.c: Likewise.
6772         * grp/fgetgrent_r.c: Likewise.
6773         * grp/putgrent.c: Likewise.
6774         * hurd/fopenport.c: Likewise.
6775         * include/libc-symbols.h: Likewise.
6776         * include/tls.h: Likewise.
6777         * intl/gettextP.h: Likewise.
6778         * intl/loadinfo.h: Likewise.
6779         * locale/global-locale.c: Likewise.
6780         * locale/localeinfo.h: Likewise.
6781         * mach/devstream.c: Likewise.
6782         * malloc/arena.c: Likewise.
6783         * malloc/set-freeres.c: Likewise.
6784         * misc/err.c: Likewise.
6785         * misc/getttyent.c: Likewise.
6786         * misc/mntent_r.c: Likewise.
6787         * posix/getopt.c: Likewise.
6788         * posix/wordexp.c: Likewise.
6789         * pwd/fgetpwent_r.c: Likewise.
6790         * resolv/Versions: Likewise.
6791         * resolv/res_hconf.c: Likewise.
6792         * shadow/fgetspent_r.c: Likewise.
6793         * shadow/putspent.c: Likewise.
6794         * stdio-common/printf_fphex.c: Likewise.
6795         * stdio-common/tmpfile.c: Likewise.
6796         * stdlib/abort.c: Likewise.
6797         * stdlib/fmtmsg.c: Likewise.
6798         * sunrpc/auth_unix.c: Likewise.
6799         * sunrpc/clnt_perr.c: Likewise.
6800         * sunrpc/clnt_tcp.c: Likewise.
6801         * sunrpc/clnt_udp.c: Likewise.
6802         * sunrpc/clnt_unix.c: Likewise.
6803         * sunrpc/openchild.c: Likewise.
6804         * sunrpc/svc_simple.c: Likewise.
6805         * sunrpc/svc_tcp.c: Likewise.
6806         * sunrpc/svc_udp.c: Likewise.
6807         * sunrpc/svc_unix.c: Likewise.
6808         * sunrpc/xdr.c: Likewise.
6809         * sunrpc/xdr_array.c: Likewise.
6810         * sunrpc/xdr_rec.c: Likewise.
6811         * sunrpc/xdr_ref.c: Likewise.
6812         * sunrpc/xdr_stdio.c: Likewise.
6814 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
6816         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
6818 2011-07-03  Andreas Jaeger  <aj@suse.de>
6820         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
6821         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
6822         regenerate with gen-libm-tests.pl.
6824 2010-05-12  Petr Baudis  <pasky@suse.cz>
6826         [BZ #11589]
6827         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
6828         around j0() zero points by switching to j1().
6829         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
6830         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
6831         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
6832         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
6834 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
6836         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
6837         instead of 0.
6838         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
6839         instead of 0.                              .
6840         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
6841         Patch in part by Pavel Roskin <proski@gnu.org>.
6843         [BZ #13138]
6844         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
6845         realloc.
6846         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
6847         Free memory block if necessary.
6849         [BZ #12847]
6850         * libio/genops.c (INTDEF): For string streams the _lock pointer can
6851         be NULL.  Don't lock in this case.
6853 2011-09-09  Roland McGrath  <roland@hack.frob.com>
6855         * elf/elf.h (ELFOSABI_GNU): New macro.
6856         (ELFOSABI_LINUX): Define to that.
6858 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
6860         * string/strncat.c (strncat): Undef the symbol in case it has been
6861         defined in bits/string.h.
6863 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
6865         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
6867         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
6868         link map.
6870 2011-08-17  Andreas Jaeger  <aj@suse.de>
6872         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
6874 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
6875             Ian Lance Taylor  <iant@google.com>
6877         * math/libm-test.inc (lround_test): New testcase.
6878         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
6880 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
6882         * Makefile: Remove support for automatic cvs check-ins.
6883         * Makerules: Likewise.
6884         * config.make.in: Likewise.
6885         * configure.in: Likewise.
6886         * intl/Makefile: Likewise.
6887         * locale/Makefile: Likewise.
6888         * po/Makefile: Likewise.
6889         * posix/Makefile: Likewise.
6890         * sysdeps/gnu/Makefile: Likewise.
6891         * sysdeps/mach/hurd/Makefile: Likewise.
6892         * sysdeps/sparc/sparc32/Makefile: Likewise.
6894         [BZ #13118]
6895         * posix/Makefile (bug-regex32-ENV): Define.
6896         Patch by John Stanley <jpsinthemix@verizon.net>.
6898         * misc/Makefile (headers): Add bits/select2.h.
6899         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
6900         * misc/bits/select2.h: New file.
6901         * include/bits/select2.h: New file.
6902         * debug/Makefile (routines): Add fdelt_chk.
6903         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
6904         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
6905         FD_ISSET.
6906         * debug/fdelt_chk.c: New file.
6908         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
6909         * wcsmbs/test-wmemcmp.c: Likewise.
6910         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
6911         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
6913 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6915         * string/Makefile (strop-tests): Add memcmp.
6916         * string/test-wmemcmp.c: New file.
6917         * string/test-memcmp.c: Add wmemcmp support.
6919 2011-09-08  Roland McGrath  <roland@hack.frob.com>
6921         [BZ #13153]
6922         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
6923         2011-07-19 change.
6925         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
6926         garbage value in a __mach_port_mod_refs call in the cases of the
6927         task-self and thread-self ports.
6929 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6931         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
6933 2011-09-08  Andreas Schwab  <schwab@redhat.com>
6935         * elf/dl-load.c (lose): Check for non-null L.
6937 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
6939         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
6941         * elf/dl-libc.c (dlerror_run): Pass back error code from
6942         dl_catch_error.
6944         [BZ #13123]
6945         * elf/dl-load.c (lose): Free l_origin if it is valid.
6947         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
6948         names.
6949         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
6950         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
6951         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
6952         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
6953         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
6954         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
6956 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6958         * sysdeps/powerpc/fpu/e_hypot.c: New file.
6959         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
6960         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
6961         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
6962         * sysdeps/powerpc/fpu/k_cosf.c: New file.
6963         * sysdeps/powerpc/fpu/k_sinf.c: New file.
6964         * sysdeps/powerpc/fpu/s_cosf.c: New file.
6965         * sysdeps/powerpc/fpu/s_sinf.c: New file.
6966         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
6967         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
6969 2011-08-15  Alan Modra  <amodra@gmail.com>
6971         [BZ #13092]
6972         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
6973         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
6974         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
6975         ppc_mcount to static-only-routines.
6976         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
6977         __mcount_internal.
6978         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
6979         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
6981 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
6983         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
6984         for finite and infinity parameters.
6986 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
6988         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
6989         and add nop instructions for throughput optimization.
6990         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
6992 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
6994         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
6995         aligned copy for power7 with vector-scalar instructions.
6996         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
6998 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
7000         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
7001         AVX check.
7003 2011-09-07  Andreas Schwab  <schwab@redhat.com>
7005         [BZ #13144]
7006         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
7007         last change.
7009 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
7011         * sysdeps/unix/sysv/linux/x86_64/init-first.c
7012         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
7013         syscall wrapper around clock_gettime in __vdso_clock_gettime.
7014         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
7015         clock_gettime.
7017 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
7019         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
7020         Forgot to demangle the pointer.
7022         * sysdeps/i386/sysdep.h: Define atom_text_section.
7023         * sysdeps/x86_64/sysdep.h: Likewise.
7024         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
7025         section with atom_text_section.
7026         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
7027         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
7028         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
7029         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
7030         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
7032         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
7033         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
7034         already be defined.  Change to take two parameters and don't assign
7035         result to variable.  Adjust all users.
7036         Define INTERNAL_GETTIME if not already defined.
7037         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
7038         call.
7039         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
7040         HAVE_CLOCK_GETTIME_VSYSCALL.
7041         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
7043         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
7044         gettimeofday vsyscall, just use time.
7046 2011-09-06  Andreas Schwab  <schwab@redhat.com>
7048         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
7049         <errno.h>.
7051 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
7053         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
7054         syscall on x86-64.
7055         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
7056         syscall.
7057         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
7058         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
7059         syscall if possible.
7061 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
7063         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
7064         e_ident.  Don't pass to find_mapsXX.
7065         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
7067 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
7069         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
7070         strchr-sse2-no-bsf strrchr-sse2-no-bsf
7071         * sysdeps/x86_64/multiarch/strchr.S: Update.
7072         Check bit_slow_BSF bit.
7073         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
7074         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
7075         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
7077 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
7079         [BZ #13134]
7080         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
7081         before glibc 2.15.
7082         (tryshell): Define.
7083         (__spawni): Change last parameter to be flag.  Test
7084         SPAWN_XFLAGS_USE_PATH flag to use path or not.
7085         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
7086         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
7087         * posix/spawni.c: Likewise.
7088         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
7089         * posix/spawnp.c: Likewise.  Change normal version to use
7090         SPAWN_XFLAGS_USE_PATH.
7091         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
7092         SPAWN_XFLAGS_TRY_SHELL.
7094         [BZ #13150]
7095         * posix/glob.h: Remove gcc 1.x support.
7097         [BZ #13068]
7098         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
7100 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
7102         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
7103         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
7104         strrchr-sse2-bsf
7105         * sysdeps/i386/i686/multiarch/strchr.S: New file.
7106         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
7107         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
7108         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
7109         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
7110         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
7112 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7114         * sysdeps/x86_64/wcscmp.S: New file.
7116         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
7117         wcscmp-c wcscmp-sse2
7118         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
7119         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
7120         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
7121         * wcsmbs/wcscmp.c: Allow renaming.
7123 2011-09-05  David S. Miller  <davem@davemloft.net>
7125         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
7126         stack slot, rather than the struct return pointer slot.
7127         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
7128         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
7129         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
7130         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
7132 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
7134         * po/ja.po: Update from translation team.
7136         [BZ #13144]
7137         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
7138         kernel in 64-bit binaries.
7140 2011-09-01  David S. Miller  <davem@davemloft.net>
7142         * elf/elf.h (HWCAP_SPARC_*): Move to..
7143         * sysdeps/sparc/sysdep.h: this new file and add new values.
7144         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
7145         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
7146         _DL_HWCAP_COUNT to 24.
7147         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
7148         entries.
7149         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
7150         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
7151         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
7152         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
7153         instead of magic constants.
7154         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
7156 2011-08-31  David S. Miller  <davem@davemloft.net>
7158         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
7159         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
7160         Reimplement to do errno handling inline.
7161         (SYSCALL_ERROR_HANDLER): New macro.
7162         (__SYSCALL_STRING): Do not do errno handling in asm.
7163         (__CLONE_SYSCALL_STRING): Delete.
7164         (__INTERNAL_SYSCALL_STRING): Delete.
7165         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
7166         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
7167         (PSEUDO): Reimplement to do errno handling inline.
7168         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
7169         (SYSCALL_ERROR_HANDLER): New macro.
7170         (__SYSCALL_STRING): Do not do errno handling in asm.
7171         (__CLONE_SYSCALL_STRING): Delete.
7172         (__INTERNAL_SYSCALL_STRING): Delete.
7173         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
7174         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
7175         i386.
7176         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
7177         (inline_syscall*): Add 'err' argument.
7178         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
7179         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
7180         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
7181         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
7183         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
7184         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
7186 2011-08-30  Andreas Schwab  <schwab@redhat.com>
7188         * elf/rtld.c (dl_main): Relocate objects in dependency order.
7190 2011-08-29  Jiri Olsa <jolsa@redhat.com>
7192         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
7193         directive.
7195 2011-08-24  David S. Miller  <davem@davemloft.net>
7197         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
7199 2011-08-24  Andreas Schwab  <schwab@redhat.com>
7201         * elf/Makefile: Add rules to build and run unload8 test.
7202         * elf/unload8.c: New file.
7203         * elf/unload8mod1.c: New file.
7204         * elf/unload8mod1x.c: New file.
7205         * elf/unload8mod2.c: New file.
7206         * elf/unload8mod3.c: New file.
7208         * elf/dl-close.c (_dl_close_worker): Reset private search list if
7209         it wasn't used.
7211 2011-08-23  David S. Miller  <davem@davemloft.net>
7213         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
7214         subtract stack bias.
7215         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
7216         %sp not %fp in calculations.
7217         (_JMPBUF_UNWINDS_ADJ): Likewise.
7219         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
7220         (aio_suspend): Call it to force an exception region around the
7221         AIO_MISC_WAIT() invocation.
7223 2011-08-23  Andreas Schwab  <schwab@redhat.com>
7225         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
7226         backslash.
7228 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
7230         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
7231         protection macro.
7232         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
7233         and <dl-machine.h>.
7234         (Elf64_FuncDesc): Remove.
7236 2011-08-22  David S. Miller  <davem@davemloft.net>
7238         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
7239         sigaltstack check, add missing cfi directives.
7240         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
7241         missing cfi directives, and sigaltstack handling.
7243 2011-08-16  Andreas Schwab  <schwab@redhat.com>
7245         [BZ #11724]
7246         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
7247         object is seen twice.
7248         * elf/dl-fini.c (_dl_sort_fini): Likewise.
7250         * elf/Makefile (distribute): Add tst-initorder2.c.
7251         (tests): Add tst-initorder2.
7252         (modules-names): Add tst-initorder2a tst-initorder2b
7253         tst-initorder2c tst-initorder2d.  Add rules to build them.
7254         ($(objpfx)tst-initorder2.out): New rule.
7255         * elf/tst-initorder2.c: New file.
7256         * elf/tst-initorder2.exp: New file.
7258 2011-08-22  Andreas Schwab  <schwab@redhat.com>
7260         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
7262         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
7263         dependencies back to end of function.
7265         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
7266         $(elfobjdir)/ld.so.
7268 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
7270         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
7271         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
7272         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
7273         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
7274         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
7275         of __vdso_gettimeofday.
7276         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
7277         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
7278         attribute_hidden.
7279         (_libc_vdso_platform_setup): Remove initialization of
7280         __vdso_gettimeofday and __vdso_time.
7282 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
7284         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
7285         and fgetc_unlocked.
7286         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
7287         getc_unlocked.
7289         * elf/dl-open.c (add_to_global): Report additions to the global scope
7290         for LD_DEBUG=scopes.
7291         (dl_open_worker): Also print scope of newly loaded dependencies.
7292         (_dl_show_scope): Indicate if there is no scope.
7294         [BZ #13114]
7295         * stdio-common/Makefile (tests): Add bug24.
7296         * stdio-common/bug24.c: New file.
7298 2011-08-19  Andreas Jaeger  <aj@suse.de>
7300         [BZ #13114]
7301         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
7302         non-existant file when using close-on-exec mode.
7304 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
7306         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
7307         the very first instruction.
7309         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
7310         the CFI state in the end.
7311         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
7312         inclusion of dl-trampoline.h.
7313         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
7315 2011-08-19  Andreas Schwab  <schwab@redhat.com>
7317         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
7318         expectations for long double.
7320         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
7321         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
7323 2011-08-14  David S. Miller  <davem@davemloft.net>
7325         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
7326         artificual limit depends upon the system page size.
7328 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
7330         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
7331         * resolv/Makefile: Define CFLAGS-libresolv.
7333 2011-08-17  Andreas Schwab  <schwab@redhat.com>
7335         * nss/makedb.c (compute_tables): Make variables used in nested
7336         function static.
7338 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
7340         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
7341         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
7342         if buffer was too small.
7344         * elf/pldd.c (main): Attach to all threads in the process.
7345         Rewrite /proc handling to use *at functions.
7347 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
7349         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
7350         specifies first scope to show.
7351         (dl_open_worker): Update callers.  Move printing scope of new
7352         object to before the relocation.
7353         * elf/rtld.c (dl_main): Update _dl_show_scope call.
7354         * sysdeps/generic/ldsodefs.h: Update declaration.
7356         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
7357         string for the scope number.
7359 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
7361         * nscd/servicescache.c (cache_addserv): Make sure written is always
7362         initialized.
7364 2011-08-14  Roland McGrath  <roland@hack.frob.com>
7366         * sysdeps/i386/i486/bits/atomic.h
7367         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
7368         statement expression, so as to suppress "set but not used" warning.
7369         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
7371         * string/strncat.c (STRNCAT): Use prototype definition.
7373         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
7374         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
7375         -Iprograms here.
7376         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
7377         (localedef-modules): Add localedef.
7378         (locale-modules): Add locale.
7380         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
7381         * elf/rtld.c (dl_main): Invert order of assignment in last change,
7382         to avoid a warning.
7384 2011-08-14  David S. Miller  <davem@davemloft.net>
7386         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
7387         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
7389 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
7391         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
7392         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
7393         * elf/rtld.c (dl_main): Set l_name of vDSO.
7394         Call _dl_show_scope when DL_DEBUG_SCOPES.
7395         (process_dl_debug): Recognize scopes flag and also set it for all.
7396         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
7397         Declare _dl_show_scope.
7399         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
7400         (do_dlopen): Pass caller_dlopen to dl_open.
7401         (__libc_dlopen_mode): Initialize caller_dlopen.
7403         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
7404         of libc.  Make tolower call locale-independent.  Optimize a bit by
7405         using isdigit instead of isalnum.
7406         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
7408 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
7410         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
7411         was a dependency or dynamically loaded.
7413 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
7415         * intl/l10nflist.c: Allow architecture-specific pop function.
7416         * sysdeps/x86_64/l10nflist.c: New file.
7418         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
7419         classification.
7421 2011-08-10  Andreas Schwab  <schwab@redhat.com>
7423         * include/dirent.h: Add libc_hidden_proto for scandirat and
7424         scandirat64.  Don't declare __scandirat64.
7425         * dirent/scandirat.c: Add libc_hidden_def.
7426         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
7427         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
7429 2011-08-10  David S. Miller  <davem@davemloft.net>
7431         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
7432         enum.
7433         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
7434         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
7435         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
7437 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
7439         * Versions.def [libc]: Add GLIBC_2.15.
7440         * dirent/Makefile (routines): Add scandirat and scandirat64.
7441         * dirent/Versions [libc]: Export scandirat and scandirat64 for
7442         GLIBC_2.15.
7443         * dirent/dirent.h: Declare scandirat and scandirat64.
7444         * dirent/scandirat.c: New file.
7445         * dirent/scandirat64.c: New file.
7446         * sysdeps/wordsize-64/scandirat.c: New file.
7447         * sysdeps/wordsize-64/scandirat64.c: New file.
7448         * dirent/opendir.c: Define opendirat.
7449         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
7450         using scandirat.
7451         * dirent/scandir64.c: Adjust for scandir.c change.
7452         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
7453         __scandirat64, and __scandir_cancel_handler.
7454         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
7455         additional parameter and use openat instead of open (outside of ld.so).
7456         Add new __opendir as wrapper around __opendirat.
7457         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
7458         here without requiring old scandirat implementation.
7460 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
7462         * dirent/scandir.c (cancel_handler): Renamed to
7463         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
7464         defined.  Adjust users.
7465         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
7466         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
7468 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
7470         * string/test-string.h (IMPL): Use __STRING to expand name and then
7471         stringify it.
7473         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
7474         of cleanups.
7476 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7478         * string/Makefile: Update.
7479         (strop-tests): Append strncat.
7480         * string/test-wcscmp.c: New file.
7481         New comprehensive test for wcscmp.
7482         * string/test-strcmp.c: Update.
7483         (WIDE): New define.
7485 2011-07-22  Andreas Schwab  <schwab@redhat.com>
7487         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
7488         line.
7490 2011-07-26  Andreas Schwab  <schwab@redhat.com>
7492         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
7493         encoding to ACE if AI_IDN.
7495 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
7497         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
7498         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
7500 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
7502         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
7503         Fix overflow bug in strncat.
7504         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
7506         * string/test-strncat.c: Update.
7507         Add new tests for checking overflow bugs.
7509 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
7511         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
7512         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
7513         * sysdeps/i386/i686/multiarch/strcat.S: New file.
7514         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
7515         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
7516         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
7517         * sysdeps/i386/i686/multiarch/strncat.S: New file.
7518         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
7519         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
7521         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
7522         (USE_AS_STRCAT): Define.
7523         Add strcat and strncat support.
7524         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
7526 2011-07-25  Andreas Schwab  <schwab@redhat.com>
7528         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
7529         __n bigger than INT_MAX+1.
7530         (__strncmp_g): Likewise.
7532 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
7534         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
7535         * libio/stido.h: Likewise.
7537         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
7538         (AF_NFC): Define.
7539         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
7540         (AF_NFC): Define.
7542         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
7543         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
7544         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
7545         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
7546         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
7548         [BZ #13021]
7549         * scripts/test-installation.pl: Don't expect libnss_test1 to be
7550         installed.
7552         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
7553         typo.
7554         (_dl_x86_64_save_sse): Likewise.
7556 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
7558         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
7559         OSXSAVE.
7560         (_dl_x86_64_save_sse): Likewise.
7562         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
7564         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
7566 2011-07-21  Andreas Schwab  <schwab@redhat.com>
7568         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
7569         change.
7570         (_dl_x86_64_save_sse): Use correct AVX check.
7572 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7574         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
7575         bug in strncpy/strncat.
7576         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
7578 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
7580         * string/tester.c (test_strcat): Add tests for different alignments
7581         of source and destination.
7582         (test_strncat): Likewise.
7584 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
7586         [BZ #12852]
7587         * posix/glob.c (glob): Check passed in values before using them in
7588         expressions to avoid some overflows.
7589         (glob_in_dir): Likewise.
7591         [BZ #13007]
7592         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
7593         check for AVX enablement so that we don't crash with old kernels and
7594         new hardware.
7595         * elf/tst-audit4.c: Add same checks here.
7596         * elf/tst-audit6.c: Likewise.
7598         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
7600 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
7602         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
7604 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
7606         * po/cs.po: Update from translation team.
7607         * po/bg.po: Likewise.
7609 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
7611         * misc/sys/cdefs.h: Add support for const attribute.
7612         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
7613         to gnu_dev_{major,minor,makedev} functions.
7615 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
7617         * intl/dcigettext.c (get_output_charset): Add missing bracket.
7619 2011-07-20  Andreas Schwab  <schwab@redhat.com>
7621         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
7622         strlen results.
7624 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7626         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
7627         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
7628         register in order to avoid conflicts with the soft frame pointer
7629         being held in r11 when necessary.
7630         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
7631         (INTERNAL_VSYSCALL_NCS): Likewise.
7633 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
7635         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
7636         * elf/dl-fini.c (_dl_fini): Adjust caller.
7637         * elf/dl-close.c (_dl_close_worker): Likewise.
7638         * sysdeps/generic/ldsodefs.h: Adjust declaration.
7640 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
7642         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
7643         "aux_cache->nlibs < 0".
7645         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
7646         in the reload-count case.
7648 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
7650         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
7651         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
7652         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
7653         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
7654         * sysdeps/x86_64/multiarch/strcat.S: New file.
7655         * sysdeps/x86_64/multiarch/strncat.S: New file.
7656         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
7657         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
7658         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
7659         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
7660         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
7661         (USE_AS_STRCAT): Define.
7662         Add strcat and strncat support.
7663         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
7664         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
7665         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
7666         * string/strncat.c: Update.
7667         (USE_AS_STRNCAT): Define.
7668         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
7669         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
7670         and i7.
7671         * sysdeps/x86_64/multiarch/init-arch.h
7672         (bit_Prefer_PMINUB_for_stringop): New.
7673         (index_Prefer_PMINUB_for_stringop): Likewise.
7674         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
7675         bit_Prefer_PMINUB_for_stringop.
7677 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
7679         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
7680         buffer64.
7681         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
7682         of casting of buffer.
7683         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
7684         buffer32 and buffer64.
7685         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
7686         writes instead of casting of buffer.
7687         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
7688         buffer32.
7689         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
7690         casting of buffer.
7692 2011-07-19  Andreas Schwab  <schwab@redhat.com>
7694         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
7696 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
7698         * nscd/nscd.c (termination_handler): Don't do anything for a database
7699         if it has not yet been initialized.
7701 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
7703         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
7705 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
7707         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
7709 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
7711         * po/nl.po: Update from translation team.
7712         * po/sv.po: Likewise.
7714 2011-07-16  Roland McGrath  <roland@hack.frob.com>
7716         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
7717         now disallowed by GCC.
7719         * configure.in (use-default-link): Default to yes if a test -shared
7720         link meets our qualifications.
7721         * configure: Regenerated.
7723         * config.make.in (output-format): New variable.
7724         * configure.in: Check for ld --print-output-format support.
7725         * configure: Regenerated.
7726         * Makerules ($(common-objpfx)format.lds)
7727         [$(output-format) != unknown]: Just use $(output-format),
7728         instead of the linker-script munging.
7730 2011-07-14  Roland McGrath  <roland@hack.frob.com>
7732         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
7733         of $(common-objpfx)shlib.lds.
7734         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
7736         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
7737         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
7739         * configure.in (-z relro check): Adjust test code to add a large
7740         writable data section after it.
7741         * configure: Regenerated.
7743 2011-07-11  Roland McGrath  <roland@hack.frob.com>
7745         * configure.in (-z relro check): Fix test code to make the variable
7746         truly const.
7747         * configure: Regenerated.
7749 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
7751         * nscd/nscd.h (struct traced_file): Define.
7752         (struct database_dyn): Remove inotify_descr, reset_res, and filename
7753         elements.  Add traced_files.
7754         (inotify_fd): Declare.
7755         (register_traced_file): Declare.
7756         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
7757         (inotify_fd): Export.
7758         (resolv_conf_descr): Remove.
7759         (nscd_init): Move inotify descriptor creation to main.
7760         Don't register files for notification here.
7761         (register_traced_file): New function.
7762         (invalidate_cache): Don't use reset_res to determine whether to call
7763         res_init, go through the list of registered files.
7764         (main_loop_poll): The inotify descriptors are now stored in the
7765         structures for the traced files.
7766         (main_loop_epoll): Likewise
7767         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
7768         to __nss_disable_nscd.
7769         * nscd/cache.c (prune_cache): There is no single inotify descriptor
7770         for a database anymore.  Check the records for all the registered
7771         files instead.
7772         * nss/Makefile (libnss_files-routines): Add files-init.
7773         (libnss_db-routines): Add db-init.
7774         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
7775         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
7776         * nss/nss_db/db-init.c: New file.
7777         * nss/nss_files/files-init.c: New file.
7778         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
7779         __nss_lookup_function.
7780         (__nss_lookup_function): Call nss_load_library.
7781         (nss_load_all_libraries): New function.
7782         (__nss_disable_nscd): Take parameter with callback function for files
7783         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
7784         used for the cached services.
7785         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
7786         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
7787         options for features to all the files in nscd.
7789         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
7791 2011-07-10  Roland McGrath  <roland@hack.frob.com>
7793         * csu/elf-init.c (__libc_csu_init): Comment typo.
7795 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
7797         * po/pl.po: Update from translation team.
7798         * po/ja.po: Likewise.
7799         * po/ru.po: Likewise.
7800         * po/ko.po: Likewise.
7801         * po/fr.po: Likewise.
7803 2011-07-09  Roland McGrath  <roland@hack.frob.com>
7805         * configure.in (.ctors/.dtors header and trailer check):
7806         Use an empirical test on a built program.
7807         * configure: Regenerated.
7809         * configure.in (-z relro check): Use an empirical test on a built DSO.
7810         Detect, but do not require, on ia64.
7811         * configure: Regenerated.
7813         * configure.in (READELF): Find it with AC_CHECK_TOOL.
7814         Update tests that use readelf to use $READELF instead.
7815         * configure: Regenerated.
7817 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
7819         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
7820         if the result is not used.
7822 2011-07-05  Andreas Jaeger  <aj@suse.de>
7824         [BZ#9696]
7825         * stdlib/tst-strtod.c: Add testcase.
7827 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
7829         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
7830         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
7831         The latter has a higher limit.  Take additional parameter to pass to
7832         the new function.
7833         (__pathconf): Pass file to __statfs_link_max.
7834         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
7835         __statfs_link_max.
7836         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
7837         __statfs_link_max.
7839         [BZ #12868]
7840         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
7841         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
7842         Handle Lustre.
7843         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
7844         (__statfs_filesize_max): Likewise.
7845         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
7847 2011-07-05  Andreas Jaeger  <aj@suse.de>
7849         * resolv/res_comp.c (dn_skipname): Remove unused variable.
7851 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
7853         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
7854         `status' variable.
7855         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
7856         Likewise.
7858 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
7860         * Makefile (strop-tests): Add strncat.
7861         * string/test-strncat.c: New file.
7863 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
7865         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
7867 2011-06-21  Andreas Jaeger  <aj@suse.de>
7869         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
7870         Copy rule from iconvdata/Makefile.
7872 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
7874         [BZ #12922]
7875         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
7876         but no long options are defined, just return 'W'.
7878 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
7880         [BZ #9696]
7881         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
7883 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
7885         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
7886         netgroups to read.
7887         (innetgr): Likewise.
7889 2011-07-05  Roland McGrath  <roland@hack.frob.com>
7891         * config.make.in (install_root): Default to $(DESTDIR).
7893 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
7895         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
7897 2011-07-02  Roland McGrath  <roland@hack.frob.com>
7899         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
7901         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
7902         containing directory rather than embedding absolute directory names.
7904         * scripts/check-local-headers.sh: Rewritten using awk.
7905         Match by word, not by line.  Print error messages for matches.
7906         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
7908         * Makerules [shlib-lds-flags empty]:
7909         ($(common-objpfx)libc_pic.opts): New target.
7910         ($(common-objpfx)libc_pic.os.clean): New target.
7911         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
7913         * config.make.in (OBJCOPY): New variable.
7914         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
7915         * configure: Regenerated.
7917         * config.make.in (use-default-link): New variable.
7918         * configure.in (use_default_link): Grok --with-default-link to set it.
7919         * configure: Regenerated.
7920         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
7921         (shlib-lds, shlib-lds-flags): Define to empty.
7923         * Makerules (shlib-lds): New variable.
7924         (shlib-lds-flags): New variable.
7925         (build-shlib, build-moduile, build-module-asneeded): Use it.
7926         ($(common-objpfx)libc.so): Use $(shlib-lds).
7927         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
7928         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
7930         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
7931         DT_FLAGS/DT_FLAGS_1 with zero flags.
7933         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
7934         linker script munging.
7936 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
7938         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
7939         as 128-bit value.
7940         * crypt/sha512.c (sha512_process_block): Perform total addition using
7941         128-bit if possible.
7942         (__sha512_finish_ctx): Likewise.
7943         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
7944         as 64-bit value.
7945         * crypt/sha256.c (SWAP64): Define.
7946         (sha256_process_block): Perform total addition using 64-bit if
7947         possible.
7948         (__sha256_finish_ctx): Likewise.
7950 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
7952         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
7953         * nscd/initgrcache.c (addinitgroupsX): Likewise.
7954         * nscd/hstcache.c (cache_addhst): Likewise.
7955         * nscd/grpcache.c (cache_addgr): Likewise.
7956         * nscd/aicache.c (addhstaiX): Likewise
7957         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
7959 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
7961         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
7962         * nscd/initgrcache.c (addinitgroupsX): Likewise.
7963         * nscd/hstcache.c (cache_addhst): Likewise.
7964         * nscd/grpcache.c (cache_addgr): Likewise.
7965         * nscd/aicache.c (addhstaiX): Likewise
7967 2011-07-01  Andreas Schwab  <schwab@redhat.com>
7969         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
7970         domain only when needed.
7972 2011-06-30  Andreas Schwab  <schwab@redhat.com>
7974         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
7975         is always restored.
7977 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
7979         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
7980         are re-adding the entry.
7981         * nscd/servicescache.c (cache_addserv): Likewise.
7983 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
7985         * sysdeps/generic/dl-irel.h: fix protection against multiple
7986         inclusions.
7987         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
7989 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
7991         [BZ #12935]
7992         * malloc/memusage.sh: Fix quoting in message.
7993         * debug/xtrace.sh: Likewise.
7995         * configure.in: Remove support for --experimental-malloc option, make
7996         it the default.
7997         * config.make.in: Likewise.
7998         * malloc/Makefile: Likewise.
8000 2011-06-27  Andreas Schwab  <schwab@redhat.com>
8002         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
8003         two-byte characters.
8005 2011-06-27  Roland McGrath  <roland@hack.frob.com>
8007         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
8008         AC_CACHE_CHECK invocation.
8009         * configure: Regenerated.
8011         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
8013 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
8015         [BZ #12350]
8016         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
8017         bit from old_res_options.
8019         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
8021         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
8022         value type for setfct.
8024 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
8026         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
8027         __gettimeofday instead of gettimeofday.
8029 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
8031         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
8033 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
8035         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
8037         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
8038         info.
8040 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
8042         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
8043         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
8044         strcpy-sse2-unaligned strncpy-sse2-unaligned
8045         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
8046         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
8047         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
8048         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
8049         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
8050         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
8051         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
8052         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
8053         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
8054         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
8055         (STRCPY): Support SSE2 and SSSE3 versions.
8057 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
8059         [BZ #12874]
8060         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
8061         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
8062         kernels which artificially limit size of requests.
8064 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
8066         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
8067         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
8068         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
8069         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
8070         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
8071         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
8072         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
8073         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
8074         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
8075         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
8076         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
8077         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
8078         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
8079         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
8080         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
8081         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
8082         Enable unaligned load optimization for Intel Core i3, i5 and i7
8083         processors.
8084         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
8085         Define.
8086         (index_Fast_Unaligned_Load): Define.
8087         (HAS_FAST_UNALIGNED_LOAD): Define.
8089 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
8091         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
8093 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
8095         [BZ #12907]
8096         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
8097         until it is clear that the information is realy needed.
8098         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
8100 2011-06-22  Andreas Schwab  <schwab@redhat.com>
8102         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
8104 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
8106         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
8107         /sys/devices/system/cpu/online if it is usable.
8109         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
8110         reading the information from the /proc filesystem to once a second.
8112 2011-06-21  Andreas Jaeger  <aj@suse.de>
8114         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
8115         NULL after inclusion of kernel headers.
8117 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
8119         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
8120         calls to internal_setent.
8122         [BZ #12885]
8123         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
8124         addresses using gethostbyname4_r ignore IPv4 addresses.
8126         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
8127         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
8129         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
8131 2011-06-20  David S. Miller  <davem@davemloft.net>
8133         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
8134         inclusions.
8135         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
8137         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
8138         (elf_irel): Use it.
8139         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
8140         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
8141         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
8142         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
8143         * sysdeps/x86_64/dl-irel.h: Likewise.
8145         * elf/dl-runtime.c: Use elf_ifunc_invoke.
8146         * elf/dl-sym.c: Likewise.
8148 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
8150         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
8151         need to dereference resplen2.
8153 2011-06-14  Andreas Schwab  <schwab@redhat.com>
8155         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
8157 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
8159         * Makeconfig: Define vardbdir and inst_vardbdir.
8160         * nss/Makefile: Add rules to install db-Makefile.
8162         * nss/nss_db/db-XXX.c: Cleanup.
8164         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
8165         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
8166         GLIBC_PRIVATE.
8167         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
8168         * nss/makedb.c: Implement -g option to specify that value strings
8169         are generated and should not be added to table iterated over for
8170         get*ent calls.
8171         * nss/nss_db/db-initgroups.c: New file.
8173         * nss/getent.c: Add support for initgroups lookups through getgrouplist
8174         interface.
8176         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
8177         (internal_getgrouplist): Adjust to name change.
8178         Update use_initgroups_entry if this is not the first call.
8179         * nss/databases.def: Add initgroups entry.
8181         * nss/makedb.c (compute_tables): Check result of multiple hash table
8182         sizes to minimize maximum chain length.
8184 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
8186         * Versions.def: Add entry for libnss_db.
8187         * shlib-versions: Likewise.
8188         * nss/Makefile: Add rules to build libnss_db.
8189         * nss/Versions: Add libnss_db information.  Organize libnss_files
8190         entries better.
8191         * nss/db-Makefile: Add gshadow support.  Change rules for the new
8192         makedb progra.  Some minor improvements to generate smaller files.
8193         * nss/nss_db/nss_db.h: Move NSS database header data structures to
8194         here from...
8195         * nss/makedb.c: ...here.
8196         Improve database format to be smaller and require less memory at
8197         runtime.
8198         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
8199         db anymore.
8200         * nss/nss_db/db-netgrp.c: Likewise.
8201         * nss/nss_db/db-open.c: Likewise.
8202         * nss/nss_files/flies-XXX.x: Adjust comments.
8203         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
8204         * nss/nss_files/files-grp.c: Likewise.
8205         * nss/nss_files/files-hosts.c: Likewise.
8206         * nss/nss_files/files-network.c: Likewise.
8207         * nss/nss_files/files-proto.c: Likewise.
8208         * nss/nss_files/files-pwd.c: Likewise.
8209         * nss/nss_files/files-rpc.c: Likewise.
8210         * nss/nss_files/files-service.c: Likewise.
8211         * nss/nss_files/files-sgrp.c: Likewise.
8212         * nss/nss_files/files-spwd.c: Likewise.
8213         * nss/nss_db/db-alias.c: Removed.
8214         * nss/nss_db/dummy-db.h: Removed.
8216 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
8218         * nss/makedb.c: Rewritten to not use database library.
8219         * nss/Makefile: Update to build new makedb program.
8221 2011-06-14  Andreas Jaeger  <aj@suse.de>
8223         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
8224         memset declaration.
8226 2011-06-10  Andreas Schwab  <schwab@redhat.com>
8228         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
8229         tmpbuf.
8231 2011-06-10  Roland McGrath  <roland@hack.frob.com>
8233         * Makerules (shlib.lds): Fail if the linker script comes out empty.
8234         * elf/Makefile ($(objpfx)ld.so): Likewise.
8236         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
8237         Don't list ld.so twice in dependencies.
8239         * posix/bug-regex31.c: Include <stdlib.h>.
8241         * nscd/hstcache.c (cache_addhst): Remove unused variable.
8243         * nis/nss_compat/compat-spwd.c
8244         (getspent_next_nss_netgr): Remove unused variable.
8245         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
8247         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
8248         nonmembers" output to use the right array.
8250         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
8252         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
8254         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
8255         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
8256         * catgets/gencat.c (read_input_file): Likewise.
8257         * locale/programs/locarchive.c (enlarge_archive): Likewise.
8259         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
8260         variable definition inside #if's controlling its use.
8262         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
8264         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
8266         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
8268         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
8269         unreachable code.
8271         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
8273         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
8274         * configure: Regenerated.
8276         * Makerules: Revert last change.
8277         * elf/Makefile: Likewise.
8279 2011-06-09  Roland McGrath  <roland@hack.frob.com>
8281         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
8282         * elf/Makefile ($(objpfx)librtld.os): Likewise.
8283         (reloc-link): Likewise.
8285 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
8287         * elf/Makefile: Add rules to build pldd.
8288         * elf/pldd.c: New file.
8289         * elf/pldd-xx.c: New file.
8291 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
8293         * version.h: Update for 2.15 development version.
8295 2011-06-07  David S. Miller  <davem@davemloft.net>
8297         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
8298         ifuncs.
8299         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
8300         elf_machine_lazy_rel): Likewise.
8301         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
8302         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
8303         elf_machine_lazy_rel): Likewise.
8304         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
8305         dl_hwcap via passed in argument.
8306         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
8307         Likewise.
8309 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8311         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
8313 2011-06-06  Roland McGrath  <roland@hack.frob.com>
8315         [BZ #12849]
8316         * manual/fdl-1.1.texi: New file, verbatim from:
8317         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
8318         * manual/lgpl-2.1.texi: New file, verbatim from:
8319         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
8320         * manual/Makefile (licenses): New variable, list those new file names.
8321         (texis): Use it.
8322         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
8324         * manual/fdl.texi: File removed.
8325         * manual/lesser.texi: File removed.
8326         * manual/libc.texinfo (Copying, Documentation License):
8327         Use new @include file names, put @appendix directive before @include.
8329 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
8331         [BZ #12841]
8332         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
8333         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
8334         (mq_open): Add __NTH.
8336 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
8338         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
8339         Assume Intel Core i3/i5/i7 processor if AVX is available.
8341 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
8343         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
8344         typo.
8346 2011-05-31  Andreas Schwab  <schwab@redhat.com>
8348         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
8349         memory.  Use alloca_account.  Fix memory leak when retrying.
8351 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
8353         * version.h (RELEASE): Bump for 2.14 release.
8354         * include/features.h (__GLIBC_MINOR__): Bump to 14.
8356         * config.make.in (RANLIB): Remove entry.
8358 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
8360         * po/Makefile (po-sed-cmd): Add ksh to extensions.
8361         (libc.pot): Work around missing support for .ksh extension in xgettext.
8363         [BZ #12684]
8364         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
8365         if both request failed.
8366         (send_dg): In case of server errors clear resplen or *resplen2.
8368         [BZ #12454]
8369         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
8370         when there are multiple maps.
8371         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
8372         (_dl_fini): Remove test here.
8374         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
8376 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
8378         [BZ #12350]
8379         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
8380         bit from old_res_options.
8381         (gaih_inet): Likewise.
8383         [BZ #11099]
8384         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
8385         as signed.
8387         * resolv/res_init.c (res_setoptions): Make the code more compact.
8389         [BZ #11558]
8390         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
8391         set RES_USEVC.
8393         [BZ #11634]
8394         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
8396         * malloc/malloc.h: Mark malloc hook variables as deprecated.
8398         [BZ #11781]
8399         * malloc/malloc.h: Declare malloc hook variables as volatile.
8401         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
8402         in last patch.
8404         [BZ #11799]
8405         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
8406         raise in the comment.
8407         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
8408         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
8409         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
8411 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
8413         [BZ #12811]
8414         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
8415         grow the buffers more if it already has to be sufficient.
8416         (build_wcs_upper_buffer): Likewise.
8417         * posix/regexec.c (check_matching): Likewise.
8418         (clean_state_log_if_needed): Likewise.
8419         (extend_buffers): Don't enlarge buffers beyond size of the input
8420         buffer.
8421         Patches mostly by Emil Wojak <emil@wojak.eu>.
8422         * posix/bug-regex32.c: New file.
8423         * posix/Makefile (tests): Add bug-regex32.
8425         * locale/findlocale.c (_nl_find_locale): Return right away if
8426         _nl_explode_name failed.
8427         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
8429         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
8431         * debug/xtrace.sh: Unify messages.
8432         * malloc/memusage.sh: Likewise.
8434         [BZ #12813]
8435         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
8436         time symbol from vDSO.  Substitute with vsyscall if not available.
8437         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
8438         __vdso_time.
8440         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
8441         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
8442         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
8443         Add sendmmsg and internal_sendmmsg.
8444         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
8445         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
8446         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
8448         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
8449         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
8450         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
8452 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
8454         [BZ #12813]
8455         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
8456         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
8457         available.
8458         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
8459         __vdso_getcpu.
8461         [BZ #12814]
8462         * iconvdata/Makefile (tests): Add bug-iconv9.
8463         * iconvdata/bug-iconv9.c: New file.
8465 2011-05-27  Andreas Schwab  <schwab@redhat.com>
8467         [BZ #12814]
8468         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
8470 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
8472         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
8473         (struct user_regs_struct): Change intcs field back to cs.
8475 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
8477         * po/ja.po: Update from translation team.
8479 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
8481         [BZ #12795]
8482         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
8483         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
8485 2011-05-20  Andreas Schwab  <schwab@redhat.com>
8487         * stdlib/longlong.h: Update from GCC.
8489 2011-05-23  Andreas Schwab  <schwab@redhat.com>
8491         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
8492         parameter name.
8493         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
8494         Add parameter name.
8495         (__sysconf): Pass it down.
8497 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
8499         [BZ #12671]
8500         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
8501         some situations.
8502         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
8503         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
8504         add in in __libc_use_alloca calls.  Adjust callers.
8505         (glob): Use malloc in some situations.
8507         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
8508         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
8509         pltexit.
8511 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
8513         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
8514         and CLOCK_BOOTTIME_ALARM.
8516         [BZ #12782]
8517         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
8518         is returned.
8520         * string/_strerror.c (__strerror_r): Print negative errors as signed
8521         numbers.
8523         [BZ #12777]
8524         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
8525         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
8526         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
8528         * configure.in: Fix typo in redirection and correct removal of test
8529         files in two cases.
8531         [BZ #12788]
8532         * locale/setlocale.c (new_composite_name): Fix test to check for
8533         identical name of all categories.
8535         [BZ #12792]
8536         * libio/filedoalloc.c (local_isatty): New function.
8537         (_IO_file_doallocate): Use local_isatty.
8538         * stdio-common/perror.c (perror): In case a new stream is used
8539         forward the stream error.
8540         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
8541         error flag.
8543 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
8545         [BZ #11869]
8546         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
8547         alloca.
8548         * include/alloca.h (extend_alloca_account): Define.
8550         [BZ #11857]
8551         * posix/regex.h: Fix comments with documentation of user-accessible
8552         fields after compilation and describe correct free'ing of pattern
8553         after re_compile_pattern.
8554         Patch by Reuben Thomas <rrt@sc3d.org>.
8556 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
8558         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
8559         and -mno-altivec to prevent the compiler from using Altivec and/or
8560         VSX instructions when the corresponding registers are not available.
8562 2011-05-19  Andreas Schwab  <schwab@redhat.com>
8564         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
8566 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
8568         * libio/freopen.c (freopen): Use __dup2, not dup2.
8569         * libio/freopen64.c (freopen64): Likewise.
8571 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
8573         [BZ #12775]
8574         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
8575         * math/Makefile (tests): Add test-powl.
8576         (CFLAGS-test-powl.c): Define.
8577         * math/test-powl.c: New file.
8579 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
8581         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
8583 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
8585         [BZ #11837]
8586         * iconvdata/gb18030.c: Update to GB18020-2005.
8588 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
8590         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
8591         RE_SYNTAX_POSIX_AWK): Update to match recent development.
8592         Patch by Aharon Robbins <arnold@skeeve.com>.
8594         [BZ #11892]
8595         * stdlib/putenv.c (putenv): Don't always create copy of the variable
8596         on the stack.
8598         [BZ #11895]
8599         * misc/pselect.c (__pselect): Handle timeout value errors hidden
8600         through underflows.
8602         [BZ #12766]
8603         * misc/error.c (error_at_line): Ensure file_name and old_file_name
8604         point to strings before performing equality test for error_one_per_line
8605         mode.
8607         [BZ #11697]
8608         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
8610         [BZ #11820]
8611         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
8612         (struct user_fpregs_struct): Avoid __uint*_t types.
8614         [BZ #6420]
8615         * malloc/mtrace.c (tr_where): Add additional parameter to point to
8616         symbol info.  Use it instead of calling _dl_addr locally.
8617         (lock_and_info): New function.
8618         (tr_freehook): Call lock_and_info and pass symbol info as additional
8619         parameter to tr_where.
8620         (tr_mallochook): Likewise.
8621         (tr_reallochook): Likewise.
8622         (tr_memalignhook): Likewise.
8624         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
8625         used and couldn't be at all thread-safe.
8627 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
8629         * libio/freopen.c (freopen): Don't close old file descriptor
8630         before the new one is opened.  Instead dup the new file descriptor
8631         to the old one after the new stream is created.
8632         * libio/freopen64.c (freopen64): Likewise.
8633         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
8634         * libio/fileops.c (_IO_new_file_close_it): Handle new
8635         _IO_FLAGS2_NOCLOSE flag.
8636         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
8637         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
8638         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
8639         _IO_FLAGS2_NOCLOSE flag.
8640         * include/unistd.h: Add hidden_proto for dup3.
8641         Define __have_dup3.
8642         * io/dup3.c: Define hidden symbol.
8643         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
8645         [BZ #7101]
8646         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
8647         when an incomplete long option is used.
8648         * posix/tst-getopt_long1.c: New file.
8649         * posix/Makefile (tests): Add tst-getopt_long1.
8651         [BZ #10138]
8652         * scripts/config.guess: Update from autoconf-2.68.
8653         * scripts/config.sub: Likewise.
8655         [BZ #10157]
8656         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
8657         tests into ...
8658         (has_cpuclock): ...this.  New function.
8659         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
8660         macro here based on has_cpuclock code.
8662         [BZ #10149]
8663         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
8664         First byte (not low byte) is now always NUL.
8665         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
8667         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
8668         Use non-cancelable interfaces.
8670         [BZ #9809]
8671         * locale/iso-639.def: Add entry for Sorani.
8673         [BZ #11901]
8674         * include/stdlib.h: Move include protection to the right place.
8675         Define abort_msg_s.  Declare __abort_msg with it.
8676         * stdlib/abort.c (__abort_msg): Adjust type.
8677         * assert/assert.c (__assert_fail_base): New function.  Majority
8678         of code from __assert_fail.  Allocate memory for __abort_msg with
8679         mmap.
8680         (__assert_fail): Now call __assert_fail_base.
8681         * assert/assert-perr.c: Remove bulk of implementation.  Use
8682         __assert_fail_base.
8683         * include/assert.hL Declare __assert_fail_base.
8684         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
8685         mmap.
8686         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
8688 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
8690         [BZ #11952]
8691         [BZ #12453]
8692         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
8693         until all modules are registered in the DTV.
8694         * elf/Makefile: Add rules to build and run tst-tls19.
8695         * elf/tst-tls19.c: New file.
8696         * elf/tst-tls19mod1.c: New file.
8697         * elf/tst-tls19mod2.c: New file.
8698         * elf/tst-tls19mod3.c: New file.
8699         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
8701         [BZ #12083]
8702         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
8703         correctly.
8705         [BZ #12601]
8706         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
8707         two-byte sequence errors.
8708         * iconvdata/Makefile (tests): Add bug-iconv8.
8709         * iconvdata/bug-iconv8.c: New file.
8711         [BZ #12626]
8712         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
8713         buf2 definition.
8715         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
8717         [BZ #12432]
8718         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
8719         (dummy_getcfa): New function.
8720         (init): Get _Unwind_GetCFA address, use dummy if not found.
8721         (backtrace_helper): In recursion check, also check whether CFA changes.
8722         (__backtrace): Completely initialize arg.
8724         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
8725         storing incomplete byte sequence in state object.  Avoid testing for
8726         guaranteed too small input if we know there is enough data available.
8728 2011-05-11  Andreas Schwab  <schwab@redhat.com>
8730         * Makeconfig (+link-pie): Indent.
8731         * Rules (binaries-pie): Define if $(have-fpie) and
8732         $(build-shared).
8733         (binaries-shared): Also filter out $(binaries-pie).
8734         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
8735         * nscd/Makefile (others-pie): Add nscd.
8736         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
8737         ($(objpfx)nscd): Remove command override.
8738         * login/Makefile (others-pie): Add pt_chown.
8739         ($(objpfx)pt_chown): Remove command override.
8740         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
8741         remove command overrides.
8743 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
8745         * libio/tst_putwc.c: Fix error messages.
8747         [BZ #12724]
8748         * libio/fileops.c (_IO_new_file_close_it): Always flush when
8749         currently writing and seek to current position when not.
8750         * libio/Makefile (tests): Add bug-fclose1.
8751         * libio/bug-fclose1.c: New file.
8753 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
8755         [BZ #12511]
8756         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
8757         don't set DF_1_NODELETE here.
8758         (do_lookup_x): When entering new entry test for copy relocation
8759         and if necessary set DF_1_NODELETE flag.
8760         * elf/tst-unique4.cc: New file.
8761         * elf/tst-unique4.h: New file.
8762         * elf/tst-unique4lib.cc: New file.
8763         * elf/Makefile: Add rules to build and run tst-unique4.
8764         Patch by Piotr Bury <pbury@goahead.com>.
8766 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
8768         [BZ #12052]
8769         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
8771         [BZ #12625]
8772         * misc/mntent_r.c (addmntent): Flush the stream after the output
8774         [BZ #12393]
8775         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
8776         (is_trusted_path_normalize): Skip initial colon.  Append slash
8777         to empty buffer.  Duplicate is_trusted_path code but allow
8778         constructed patch to be prefix.
8779         (is_dst): Allow $ORIGIN followed by /.
8780         (_dl_dst_substitute): Correct clearing of check_for_trusted.
8781         Correct testing of result of is_trusted_path_normalize
8782         (decompose_rpath): Fix warning.
8784 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
8786         [BZ #11257]
8787         * grp/initgroups.c (internal_getgrouplist): When we found the service
8788         list through the initgroups entry in nsswitch.conf do not always
8789         continue on a successful lookup.  Don't always use the
8790         __nss_group_database value if it is set.
8791         * nss/nsswitch.conf (initgroups): Change action for successful db
8792         lookup to continue for compatibility.
8794 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
8796         [BZ #11532]
8797         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
8798         and CP774 modules.
8799         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
8800         and CP774 modules.
8801         * iconvdata/tst-tables.sh: Likewise.
8802         * iconvdata/cp770.c: New file.
8803         * iconvdata/cp771.c: New file.
8804         * iconvdata/cp772.c: New file.
8805         * iconvdata/cp773.c: New file.
8806         * iconvdata/cp774.c: New file.
8807         * iconvdata/testdata/CP770: New file.
8808         * iconvdata/testdata/CP770..UTF8: New file.
8809         * iconvdata/testdata/CP771: New file.
8810         * iconvdata/testdata/CP771..UTF8: New file.
8811         * iconvdata/testdata/CP772: New file.
8812         * iconvdata/testdata/CP772..UTF8: New file.
8813         * iconvdata/testdata/CP773: New file.
8814         * iconvdata/testdata/CP773..UTF8: New file.
8815         * iconvdata/testdata/CP774: New file.
8816         * iconvdata/testdata/CP774..UTF8: New file.
8818         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
8819         END CHARMAP line.
8820         * iconvdata/gen-8bit-gap.sh: Likewise.
8821         * iconvdata/gen-8bit.sh: Likewise.
8823         * locale/iso-639.def: Add ary entry.
8825         [BZ #11258]
8826         * locale/C-translit.h.in: Add U20A1 transliteration.
8828         [BZ #12178]
8829         * locale/iso-639.def: Add wae entry.
8830         Patch by Kevin Bortis <bortis@translate-wae.ch>.
8832         [BZ #12545]
8833         * locale/programs/localedef.c (construct_output_path): Use ssize_t
8834         for n.
8836         [BZ #12711]
8837         * locale/C-translit.h.in: Add entry for U20B9.
8838         Patch by pravin.d.s@gmail.com.
8840 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
8842         [BZ #12713]
8843         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
8844         ENAMETOOLONG use generic getcwd.
8845         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
8846         in rtld.  Use *stat64.
8847         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
8848         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
8849         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
8850         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
8851         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
8852         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
8853         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
8854         __fstatat64 macros.
8855         * include/dirent.h: Add libc_hidden_proto for rewinddir.
8856         * dirent/rewinddir.c: Add libc_hidden_def.
8857         * sysdeps/mach/hurd/rewinddir.c: Likewise.
8858         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
8860         * include/dirent.h (__alloc_dir): Add flags parameter.
8861         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
8862         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
8863         __alloc_dir.
8864         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
8865         from fdopendir if O_CLOEXEC is already set.
8867 2011-03-15  Alan Modra  <amodra@gmail.com>
8869         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
8870         l_tls_firstbyte_offset non-zero.  Save padding offset in
8871         l_tls_firstbyte_offset for later use.
8872         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
8873         freeing static tls block.
8875 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
8877         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
8878         where #ifdef was intended.  The intent is to prevent ARG_MAX from
8879         being defined by the kernel headers.
8881 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
8883         [BZ #12734]
8884         * resolv/resolv.h: Define RES_NOTLDQUERY.
8885         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
8886         no-tld-query and set RES_NOTLDQUERY.
8887         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
8888         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
8889         modern BIND to search name as TLD unless forbidden.
8891 2011-05-07  Petr Baudis  <pasky@suse.cz>
8892             Ulrich Drepper  <drepper@gmail.com>
8894         [BZ #12393]
8895         * elf/dl-load.c (fillin_rpath): Move trusted path check...
8896         (is_trusted_path): ...to here.
8897         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
8898         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
8899         using is_trusted_path_normalize() in setuid scripts.
8901 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
8903         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
8904         __BEGIN/__END_DECLS.
8906 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
8908         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
8909         NSS_STATUS_NOTFOUND if no record was found.
8911 2011-05-05  Andreas Schwab  <schwab@redhat.com>
8913         * sunrpc/Makefile (headers): Add rpc/netdb.h.
8914         (headers-not-in-tirpc): Remove rpc/netdb.h
8915         * resolv/netdb.h: Revert last change.
8917 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
8919         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
8920         circular dependency between libgcc.a and libc.a.
8922 2011-05-05  Andreas Schwab  <schwab@redhat.com>
8924         * resolv/netdb.h: Don't include <rpc/netdb.h>.
8925         * nis/Makefile: Don't install rpcsvc/*.
8926         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
8927         instead of <rpc/types.h>.
8928         (MAXHOSTNAMELEN): Define.
8930 2011-05-03  Andreas Schwab  <schwab@redhat.com>
8932         * elf/ldconfig.c (add_dir): Don't crash on empty path.
8934 2011-04-28  Maciej Babinski  <mbabinski@google.com>
8936         [BZ #12714]
8937         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
8938         gethostbyname4_r when IPv6 results are possible.
8940 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
8942         [BZ #12723]
8943         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
8944         _PC_PIPE_BUF handling.
8946 2011-04-30  Bruno Haible  <bruno@clisp.org>
8948         [BZ #12717]
8949         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
8950         * resolv/netdb.h (getnameinfo): Change type of flags parameter
8951         to 'int'.
8952         * inet/getnameinfo.c (getnameinfo): Likewise.
8954 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
8956         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
8957         to groups setting in database lookup.
8958         * nss/nsswitch.conf: Add initgroups entry.
8960 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
8962         [BZ #12685]
8963         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
8964         mode string.
8965         Patch by Eric Blake <eblake@redhat.com>.
8967 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
8969         * sunrpc/Makefile (need-export-routines): Add svc_run.
8970         (routines): Remove svc_run.
8971         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
8972         * sunrpc/clnt_perr.c (clnt_perrno): Export.
8973         * sunrpc/svc_run.c (svc_run): Likewise.
8974         * sunrpc/svc_udp.c (svcudp_create): Likewise.
8976 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
8978         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
8979         problem in reallocation in last patch.
8981 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
8983         * sunrpc/Makefile: Move inclusion of Rules.
8985 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
8987         * nss/nss_files/files-initgroups.c: New file.
8988         * nss/Makefile (libnss_files-routines): Add files-initgroups.
8989         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
8990         _nss_files_initgroups_dyn.
8992 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
8994         * elf/elf.h (R_ARM_IRELATIVE): Define.
8996 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
8998         * po/ru.po: Update from translation team.
9000 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
9002         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
9003         dependencies.
9005 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
9007         [BZ #12653]
9008         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
9009         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
9010         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
9011         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
9012         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
9014 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
9016         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
9017         differing bytes.
9018         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
9019         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
9020         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
9022 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
9024         [BZ #12420]
9025         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
9026         storing it.
9027         * stdlib/bug-getcontext.c: New file.
9028         * stdlib/Makefile: Add rules to build and run bug-getcontext.
9030 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9032         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
9033         instructions into .machine "z9-109".
9034         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
9035         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
9037 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9039         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
9040         between environment variables and auxiliary vector.
9042 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
9044         * Makefile: Add rules to build linkobj/libc.so.
9045         * include/libc-symbols.h: Define libc_hidden_nolink.
9046         * include/rpc/auth.h: Mark functions which are to be hidden.
9047         * include/rpc/auth_des.h: Likewise.
9048         * include/rpc/auth_unix.h: Likewise.
9049         * include/rpc/clnt.h: Likewise.
9050         * include/rpc/des_crypt.h: Likewise.
9051         * include/rpc/key_prot.h: Likewise.
9052         * include/rpc/pmap_clnt.h: Likewise.
9053         * include/rpc/pmap_prot.h: Likewise.
9054         * include/rpc/pmap_rmt.h: Likewise.
9055         * include/rpc/rpc_msg.h: Likewise.
9056         * include/rpc/svc.h: Likewise.
9057         * include/rpc/svc_auth.h: Likewise.
9058         * include/rpc/xdr.h: Likewise.
9059         * nis/Makefile: Link all DSOs against linkobj/libc.so.
9060         * nss/Makefile: Likewise.
9061         * sunrpc/Makefile: Don't install headers.  Build library with normal
9062         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
9063         * sunrpc/auth_des.c: Hide exported symbols by default, export some
9064         for the compat linking library.  Remove use of INTDEF/INTUSE.
9065         * sunrpc/auth_none.c: Likewise.
9066         * sunrpc/auth_unix.c: Likewise.
9067         * sunrpc/authdes_prot.c: Likewise.
9068         * sunrpc/authuxprot.c: Likewise.
9069         * sunrpc/clnt_gen.c: Likewise.
9070         * sunrpc/clnt_perr.c: Likewise.
9071         * sunrpc/clnt_raw.c: Likewise.
9072         * sunrpc/clnt_simp.c: Likewise.
9073         * sunrpc/clnt_tcp.c: Likewise.
9074         * sunrpc/clnt_udp.c: Likewise.
9075         * sunrpc/clnt_unix.c: Likewise.
9076         * sunrpc/des_crypt.c: Likewise.
9077         * sunrpc/des_soft.c: Likewise.
9078         * sunrpc/get_myaddr.c: Likewise.
9079         * sunrpc/key_call.c: Likewise.
9080         * sunrpc/key_prot.c: Likewise.
9081         * sunrpc/netname.c: Likewise.
9082         * sunrpc/pm_getmaps.c: Likewise.
9083         * sunrpc/pm_getport.c: Likewise.
9084         * sunrpc/pmap_clnt.c: Likewise.
9085         * sunrpc/pmap_prot.c: Likewise.
9086         * sunrpc/pmap_prot2.c: Likewise.
9087         * sunrpc/pmap_rmt.c: Likewise.
9088         * sunrpc/publickey.c: Likewise.
9089         * sunrpc/rpc_cmsg.c: Likewise.
9090         * sunrpc/rpc_common.c: Likewise.
9091         * sunrpc/rpc_dtable.c: Likewise.
9092         * sunrpc/rpc_prot.c: Likewise.
9093         * sunrpc/rpc_thread.c: Likewise.
9094         * sunrpc/rtime.c: Likewise.
9095         * sunrpc/svc.c: Likewise.
9096         * sunrpc/svc_auth.c: Likewise.
9097         * sunrpc/svc_authux.c: Likewise.
9098         * sunrpc/svc_raw.c: Likewise.
9099         * sunrpc/svc_run.c: Likewise.
9100         * sunrpc/svc_simple.c: Likewise.
9101         * sunrpc/svc_tcp.c: Likewise.
9102         * sunrpc/svc_udp.c: Likewise.
9103         * sunrpc/svc_unix.c: Likewise.
9104         * sunrpc/svcauth_des.c: Likewise.
9105         * sunrpc/xcrypt.c: Likewise.
9106         * sunrpc/xdr.c: Likewise.
9107         * sunrpc/xdr_array.c: Likewise.
9108         * sunrpc/xdr_float.c: Likewise.
9109         * sunrpc/xdr_intXX_t.c: Likewise.
9110         * sunrpc/xdr_mem.c: Likewise.
9111         * sunrpc/xdr_rec.c: Likewise.
9112         * sunrpc/xdr_ref.c: Likewise.
9113         * sunrpc/xdr_sizeof.c: Likewise.
9114         * sunrpc/xdr_stdio.c: Likewise.
9116 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
9118         [BZ #12650]
9119         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
9120         * sysdeps/ia64/dl-tls.h: Likewise.
9121         * sysdeps/powerpc/dl-tls.h: Likewise.
9122         * sysdeps/s390/dl-tls.h: Likewise.
9123         * sysdeps/sh/dl-tls.h: Likewise.
9124         * sysdeps/sparc/dl-tls.h: Likewise.
9125         * sysdeps/x86_64/dl-tls.h: Likewise.
9126         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
9128 2011-03-14  Andreas Schwab  <schwab@redhat.com>
9130         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
9131         rpath element also skip the following colon.
9132         (expand_dynamic_string_token): Add is_path parameter and pass
9133         down to DL_DST_REQUIRED and _dl_dst_substitute.
9134         (decompose_rpath): Call expand_dynamic_string_token with
9135         non-zero is_path.  Ignore empty rpaths.
9136         (_dl_map_object_from_fd): Call expand_dynamic_string_token
9137         with zero is_path.
9139 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
9141         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
9142         Make cancelable.
9144 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
9146         [BZ #12655]
9147         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
9148         Patch by Filipe David Manana <fdmanana@apache.org>.
9150 2011-04-07  Andreas Schwab  <schwab@redhat.com>
9152         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
9153         Maintain aligned stack.
9154         (CHECK_RSP): Remove unused macro.
9156 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
9158         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
9159         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
9161 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
9163         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
9165         * include/features.h: Mention __USE_XOPEN2K8 in comment.
9167 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
9169         [BZ #12518]
9170         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
9171         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
9172         * sysdeps/x86_64/memmove.c: New file.
9173         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
9174         (memcpy): Renamed to ...
9175         (__new_memcpy): This.
9176         (memcpy): Provide GLIBC_2_14 memcpy.
9177         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
9178         (memcpy): Provide GLIBC_2_2_5 memcpy.
9180 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
9182         [BZ #12631]
9183         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
9185 2011-03-30  Andreas Schwab  <schwab@redhat.com>
9187         * misc/syncfs.c: New file.
9188         * misc/Makefile (routines): Add syncfs.
9189         * posix/unistd.h: Declare syncfs.
9190         * sysdeps/unix/syscalls.list: Add syncfs.
9192 2011-04-01  Andreas Schwab  <schwab@redhat.com>
9194         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
9195         open_by_handle_at.
9196         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
9197         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9198         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9199         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9200         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
9201         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
9202         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9204 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
9206         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
9207         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9208         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9209         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9210         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9211         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
9212         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9214         * io/Makefile: Compile fallocate.c, fallocate64.c, and
9215         sync_file_range.c with -fexceptions.
9216         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
9217         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
9218         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
9219         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
9220         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
9221         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
9222         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
9223         sync_file_range as cancellation point
9224         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
9225         now a wrapper around __call_sync_file_range with cancellation handling.
9226         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
9227         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
9228         function name to __call_sync_file_range.
9229         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
9230         Add call_sync_file_range.
9232 2011-04-01  Andreas Schwab  <schwab@redhat.com>
9234         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
9235         bits/timex.h.
9237 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
9239         * iconv/iconv.h: Fix typo in comment.
9240         * io/fcntl.h: Likewise.
9241         * libio/stdio.h: Likewise.
9242         * posix/spawn.h: Likewise.
9243         * posix/unistd.h: Likewise.
9244         * stdlib/stdlib.h: Likewise.
9245         * time/time.h: Likewise.
9246         * wcsmbs/wchar.h: Likewise.
9248         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
9249         open_by_handle): Add.
9250         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
9251         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
9252         Augment a few comments.
9253         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9254         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9255         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9256         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
9257         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9258         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
9259         open_by_handle.
9261         * io/fcntl.h (AT_EMPTY_PATH): Define.
9263 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
9265         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
9266         * sysdeps/unix/sysv/linux/bits/time.h: New file.
9267         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
9268         to...
9269         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
9270         * Versions.def: Add GLIBC_2.14.
9271         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
9272         Export.
9274 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
9276         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
9277         round counter.
9278         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
9280 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
9282         [BZ #12597]
9283         * string/test-strncmp.c (do_page_test): New function.
9284         (check2): Likewise.
9285         (test_main): Call check2.
9286         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
9288 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
9290         [BZ #12587]
9291         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
9292         Handle cache information in CPU leaf 4.
9293         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
9295 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
9297         [BZ #12583]
9298         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
9299         character representation.
9300         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
9302 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
9304         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
9305         END(__isnan) to END(__isnanf) to match function entry point/label
9306         EALIGN(__isnanf,...).
9308 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
9310         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
9312 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
9314         [BZ #12510]
9315         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
9316         copy from the symbol referenced in the relocation to initialize the
9317         used variable.
9318         Patch by Piotr Bury <pbury@goahead.com>.
9319         * elf/Makefile: Add rules to build and tst-unique3.
9320         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
9321         * elf/tst-unique3.cc: New file.
9322         * elf/tst-unique3.h: New file.
9323         * elf/tst-unique3lib.cc: New file.
9324         * elf/tst-unique3lib2.cc: New file.
9326         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
9328 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
9330         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
9331         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
9332         to _start.
9334 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
9336         * elf/dl-load.c (_dl_map_object): If we are looking for the first
9337         to-be-loaded object along a path to loader is ld.so.
9339 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
9340             Ulrich Drepper  <drepper@gmail.com>
9342         * sysdeps/x86_64/memset.S: After aligning destination, code
9343         branches to different locations depending on the value of
9344         misalignment, when multiarch is enabled. Fix this.
9346 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
9348         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
9349         Set _x86_64_preferred_memory_instruction for AMD processsors.
9350         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
9351         Set bit_Prefer_SSE_for_memop for AMD processors.
9353 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
9355         * libio/fmemopen.c (fmemopen): Optimize a bit.
9357 2011-03-03  Andreas Schwab  <schwab@redhat.com>
9359         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
9361 2011-03-03  Roland McGrath  <roland@redhat.com>
9363         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
9365 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
9367         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
9368         __bzero_ultra1 instead of __memset_ultra1.
9370 2011-02-23  Andreas Schwab  <schwab@redhat.com>
9371             Ulrich Drepper  <drepper@gmail.com>
9373         [BZ #12509]
9374         * include/link.h (struct link_map): Add l_orig_initfini.
9375         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
9376         returning unsuccessfully.
9377         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
9378         close of a file loaded at startup, restore the original l_initfini
9379         list.
9380         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
9381         list, store the pointer.
9382         * elf/Makefile ($(objpfx)noload-mem): New rule.
9383         (noload-ENV): Define.
9384         (tests): Add $(objpfx)noload-mem.
9385         * elf/noload.c: Include <memcheck.h>.
9386         (main): Call mtrace.  Close all opened handles.
9388 2011-02-17  Andreas Schwab  <schwab@redhat.com>
9390         [BZ #12454]
9391         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
9392         dependencies are missing.
9394 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9396         Fix __if_freereq crash: Unlike the generic version which uses free,
9397         Hurd needs munmap.
9398         * sysdeps/mach/hurd/ifreq.h: New file.
9400 2011-01-27  Petr Baudis  <pasky@suse.cz>
9401             Ulrich Drepper  <drepper@gmail.com>
9403         [BZ 12445]#
9404         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
9405         to extend_alloca().
9406         * stdio-common/bug23.c: New file.
9407         * stdio-common/Makefile (tests): Add bug23.
9409 2010-09-28  Andreas Schwab  <schwab@redhat.com>
9410             Ulrich Drepper  <drepper@gmail.com>
9412         [BZ #12489]
9413         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
9414         before performing relro protection.  At old place add assertion
9415         to make sure nothing changed.
9417 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
9418             Glauber de Oliveira Costa  <glommer@gmail.com>
9420         * elf/elf.h: Add new ARM TLS relocs.
9422 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
9424         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
9425         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
9426         cast from r3.
9427         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
9428         'tests' variable.
9429         * sysdeps/wordsize-64/tst-writev.c: New file.
9431 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
9433         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
9434         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
9435         insns in _dl_start to prevent a TOC reference before relocs are
9436         resolved.
9438 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
9440         [BZ #12469]
9441         * Makeconfig: Remove RANLIB definition.
9442         * Makerules: Don't use RANLIB.
9443         * aclocal.m4: Remove ranlib test.
9444         * configure.in: No need to check for ranlib.
9445         * elf/rtld-Rules: Don't use RANLIB.
9447 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9449         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
9450         protection macro.
9451         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
9452         inclusion protection macro.
9454         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
9455         SIGRTMIN and SIGRTMAX and print information in that case only when
9456         SIGRTMIN is defined.
9458 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
9460         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
9461         arginfo fn returning -1.
9463         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
9464         and thousands string is zero terminated.
9466 2011-02-03  Andreas Schwab  <schwab@redhat.com>
9468         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
9469         sysdeps/unix/sysv/linux/bits/socket.h.
9471 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9473         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
9474         (__CPU_COUNT): Remove old macros.
9475         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
9476         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
9477         (__CPU_ALLOC, __CPU_FREE): Add macros.
9478         (__sched_cpualloc, __sched_cpufree): Add declarations.
9480 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
9482         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
9483         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
9484         * nscd/aicache.c (addhstaiX): Return timeout of added value.
9485         (readdhstai): Return value of addhstaiX call.
9486         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
9487         (addgrbyX): Return value returned by cache_addgr.
9488         (readdgrbyname): Return value returned by addgrbyX.
9489         (readdgrbygid): Likewise.
9490         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
9491         (addpwbyX): Return value returned by cache_addpw.
9492         (readdpwbyname): Return value returned by addhstbyX.
9493         (readdpwbyuid): Likewise.
9494         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
9495         (addservbyX): Return value returned by cache_addserv.
9496         (readdservbyname): Return value returned by addservbyX:
9497         (readdservbyport): Likewise.
9498         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
9499         (addhstbyX): Return value returned by cache_addhst.
9500         (readdhstbyname): Return value returned by addhstbyX.
9501         (readdhstbyaddr): Likewise.
9502         (readdhstbynamev6): Likewise.
9503         (readdhstbyaddrv6): Likewise.
9504         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
9505         (readdinitgroups): Return value returned by addinitgroupsX.
9506         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
9507         (prune_cache): Keep track of timeout value of re-added entries.
9508         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
9509         * nscd/nscd.h: Adjust prototypes of readd* functions.
9511 2011-02-04  Roland McGrath  <roland@redhat.com>
9513         * nis/nis_server.c (nis_servstate): Use the right name for 0.
9514         (nis_stats): Likewise.
9515         * nis/nis_modify.c (nis_modify): Likewise.
9516         * nis/nis_remove.c (nis_remove): Likewise.
9517         * nis/nis_add.c (nis_add): Likewise.
9519         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
9521         * posix/fnmatch_loop.c: Add some consts.
9523         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
9525 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
9527         [BZ #12460]
9528         * config.make.in (config-cflags-novzeroupper): Define.
9529         * configure.in: Substitute libc_cv_cc_novzeroupper.
9530         * elf/Makefile (AVX-CFLAGS): Define.
9531         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
9532         (CFLAGS-tst-auditmod4a.c): Likewise.
9533         (CFLAGS-tst-auditmod4b.c): Likewise.
9534         (CFLAGS-tst-auditmod6b.c): Likewise.
9535         (CFLAGS-tst-auditmod6c.c): Likewise.
9536         (CFLAGS-tst-auditmod7b.c): Likewise.
9537         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
9539 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
9541         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
9542         function to the callback.
9543         Patch partly by Jiri Olsa <jolsa@redhat.com>.
9545 2011-02-02  Andreas Schwab  <schwab@redhat.com>
9547         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
9548         of errno.
9550 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
9552         [BZ #11724]
9553         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
9554         of constructors.
9555         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
9556         of destructors.
9557         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
9559         [BZ #11724]
9560         * elf/Makefile: Add rules to build and run new test.
9561         * elf/tst-initorder.c: New file.
9562         * elf/tst-initorder.exp: New file.
9563         * elf/tst-initordera1.c: New file.
9564         * elf/tst-initordera2.c: New file.
9565         * elf/tst-initordera3.c: New file.
9566         * elf/tst-initordera4.c: New file.
9567         * elf/tst-initorderb1.c: New file.
9568         * elf/tst-initorderb2.c: New file.
9569         * elf/tst-order-a1.c: New file.
9570         * elf/tst-order-a2.c: New file.
9571         * elf/tst-order-a3.c: New file.
9572         * elf/tst-order-a4.c: New file.
9573         * elf/tst-order-b1.c: New file.
9574         * elf/tst-order-b2.c: New file.
9575         * elf/tst-order-main.c: New file.
9576         New test case by George Gensure <werkt0@gmail.com>.
9578 2010-10-01  Andreas Schwab  <schwab@redhat.com>
9580         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
9581         decoding ACE if AI_CANONIDN.
9583 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
9585         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
9587 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
9589         * version.h (RELEASE): Bump for 2.13 release.
9590         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
9592         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
9594         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
9595         MADV_NOHUGEPAGE.
9596         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
9597         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
9598         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
9599         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
9600         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
9601         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
9603         * posix/getconf.c: Update copyright year.
9604         * catgets/gencat.c: Likewise.
9605         * csu/version.c: Likewise.
9606         * debug/catchsegv.sh: Likewise.
9607         * debug/xtrace.sh: Likewise.
9608         * elf/ldconfig.c: Likewise.
9609         * elf/ldd.bash.in: Likewise.
9610         * elf/sprof.c (print_version): Likewise.
9611         * iconv/iconv_prog.c: Likewise.
9612         * iconv/iconvconfig.c: Likewise.
9613         * locale/programs/locale.c: Likewise.
9614         * locale/programs/localedef.c: Likewise.
9615         * malloc/memusage.sh: Likewise.
9616         * malloc/mtrace.pl: Likewise.
9617         * nscd/nscd.c (print_version): Likewise.
9618         * nss/getent.c: Likewise.
9620         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
9621         PF_CAIF, and PF_ALG.
9622         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
9624 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
9626         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
9627         (modules-names): Use them.
9628         (ifunc-test-modules, ifunc-pie-tests): Define.
9629         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
9630         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
9631         (test-extras): Likewise.
9632         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
9633         $(compile-command.c).
9634         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
9635         (all-built-dso): Define.
9636         (check-textrel.out, check-execstack.out): Depend on it.
9638         * configure.in: Don't override --enable-multi-arch.
9640 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
9642         [BZ #6812]
9643         * nscd/hstcache.c (tryagain): Define.
9644         (cache_addhst): Return tryagain not notfound for temporary errors.
9645         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
9646         failed.
9648 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
9650         [BZ #10563]
9651         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
9652         to make the syscall.
9653         * sysdeps/unix/sysv/linux/setgroups.c: New file.
9655         [BZ #12378]
9656         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
9657         and fall back to matching as normal character if the string ends before
9658         the matching ']' is found.  This is what POSIX requires.
9659         * posix/testfnm.c: Adjust test result.
9660         * posix/globtest.sh: Adjust test result.  Add new test.
9661         * posix/tst-fnmatch.input: Likewise.
9662         * posix/tst-fnmatch2.c: Add new test.
9664 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
9666         * elf/Makefile (check-execstack): Revert last change.  Depend on
9667         check-execstack.h.
9668         (check-execstack.h): New target.
9669         (generated): Add check-execstack.h.
9670         * elf/check-execstack.c: Include "check-execstack.h".
9671         (main): Revert last change.
9672         (handle_file): Return zero if GNU_STACK is absent and
9673         DEFAULT_STACK_PERMS doesn't include PF_X.
9675 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
9677         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
9678         in child fails because the descriptor is already closed.
9679         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
9680         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
9681         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
9683         [BZ #12397]
9684         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
9685         syscall.
9687         [BZ #10484]
9688         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
9689         temporary buffer used to handle multi lookups locally.
9690         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
9692 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
9694         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
9695         loader is ld.so.
9697 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
9699         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
9700         alignment for SSE2.
9702 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
9704         [BZ #12394]
9705         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
9706         characters.  When rounding increased number of integer digits recompute
9707         number of groups.
9708         * stdio-common/tst-grouping.c: New file.
9709         * stdio-common/Makefile: Add rules to build and run tst-grouping.
9711 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
9713         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
9714         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
9716         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
9717         void.
9718         * bits/select.h: Likewise.
9720 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
9722         * po/ja.po: Update from translation team.
9724 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
9726         [BZ #11155]
9727         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
9728         implementation just like for lxstat, fxstatat, et al.
9730 2010-12-27  Jim Meyering  <meyering@redhat.com>
9732         [BZ #12348]
9733         * posix/regexec.c (build_trtable): Return failure indication upon
9734         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
9736 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
9738         [BZ #12201]
9739         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
9740         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
9741         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
9742         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
9744         [BZ #12207]
9745         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
9747         [BZ #12204]
9748         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
9749         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
9751 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
9753         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
9754         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
9755         script has SORT_BY_INIT_PRIORITY.
9756         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
9757         NO_CTORS_DTORS_SECTIONS is defined.
9758         * elf/soinit.c: Likewise.
9759         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
9760         NO_CTORS_DTORS_SECTIONS is defined.
9761         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
9762         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
9763         * sysdeps/sh/init-first.c: Likewise.
9764         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
9766 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
9768         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
9769         always use the slow path.
9771 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
9773         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
9774         similar rule which adds the sysdep directories to the header search in
9775         order to pick up the correct platform stackinfo.h.
9776         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
9777         perform test if it is, otherwise return successfully without testing.
9778         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
9779         DEFAULT_STACK_PERMS define in stackinfo.h.
9780         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
9781         defined in stackinfo.h.
9782         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
9783         DEFAULT_STACK_PERMS defined in stackinfo.h.
9784         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
9785         * sysdeps/ia64/stackinfo.h: Likewise.
9786         * sysdeps/s390/stackinfo.h: Likewise.
9787         * sysdeps/sh/stackinfo.h: Likewise.
9788         * sysdeps/sparc/stackinfo.h: Likewise.
9789         * sysdeps/x86_64/stackinfo.h: Likewise.
9790         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
9791         PF_X for powerpc64.  Retain PF_X for powerpc32.
9793 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
9795         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
9796         accurately.
9797         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
9798         GETDENTS_64BIT_ALIGNED.
9800 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
9802         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
9804 2010-12-10  Andreas Schwab  <schwab@redhat.com>
9806         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
9807         _GNU_SOURCE.
9809         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
9810         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
9811         Remove __restrict.
9812         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
9813         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
9815 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
9817         [BZ #11655]
9818         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
9819         are initialized.
9821 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
9823         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
9825 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
9827         * po/it.po: Update from translation team.
9829 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
9831         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
9832         unused codes.
9834 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
9836         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
9838 2010-11-24  Andreas Schwab  <schwab@redhat.com>
9840         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
9841         specially.
9842         (gaih_getanswer_slice): Likewise.
9844 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
9846         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
9848 2010-05-31  Petr Baudis  <pasky@suse.cz>
9850         [BZ #11149]
9851         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
9852         silently even in the chroot mode.
9854 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
9856         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
9857         last patch a bit.  Pretty printing
9859 2010-05-31  Petr Baudis <pasky@suse.cz>
9861         [BZ #10085]
9862         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
9863         initialization of skip_initgroups_dyn.
9865 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
9867         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
9868         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
9870 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
9872         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
9874 2010-11-11  Andreas Schwab  <schwab@redhat.com>
9876         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
9877         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
9878         (tst-fnmatch-ENV): Set MALLOC_TRACE.
9879         ($(objpfx)tst-fnmatch-mem): New rule.
9880         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
9881         * posix/tst-fnmatch.c (main): Call mtrace.
9883 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
9885         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
9886         Support Intel processor model 6 and model 0x2c.
9888 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
9890         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
9891           signed comparison.
9893 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
9895         [BZ #12205]
9896         * string/test-strncasecmp.c (check_result): New function.
9897         (do_one_test): Use it.
9898         (check1): New function.
9899         (test_main): Use it.
9900         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
9901         Support strcasecmp and strncasecmp.
9903 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
9905         [BZ #12194]
9906         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
9907         * sysdeps/x86_64/bits/byteswap.h: Likewise.
9909 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
9911         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
9912         IFUNC support.
9913         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
9914         memset-x86-64.
9915         * sysdeps/x86_64/multiarch/bzero.S: New file.
9916         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
9917         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
9918         * sysdeps/x86_64/multiarch/memset.S: New file.
9919         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
9920         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
9921         Set bit_Prefer_SSE_for_memop for Intel processors.
9922         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
9923         Define.
9924         (index_Prefer_SSE_for_memop): Define.
9925         (HAS_PREFER_SSE_FOR_MEMOP): Define.
9927 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
9929         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
9930         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
9932 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
9934         [BZ #12191]
9935         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
9936         (__x86_64_raw_data_cache_size_half): Likewise.
9937         (__x86_64_raw_shared_cache_size): Likewise.
9938         (__x86_64_raw_shared_cache_size_half): Likewise.
9940         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
9941         (__x86_64_raw_data_cache_size_half): Likewise.
9942         (__x86_64_raw_shared_cache_size): Likewise.
9943         (__x86_64_raw_shared_cache_size_half): Likewise.
9944         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
9945         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
9946         and __x86_64_raw_shared_cache_size_half.  Round
9947         __x86_64_data_cache_size_half, __x86_64_data_cache_size
9948         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
9949         to multiple of 256 bytes.
9951 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
9953         [BZ #12167]
9954         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
9955         of inacessible symlinks.  Verify result of symlink before returning it.
9956         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
9957         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
9959 2010-10-28  Erich Ritz  <erichritz@gmail.com>
9961         * math/math.h (isinf): Fix typo in comment.
9963 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
9965         * po/da.po: Update from translation team.
9967 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
9969         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
9970         is added to the list.
9972 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9973             Ulrich Drepper  <drepper@gmail.com>
9975         * elf/dl-object.c (_dl_new_object): Don't append the new object to
9976         the global list here.  Move code to...
9977         (_dl_add_to_namespace_list): ...here.  New function.
9978         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
9979         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
9980         * elf/dl-load.c (lose): Don't remove the element from the list.
9981         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
9982         (_dl_map_object): Likewise.
9984 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
9986         [BZ #12159]
9987         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
9988         into all bytes of SSE register.
9989         Patch by Richard Li <richardpku@gmail.com>.
9991 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
9993         [BZ #12140]
9994         * malloc/malloc.c (_int_free): Fill correct number of bytes when
9995         perturbing.
9997 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
9999         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
10000         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
10001         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
10002         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
10003         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
10004         submachine.
10005         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
10007 2010-10-22  Andreas Schwab  <schwab@redhat.com>
10009         * include/dlfcn.h (__RTLD_SECURE): Define.
10010         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
10011         mode & __RTLD_SECURE instead.
10012         (open_path): Rename preloaded parameter to secure.
10013         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
10014         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
10015         * elf/dl-deps.c (openaux): Likewise.
10016         * elf/rtld.c (struct map_args): Remove is_preloaded.
10017         (map_doit): Don't use it.
10018         (dl_main): Likewise.
10019         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
10020         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
10022 2010-09-09  Andreas Schwab  <schwab@redhat.com>
10024         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
10025         (sysd-rules-targets): Remove duplicates.
10026         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
10027         rtld-%.$o dependency.
10029 2010-10-18  Andreas Schwab  <schwab@redhat.com>
10031         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
10032         _dl_map_object do it.
10034 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
10036         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
10037         fast fma builtins, define the macros in the C99 standard.
10038         (FP_FAST_FMAF): Likewise.
10039         (FP_FAST_FMAL): Likewise.
10040         * sysdeps/x86_64/bits/mathdef.h: Likewise.
10042         * bits/mathdef.h: Update copyright year.
10043         * sysdeps/powerpc/bits/mathdef.h: Likewise.
10045 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
10047         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
10048         builtins, define the macros in the C99 standard.
10049         (FP_FAST_FMAF): Likewise.
10050         (FP_FAST_FMAL): Likewise.
10051         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
10052         multiply/add.
10053         (FP_FAST_FMAF): Likewise.
10055 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
10057         [BZ #3268]
10058         * math/libm-test.inc (fma_test): Some new testcases.
10059         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
10060         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
10061         y and infinite z.  Do multiplication by C already in long double.
10062         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
10063         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
10064         y and infinite z.  Do bitwise or of inexact bit into u.d.
10065         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
10066         * sysdeps/i386/fpu/s_fmaf.S: Removed.
10067         * sysdeps/i386/fpu/s_fma.S: Removed.
10068         * sysdeps/i386/fpu/s_fmal.S: Removed.
10070 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
10072         [BZ #3268]
10073         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
10074         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
10075         computation is not scheduled after fetestexcept.  Fix value
10076         of minimum denormal long double.
10078 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
10080         [BZ #3268]
10081         * math/libm-test.inc (fma_test): Add some more tests.
10082         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
10083         correctly.
10085 2010-10-15  Andreas Schwab  <schwab@redhat.com>
10087         * scripts/data/localplt-s390-linux-gnu.data: New file.
10088         * scripts/data/localplt-s390x-linux-gnu.data: New file.
10090 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
10092         [BZ #3268]
10093         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
10094         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
10095         instead of dbl-64.
10096         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
10097         inlines.
10098         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
10099         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
10100         if one of x and y is very large and the other is subnormal.
10101         * sysdeps/s390/fpu/s_fmaf.c: New file.
10102         * sysdeps/s390/fpu/s_fma.c: New file.
10103         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
10104         * sysdeps/powerpc/fpu/s_fma.S: New file.
10105         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
10106         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
10107         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
10109 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
10111         [BZ #3268]
10112         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
10113         fma tests.
10114         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
10115         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
10116         * sysdeps/i386/i686/multiarch/s_fma.c: Include
10117         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
10118         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
10119         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
10120         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
10122 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
10124         [BZ #12078]
10125         * posix/regcomp.c (parse_branch): One more memory leak plugged.
10126         * posix/bug-regex31.input: Add test case.
10128 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
10130         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
10131         * posix/bug-regex31.input: New file.
10133         [BZ #12078]
10134         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
10135         (parse_sub_exp): Fix last change, use postorder.
10137         * posix/bug-regex31.c: New file.
10138         * posix/Makefile: Add rules to build and run bug-regex31.
10140         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
10142         [BZ #12078]
10143         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
10145         [BZ #12108]
10146         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
10147         to have entries in sys_siglist.
10149         [BZ #12093]
10150         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
10151         be NULL.
10153 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
10155         [BZ #3268]
10156         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
10157         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
10158         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
10159         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
10160         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
10161         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
10162         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
10163         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
10164         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
10165         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
10166         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
10167         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
10168         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
10169         * math/ftestexcept.c (fetestexcept): Likewise.
10170         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
10171         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
10172         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
10173         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
10174         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
10175         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
10176         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
10178 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
10180         [BZ #12107]
10181         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
10182         newline.
10184 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
10186         * string/bug-strstr1.c: New file.
10187         * string/Makefile: Add rules to build and run bug-strstr1.
10189 2010-10-05  Eric Blake  <eblake@redhat.com>
10191         [BZ #12092]
10192         * string/str-two-way.h (two_way_long_needle): Always clear memory
10193         when skipping input due to the shift table.
10195 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
10197         [BZ #12005]
10198         * malloc/mcheck.c: Handle large requests.
10200         [BZ #12077]
10201         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
10202         for strncmp and strncasecmp.
10203         * string/stratcliff.c: Add tests for strcmp and strncmp.
10204         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
10206 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
10208         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
10209         __set_fpscr.
10211 2010-09-30  Andreas Jaeger  <aj@suse.de>
10213         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
10214         (CGROUP_SUPER_MAGIC): Define.
10215         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
10216         Handle btrfs and cgroup file systems.
10217         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
10218         Likewise.
10220 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
10222         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
10223         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
10225 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10227         [BZ #12067]
10228         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
10229         trying to locate the ELF header.
10231 2010-09-27  Andreas Schwab  <schwab@redhat.com>
10233         [BZ #11611]
10234         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
10235         Mask out sign-bit copies when constructing f_fsid.
10237 2010-09-24  Petr Baudis <pasky@suse.cz>
10239         * debug/stack_chk_fail_local.c: Add missing licence exception.
10240         * debug/warning-nop.c: Likewise.
10242 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
10244         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
10245         implementing getdents64 using getdents syscall, set d_type if
10246         __ASSUME_GETDENTS32_D_TYPE.
10248 2010-09-16  Andreas Schwab  <schwab@redhat.com>
10250         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
10251         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
10253 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
10255         [BZ #12037]
10256         * posix/unistd.h: Undo change of feature selection for ftruncate from
10257         2010-01-11.
10259 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
10261         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
10262         detection.
10264 2010-09-20  Andreas Schwab  <schwab@redhat.com>
10266         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
10267         fanotify_mark.
10268         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
10270 2010-09-14  Andreas Schwab  <schwab@redhat.com>
10272         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
10273         variables after CHECK_SP call.
10274         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
10276 2010-09-13  Andreas Schwab  <schwab@redhat.com>
10277             Ulrich Drepper  <drepper@redhat.com>
10279         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
10280         re-relocationg ld.so.
10281         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
10282         _dl_init_paths call.
10283         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
10284         here anymore.
10286 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
10288         * resolv/res_init.c (__res_vinit): Count the default server we added.
10290 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
10291             Ulrich Drepper  <drepper@redhat.com>
10293         [BZ #11968]
10294         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
10295         (____longjmp_chk): Use %ebx for saving value across system call.
10296         Add unwind info.
10298 2010-09-06  Andreas Schwab  <schwab@redhat.com>
10300         * manual/Makefile: Don't mix pattern rules with normal rules.
10302 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
10304         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
10305         operation.
10306         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
10307         * libio/iofopncook.c (_IO_cookie_init): Likewise.
10308         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
10309         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
10310         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
10311         Likewise.
10313 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
10315         [BZ #11979]
10316         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
10317         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
10319 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
10321         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
10322         * sysdeps/x86_64/addmul_1.S: Likewise.
10323         * sysdeps/x86_64/lshift.S: Likewise.
10324         * sysdeps/x86_64/mul_1.S: Likewise.
10325         * sysdeps/x86_64/rshift.S: Likewise.
10326         * sysdeps/x86_64/sub_n.S: Likewise.
10327         * sysdeps/x86_64/submul_1.S: Likewise.
10329 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10331         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
10332         Define __sched_param instead of SCHED_* and sched_param when
10333         <bits/sched.h> is included with __need_schedparam defined.
10334         * bits/sched.h [__need_schedparam]
10335         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
10336         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
10337         (__defined_schedparam): Define to 1.
10338         (__sched_param): New structure, identical to sched_param.
10339         (__need_schedparam): Undefine.
10341 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
10343         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
10344         (epoll_create1): Declare.
10346         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
10348 2010-08-31  Andreas Schwab  <schwab@redhat.com>
10350         [BZ #7066]
10351         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
10352         shifting retval into place.
10354 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
10356         * nis/rpcsvc/nis.h: Update copyright notice.
10357         * nis/rpcsvc/nis.x: Likewise.
10358         * nis/rpcsvc/nis_callback.h: Likewise.
10359         * nis/rpcsvc/nis_callback.x: Likewise.
10360         * nis/rpcsvc/nis_object.x: Likewise.
10361         * nis/rpcsvc/nis_tags.h: Likewise.
10362         * nis/rpcsvc/yp.h: Likewise.
10363         * nis/rpcsvc/yp.x: Likewise.
10364         * nis/rpcsvc/ypupd.h: Likewise.
10365         * nis/yp_xdr.c: Likewise.
10366         * nis/ypupdate_xdr.c: Likewise.
10368         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
10369         mainly the body of pmap_getport.  Add parameters to specify timeouts.
10370         (pmap_getport): Use __libc_rpc_getport.
10371         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
10372         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
10373         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
10375 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
10377         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
10378         fanotify_mark.
10380 2010-08-27  Roland McGrath  <roland@redhat.com>
10382         * sysdeps/i386/i686/multiarch/Makefile
10383         (CFLAGS-varshift.c): New variable.
10385 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
10387         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
10388         * sysdeps/i386/i686/multiarch/varshift.c: New file.
10390         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
10392         * sysdeps/x86_64/strlen.S: Minimal code improvement.
10394 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
10396         * sysdeps/x86_64/strlen.S: Unroll the loop.
10397         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
10398         strlen-sse2 strlen-sse2-bsf.
10399         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
10400         __strlen_no_bsf if bit_Slow_BSF is set.
10401         (__strlen_sse42): Removed.
10402         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
10403         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
10405 2010-08-25  Roland McGrath  <roland@redhat.com>
10407         * sysdeps/x86_64/multiarch/varshift.S: File removed.
10408         * sysdeps/x86_64/multiarch/varshift.c: New file.
10409         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
10410         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
10411         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
10412         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
10414 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
10416         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
10417         strlen-sse2 strlen-sse2-bsf.
10418         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
10419         __strlen_sse2_bsf if bit_Slow_BSF is unset.
10420         (__strlen_sse2): Removed.
10421         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
10422         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
10423         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
10424         bit_Slow_BSF for Atom.
10425         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
10426         (index_Slow_BSF): Define.
10427         (HAS_SLOW_BSF): Define.
10429 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
10431         [BZ #10851]
10432         * resolv/res_init.c (__res_vinit): When no server address at all
10433         is given default to loopback.
10435 2010-08-24  Roland McGrath  <roland@redhat.com>
10437         * configure.in: Remove config-name.h generation.
10438         * configure: Regenerated.
10439         * config-name.in: File removed.
10440         * scripts/config-uname.sh: New file.
10441         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
10442         ($(objdir)config-name.h): New target.
10444         * sunrpc/rpc_parse.h: Avoid nested comment.
10446 2010-08-24  Richard Henderson  <rth@redhat.com>
10447             Ulrich Drepper  <drepper@redhat.com>
10448             H.J. Lu  <hongjiu.lu@intel.com>
10450         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
10451         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
10452         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
10453         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
10454         _mm_alignr_epi8 with _mm_loadu_si128.
10455         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
10456         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
10457         (__m128i_shift_right): Removed.
10458         * sysdeps/i386/i686/multiarch/varshift.h: New file.
10459         * sysdeps/i386/i686/multiarch/varshift.S: New file.
10460         * sysdeps/x86_64/multiarch/varshift.h: New file.
10461         * sysdeps/x86_64/multiarch/varshift.S: New file.
10463 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
10465         * configure.in: Move assembler checks to before sysdep dir checking.
10467 2010-08-20  Petr Baudis  <pasky@suse.cz>
10469         * LICENSES: Sync the sunrpc license.
10471 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
10473         * sunrpc/auth_des.c: Update copyright notice once again.
10474         * sunrpc/auth_none.c: Likewise.
10475         * sunrpc/auth_unix.c: Likewise.
10476         * sunrpc/authdes_prot.c: Likewise.
10477         * sunrpc/authuxprot.c: Likewise.
10478         * sunrpc/bindrsvprt.c: Likewise.
10479         * sunrpc/clnt_gen.c: Likewise.
10480         * sunrpc/clnt_perr.c: Likewise.
10481         * sunrpc/clnt_raw.c: Likewise.
10482         * sunrpc/clnt_simp.c: Likewise.
10483         * sunrpc/clnt_tcp.c: Likewise.
10484         * sunrpc/clnt_udp.c: Likewise.
10485         * sunrpc/clnt_unix.c: Likewise.
10486         * sunrpc/des_crypt.c: Likewise.
10487         * sunrpc/des_soft.c: Likewise.
10488         * sunrpc/get_myaddr.c: Likewise.
10489         * sunrpc/getrpcport.c: Likewise.
10490         * sunrpc/key_call.c: Likewise.
10491         * sunrpc/key_prot.c: Likewise.
10492         * sunrpc/openchild.c: Likewise.
10493         * sunrpc/pm_getmaps.c: Likewise.
10494         * sunrpc/pm_getport.c: Likewise.
10495         * sunrpc/pmap_clnt.c: Likewise.
10496         * sunrpc/pmap_prot.c: Likewise.
10497         * sunrpc/pmap_prot2.c: Likewise.
10498         * sunrpc/pmap_rmt.c: Likewise.
10499         * sunrpc/rpc/auth.h: Likewise.
10500         * sunrpc/rpc/auth_unix.h: Likewise.
10501         * sunrpc/rpc/clnt.h: Likewise.
10502         * sunrpc/rpc/des_crypt.h: Likewise.
10503         * sunrpc/rpc/key_prot.h: Likewise.
10504         * sunrpc/rpc/netdb.h: Likewise.
10505         * sunrpc/rpc/pmap_clnt.h: Likewise.
10506         * sunrpc/rpc/pmap_prot.h: Likewise.
10507         * sunrpc/rpc/pmap_rmt.h: Likewise.
10508         * sunrpc/rpc/rpc.h: Likewise.
10509         * sunrpc/rpc/rpc_des.h: Likewise.
10510         * sunrpc/rpc/rpc_msg.h: Likewise.
10511         * sunrpc/rpc/svc.h: Likewise.
10512         * sunrpc/rpc/svc_auth.h: Likewise.
10513         * sunrpc/rpc/types.h: Likewise.
10514         * sunrpc/rpc/xdr.h: Likewise.
10515         * sunrpc/rpc_clntout.c: Likewise.
10516         * sunrpc/rpc_cmsg.c: Likewise.
10517         * sunrpc/rpc_common.c: Likewise.
10518         * sunrpc/rpc_cout.c: Likewise.
10519         * sunrpc/rpc_dtable.c: Likewise.
10520         * sunrpc/rpc_hout.c: Likewise.
10521         * sunrpc/rpc_main.c: Likewise.
10522         * sunrpc/rpc_parse.c: Likewise.
10523         * sunrpc/rpc_parse.h: Likewise.
10524         * sunrpc/rpc_prot.c: Likewise.
10525         * sunrpc/rpc_sample.c: Likewise.
10526         * sunrpc/rpc_scan.c: Likewise.
10527         * sunrpc/rpc_scan.h: Likewise.
10528         * sunrpc/rpc_svcout.c: Likewise.
10529         * sunrpc/rpc_tblout.c: Likewise.
10530         * sunrpc/rpc_util.c: Likewise.
10531         * sunrpc/rpc_util.h: Likewise.
10532         * sunrpc/rpcinfo.c: Likewise.
10533         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
10534         * sunrpc/rpcsvc/key_prot.x: Likewise.
10535         * sunrpc/rpcsvc/klm_prot.x: Likewise.
10536         * sunrpc/rpcsvc/mount.x: Likewise.
10537         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
10538         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
10539         * sunrpc/rpcsvc/rex.x: Likewise.
10540         * sunrpc/rpcsvc/rstat.x: Likewise.
10541         * sunrpc/rpcsvc/rusers.x: Likewise.
10542         * sunrpc/rpcsvc/sm_inter.x: Likewise.
10543         * sunrpc/rpcsvc/spray.x: Likewise.
10544         * sunrpc/rpcsvc/yppasswd.x: Likewise.
10545         * sunrpc/rtime.c: Likewise.
10546         * sunrpc/svc.c: Likewise.
10547         * sunrpc/svc_auth.c: Likewise.
10548         * sunrpc/svc_authux.c: Likewise.
10549         * sunrpc/svc_raw.c: Likewise.
10550         * sunrpc/svc_run.c: Likewise.
10551         * sunrpc/svc_simple.c: Likewise.
10552         * sunrpc/svc_tcp.c: Likewise.
10553         * sunrpc/svc_udp.c: Likewise.
10554         * sunrpc/svc_unix.c: Likewise.
10555         * sunrpc/svcauth_des.c: Likewise.
10556         * sunrpc/xcrypt.c: Likewise.
10557         * sunrpc/xdr.c: Likewise.
10558         * sunrpc/xdr_array.c: Likewise.
10559         * sunrpc/xdr_float.c: Likewise.
10560         * sunrpc/xdr_mem.c: Likewise.
10561         * sunrpc/xdr_rec.c: Likewise.
10562         * sunrpc/xdr_ref.c: Likewise.
10563         * sunrpc/xdr_sizeof.c: Likewise.
10564         * sunrpc/xdr_stdio.c: Likewise.
10566         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
10567         handling.
10569 2010-08-19  Andreas Schwab  <schwab@redhat.com>
10571         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
10573 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
10575         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
10576         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
10577         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
10578         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
10579         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
10580         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
10581         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
10582         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
10583         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
10584         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
10585         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
10586         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
10587         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
10588         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
10590 2010-07-26  Anton Blanchard  <anton@samba.org>
10592         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
10593         * malloc/arena.c (heap_trim): Likewise.
10595 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
10597         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
10598         here.  Not...
10599         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
10600         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
10602 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
10604         * sysdeps/i386/elf/Makefile: New file.
10606 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
10608         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
10609         from fanotify_init.
10610         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
10611         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
10613 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
10615         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
10616         of strncasecmp_l.
10617         * sysdeps/multiarch/strcmp.S: Likewise.
10619 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
10621         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
10622         strncase_l-nonascii.
10623         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
10624         Add strncase_l-ssse3.
10625         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
10626         * sysdeps/x86_64/strcmp.S: Likewise.
10627         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
10628         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
10629         * sysdeps/x86_64/strncase.S: New file.
10630         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
10631         * sysdeps/x86_64/strncase_l.S: New file.
10632         * string/Makefile (strop-tests): Add strncasecmp.
10633         * string/test-strncasecmp.c: New file.
10635         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
10636         warning.
10638         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
10639         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
10641 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
10643         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
10645 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
10647         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
10648         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
10649         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
10651 2010-05-01  Alan Modra  <amodra@gmail.com>
10653         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
10654         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
10655         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
10656         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
10657         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
10658         tidying.  Don't tail-call __sigjmp_save for static lib.
10659         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
10660         save location.
10661         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
10662         (CALL_MCOUNT): Add eh info, and nop after bl.
10663         (TAIL_CALL_SYSCALL_ERROR): New macro.
10664         (PSEUDO_RET): Use it.
10665         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
10666         Correct save location of integer regs and cr.
10667         (_dl_profile_resolve): Correct cr save location.  Delete nops
10668         after bl when SHARED.  Reduce cfi size a little by better
10669         placement of cfi directives.
10670         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
10671         make a stack frame.  Instead use parm save area as a temp.
10672         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
10673         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
10674         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
10675         Don't make a stack frame for parent, use parm save area.
10676         Increase child stack frame to 112 bytes.  Don't save unused reg,
10677         and adjust reg usage.  Set up cfi on error recovery and
10678         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
10679         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
10680         (__makecontext): Add dummy nop after jump to exit.
10681         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
10682         Use correct parm save area and cr save, reduce stack frame.
10683         Correct cfi for possible PSEUDO_RET frame setup.
10684         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
10685         Branch to local label emitted by PSEUDO_RET rather than
10686         __syscall_error.
10688 2010-08-12  Andreas Schwab  <schwab@redhat.com>
10690         [BZ #11904]
10691         * locale/programs/locale.c (print_assignment): New function.
10692         (show_locale_vars): Use it.
10694 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
10696         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
10697         field.
10698         (struct statfs64): Likewise.
10699         (_STATFS_F_FLAGS): Define.
10700         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
10701         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
10702         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
10703         (ST_VALID): Define locally.
10704         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
10705         __statvfs_getflags, use the provided value.
10706         * sysdeps/unix/sysv/linux/kernel-features.h: Define
10707         __ASSUME_STATFS_F_FLAGS.
10709         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
10711         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
10712         Add sys/fanotify.h.
10713         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
10714         fanotify_mask for GLIBC_2.13.
10715         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
10716         fanotify_init and fanotify_mark.
10717         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
10718         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
10720         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
10721         Add prlimit.
10722         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
10723         prlimit64 for GLIBC_2.13.
10724         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
10725         prlimit64.
10726         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
10727         syscall.
10728         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
10729         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
10730         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
10731         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
10732         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
10733         add prlimit alias.
10734         * sysdeps/unix/sysv/linux/prlimit.c: New file.
10736         [BZ #11903]
10737         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
10738         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
10740         * nss/Makefile: Add rules to build and run tst-nss-test1.
10741         * shlib-versions: Add entry for libnss_test1.
10742         * nss/nss_test1.c: New file.
10743         * nss/tst-nss-test1.c: New file.
10745         * nss/nsswitch.c (__nss_database_custom): Define new variable.
10746         (__nss_configure_lookup): Set appropriate entry in
10747         __nss_configure_lookup to true.
10748         * nss/nsswitch.h: Define enum with indeces of databases in
10749         databases and __nss_database_custom arrays.  Declare
10750         __nss_database_custom.
10751         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
10752         to avoid using nscd when custom rules are installed.
10753         * nss/getXXbyYY_r.c: Likewise.
10754         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
10756         * nss/nss_files/files-parse.c: Whitespace fixes.
10758 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
10760         [BZ #11883]
10761         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
10762         * posix/fnmatch_loop.c: Likewise.
10764 2010-07-17  Andi Kleen  <ak@linux.intel.com>
10766         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
10767         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
10768         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
10769         * Versions.def [GLIBC_2.13]: Add.
10771 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
10773         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
10774         Also fail if tpwd after pwuid call is NULL.
10776 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10778         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
10779         when converting to ms.
10781 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10783         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
10784         EOPNOTSUPP errors with ENOTTY.
10785         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
10786         EOPNOTSUPP errors with ENOTTY.
10788 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
10790         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
10791         Add strcasecmp_l-ssse3.
10792         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
10793         strcasecmp.
10794         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
10795         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
10796         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
10798 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
10800         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
10802         * string/Makefile (strop-tests): Add strcasecmp.
10803         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
10804         strcasecmp_l-nonascii.
10805         (gen-as-const-headers): Add locale-defines.sym.
10806         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
10807         * sysdeps/x86_64/strcasecmp.S: New file.
10808         * sysdeps/x86_64/strcasecmp_l.S: New file.
10809         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
10810         * sysdeps/x86_64/locale-defines.sym: New file.
10811         * string/test-strcasecmp.c: New file.
10813         * string/test-strcasestr.c: Test both ends of the range of characters.
10814         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
10816 2010-07-29  Roland McGrath  <roland@redhat.com>
10818         [BZ #11856]
10819         * manual/locale.texi (Yes-or-No Questions): Fix example code.
10821 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
10823         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
10824         for ld.so.
10826 2010-07-27  Andreas Schwab  <schwab@redhat.com>
10828         * manual/memory.texi (Malloc Tunable Parameters): Document
10829         M_PERTURB.
10831 2010-07-26  Roland McGrath  <roland@redhat.com>
10833         [BZ #11840]
10834         * configure.in (-fgnu89-inline check): Set and substitute
10835         gnu89_inline, not libc_cv_gnu89_inline.
10836         * configure: Regenerated.
10837         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
10839 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
10841         * string/test-strnlen.c: New file.
10842         * string/Makefile (strop-tests): Add strnlen.
10843         * string/tester.c (test_strnlen): Add a few more test cases.
10844         * string/tst-strlen.c: Better error reporting.
10846         * sysdeps/x86_64/strnlen.S: New file.
10848 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
10850         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
10851         lower-latency instructions.
10853 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
10855         * string/test-strcasestr.c: New file.
10856         * string/test-strstr.c: New file.
10857         * string/Makefile (strop-tests): Add strstr and strcasestr.
10858         * string/str-two-way.h: Don't undefine MAX.
10859         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
10861 2010-07-21  Andreas Schwab  <schwab@redhat.com>
10863         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
10864         strcasestr-nonascii.
10865         (CFLAGS-strcasestr-nonascii.c): Define.
10866         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
10867         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
10868         Remove unused attribute.
10870 2010-07-20  Roland McGrath  <roland@redhat.com>
10872         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
10873         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
10874         ld.so.cache was broken.  With it, there is no way to disable dsocaps
10875         like LD_HWCAP_MASK can disable hwcaps.
10877 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
10879         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
10881 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
10883         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
10884         call in strcasestr.
10885         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
10886         __strcasestr_sse42_nonascii.
10887         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
10888         strcasestr-nonascii.c.
10889         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
10891 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
10893         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
10894         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
10895         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
10896         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
10898 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
10900         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
10901         fcntl.
10903 2010-07-06  Andreas Schwab  <schwab@redhat.com>
10905         [BZ #11577]
10906         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
10907         dl_signal_cerror.
10909 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
10911         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
10912         _PC_PIPE_BUF using F_GETPIPE_SZ.
10914 2010-07-05  Roland McGrath  <roland@redhat.com>
10916         * manual/arith.texi (Rounding Functions): Fix rint description
10917         implicit in round description.
10919 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
10921         * elf/Makefile: Fix linking for a few tests to make recent linker
10922         happy.
10924 2010-06-30  Andreas Schwab  <schwab@redhat.com>
10926         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
10927         $(common-objpfx)libc_nonshared.a.
10929 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
10931         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
10932         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
10933         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
10934         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
10935         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
10936         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
10937         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
10938         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
10939         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
10940         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
10941         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
10942         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
10943         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
10944         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
10945         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
10946         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
10947         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
10948         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
10949         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
10950         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
10951         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
10952         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
10953         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
10954         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
10955         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
10956         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
10957         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
10958         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
10959         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
10960         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
10961         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
10962         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
10963         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
10964         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
10965         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
10966         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
10967         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
10968         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
10969         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
10970         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
10971         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
10972         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
10973         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
10974         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
10975         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
10976         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
10977         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
10978         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
10980 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
10982         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
10983         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
10984         * string/memmove.c (memmove): Renamed to ...
10985         (MEMMOVE): ...this.  Default to memmove.
10986         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
10987         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
10988         (END_CHK): Define.
10989         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
10990         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
10991         mempcpy-ssse3-back memmove-ssse3-back.
10992         * sysdeps/x86_64/multiarch/bcopy.S: New file .
10993         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
10994         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
10995         * sysdeps/x86_64/multiarch/memcpy.S: New file.
10996         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
10997         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
10998         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
10999         * sysdeps/x86_64/multiarch/memmove.c: New file.
11000         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
11001         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
11002         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
11003         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
11004         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
11005         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
11006         Define.
11007         (index_Fast_Copy_Backward): Define.
11008         (HAS_ARCH_FEATURE): Define.
11009         (HAS_FAST_REP_STRING): Define.
11010         (HAS_FAST_COPY_BACKWARD): Define.
11012 2010-06-21  Andreas Schwab  <schwab@redhat.com>
11014         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
11015         Restore proper fallback handling.
11017 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
11019         [BZ #11701]
11020         * posix/group_member.c (__group_member): Correct checking loop.
11022         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
11023         OOM in getpwuid_r correctly.  Return error number when the caller
11024         should return, otherwise -1.
11025         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
11026         call returning > 0 value.
11027         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
11029 2010-06-07  Andreas Schwab  <schwab@redhat.com>
11031         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
11032         libc_nonshared.a from targets in modules-names.
11034 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
11036         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
11037         requires it.
11039 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
11041         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
11042         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
11043         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
11044         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
11046 2010-06-02  Andreas Schwab  <schwab@redhat.com>
11048         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
11050 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
11052         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
11053         and F_GETPIPE_SZ.
11054         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
11055         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
11056         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
11057         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
11058         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
11059         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
11061 2010-06-14  Roland McGrath  <roland@redhat.com>
11063         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
11065 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
11067         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
11068         __REDIRECT followed by __THROW.
11069         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
11070         * posix/getopt.h (getopt): Likewise.
11072 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
11074         * hurd/lookup-at.c (__file_name_lookup_at): Accept
11075         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
11076         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
11077         in AT_FLAGS.
11078         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
11079         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
11081 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
11083         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
11085 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
11087         [BZ #11640]
11088         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
11089         Properly check family and model.
11091 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
11093         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
11095 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
11097         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
11099 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
11101         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
11102         symbol reference.
11104 2010-05-19  Andreas Schwab  <schwab@redhat.com>
11106         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
11107         symbol reference.
11109 2010-05-21  Andreas Schwab  <schwab@redhat.com>
11111         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
11112         and internal_recvmmsg.
11113         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
11114         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
11115         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
11116         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
11118         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
11119         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
11120         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
11122 2010-05-20  Andreas Schwab  <schwab@redhat.com>
11124         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
11126 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
11128         POWER7 optimizations.
11129         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
11130         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
11132 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
11134         * version.h: Update for 2.13 development version.
11136 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
11138         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
11139         exceptions.  Return 0.
11141 2010-05-07  Roland McGrath  <roland@redhat.com>
11143         * elf/ldconfig.c (main): Add a const.
11145 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
11147         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
11148         (args_options): Add no-idn option.
11149         (ahosts_keys_int): Add idn_flags to ai_flags.
11150         (parse_option): Handle 'i' option to clear idn_flags.
11152         * malloc/malloc.c (_int_free): Possible race in the most recently
11153         added check.  Only act on the data if no current modification
11154         happened.
11156 See ChangeLog.17 for earlier changes.