Use non-signaling floating-point comparisons in math functions.
[glibc.git] / ChangeLog
blob98dce70996ff347fd62dce8d57639d9704ad5609
1 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
3         * math/w_acos.c: Use non-signaling floating-point comparisons.
4         * math/w_acosf.c: Likewise.
5         * math/w_acosh.c: Likewise.
6         * math/w_acoshf.c: Likewise.
7         * math/w_acoshl.c: Likewise.
8         * math/w_acosl.c: Likewise.
9         * math/w_asin.c: Likewise.
10         * math/w_asinf.c: Likewise.
11         * math/w_asinl.c: Likewise.
12         * math/w_atanh.c: Likewise.
13         * math/w_atanhf.c: Likewise.
14         * math/w_atanhl.c: Likewise.
15         * math/w_exp2.c: Likewise.
16         * math/w_exp2f.c: Likewise.
17         * math/w_exp2l.c: Likewise.
18         * math/w_j0.c: Likewise.
19         * math/w_j0f.c: Likewise.
20         * math/w_j0l.c: Likewise.
21         * math/w_j1.c: Likewise.
22         * math/w_j1f.c: Likewise.
23         * math/w_j1l.c: Likewise.
24         * math/w_jn.c: Likewise.
25         * math/w_jnf.c: Likewise.
26         * math/w_log.c: Likewise.
27         * math/w_log10.c: Likewise.
28         * math/w_log10f.c: Likewise.
29         * math/w_log10l.c: Likewise.
30         * math/w_log2.c: Likewise.
31         * math/w_log2f.c: Likewise.
32         * math/w_log2l.c: Likewise.
33         * math/w_logf.c: Likewise.
34         * math/w_logl.c: Likewise.
35         * math/w_sqrt.c: Likewise.
36         * math/w_sqrtf.c: Likewise.
37         * math/w_sqrtl.c: Likewise.
38         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
39         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
40         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
41         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
42         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
44 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
46         [BZ #9739]
47         * manual/string.texi (strnlen): Use correct parameter name in
48         equivalent expression.
50 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
52         [BZ #11174]
53         * manual/users.texi (seteuid): Consistently use neweuid for
54         argument name.
56 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
58         [BZ #13704]
59         * manual/nss.texi (Services in the NSS configuration): Correct
60         list of services in example configuration file.
62 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
64         [BZ #11322]
65         * manual/arith.texi: Remove statements about negative zero
66         behaving identically to zero.
68 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
70         [BZ #5993]
71         * manual/install.texi: Do not document upgrading from libc5.
73 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
75         [BZ #4596]
76         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
78 2012-02-18  David S. Miller  <davem@davemloft.net>
80         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
81         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
82         %o7 across the call.
83         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
84         instead.
85         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
86         SETUP_PIC_REG_LEAF.
87         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
88         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
89         * sysdeps/sparc/crtn.S: Likewise.
91 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
93         * aout/Makefile: Remove.
95 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
97         [BZ #13058]
98         * manual/examples/argp-ex1.c (main): Format definition in GNU
99         style.
100         * manual/examples/argp-ex2.c (main): Likewise.
101         * manual/examples/argp-ex3.c (main): Likewise.
102         * manual/examples/argp-ex4.c (main): Likewise.
103         * manual/examples/longopt.c (main): Use new-style prototype
104         definition.
105         * manual/examples/strncat.c (main): Specify return type and use
106         (void) for arguments.
107         * manual/examples/subopt.c (main): Use char **argv argument.
109 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
111         [BZ #5077]
112         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
113         rounding modes.
115 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
117         [BZ #6907]
118         * manual/string.texi (strchr): Change when strchrnul is
119         recommended.
121 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
123         [BZ #174]
124         * manual/locale.texi (setlocale): Document LOCPATH.
126 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
128         [BZ #10210]
129         * manual/process.texi (execle): Move @dots{} before last argument.
131 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
133         [BZ #12047]
134         * manual/charset.texi (Generic Charset Conversion): Fix typo
135         (LC_TYPE -> LC_CTYPE).
137 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
139         [BZ #5805]
140         * manual/arith.texi (scalbn): Use @var{} on parameter names.
141         (scalbnf): Likewise.
142         (scalbnl): Likewise.
143         (scalbln): Likewise.
144         (scalblnf): Likewise.
145         (scalblnl): Likewise.
146         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
147         (vwarnx): Likewise.
148         (verr): Likewise.
149         (verrx): Likewise.
150         * manual/filesys.texi (telldir): Use braces around return type.
151         * manual/llio.texi (mmap): Add space after comma.
152         (mmap64): Likewise.
153         * manual/math.texi (jn): Use @var{} on parameter names.
154         (jnf): Likewise.
155         (jnl): Likewise.
156         (yn): Likewise.
157         (ynf): Likewise.
158         (ynl): Likewise.
159         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
160         line.
161         * manual/resource.texi (ulimit): Use @dots{} instead of literal
162         "...".
163         (sched_get_priority_min): Remove semicolon on @deftypefun line.
164         (sched_get_priority_max): Likewise.
165         * manual/signal.texi (sigvec): Add space after comma.
166         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
167         names.
168         (if_indextoname): Likewise.
169         (if_freenameindex): Likewise.
170         (sendto): Use ',' instead of '.' in prototype.
171         * manual/startup.texi (syscall): Use @dots{} instead of literal
172         "...".
173         * manual/stdio.texi (__fpending): Separate initial words of
174         paragraph from @deftypefun line.
175         * manual/syslog.texi (syslog): Use @dots{} instead of literal
176         "...".
177         (vsyslog): Use @var{} on parameter names.
178         * manual/terminal.texi (stty): Use @var{} on parameter names.
179         * manual/users.texi (getutmp): Use @var{} on parameter names.
180         (getutmpx): Likewise.
182 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
184         [BZ #6884]
185         * manual/stdio.texi (fopen): Fix typos in description of
186         ",ccs=STRING".
188 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
190         [BZ #4026]
191         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
192         get clock_id definition.
194 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
196         [BZ #4822]
197         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
198         (madvise): Cast every argument to void on its own.
200 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
202         [BZ #9902]
203         * manual/startup.texi (Exit Status): Fix typo.
205 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
207         [BZ #10140]
208         * manual/examples/argp-ex1.c: Include <stdlib.h>.
209         * manual/examples/argp-ex2.c: Likewise.
210         * manual/examples/argp-ex3.c: Likewise.
212 2012-02-16  Richard Henderson  <rth@redhat.com>
214         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
215         * sysdeps/s390/s390-32/initfini.c: Remove.
216         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
217         * sysdeps/s390/s390-64/initfini.c: Remove.
219 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
221         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
222         compiler output for sysdeps/generic/initfini.c.
223         * sysdeps/sh/elf/initfini.c: Remove file.
225 2012-02-16  David S. Miller  <davem@davemloft.net>
227         [BZ #11494]
228         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
230         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
231         * sysdeps/sparc/crti.S: New file.
232         * sysdeps/sparc/crtn.S: New file.
233         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
234         * sysdeps/sparc/sparc64/Makefile: Likewise.
236 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
238         [BZ #3335]
239         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
241 2012-02-15  Roland McGrath  <roland@hack.frob.com>
243         [BZ #4822]
244         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
246         * mach/devstream.c (cookie_io_functions_t): Macro removed.
247         (write, read, close): Likewise.
248         Patch by Aurelien Jarno <aurelien@aurel32.net>.
250 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
252         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
253         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
254         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
255         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
256         <bits/signalfd.h>.
257         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
258         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
259         bits/signalfd.h.
261 2012-02-14  Marek Polacek  <polacek@redhat.com>
263         * sysdeps/x86_64/crti.S: New file.
264         * sysdeps/x86_64/crtn.S: New file.
265         * sysdeps/x86_64/elf/initfini.c: Remove file.
267 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
269         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
270         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
271         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
272         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
273         <bits/inotify.h>.
274         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
275         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
276         bits/inotify.h.
278 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
280         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
281         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
282         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
283         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
284         <bits/eventfd.h>.
285         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
286         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
287         bits/eventfd.h.
289 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
291         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
292         __feraiseexcept instead of feraiseexcept.
294         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
295         nanosleep invocations.
296         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
297         strings, and add error checking for a nanosleep invocations.
299 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
301         Replace FSF snail mail address with URLs, as per GNU coding standards.
302         Most of the snail mail addresses were wrong anyway, and omitting
303         them makes the source code easier to maintain.  Almost all of the
304         changes are to license notices and to locale LC_IDENTIFICATION
305         addresses, except for this one:
306         * manual/libc.texinfo: In "Published by", give the FSF's URL,
307         not its snail mail address.
309 2012-02-09  Richard Henderson  <rth@twiddle.net>
311         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
312         of kernel-features.h.
314         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
316 2012-02-08  Marek Polacek  <polacek@redhat.com>
318         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
319         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
320         * sysdeps/gnu/_G_config.h: Likewise.
321         * sysdeps/generic/_G_config.h: Likewise.
323 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
325         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
326         tests.
327         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
329         * sysdeps/powerpc/powerpc32/crti.S: New file.
330         * sysdeps/powerpc/powerpc32/crtn.S: New file.
331         * sysdeps/powerpc/powerpc64/crti.S: New file.
332         * sysdeps/powerpc/powerpc64/crtn.S: New file.
334         * Makeconfig (have-initfini): Don't set.
335         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
336         * configure.in (nopic_initfini): Don't substitute.
337         * config.h.in (HAVE_INITFINI): Don't #undef.
338         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
339         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
341 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
343         Support crti.S and crtn.S provided directly by architectures.
344         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
345         [crti.S in sysdirs] (omit-deps): Likewise.
346         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
347         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
348         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
349         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
350         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
351         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
352         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
353         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
354         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
355         compiler output for sysdeps/generic/initfini.c.
356         * sysdeps/i386/elf/Makefile: Remove file.
357         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
359 2012-02-07  Marek Polacek  <polacek@redhat.com>
361         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
362         * sysdeps/gnu/_G_config.h: Likewise.
363         * sysdeps/mach/hurd/_G_config.h: Likewise.
365 2012-02-07  Marek Polacek  <polacek@redhat.com>
367         * math/Makefile (tests): Add tst-CMPLX2.
368         * math/tst-CMPLX2.c: New file.
370 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
372         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
374         * math/libm-test.inc (jn_test): Add missing L suffix.
376 2012-02-06  Marek Polacek  <polacek@redhat.com>
378         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
379         * sysdeps/i386/fpu/e_powf.S: Likewise.
380         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
381         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
382         * sysdeps/i386/fpu/e_acosh.S: Likewise.
383         * sysdeps/i386/fpu/e_pow.S: Likewise.
384         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
385         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
386         * sysdeps/i386/fpu/s_expm1.S: Likewise.
387         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
388         * sysdeps/i386/fpu/e_log2.S: Likewise.
389         * sysdeps/i386/fpu/e_log2l.S: Likewise.
390         * sysdeps/i386/fpu/e_scalb.S: Likewise.
391         * sysdeps/i386/fpu/e_powl.S: Likewise.
392         * sysdeps/i386/fpu/s_log1p.S: Likewise.
393         * sysdeps/i386/fpu/e_log10f.S: Likewise.
394         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
395         * sysdeps/i386/fpu/e_logl.S: Likewise.
396         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
397         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
398         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
399         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
400         * sysdeps/i386/fpu/e_log2f.S: Likewise.
401         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
402         * sysdeps/i386/fpu/e_log.S: Likewise.
403         * sysdeps/i386/fpu/s_cexp.S: Likewise.
404         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
405         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
406         * sysdeps/i386/fpu/e_logf.S: Likewise.
407         * sysdeps/i386/fpu/e_log10l.S: Likewise.
408         * sysdeps/i386/fpu/e_atanh.S: Likewise.
409         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
410         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
411         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
412         * sysdeps/i386/fpu/e_log10.S: Likewise.
413         * sysdeps/i386/fpu/s_frexp.S: Likewise.
414         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
415         * sysdeps/i386/fpu/s_asinh.S: Likewise.
416         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
417         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
418         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
419         * sysdeps/i386/asm-syntax.h: Likewise.
420         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
421         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
422         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
423         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
424         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
425         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
426         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
427         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
428         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
429         * sysdeps/powerpc/sysdep.h: Likewise.
430         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
431         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
433 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
435         [BZ #411]
436         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
438 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
440         * sysdeps/i386/sysdep.h: Include <features.h>.
441         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
442         version.
444 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
446         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
447         Define.
448         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
449         LOAD_PIC_REG_STR.
451 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
453         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
454         (SETUP_PIC_REG): Use GET_PC_THUNK.
455         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
456         macro.
458 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
460         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
461         for non-PIC compilation.
462         (SETUP_PIC_REG): Add .p2align directive.
463         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
464         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
465         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
466         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
467         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
468         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
469         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
470         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
471         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
472         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
473         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
474         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
475         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
476         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
477         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
478         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
479         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
480         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
481         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
482         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
483         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
484         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
485         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
486         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
487         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
488         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
489         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
490         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
491         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
492         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
493         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
494         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
495         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
496         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
497         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
498         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
499         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
500         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
501         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
502         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
503         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
505 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
507         * math/tst-CMPLX.c: Include <stdio.h>.
509 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
511         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
512         float.
513         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
514         * sysdeps/sparc/bits/mathdef.h: Likewise.
516 2012-01-31  Marek Polacek  <polacek@redhat.com>
518         * libio/libio.h: Don't define _PARAMS.
519         * locale/programs/config.h: Don't define PARAMS.
520         * stdlib/strtol_l.c: Likewise.
521         (__strtol_l): Remove PARAMS from the prototype.
523 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
525         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
526         names.  Just use the correct names.  Remove unnecessary wrapper
527         functions.
528         * malloc/arena.c: Likewise.
529         * malloc/hooks.c: Likewise.
531         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
532         ARENA_TEST says not to.  Simplify test for creation of a new arena.
533         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
535 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
537         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
538         into tail calls.
539         (update_get_addr): New function.
540         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
541         GET_ADDR_MODULE parameter.
543 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
545         * crypt/cert.c: Remove __STDC__ conditionals.
546         * crypt/crypt-entry.c: Likewise.
547         * crypt/crypt_util.c: Likewise.
548         * libio/filedoalloc.c: Likewise.
549         * libio/fileops.c: Likewise.
550         * libio/genops.c: Likewise.
551         * libio/iofclose.c: Likewise.
552         * libio/iofdopen.c: Likewise.
553         * libio/iofopen.c: Likewise.
554         * libio/iofopen64.c: Likewise.
555         * libio/iogetdelim.c: Likewise.
556         * libio/iopopen.c: Likewise.
557         * libio/obprintf.c: Likewise.
558         * libio/oldfileops.c: Likewise.
559         * libio/oldiofclose.c: Likewise.
560         * libio/oldiofdopen.c: Likewise.
561         * libio/oldiofopen.c: Likewise.
562         * libio/oldiopopen.c: Likewise.
563         * libio/wfiledoalloc.c: Likewise.
564         * libio/wgenops.c: Likewise.
565         * locale/programs/xmalloc.c: Likewise.
566         * misc/syslog.c: Likewise.
567         * stdio-common/xbug.c: Likewise.
568         * string/memchr.c: Likewise.
569         * string/memcmp.c: Likewise.
570         * string/memrchr.c: Likewise.
571         * string/rawmemchr.c: Likewise.
572         * sysdeps/posix/getcwd.c: Likewise.
573         * time/strftime_l.c: Likewise.
575 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
577         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
578         * config.make.in (config-cflags-sse2avx): Define.
579         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
580         Fix typo.
582 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
584         * scripts/config.guess: Update from upstream config git repository.
585         * scripts/config.sub: Likewise.
587 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
589         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
590         (EM_NUM): Update.
591         (R_TILEPRO_*, R_TILEGX_*): New macros.
593         * scripts/firstversions.awk: Fix bug in version range handling.
595         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
597         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
599         * include/sys/epoll.h: New file.
600         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
601         libc_hidden_def.
603 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
605         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
606         Avoid unnecessary __WORDSIZE == 64 test.
607         (fmaxf): Use VEX format if possible.
608         (fmax): Likewise.
609         (fminf): Likewise.
610         (fmin): Likewise.
612         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
613         * math/math_private.h: Remove libc_fegetround* and
614         libc_fesetround*.
615         * sysdeps/i386/configure.in: Check for -msse2avx.
616         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
617         also if SSE2AVX is defined.
618         Remove libc_fegetround* and libc_fesetround*.
619         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
620         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
621         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
622         of HAS_YMM_USABLE.
623         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
624         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
625         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
626         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
627         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
629         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
631 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
633         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
634         size is not set.
635         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
637 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
639         [BZ #13618]
640         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
641         relocation.
642         * Makeconfig (libm): Define.
643         * elf/Makefile: Add rules to build and run tst-relsort1.
644         * elf/tst-relsort1.c: New file.
645         * elf/tst-relsort1mod1.c: New file.
646         * elf/tst-relsort1mod2.c: New file.
648 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
650         * math/s_ldexp.c: Remove __STDC__ conditionals.
651         * math/s_ldexpf.c: Likewise.
652         * math/s_ldexpl.c: Likewise.
653         * math/s_nextafter.c: Likewise.
654         * math/s_nexttowardf.c: Likewise.
655         * math/s_significand.c: Likewise.
656         * math/s_significandf.c: Likewise.
657         * math/s_significandl.c: Likewise.
658         * math/w_jnl.c: Likewise.
659         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
660         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
661         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
662         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
663         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
664         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
665         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
666         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
667         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
668         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
669         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
670         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
671         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
672         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
673         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
674         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
675         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
676         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
677         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
678         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
679         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
680         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
681         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
682         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
683         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
684         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
685         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
686         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
687         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
688         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
689         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
690         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
691         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
692         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
693         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
694         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
695         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
696         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
697         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
698         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
699         * sysdeps/ieee754/k_standard.c: Likewise.
700         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
701         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
702         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
703         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
704         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
705         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
706         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
707         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
708         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
709         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
710         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
711         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
712         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
713         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
714         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
715         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
716         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
717         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
718         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
719         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
720         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
721         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
722         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
723         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
724         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
725         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
726         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
727         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
728         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
729         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
730         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
731         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
732         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
733         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
734         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
735         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
736         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
737         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
738         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
739         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
740         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
741         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
742         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
743         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
744         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
745         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
746         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
747         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
748         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
749         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
750         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
751         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
752         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
753         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
754         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
755         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
756         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
757         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
758         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
759         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
760         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
761         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
762         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
763         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
764         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
765         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
766         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
767         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
768         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
769         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
770         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
771         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
772         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
773         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
774         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
775         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
776         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
777         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
778         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
779         * sysdeps/ieee754/s_matherr.c: Likewise.
780         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
781         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
782         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
783         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
785 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
787         * crypt/md5.h: Remove __STDC__ conditionals.
788         * libio/libioP.h: Likewise.
789         * locale/programs/config.h: Likewise.
790         * sysdeps/generic/sysdep.h: Likewise.
791         * sysdeps/i386/asm-syntax.h: Likewise.
792         * sysdeps/s390/asm-syntax.h: Likewise.
793         * sysdeps/unix/sysdep.h: Likewise.
794         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
795         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
797 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
799         * libio/libio.h: Remove __STDC__ conditionals.
800         * malloc/obstack.h: Likewise.
801         * math/complex.h: Likewise.
802         * math/math.h: Likewise.
803         * sysdeps/generic/_G_config.h: Likewise.
804         * sysdeps/gnu/_G_config.h: Likewise.
805         * sysdeps/mach/hurd/_G_config.h: Likewise.
806         * sysdeps/powerpc/bits/mathdef.h: Likewise.
807         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
808         * sysdeps/sparc/bits/mathdef.h: Likewise.
810 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
812         [BZ #13583]
813         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
814         Clean up HAS_* macros.
815         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
816         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
817         possible.
818         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
819         HAS_AVX.
820         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
821         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
822         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
823         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
824         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
826 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
828         * elf/tst-unique3.cc (gets): Remove declaration.
829         * elf/tst-unique3lib.cc (gets): Likewise.
830         * elf/tst-unique3lib2.cc (gets): Likewise.
831         * elf/tst-unique4.cc (gets): Likewise.
833 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
835         * include/stdio.h: Add C++ protection.  Add gets declarations and
836         definitions.
837         * debug/tst-chk1.c: Don't declare gets here.
838         * stdio-common/tst-gets.c: Likewise.
840 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
842         * posix/glob: Remove directory.
844 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
846         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
848 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
850         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
851         of the non-standard EPFNOSUPPORT.
853 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
855         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
856         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
857         ANYWHERE set to 1 only on KERN_NO_SPACE error.
859 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
861         * wcsmbs/uchar.h: Test __STDC_VERSION__.
863 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
865         * nscd/aicache.c (addhstaiX): Do not cache negative results of
866         transient errors.
867         * nscd/grpcache.c (cache_addgr): Likewise.
868         * nscd/hstcache.c (cache_addhst): Likewise.
869         * nscd/initgrcache.c (addinitgroupsX): Likewise.
870         * nscd/pwdcache.c (cache_addpw): Likewise.
871         * nscd/servicescache.c (cache_addserv): Likewise.
873 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
875         * malloc/malloc.c: Various cleanups.
876         * malloc/hooks.c: Likewise.
878         * stdlib/Makefile (tests): Add bug-fmtmsg1.
879         * stdlib/bug-fmtmsg1.c: New file.
881         * stdlib/fmtmsg.c (init): Add missing unlock.
882         Patch by Peng Haitao <penght@cn.fujitsu.com>.
884 2012-01-12  Marek Polacek  <polacek@redhat.com>
886         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
887         and _GNU_SOURCE.
889 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
891         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
892         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
893         macro to ensure uniqueness of label name.
894         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
895         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
897 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
899         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
901         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
902         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
903         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
904         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
906 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
908         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
910         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
911         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
912         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
914         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
916         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
917         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
918         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
919         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
921         * math/bits/math-finite.h: Add ldexp support.
923 2012-01-10  Marek Polacek  <polacek@redhat.com>
925         * locale/programs/localedef.h (show_archive_content): Add noreturn
926         attribute.
928 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
930         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
932 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
934         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
936         * io/Makefile (headers): Add bits/poll2.h.
938 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
940         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
941         typo #include statement.
943 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
945         * include/sys/cdefs.h: Define __attribute_alloc_size.
946         * catgets/gencat.c: Add alloc_size attribute and apply consistently
947         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
948         * elf/pldd.c: Likewise.
949         * iconv/iconv_charmap.c: Likewise.
950         * iconv/iconvconfig.c: Likewise.
951         * iconv/strtab.c: Likewise.
952         * locale/programs/locale.c: Likewise.
953         * locale/programs/localedef.h: Likewise.
954         * locale/programs/simple-hash.c: Likewise.
955         * nscd/nscd.h: Likewise.
956         * nss/makedb.c: Likewise.
957         * sysdeps/generic/ldconfig.h: Likewise.
958         * locale/programs/localedef.c: Remove xmalloc prototype.
959         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
961 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
963         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
964         appropriate.
966 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
968         * math/Makefile (tests): Add tst-CMPLX.
969         * math/tst-CMPLX.c: New file.
971         * math/complex.h (CMPLXL): Fix typo.
973         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
974         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
975         GLIBC_2.16.
976         * debug/tst-chk1.c: Add poll and ppoll tests.
977         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
978         * include/sys/poll.h: Add hidden proto for ppoll.
979         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
980         * sysdeps/mach/hurd/ppoll.c: Likewise.
981         * io/ppoll.c: Likewise.
982         * debug/poll_chk.c: New file.
983         * debug/ppoll_chk.c: New file.
984         * include/bits/poll2.h: New file.
985         * io/bits/poll2.h: New file.
987         [BZ #1350]
988         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
990         * configure.in: static is always set to yes.  Remove.
991         * config.make.in: Don't set build-static.
992         * Makeconfig: Remove use of build-static.
993         * dlfcn/Makefile: Likewise.
994         * elf/Makefile: Likewise.
995         * math/Makefile: Likewise.
996         * misc/Makefile: Likewise.
997         * nptl/Makefile: Likewise.
998         * sysdeps/mach/hurd/Makefile: Likewise.
1000         * configure.in: PWD_P is not used anymore.
1001         * config.make.in: Remove PWD_P entry.
1003         * configure.in: Remove last remnants of RANLIB.
1004         No need to check for signed size_t anymore.
1005         Don't set libc_commonpagesize and libc_relro_required here for Alpha
1006         and IA-64.
1007         Remove __builtin_expect test because we require at least gcc 3.4.
1008         * aclocal.m4: Likewise.
1010         * wcsmbs/mbrtoc16.c: Implement using towc function.
1011         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
1012         * wcsmbs/wcsmbsload.c: Likewise.
1013         * iconv/gconv_simple.c: Likewise.
1014         * iconv/gconv_int.h: Likewise.
1015         * iconv/gconv_builtin.h: Likewise.
1016         * iconv/iconv_prog.c: Remove CHAR16 handling.
1018         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
1020         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
1022         * configure.in: Remove --with-elf and --enable-bounded options.
1023         Dont set base_machine for ia64.  More non-ELF conditions removed.
1024         Remove testing and setting of leading underscore information.
1025         * config.make.in (build-bounded): Set to no.
1026         * config.h.in: Remove NO_UNDERSCORES entry.
1027         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
1028         them.
1029         * csu/start.c: Remove !NO_UNDERSCORE code.
1030         * locale/localeinfo.h: Likewise.
1031         * sysdeps/generic/machine-gmon.h: Likewise.
1032         * sysdeps/generic/sysdep.h: Likewise.
1033         * sysdeps/i386/sysdep.h: Likewise.
1034         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
1035         * sysdeps/mach/sysdep.h: Likewise.
1036         * sysdeps/s390/s390-32/sysdep.h: Likewise.
1037         * sysdeps/s390/s390-64/sysdep.h: Likewise.
1038         * sysdeps/sh/sysdep.h: Likewise.
1039         * sysdeps/sparc/sparc32/alloca.S: Likewise.
1040         * sysdeps/unix/i386/sysdep.S: Likewise.
1041         * sysdeps/unix/sparc/start.c: Likewise.
1042         * sysdeps/unix/sparc/sysdep.S: Likewise.
1043         * sysdeps/unix/sparc/sysdep.h: Likewise.
1044         * sysdeps/unix/start.c: Likewise.
1045         * sysdeps/unix/x86_64/sysdep.S: Likewise.
1046         * sysdeps/x86_64/sysdep.h: Likewise.
1048 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
1050         [BZ #13553]
1051         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
1052         for non-gcc.
1053         * argp/argp-fmtstream.h: Use const instead __const.
1054         * argp/argp.h: Likewise.
1055         * assert/assert.h: Likewise.
1056         * bits/fenv.h: Likewise.
1057         * bits/sched.h: Likewise.
1058         * bits/sigset.h: Likewise.
1059         * bits/sigthread.h: Likewise.
1060         * catgets/nl_types.h: Likewise.
1061         * conform/data/pthread.h-data: Likewise.
1062         * crypt/crypt-private.h: Likewise.
1063         * crypt/crypt.h: Likewise.
1064         * crypt/crypt_util.c: Likewise.
1065         * ctype/ctype.h: Likewise.
1066         * debug/execinfo.h: Likewise.
1067         * debug/mbsnrtowcs_chk.c: Likewise.
1068         * debug/mbsrtowcs_chk.c: Likewise.
1069         * debug/wcsnrtombs_chk.c: Likewise.
1070         * debug/wcsrtombs_chk.c: Likewise.
1071         * debug/wcstombs_chk.c: Likewise.
1072         * dirent/dirent.h: Likewise.
1073         * dlfcn/dlfcn.h: Likewise.
1074         * elf/neededtest4.c: Likewise.
1075         * grp/grp.h: Likewise.
1076         * gshadow/gshadow.h: Likewise.
1077         * iconv/gconv.h: Likewise.
1078         * iconv/gconv_int.h: Likewise.
1079         * iconv/gconv_simple.c: Likewise.
1080         * iconv/iconv.h: Likewise.
1081         * iconv/loop.c: Likewise.
1082         * iconv/skeleton.c: Likewise.
1083         * include/aio.h: Likewise.
1084         * include/aliases.h: Likewise.
1085         * include/argz.h: Likewise.
1086         * include/arpa/inet.h: Likewise.
1087         * include/assert.h: Likewise.
1088         * include/dirent.h: Likewise.
1089         * include/dlfcn.h: Likewise.
1090         * include/execinfo.h: Likewise.
1091         * include/fcntl.h: Likewise.
1092         * include/fenv.h: Likewise.
1093         * include/glob.h: Likewise.
1094         * include/grp.h: Likewise.
1095         * include/libintl.h: Likewise.
1096         * include/mntent.h: Likewise.
1097         * include/netdb.h: Likewise.
1098         * include/pwd.h: Likewise.
1099         * include/rpc/netdb.h: Likewise.
1100         * include/sched.h: Likewise.
1101         * include/search.h: Likewise.
1102         * include/shadow.h: Likewise.
1103         * include/signal.h: Likewise.
1104         * include/stdio.h: Likewise.
1105         * include/stdlib.h: Likewise.
1106         * include/string.h: Likewise.
1107         * include/sys/socket.h: Likewise.
1108         * include/sys/stat.h: Likewise.
1109         * include/sys/statfs.h: Likewise.
1110         * include/sys/statvfs.h: Likewise.
1111         * include/sys/syslog.h: Likewise.
1112         * include/sys/time.h: Likewise.
1113         * include/sys/uio.h: Likewise.
1114         * include/time.h: Likewise.
1115         * include/unistd.h: Likewise.
1116         * include/utmp.h: Likewise.
1117         * include/wchar.h: Likewise.
1118         * include/wctype.h: Likewise.
1119         * inet/aliases.h: Likewise.
1120         * inet/arpa/inet.h: Likewise.
1121         * inet/netinet/ether.h: Likewise.
1122         * inet/netinet/in.h: Likewise.
1123         * intl/libintl.h: Likewise.
1124         * io/bits/fcntl2.h: Likewise.
1125         * io/fcntl.h: Likewise.
1126         * io/ftw.h: Likewise.
1127         * io/sys/poll.h: Likewise.
1128         * io/sys/stat.h: Likewise.
1129         * io/sys/statfs.h: Likewise.
1130         * io/sys/statvfs.h: Likewise.
1131         * io/utime.h: Likewise.
1132         * libio/bits/stdio.h: Likewise.
1133         * libio/bits/stdio2.h: Likewise.
1134         * libio/libio.h: Likewise.
1135         * libio/libioP.h: Likewise.
1136         * libio/stdio.h: Likewise.
1137         * locale/lc-ctype.c: Likewise.
1138         * locale/locale.h: Likewise.
1139         * login/utmp.h: Likewise.
1140         * malloc/arena.c: Likewise.
1141         * malloc/malloc.c: Likewise.
1142         * malloc/malloc.h: Likewise.
1143         * malloc/mcheck.c: Likewise.
1144         * malloc/mtrace.c: Likewise.
1145         * math/bits/mathcalls.h: Likewise.
1146         * math/fenv.h: Likewise.
1147         * math/math_private.h: Likewise.
1148         * misc/bits/error.h: Likewise.
1149         * misc/bits/syslog.h: Likewise.
1150         * misc/err.h: Likewise.
1151         * misc/error.h: Likewise.
1152         * misc/fstab.h: Likewise.
1153         * misc/mntent.h: Likewise.
1154         * misc/regexp.h: Likewise.
1155         * misc/search.h: Likewise.
1156         * misc/sgtty.h: Likewise.
1157         * misc/sys/mman.h: Likewise.
1158         * misc/sys/syslog.h: Likewise.
1159         * misc/sys/uio.h: Likewise.
1160         * misc/sys/xattr.h: Likewise.
1161         * misc/ttyent.h: Likewise.
1162         * nis/rpcsvc/ypclnt.h: Likewise.
1163         * nss/nss.h: Likewise.
1164         * posix/bits/unistd.h: Likewise.
1165         * posix/fnmatch.h: Likewise.
1166         * posix/glob.h: Likewise.
1167         * posix/sched.h: Likewise.
1168         * posix/spawn.h: Likewise.
1169         * posix/sys/wait.h: Likewise.
1170         * posix/unistd.h: Likewise.
1171         * posix/wordexp.h: Likewise.
1172         * pwd/pwd.h: Likewise.
1173         * resolv/netdb.h: Likewise.
1174         * resource/sys/resource.h: Likewise.
1175         * rt/aio.h: Likewise.
1176         * rt/bits/mqueue2.h: Likewise.
1177         * rt/mqueue.h: Likewise.
1178         * shadow/shadow.h: Likewise.
1179         * signal/signal.h: Likewise.
1180         * socket/send.c: Likewise.
1181         * socket/sendto.c: Likewise.
1182         * socket/sys/socket.h: Likewise.
1183         * stdio-common/printf.h: Likewise.
1184         * stdlib/bits/stdlib.h: Likewise.
1185         * stdlib/fmtmsg.h: Likewise.
1186         * stdlib/monetary.h: Likewise.
1187         * stdlib/stdlib.h: Likewise.
1188         * stdlib/ucontext.h: Likewise.
1189         * streams/stropts.h: Likewise.
1190         * string/argz.h: Likewise.
1191         * string/bits/string2.h: Likewise.
1192         * string/string.h: Likewise.
1193         * string/strings.h: Likewise.
1194         * sunrpc/rpc/auth.h: Likewise.
1195         * sunrpc/rpc/auth_des.h: Likewise.
1196         * sunrpc/rpc/clnt.h: Likewise.
1197         * sunrpc/rpc/netdb.h: Likewise.
1198         * sunrpc/rpc/pmap_clnt.h: Likewise.
1199         * sunrpc/rpc/xdr.h: Likewise.
1200         * sysdeps/generic/inttypes.h: Likewise.
1201         * sysdeps/generic/net/if.h: Likewise.
1202         * sysdeps/generic/sys/swap.h: Likewise.
1203         * sysdeps/gnu/net/if.h: Likewise.
1204         * sysdeps/gnu/utmpx.h: Likewise.
1205         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
1206         * sysdeps/i386/i486/bits/string.h: Likewise.
1207         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
1208         * sysdeps/s390/bits/string.h: Likewise.
1209         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
1210         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
1211         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
1212         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
1213         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
1214         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
1215         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
1216         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
1217         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
1218         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
1219         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
1220         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
1221         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
1222         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
1223         * sysdeps/unix/sysv/linux/readv.c: Likewise.
1224         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
1225         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
1226         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
1227         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
1228         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
1229         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
1230         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
1231         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
1232         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
1233         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
1234         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
1235         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
1236         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
1237         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
1238         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
1239         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
1240         * sysvipc/sys/ipc.h: Likewise.
1241         * sysvipc/sys/msg.h: Likewise.
1242         * sysvipc/sys/sem.h: Likewise.
1243         * sysvipc/sys/shm.h: Likewise.
1244         * termios/termios.h: Likewise.
1245         * time/sys/time.h: Likewise.
1246         * time/time.h: Likewise.
1247         * wcsmbs/bits/wchar2.h: Likewise.
1248         * wcsmbs/uchar.h: Likewise.
1249         * wcsmbs/wchar.h: Likewise.
1250         * wctype/wctype.h: Likewise.
1252         [BZ #13551]
1253         * Makeconfig: Remove all but ELF support including AIX support.
1254         * Makerules: Likewise.
1255         * config.h.in: Likewise.
1256         * config.make.in: Likewise.
1257         * configure: Likewise.
1258         * configure.in: Likewise.
1259         * csu/Makefile: Likewise.
1260         * csu/version.c: Likewise.
1261         * debug/Makefile: Likewise.
1262         * dlfcn/Makefile: Likewise.
1263         * elf/Makefile: Likewise.
1264         * extra-lib.mk: Likewise.
1265         * iconv/Makefile: Likewise.
1266         * include/libc-symbols.h: Likewise.
1267         * include/shlib-compat.h: Likewise.
1268         * resolv/Makefile: Likewise.
1269         * resolv/res_libc.c: Likewise.
1270         * rt/Makefile: Likewise.
1271         * sysdeps/i386/asm-syntax.h: Likewise.
1272         * sysdeps/i386/sysdep.h: Likewise.
1273         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
1274         * sysdeps/mach/sysdep.h: Likewise.
1275         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
1276         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
1277         * sysdeps/s390/asm-syntax.h: Likewise.
1278         * sysdeps/s390/s390-32/sysdep.h: Likewise.
1279         * sysdeps/s390/s390-64/sysdep.h: Likewise.
1280         * sysdeps/sh/sysdep.h: Likewise.
1281         * sysdeps/unix/sparc/sysdep.h: Likewise.
1282         * sysdeps/wordsize-32/divdi3.c: Likewise.
1283         * sysdeps/x86_64/sysdep.h: Likewise.
1285         * argp/Versions: Remove _argp_unlock_xxx.
1287         [BZ #13559]
1288         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
1289         * abilist/libBrokenLocale.abilist: Likewise.
1290         * abilist/libanl.abilist: Likewise.
1291         * abilist/libc.abilist: Likewise.
1292         * abilist/libcrypt.abilist: Likewise.
1293         * abilist/libdl.abilist: Likewise.
1294         * abilist/libm.abilist: Likewise.
1295         * abilist/libnsl.abilist: Likewise.
1296         * abilist/libpthread.abilist: Likewise.
1297         * abilist/libresolv.abilist: Likewise.
1298         * abilist/librt.abilist: Likewise.
1299         * abilist/libthread_db.abilist: Likewise.
1300         * abilist/libutil.abilist: Likewise.
1301         * abilist/libnss_db.abilist: New file.
1303         * scripts/abilist.awk: Add support for indirect functions.
1305         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
1307         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
1309         * shlib-versions: Remove entries for ports architectures.
1311         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
1312         files in ports.
1313         * elf/stackguard-macros.h: Remove support for IA-64.
1314         * elf/tst-auditmod1.c: Likewise.
1315         * sysdeps/generic/ldsodefs.h: Likewise.
1317         * sysdeps/unix/sysv/linux/configure.in: Ports should define
1318         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
1319         configure files.
1321         [BZ #13552]
1322         * configure.in: Remove --enable-omitfp support.
1323         * FAQ.in: Adjust.
1324         * config.make.in: Likewise.
1325         * Makeconfig: Likewise.
1326         * manual/install.texi: Likewise.
1328         In case anyone cares, the IA-64 architecture could move to ports.
1329         * sysdeps/ia64/*: Removed.
1330         * sysdeps/unix/sysv/linux/ia64/*: Removed.
1331         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
1333         [BZ #13555]
1334         * configure.in: Remove entries for unsupported architectures.
1336         [BZ #13533]
1337         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
1338         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
1339         routines.
1340         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
1341         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
1342         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
1343         fall back to using wcrtomb.
1344         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
1345         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
1346         renaming.
1347         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
1348         * wcsmbs/tst-c16c32-1.c: New file.
1350         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
1351         local variable.
1353         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
1355         * elf/tst-unique3.cc: Add explicit declaration of gets.
1356         * elf/tst-unique3lib.cc: Likewise.
1357         * elf/tst-unique3lib2.cc: Likewise.
1358         * elf/tst-unique4.cc: Likewise.
1360         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
1362 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
1364         [BZ #13566]
1365         * assert/assert.h (static_assert): Don't define for C++.
1366         * libio/stdio.h (gets): Do declare for C++ <= C++11.
1367         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
1369 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
1371         * iconv/loop.c (single loop): Fix assertion in storing of
1372         remaining bytes.
1374         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
1376 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
1378         * posix/getconf.c: Update copyright year.
1379         * nss/getent.c: Likewise.
1380         * nss/makedb.c: Likewise.
1381         * iconv/iconvconfig.c: Likewise.
1382         * iconv/iconv_prog.c: Likewise.
1383         * elf/ldconfig.c: Likewise.
1384         * elf/pldd.c: Likewise.
1385         * elf/sotruss.ksh: Likewise.
1386         * catgets/gencat.c: Likewise.
1387         * csu/version.c: Likewise.
1388         * elf/ldd.bash.in: Likewise.
1389         * elf/sprof.c (print_version): Likewise.
1390         * locale/programs/locale.c: Likewise.
1391         * locale/programs/localedef.c: Likewise.
1392         * login/programs/pt_chown.c: Likewise.
1393         * nscd/nscd.c (print_version): Likewise.
1394         * debug/xtrace.sh: Likewise.
1395         * malloc/memusage.sh: Likewise.
1396         * malloc/mtrace.pl: Likewise.
1397         * debug/catchsegv.sh: Likewise.
1399 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
1401         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
1402         pure attribute.
1404 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
1406         [BZ #13533]
1407         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
1408         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
1409         transformations.
1410         * iconv/gconv_int.h: Likewise.
1411         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
1412         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
1413         from libc for GLIBC_2.16.
1414         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
1415         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
1416         * wcsmbs/uchar.h: Really define mbstate_t.
1417         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
1418         * wcsmbs/c16rtomb.c: New file.
1419         * wcsmbs/mbrtoc16.c: New file.
1420         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
1421         for C/POSIX locale.
1422         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
1423         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
1425         * wcsmbs/wchar.h: Add missing __restrict.
1427 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
1429         [BZ #13532]
1430         * time/Makefile (routines): Add timespec_get.
1431         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
1432         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
1433         timespec for ISO C11.
1434         * time/timespec_get.c: New file.
1435         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
1436         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
1438         [BZ #13531]
1439         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
1440         * stdlib/stdlib.h: Declare aligned_alloc.
1441         * Versions.def: Add GLIBC_2.16 for libc.
1442         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
1444         [BZ 13527]
1445         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
1446         ISO C11.
1448         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
1449         code.
1451         [BZ #13528]
1452         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
1454         [BZ #13529]
1455         * assert/assert.h (static_assert): Define.
1457         * version.h: Update for 2.16 development version.
1459         [BZ #13526]
1460         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
1461         _ISOC11_SOURCE.
1463         * version.h (RELEASE): Bump for 2.15 release.
1464         * include/features.h (__GLIBC_MINOR__): Bump to 15.
1466         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
1467         Patch by Marek Polacek <mpolacek@redhat.com>.
1469         * bits/byteswap.h: Protect long long constants with __extension__.
1470         * sysdeps/i386/bits/byteswap.h: Likewise.
1471         * sysdeps/ia64/bits/byteswap.h: Likewise.
1472         * sysdeps/s390/bits/byteswap.h: Likewise.
1473         * sysdeps/x86_64/bits/byteswap.h: Likewise.
1475 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1477         [BZ #13540]
1478         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
1479         destination buffer.
1480         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
1482 2011-12-23  Marek Polacek  <polacek@redhat.com>
1484         * elf/dl-addr.c (determine_info): Add inline keyword.
1485         * elf/tst-auditmod4b.c (check_avx): Likewise.
1486         * elf/tst-auditmod6b.c (check_avx): Likewise.
1487         * elf/tst-auditmod6c.c (check_avx): Likewise.
1488         * elf/tst-auditmod7b.c (check_avx): Likewise.
1490 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
1492         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
1493         !__SSE_MATH__.
1495 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1497         [BZ #13540]
1498         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
1499         processing for last bytes.
1501 2011-08-06  Bruno Haible  <bruno@clisp.org>
1503         [BZ #13061]
1504         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
1505         U+0385, not to U+1FEE.
1507         [BZ #13062]
1508         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
1509         entry for U+00A5 U+0301.
1511 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
1513         [BZ #13166]
1514         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
1515         buffer for the output is too small.
1517         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
1518         optimization.
1520         [BZ #13185]
1521         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
1522         SSE flags if possible.
1524 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1526         [BZ #13540]
1527         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
1528         processing for last bytes.
1530 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
1532         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
1533         (syscall-list-default-options, syscall-list-default-condition)
1534         (syscall-list-includes): Define.
1535         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
1536         list of ABIs and options and #if conditions for each ABI.  Do not
1537         handle common syscalls between ABIs specially.
1538         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
1539         Remove.
1540         (syscall-list-variants, syscall-list-32bit-options)
1541         (syscall-list-32bit-condition, syscall-list-64bit-options)
1542         (syscall-list-64bit-condition): Define.
1543         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
1544         (syscall-list-variants, syscall-list-32bit-options)
1545         (syscall-list-32bit-condition, syscall-list-64bit-options)
1546         (syscall-list-64bit-condition): Define.
1547         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
1548         Remove.
1549         (syscall-list-variants, syscall-list-32bit-options)
1550         (syscall-list-32bit-condition, syscall-list-64bit-options)
1551         (syscall-list-64bit-condition): Define.
1552         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
1553         Remove.
1554         (syscall-list-variants, syscall-list-32bit-options)
1555         (syscall-list-32bit-condition, syscall-list-64bit-options)
1556         (syscall-list-64bit-condition): Define.
1558 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
1560         * locale/iso-639.def: Add brx entry.
1562         [BZ #13328]
1563         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
1564         Proposed by Mariusz_Cukr <marcukr@op.pl>.
1566         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
1567         __feraiseexcept_renamed.
1569 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
1571         [BZ #13538]
1572         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
1573         EPOLLET with unsigned values.
1574         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
1575         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
1577         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
1578         to large cancellation.
1579         * math/s_cacoshf.c: Likewise.
1580         * math/s_cacoshl.c: Likewise.
1582 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
1584         [BZ #13305]
1585         [BZ #12786]
1586         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
1587         * math/s_cacoshf.c: Likewise.
1588         * math/s_cacoshl.c: Likewise.
1590 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
1592         [BZ #13439]
1593         * iconv/gconv.h: Define __GCONV_SWAP.
1594         * iconvdata/unicode.c: The swap bit must be stored in __flags.
1595         * iconvdata/utf-16.c: Likewise.
1596         * iconvdata/utf-32.c: Likewise.
1598 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
1600         [BZ #13524]
1601         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
1602         numerator after shifting it by one limb.
1604 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
1606         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
1607         under [__USE_EXTERN_INLINES].
1609 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
1611         [BZ #13446]
1612         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
1614 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1616         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
1617         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
1618         optimized code.
1619         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
1620         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
1621         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
1622         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
1623         for strncasecmp/strncasecmp_l compilation.
1624         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
1625         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
1627 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
1629         [BZ #13484]
1630         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
1631         of __asm__.
1633 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
1635         [BZ #13506]
1636         * time/tzfile.c (__tzfile_read): Check values from file header.
1638 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
1640         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
1641         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
1642         * powerpc/powerpc32/dl-start.S: Likewise.
1643         * powerpc/powerpc32/elf/start.S: Likewise.
1644         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
1645         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
1646         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
1647         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
1648         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
1649         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
1650         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
1651         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
1652         * powerpc/powerpc32/fpu/s_round.S: Likewise.
1653         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
1654         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
1655         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
1656         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
1657         * powerpc/powerpc32/memset.S: Likewise.
1658         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
1659         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
1660         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
1661         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
1662         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
1663         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
1664         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
1665         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
1666         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
1667         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
1668         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
1669         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
1670         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
1672 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1674         * math/libm-test.inc: Added more nearbyint tests.
1675         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
1676         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
1677         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
1678         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
1680 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
1682         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
1683         FD_CLOEXEC.
1685 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1687         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
1688         Add wcscpy-ssse3 wcscpy-c.
1689         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
1690         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
1691         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
1692         * sysdeps/x86_64/wcschr.S: New file.
1693         * sysdeps/x86_64/wcsrchr.S: New file.
1694         * string/test-strcmp.c: Remove checking of wcscmp function for
1695         wrong alignments.
1696         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
1697         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
1698         wcsrchr-sse2 wcsrchr-c.
1699         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
1700         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
1701         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
1702         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
1703         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
1704         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
1705         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
1706         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
1707         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
1708         * wcsmbc/wcschr.c (WCSCHR): New macro.
1710 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1712         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
1713         * wcsmbs/test-wcsrchr.c: New file.
1714         * string/test-strrchr.c: Add wcsrchr support.
1715         (WIDE): New macro.
1716         * wcsmbs/test-wcscpy.c: New file.
1717         * string/test-strcpy.c: Add wcscpy support.
1718         (WIDE): New macro.
1720 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
1722         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
1723         the inner loop.
1725 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
1727         [BZ #13472]
1728         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
1730 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
1732         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
1733         Minor optimizations.
1735         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
1736         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
1737         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
1739 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
1741         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
1742         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
1743         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
1744         for gcc to avoid warnings.
1745         * inet/Makefile (tests): Add tst-checks.
1746         * inet/tst-checks.c: New file.
1748         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
1749         warning.
1751         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
1752         __wmemcmp_sse2.
1754         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
1755         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
1757         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
1759 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
1761         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
1762         problem.
1764         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
1766 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
1768         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
1769         conditional on GCC version.
1770         (__arch_compare_and_exchange_val_8_acq)
1771         (__arch_compare_and_exchange_val_16_acq)
1772         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
1773         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
1774         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
1776 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
1778         * sysdeps/sh/backtrace.c: New file.
1780 2011-12-02  Andreas Schwab  <schwab@redhat.com>
1782         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
1783         parenthesis.
1785 2011-12-01  Andreas Schwab  <schwab@redhat.com>
1787         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
1788         falling back to utime.
1790 2011-11-30  Andreas Schwab  <schwab@redhat.com>
1792         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
1793         expectations for float.
1795 2011-11-29  Andreas Schwab  <schwab@redhat.com>
1797         * locale/weight.h (findidx): Add parameter len.
1798         * locale/weightwc.h (findidx): Likewise.
1799         * posix/fnmatch_loop.c (FCT): Adjust caller.
1800         * posix/regcomp.c (build_equiv_class): Likewise.
1801         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
1802         * posix/regexec.c (check_node_accept_bytes): Likewise.
1803         * string/strcoll_l.c (STRCOLL): Likewise.
1804         * string/strxfrm_l.c (STRXFRM): Likewise.
1806 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
1808         * Makefile.in: Remove CVSOPT handling.
1809         * configure.in: Remove use of AC_REVISION.
1810         * iconvdata/Makefile (distribute): No need to filter out CVS.
1811         * scripts/list-sources.sh: Remove CVS, subversion and monotone
1812         handling.
1814 2011-11-16  Andreas Schwab  <schwab@redhat.com>
1816         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
1817         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
1818         [USE_AS_STRNCASECMP_L]: Likewise.
1819         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
1820         NO_TLS_DIRECT_SEG_REFS.
1821         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
1822         Fix argument offsets for non-PIC.
1823         [USE_AS_STRNCASECMP_L]: Likewise.
1824         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
1825         NO_TLS_DIRECT_SEG_REFS.
1827 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
1829         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
1830         O_CLOEXEC.
1831         * locale/loadlocale.c (_nl_load_locale): Likewise.
1833 2011-11-15  Andreas Schwab  <schwab@redhat.com>
1835         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
1836         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
1837         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
1838         (SYSCALL_GETTIME): Set errno on error.
1840         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
1841         count references to noai6ai_cached.
1843 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
1845         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
1847         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
1848         FD_CLOEXEC for /proc/self/maps.
1850         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
1851         FD_CLOEXEC for /proc/meminfo.
1853         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
1854         gai.conf.
1856         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
1857         FD_CLOEXEC for given file.
1859         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
1861         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
1862         FD_CLOEXEC for /etc/hosts.
1863         (_gethtent): Likewise.
1865         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
1867         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
1868         cancellation and set FD_CLOEXEC for /etc/netgroup.
1870         * nss/nss_files/files-key.c (search): Don't allow cancellation when
1871         reading /etc/publickey.
1873         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
1874         allow cancellation when reading /etc/group.
1876         * nss/nss_files/files-alias.c (internal_setent): Don't allow
1877         cancellation.
1878         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
1880         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
1881         when using data file.
1883         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
1885         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
1886         (write_nis_obj): Use "c" and "e" in fopen.
1888         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
1890         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
1892         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
1894         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
1896         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
1897         locale.alias.
1899         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
1901         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
1903         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
1905         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
1906         file parsing and set FD_CLOEXEC.
1908 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
1910         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
1912 2011-11-14  Andreas Schwab  <schwab@redhat.com>
1914         * malloc/arena.c (arena_get2): Don't call reused_arena when
1915         _int_new_arena failed.
1917 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
1919         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
1920         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
1921         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
1922         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
1923         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
1924         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
1925         to compile strcasecmp and strncasecmp.
1926         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
1927         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
1929         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
1931 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
1933         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
1934         locale-defines.sym to gen-as-const-headers.
1935         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
1936         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
1937         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
1938         to compile strcasecmp and strncasecmp.
1939         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
1940         strcasecmp_l and strncasecmp_l.
1941         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
1942         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
1943         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
1944         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
1945         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
1946         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
1947         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
1948         * sysdeps/i386/i686/multiarch/strncase.S: New file.
1949         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
1950         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
1951         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
1953 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
1955         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
1956         result of SYSDEP_GETTIME_CPU to retval.
1957         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
1958         parameter list to macro.  Remove trailing semicolon.  Adjust users.
1960         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
1961         variable.
1963         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
1964         mantissa words.
1965         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
1967         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
1968         from unused variable.
1970         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
1971         DWARF definitions.
1972         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
1973         for assembling.
1975         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
1976         over namespaces.
1978         * sunrpc/rpc_prot.c (rejected): Fix case value.
1980         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
1981         unsigned long long int to avoid warnings in shift.
1983         * posix/regex_internal.c (re_string_reconstruct): Actually use result
1984         of use of trans.
1985         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
1986         variable tmp.
1988         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
1989         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
1990         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
1992         * nis/nis_table.c (nis_list): Use variable of correct type for
1993         result of __follow_path call.
1995 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1997         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
1998         of math functions ceil, trunc, floor, round, and sqrt, when
1999         avaliable on the platform.
2000         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
2001         name clash.
2002         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
2003         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
2004         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
2006 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
2008         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
2009         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
2011 2011-11-11  Roland McGrath  <roland@hack.frob.com>
2013         * include/unistd.h: Fix __readlink return type.
2014         Reported by Chris Metcalf <cmetcalf@tilera.com>.
2016 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
2018         * stdlib/ucontext.h: Undo last change for makecontext.
2020 2011-11-11  Andreas Schwab  <schwab@redhat.com>
2022         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
2024         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
2025         * setjmp/setjmp.h: Mark functions as non-leaf.
2026         * setjmp/bits/setjmp2.h: Likewise.
2027         * stdlib/ucontext.h: Likewise.
2029 2011-11-10  Andreas Schwab  <schwab@redhat.com>
2031         * malloc/arena.c (_int_new_arena): Don't increment narenas.
2032         (reused_arena): Don't check arena limit.
2033         (arena_get2): Atomically check arena limit.
2035 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
2037         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
2038         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
2040         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
2041         instructions.
2043 2011-11-07  Andreas Schwab  <schwab@redhat.com>
2045         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
2046         handler when locking.
2048         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
2049         Fix size of allocated buffer.
2051 2011-11-04  Andreas Schwab  <schwab@redhat.com>
2053         [BZ #10103]
2054         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
2055         declarations for long double functions.
2056         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
2058         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
2060 2011-11-03  Andreas Schwab  <schwab@redhat.com>
2062         * nscd/nscd.c (main): Don't start AVC thread until credentials are
2063         installed.
2065         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
2066         is disabled.
2068 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2070         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
2072 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
2074         * include/alloca.h (stackinfo_alloca_round): Define.
2075         (extend_alloca): Use it.
2076         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
2077         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
2078         here.
2080         * scripts/check-local-headers.sh: Ignore libaudit.h.
2082         * nscd/Makefile (extra-objs): Make recursively expanded.
2084 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
2086         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
2087         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
2089         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
2090         * posix/tst-rfc3484-2.c: Likewise.
2091         * posix/tst-rfc3484-3.c: Likewise.
2093         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
2094         process_vm_writev.
2095         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
2096         process_vm_writev.
2097         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
2098         process_vm_writev from libc using GLIBC_2.15 version.
2100         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
2102 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
2104         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
2105         stack usage.
2107 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
2109         [BZ #13367]
2110         * nss/getent.c (initgroups_keys): Show error message in case no group
2111         names are given.
2113         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
2114         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
2115         __bump_nl_timestamp.
2116         * nscd/connections (nscd_init): When host database is served open
2117         netlink socket and request notification about configuration changes.
2118         (main_loop_poll): Track netlink file descriptor and bump timestamp
2119         in case data becomes available.
2120         (main_loop_epoll): Likewise.
2121         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
2122         (database_pers_head): Add extra_data fileds.
2123         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
2124         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
2125         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
2126         Adjust caller.
2127         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
2128         in6ai data, call __free_in6ai.
2129         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
2130         Add -DHAVE_NETLINK.
2131         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
2132         interface information.  Reuse previous data if netlink timestamp
2133         is not changed.
2134         (__bump_nl_timestamp): New function.
2135         (__free_in6ai): New function.
2137 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
2139         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
2140         close_not_cancel_no_status here.
2141         (__check_pf): Reorganize code a bit to not call close twice if OOM.
2143 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
2145         [BZ #13276]
2146         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
2147         return value.
2149         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
2150         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
2151         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
2153 2011-07-03  Andreas Jaeger  <aj@suse.de>
2155         [BZ #10709]
2156         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
2157         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
2158         * math/libm-test.inc (sin_test): Add test case.
2160 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
2162         [BZ #13337]
2163         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
2164         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
2166         * elf/chroot_canon.c (chroot_canon): Cleanups.
2168         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
2170         [BZ #13335]
2171         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
2172         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
2174         * string/test-strchr.c: Make usable for strchrnul testing.
2175         * string/test-strchrnul.c: New file.
2176         * string/Makefile (strop-tests): Add strchrnul.
2178         * po/it.po: Update from translation team.
2179         * po/es.po: Likewise.
2181 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
2183         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
2184         the three constants needed as parameters.  Drop the others.
2185         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
2186         __m128i_strloadu_tolower.
2187         Create and initialize variable zero and use it in all the places
2188         where _mm_setzero_si128 was used.
2190         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
2191         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
2192         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
2193         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
2194         anymore.
2195         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
2196         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
2197         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
2198         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
2199         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
2200         __mpranred, __mptan.
2201         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
2202         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
2203         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
2204         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
2205         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
2206         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
2207         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
2208         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
2209         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
2211 2011-10-28  Andreas Schwab  <schwab@redhat.com>
2213         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
2214         redefine if SHARED.
2215         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
2217         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
2218         wide char related routines to wcsmbs subdir.
2220 2011-10-27  Andreas Schwab  <schwab@redhat.com>
2222         [BZ #13344]
2223         * misc/sys/cdefs.h (__THROWNL): Define.
2224         * posix/unistd.h: Use __THREADNL instead of __THREAD
2225         for memory synchronization functions.
2227 2011-10-26  Roland McGrath  <roland@hack.frob.com>
2229         [BZ #13349]
2230         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
2231         doesn't exist.
2232         * manual/stdio.texi (Obstack Streams): Node removed.
2234 2011-10-26  Andreas Schwab  <schwab@redhat.com>
2236         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
2237         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
2238         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
2240         * math/math_private.h (math_force_eval): Allow non-addressable
2241         arguments.
2242         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
2244 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
2246         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
2247         file is not needed.
2249         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
2250         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
2251         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
2252         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
2253         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
2254         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
2255         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
2256         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
2257         Add AVX variants.
2258         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
2259         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
2260         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
2261         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
2262         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
2263         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
2264         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
2265         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
2266         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
2267         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
2268         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
2269         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
2270         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
2271         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
2272         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
2273         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
2274         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
2275         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
2276         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
2278         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
2279         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
2281         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
2282         place.  Use VEX encoding when compiling for AVX.
2284 2011-10-25  Andreas Schwab  <schwab@redhat.com>
2286         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
2287         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
2289         * string/test-strchr.c (do_test): Don't generate NUL bytes.
2291 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
2293         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
2294         useless if() expression.
2295         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
2296         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
2297         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
2298         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
2299         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
2300         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
2301         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
2302         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
2303         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
2304         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
2305         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
2306         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
2307         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
2308         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
2309         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
2310         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
2311         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
2312         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
2313         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
2315         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
2317 2011-10-25  Andreas Schwab  <schwab@redhat.com>
2319         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
2320         condition.
2321         * elf/dl-fini.c (_dl_sort_fini): Likewise.
2323 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
2325         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
2326         .text section.  Avoid duplicate constants.
2327         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
2328         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
2329         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
2330         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
2331         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
2332         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
2333         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
2334         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
2335         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
2336         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
2337         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
2338         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
2339         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
2340         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
2341         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
2342         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
2343         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
2344         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
2345         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2346         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2347         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
2348         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
2349         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
2350         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
2351         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
2352         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
2353         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
2354         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
2355         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
2356         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
2357         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
2358         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
2359         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
2360         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
2361         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
2362         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
2363         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
2364         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
2365         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
2366         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
2367         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
2368         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
2369         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
2370         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
2371         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
2373 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
2375         * sysdeps/x86_64/dla.h: Move to ...
2376         * sysdeps/x86_64/fpu/dla.h: ...here.
2377         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
2378         situations.  Use __builtin_fma only for gcc 4.6 and up.
2380         * config.make.in: Add have-mfma4 entry.
2381         * configure.in: Substitute libc_cv_cc_fma4.
2382         * math/Makefile (dbl-only-routines): Add sincostab.
2383         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
2384         Use __sincostab not sincos.
2385         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
2386         name is a macro.
2387         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
2388         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
2389         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
2390         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
2391         using __copysign.
2392         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
2393         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
2394         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
2395         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
2396         and __inv.
2397         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
2398         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
2399         __copysign.
2400         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
2401         define aliases when function name is a macro.
2402         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
2403         sysdeps/ieee754/dbl-64/sincos.tbl.
2404         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
2405         fma4-enabled routines.
2406         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
2407         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
2408         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
2409         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
2410         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
2411         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
2412         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
2413         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
2414         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
2415         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
2416         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
2417         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
2418         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
2419         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
2420         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
2421         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
2422         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
2423         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
2424         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
2425         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
2426         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
2427         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
2428         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
2429         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
2430         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
2431         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
2432         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
2433         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
2434         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
2435         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
2437         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
2438         rename.
2439         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
2440         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
2441         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
2442         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
2443         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
2444         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
2445         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
2446         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2448 2011-10-24  Andreas Schwab  <schwab@redhat.com>
2450         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
2452 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
2454         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
2456         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
2457         prediction.
2458         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
2460         * string/strnlen.c: Don't define STRNLEN, reverse logic.
2461         Remove unused variable magic_bits.
2462         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
2464         * string/strnlen.c: Define and use STRNLEN macro.
2465         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
2466         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
2467         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
2468         * wcsmbs/wcslen.c: Define and use WCSLEN.
2469         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
2470         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
2471         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
2472         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
2473         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
2474         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
2475         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
2477 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2479         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2480         strnlen-sse2-no-bsf.
2481         Rename strlen-no-bsf to strlen-sse2-no-bsf.
2482         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
2483         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
2484         Add strnlen support.
2485         (USE_AS_STRNLEN): New macro.
2486         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
2487         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
2488         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
2489         * sysdeps/x86_64/wcslen.S: New file.
2491 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
2493         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
2494         XMM-moves are used for copying on small sizes.
2496 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2498         * wcsmbs/Makefile (strop-tests): Add wcschr.
2499         * wcsmbs/test-wcschr.c: New file.
2500         * string/test-strchr.c: Update.
2501         Add wcschr support.
2502         (WIDE): New macro.
2504 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2506         * wcsmbs/Makefile (strop-tests): Add wcslen.
2507         * wcsmbs/test-wcslen.c: New file.
2508         * string/test-strlen.c: Update.
2509         Add wcslen support.
2510         (WIDE): New macro.
2512 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
2514         * po/it.po: Update from translation team.
2516 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2518         * sysdeps/x86_64/wcscmp.S: Update.
2519         Fix wrong comparison semantics.
2520         wcscmp shall use signed comparison not unsigned.
2521         Don't use substraction to avoid overflow bug.
2522         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
2523         * wcsmbc/wcscmp.c: Likewise.
2524         * string/test-strcmp.c: Likewise.
2525         Add new tests to check cases with negative values.
2527 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
2529         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
2530         * sysdeps/x86_64/dla.h: ...here.  New file.
2531         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
2532         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
2533         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
2534         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
2535         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
2536         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
2537         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
2538         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
2539         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2541 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
2543         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
2544         __ynl_finite aliases.
2546 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
2548         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2550         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
2551         define DLA_FMA.
2552         [DLA_FMA] (EMULV): Use DLA_FMA.
2553         [DLA_FMA] (MUL12): Use EMULV.
2554         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
2555         that are not needed.
2556         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
2557         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
2558         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
2559         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
2560         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
2561         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
2562         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2564 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
2566         * math/s_nan.c: Undef __nan.
2567         * math/s_nanf.c: Undef __nanf.
2568         * math/s_nanl.c: Undef __nanl.
2569         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
2570         "math_private.h".
2572 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
2574         * math/s_catan.c: Add branch predictions.
2575         * math/s_catanf.c: Likewise.
2576         * math/s_catanh.c: Likewise.
2577         * math/s_catanhf.c: Likewise.
2578         * math/s_catanhl.c: Likewise.
2579         * math/s_catanl.c: Likewise.
2580         * math/s_cexp.c: Likewise.
2581         * math/s_cexpf.c: Likewise.
2582         * math/s_cexpl.c: Likewise.
2583         * math/s_clog.c: Likewise.
2584         * math/s_clog10.c: Likewise.
2585         * math/s_clog10f.c: Likewise.
2586         * math/s_clog10l.c: Likewise.
2587         * math/s_clogf.c: Likewise.
2588         * math/s_clogl.c: Likewise.
2589         * math/s_csqrt.c: Likewise.
2590         * math/s_csqrtf.c: Likewise.
2591         * math/s_csqrtl.c: Likewise.
2592         * math/s_ctanf.c: Likewise.
2593         * math/s_ctanh.c: Likewise.
2594         * math/s_ctanhf.c: Likewise.
2595         * math/s_ctanhl.c: Likewise.
2596         * math/s_ctanl.c: Likewise.
2598         * math/math_private.h: Define __nan, __nanf, __nanl.
2599         * math/s_cacosh.c: Include <math_private.h>.
2600         * math/s_cacoshl.c: Likewise.
2601         * math/s_casinh.c: Likewise.
2602         * math/s_casinhf.c: Likewise.
2603         * math/s_casinhl.c: Likewise.
2604         * math/s_ccos.c: Rely entire on ccosh.
2605         * math/s_ccosf.c: Rely entire on ccoshf.
2606         * math/s_ccosl.c: Rely entirely on ccoshl.
2607         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
2608         Remove tests for FE_INVALID.
2609         * math/s_ccoshf.c: Likewise.
2610         * math/s_ccoshl.c: Likewise.
2611         * math/s_csin.c: Likewise.
2612         * math/s_csinf.c: Likewise.
2613         * math/s_csinh.c Likewise.
2614         * math/s_csinhf.c: Likewise.
2615         * math/s_csinhl.c: Likewise.
2616         * math/s_csinl.c: Likewise.
2617         * math/s_ctan.c: Likewise.
2618         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
2619         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
2620         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
2622 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
2624         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
2625         compilation problems.
2627         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
2628         __builtin_expect.
2630 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
2632         * sysdeps/i386/configure.in: Test for -mfma4 option.
2633         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
2634         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
2635         COMMON_CPUID_INDEX_80000001.
2636         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
2637         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
2638         use it if FMA3 is not supported.
2639         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
2641         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
2642         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
2644 2011-10-20  Andreas Schwab  <schwab@redhat.com>
2646         [BZ #12892]
2647         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
2648         it would create a cycle with a link time dependency.
2650 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
2652         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
2653         instruction.
2654         * string/Makefile (strop-tests): Add rawmemchr.
2655         * string/test-rawmemchr.c: New file.
2657         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
2658         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
2659         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
2660         when compiling str{,n}casecmp and when AVX is available.  Hook up
2661         new optimized code in initializers.
2663 2011-10-19  Andreas Schwab  <schwab@redhat.com>
2665         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
2666         __feraiseexcept instead of feraiseexcept.
2668 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
2670         * math/math_private.h: Define defaults for libc_fetestexcept and
2671         libc_feupdateenv.
2672         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
2673         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
2674         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
2675         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
2676         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
2677         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
2678         libc_fetestexcept and libc_feupdateenv.
2680         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
2681         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
2682         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
2683         * sysdeps/x86_64/fpu/math_private.h: Define special version of
2684         libc_feholdexcept_setround.
2686         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
2687         Add s_nearbyint-c and s_nearbyintf-c.
2688         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
2689         nearbyintf inlines.
2690         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
2691         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
2692         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
2693         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
2695         * math/math_private.h: Define defaults for libc_fegetround,
2696         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
2697         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
2698         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
2699         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
2700         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
2701         standard functions.
2702         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
2703         Remove comments and hacks for old compiler versions.
2704         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
2705         libc_fegetround, libc_fesetround, libc_feholdexcept, and
2706         libc_feholdexceptl.
2708 2011-10-18  Andreas Schwab  <schwab@redhat.com>
2710         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
2711         (__feraiseexcept_renamed): Add __NTH.
2712         (feraiseexcept): Add __NTH.  Rename local variables to fix
2713         namespace violations.
2715 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
2717         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
2719         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
2721         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
2722         recently added interfaces.
2723         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
2725         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
2726         about macro parameter expansion.
2728         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
2729         __NO_MATH_INLINES is defined.  Cleanups.
2731         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
2732         and __floorf is target has SSE4.1.
2733         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
2734         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
2735         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
2736         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
2738         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
2739         name.
2740         (floorf): Likewise.
2742         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
2744 2011-10-17  Andreas Schwab  <schwab@redhat.com>
2746         * misc/sys/cdefs.h: Fix last change.
2748         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
2749         database lookup.
2751 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
2753         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
2755         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
2756         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
2757         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
2758         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
2759         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
2760         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
2761         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
2762         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
2763         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
2764         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
2765         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
2766         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
2767         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
2768         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
2769         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
2770         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
2771         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
2772         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
2773         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
2774         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
2775         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
2776         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
2778         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
2779         ceil, ceilf, floor, floorf.
2781         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
2782         Perform IRELATIVE relocations last.
2784         * elf/do-rel.h: Add another parameter nrelative, replacing the
2785         local variable with the same name.  Change name of the function
2786         to end in Rel or Rela (uppercase).
2787         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
2788         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
2789         elf_dynamic_do_##reloc function.
2791 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
2793         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
2794         is sufficient, at least on modern CPUs.
2796         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
2798         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
2799         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
2801         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
2802         __expl_finite.
2803         * math/bits/math-finite.h: Add entries for exp.
2804         * math/e_expl.c: Add __*_finite alias.
2805         * sysdeps/i386/fpu/e_exp.S: Likewise.
2806         * sysdeps/i386/fpu/e_expf.S: Likewise.
2807         * sysdeps/i386/fpu/e_expl.c: Likewise.
2808         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
2809         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
2810         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
2811         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
2812         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
2813         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
2814         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
2816         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
2817         is sufficient, at least on modern CPUs.
2819         * ctype/ctype-info.c (__ctype_init): Define.
2820         * include/ctype.h (__ctype_init): Declare.
2821         (__ctype_b_loc): The variable is always initialized.
2822         (__ctype_toupper_loc): Likewise.
2823         (__ctype_tolower_loc): Likewise.
2824         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
2825         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
2827 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
2829         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
2831         * configure.in: Also look in $cxxmachine/include for C++ system
2832         headers.
2834 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2836         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
2837         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
2838         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
2839         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
2840         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
2841         (USE_AS_WMEMCMP): New macro.
2842         Fixing indents.
2843         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
2844         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
2845         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
2846         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
2847         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
2848         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
2849         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
2850         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
2851         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
2852         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
2853         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
2854         (USE_AS_WMEMCMP): New macro.
2855         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
2856         * sysdeps/string/test-memcmp.c: Update.
2857         Fix simple_wmemcmp.
2858         Add new tests.
2859         * wcsmbs/wmemcmp.c: Update.
2860         (WMEMCMP): New macro.
2861         Fix overflow bug.
2863 2011-10-12  Andreas Jaeger  <aj@suse.de>
2865         [BZ #13268]
2866         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
2868 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
2870         * libio/iofwide.c (do_length): Avoid warning.
2872         * ctype/ctype.h (__isctype_f): Add missing __THROW.
2874 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
2876         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
2878         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
2879         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
2880         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
2881         * sysdeps/i386/i686/fpu/e_log.S: New file.
2882         * sysdeps/i386/i686/fpu/e_logf.S: New file.
2883         * sysdeps/i386/i686/fpu/e_logl.S: New file.
2885         * ctype/ctype.h: Add support for inlined isXXX functions when
2886         compiling C++ code.
2888 2011-10-14  Andreas Schwab  <schwab@redhat.com>
2890         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
2892         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
2894 2011-10-13  Roland McGrath  <roland@hack.frob.com>
2896         [BZ #13291]
2897         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
2899 2011-10-13  Andreas Schwab  <schwab@redhat.com>
2901         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
2902         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
2903         feraiseexcept.
2905         * sysdeps/x86_64/memrchr.S: Check for zero size.
2907         * string/stratcliff.c: Add memrchr tests.
2909 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2911         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
2912         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
2913         rawmemchr-sse2 rawmemchr-sse2-bsf.
2914         * sysdeps/i386/i686/multiarch/memchr.S: New file.
2915         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
2916         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
2917         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
2918         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
2919         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
2920         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
2921         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
2922         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
2923         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
2924         * string/memrchr.c (MEMRCHR): New macro.
2926 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
2928         Add integration with gcc's -ffinite-math-only and optimize wrapper
2929         functions in libm.
2930         * Versions.def: Define GLIBC_2.15 version for libm.
2931         * math/Makefile (headers): Add bits/math-finite.h.
2932         * math/bits/math-finite.h: New file.
2933         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
2934         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
2935         * math/e_acoshl.c: Add __*_finite alias.
2936         * math/e_acosl.c: Likewise.
2937         * math/e_asinl.c: Likewise.
2938         * math/e_atan2l.c: Likewise.
2939         * math/e_atanhl.c: Likewise.
2940         * math/e_coshl.c: Likewise.
2941         * math/e_exp10.c: Likewise.
2942         * math/e_exp10f.c: Likewise.
2943         * math/e_exp10l.c: Likewise.
2944         * math/e_exp2l.c: Likewise.
2945         * math/e_fmodl.c: Likewise.
2946         * math/e_gammal_r.c: Likewise.
2947         * math/e_hypotl.c: Likewise.
2948         * math/e_j0l.c: Likewise.
2949         * math/e_j1l.c: Likewise.
2950         * math/e_jnl.c: Likewise.
2951         * math/e_lgammal_r.c: Likewise.
2952         * math/e_log10l.c: Likewise.
2953         * math/e_log2l.c: Likewise.
2954         * math/e_logl.c: Likewise.
2955         * math/e_powl.c: Likewise.
2956         * math/e_sinhl.c: Likewise.
2957         * math/e_sqrtl.c: Likewise.
2958         * math/e_scalb.c: Completely rewritten and optimized.
2959         * math/e_scalbf.c: Likewise.
2960         * math/e_scalbl.c: Likewise.
2961         * math/w_acos.c: Likewise.
2962         * math/w_acosf.c: Likewise.
2963         * math/w_acosl.c: Likewise.
2964         * math/w_acosh.c: Likewise.
2965         * math/w_acoshf.c: Likewise.
2966         * math/w_acoshl.c: Likewise.
2967         * math/w_asin.c: Likewise.
2968         * math/w_asinf.c: Likewise.
2969         * math/w_asinl.c: Likewise.
2970         * math/w_atan2.c: Likewise.
2971         * math/w_atan2f.c: Likewise.
2972         * math/w_atan2l.c: Likewise.
2973         * math/w_atanh.c: Likewise.
2974         * math/w_atanhf.c: Likewise.
2975         * math/w_atanhl.c: Likewise.
2976         * math/w_exp10.c: Likewise.
2977         * math/w_exp10f.c: Likewise.
2978         * math/w_exp10l.c: Likewise.
2979         * math/w_fmod.c: Likewise.
2980         * math/w_fmodf.c: Likewise.
2981         * math/w_fmodl.c: Likewise.
2982         * math/w_j0.c: Likewise.
2983         * math/w_j0f.c: Likewise.
2984         * math/w_j0l.c: Likewise.
2985         * math/w_j1.c: Likewise.
2986         * math/w_j1f.c: Likewise.
2987         * math/w_j1l.c: Likewise.
2988         * math/w_jn.c: Likewise.
2989         * math/w_jnf.c: Likewise.
2990         * math/w_log.c: Likewise.
2991         * math/w_logf.c: Likewise.
2992         * math/w_logl.c: Likewise.
2993         * math/w_log10.c: Likewise.
2994         * math/w_log10f.c: Likewise.
2995         * math/w_log10l.c: Likewise.
2996         * math/w_log2.c: Likewise.
2997         * math/w_log2f.c: Likewise.
2998         * math/w_log2l.c: Likewise.
2999         * math/w_pow.c: Likewise.
3000         * math/w_powf.c: Likewise.
3001         * math/w_powl.c: Likewise.
3002         * math/w_remainder.c: Likewise.
3003         * math/w_remainderf.c: Likewise.
3004         * math/w_remainderl.c: Likewise.
3005         * math/w_scalb.c: Likewise.
3006         * math/w_scalbf.c: Likewise.
3007         * math/w_scalbl.c: Likewise.
3008         * math/w_sqrt.c: Likewise.
3009         * math/w_sqrtf.c: Likewise.
3010         * math/w_sqrtl.c: Likewise.
3011         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
3012         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
3013         used.
3014         * math/math_private.h: Declare __kernel_standard_f.
3015         * math/w_cosh.c: Remove cruft and optimize a bit.
3016         * math/w_coshf.c: Likewise.
3017         * math/w_coshl.c: Likewise.
3018         * math/w_exp2.c: Likewise.
3019         * math/w_exp2f.c: Likewise.
3020         * math/w_exp2l.c: Likewise.
3021         * math/w_hypot.c: Likewise.
3022         * math/w_hypotf.c: Likewise.
3023         * math/w_hypotl.c: Likewise.
3024         * math/w_lgamma.c: Likewise.
3025         * math/w_lgamma_r.c: Likewise.
3026         * math/w_lgammaf.c: Likewise.
3027         * math/w_lgammaf_r.c: Likewise.
3028         * math/w_lgammal.c: Likewise.
3029         * math/w_lgammal_r.c: Likewise.
3030         * math/w_sinh.c: Likewise.
3031         * math/w_sinhf.c: Likewise.
3032         * math/w_sinhl.c: Likewise.
3033         * math/w_tgamma.c: Likewise.
3034         * math/w_tgammaf.c: Likewise.
3035         * math/w_tgammal.c: Likewise.
3036         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
3037         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
3038         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
3039         Minor optimizations.  Pretty printing.  Remove cruft.
3040         * sysdeps/i386/fpu/e_acosf.S: Likewise.
3041         * sysdeps/i386/fpu/e_acosh.S: Likewise.
3042         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
3043         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
3044         * sysdeps/i386/fpu/e_acosl.c: Likewise.
3045         * sysdeps/i386/fpu/e_asin.S: Likewise.
3046         * sysdeps/i386/fpu/e_asinf.S: Likewise.
3047         * sysdeps/i386/fpu/e_atan2.S: Likewise.
3048         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
3049         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
3050         * sysdeps/i386/fpu/e_atanh.S: Likewise.
3051         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
3052         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
3053         * sysdeps/i386/fpu/e_exp10.S: Likewise.
3054         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
3055         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
3056         * sysdeps/i386/fpu/e_exp2.S: Likewise.
3057         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
3058         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
3059         * sysdeps/i386/fpu/e_fmod.S: Likewise.
3060         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
3061         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
3062         * sysdeps/i386/fpu/e_hypot.S: Likewise.
3063         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
3064         * sysdeps/i386/fpu/e_log.S: Likewise.
3065         * sysdeps/i386/fpu/e_log10.S: Likewise.
3066         * sysdeps/i386/fpu/e_log10f.S: Likewise.
3067         * sysdeps/i386/fpu/e_log10l.S: Likewise.
3068         * sysdeps/i386/fpu/e_log2.S: Likewise.
3069         * sysdeps/i386/fpu/e_log2f.S: Likewise.
3070         * sysdeps/i386/fpu/e_log2l.S: Likewise.
3071         * sysdeps/i386/fpu/e_logf.S: Likewise.
3072         * sysdeps/i386/fpu/e_logl.S: Likewise.
3073         * sysdeps/i386/fpu/e_pow.S: Likewise.
3074         * sysdeps/i386/fpu/e_powf.S: Likewise.
3075         * sysdeps/i386/fpu/e_powl.S: Likewise.
3076         * sysdeps/i386/fpu/e_remainder.S: Likewise.
3077         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
3078         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
3079         * sysdeps/i386/fpu/e_scalb.S: Likewise.
3080         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
3081         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
3082         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
3083         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
3084         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
3085         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
3086         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
3087         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
3088         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
3089         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
3090         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
3091         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
3092         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
3093         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
3094         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
3095         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
3096         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
3097         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
3098         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
3099         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
3100         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
3101         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
3102         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
3103         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
3104         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
3105         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
3106         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
3107         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
3108         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
3109         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
3110         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
3111         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
3112         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
3113         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
3114         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
3115         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
3116         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
3117         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
3118         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
3119         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
3120         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
3121         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
3122         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
3123         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
3124         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
3125         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
3126         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
3127         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
3128         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
3129         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
3130         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
3131         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
3132         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
3133         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
3134         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
3135         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
3136         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
3137         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
3138         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
3139         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
3140         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
3141         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
3142         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
3143         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
3144         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
3145         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
3146         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
3147         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
3148         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
3149         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
3150         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
3151         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
3152         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
3153         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
3154         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
3155         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
3156         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
3157         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
3158         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
3159         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
3160         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
3161         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
3162         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
3163         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
3164         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
3165         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
3166         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
3167         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
3168         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
3169         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
3170         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
3171         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
3172         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
3173         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
3174         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
3175         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
3176         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
3177         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
3178         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
3179         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
3180         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
3181         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
3182         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
3183         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
3184         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
3185         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
3186         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
3187         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
3188         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
3189         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
3190         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
3191         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
3192         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
3193         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
3194         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
3195         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
3196         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
3197         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
3198         (__isnanf): Likewise.
3199         (__isinf_ns): Likewise.
3200         (__isinf_nsf): Likewise.
3201         (__finite): Likewise.
3202         (__finitef): Likewise.
3203         (__ieee754_sqrt): Define as macro.
3204         (__ieee754_sqrtf): Define as macro.
3205         (__ieee754_sqrtl): Define as macro.
3206         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
3207         inlined copy.
3208         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
3209         __FINITE_MATH_ONLY__ consistent.
3210         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
3212 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
3214         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
3215         of rawmemchr.
3217         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
3219 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
3221         * po/ja.po: Update from translation team.
3223 2011-10-08  Roland McGrath  <roland@hack.frob.com>
3225         * locale/programs/locarchive.c (prepare_address_space): New function.
3226         (create_archive, enlarge_archive, open_archive): Use it.
3228         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
3229         inside [SHARED], where it is used.
3231         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
3233         * nss/getent.c (netgroup_keys): Remove unused variable.
3234         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
3236 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
3238         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
3239         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
3240         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
3241         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
3242         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
3243         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
3244         * math/Makefile (libm-calls): Add s_isinf_ns.
3245         * math/divtc3.c: Use __isinf_nsl instead of isinf.
3246         * math/multc3.c: Likewise.
3247         * math/s_casin.c: Likewise.
3248         * math/s_casinf.c: Likewise.
3249         * math/s_casinl.c: Likewise.
3250         * math/s_ccos.c: Likewise.
3251         * math/s_ccosf.c: Likewise.
3252         * math/s_ccosl.c: Likewise.
3253         * math/s_ctan.c: Likewise.
3254         * math/s_ctanf.c: Likewise.
3255         * math/s_ctanh.c: Likewise.
3256         * math/s_ctanhf.c: Likewise.
3257         * math/s_ctanhl.c: Likewise.
3258         * math/s_ctanl.c: Likewise.
3259         * math/w_fmod.c: Likewise.
3260         * math/w_fmodf.c: Likewise.
3261         * math/w_fmodl.c: Likewise.
3262         * math/w_remainder.c: Likewise.
3263         * math/w_remainderf.c: Likewise.
3264         * math/w_remainderl.c: Likewise.
3265         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
3266         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
3267         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
3268         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
3269         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
3270         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
3271         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
3272         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
3274         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
3275         of the number.
3276         * stdio-common/printf_fphex.c: Likewise.
3277         * stdio-common/printf_size.c: Likewise.
3279         * math/e_exp10.c: Include math_private.h using <...> not "...".
3280         * math/e_exp10f.c: Likewise.
3281         * math/e_exp10l.c: Likewise.
3282         * math/e_exp2l.c: Likewise.
3283         * math/e_j0l.c: Likewise.
3284         * math/e_j1l.c: Likewise.
3285         * math/e_jnl.c: Likewise.
3286         * math/e_lgammal_r.c: Likewise.
3287         * math/e_rem_pio2l.c: Likewise.
3288         * math/e_scalb.c: Likewise.
3289         * math/e_scalbf.c: Likewise.
3290         * math/e_scalbl.c: Likewise.
3291         * math/k_cosl.c: Likewise.
3292         * math/k_sinl.c: Likewise.
3293         * math/k_tanl.c: Likewise.
3294         * math/s_cacoshf.c: Likewise.
3295         * math/s_catan.c: Likewise.
3296         * math/s_catanf.c: Likewise.
3297         * math/s_catanh.c: Likewise.
3298         * math/s_catanhf.c: Likewise.
3299         * math/s_catanhl.c: Likewise.
3300         * math/s_catanl.c: Likewise.
3301         * math/s_ccosh.c: Likewise.
3302         * math/s_ccoshf.c: Likewise.
3303         * math/s_ccoshl.c: Likewise.
3304         * math/s_cexp.c: Likewise.
3305         * math/s_cexpf.c: Likewise.
3306         * math/s_cexpl.c: Likewise.
3307         * math/s_clog.c: Likewise.
3308         * math/s_clog10.c: Likewise.
3309         * math/s_clog10f.c: Likewise.
3310         * math/s_clog10l.c: Likewise.
3311         * math/s_clogf.c: Likewise.
3312         * math/s_clogl.c: Likewise.
3313         * math/s_csin.c: Likewise.
3314         * math/s_csinf.c: Likewise.
3315         * math/s_csinh.c: Likewise.
3316         * math/s_csinhf.c: Likewise.
3317         * math/s_csinhl.c: Likewise.
3318         * math/s_csinl.c: Likewise.
3319         * math/s_csqrt.c: Likewise.
3320         * math/s_csqrtf.c: Likewise.
3321         * math/s_csqrtl.c: Likewise.
3322         * math/s_ctan.c: Likewise.
3323         * math/s_ctanf.c: Likewise.
3324         * math/s_ctanh.c: Likewise.
3325         * math/s_ctanhf.c: Likewise.
3326         * math/s_ctanhl.c: Likewise.
3327         * math/s_ctanl.c: Likewise.
3328         * math/s_ldexp.c: Likewise.
3329         * math/s_ldexpf.c: Likewise.
3330         * math/s_ldexpl.c: Likewise.
3331         * math/s_significand.c: Likewise.
3332         * math/s_significandf.c: Likewise.
3333         * math/s_significandl.c: Likewise.
3334         * math/w_acos.c: Likewise.
3335         * math/w_acosf.c: Likewise.
3336         * math/w_acosh.c: Likewise.
3337         * math/w_acoshf.c: Likewise.
3338         * math/w_acoshl.c: Likewise.
3339         * math/w_acosl.c: Likewise.
3340         * math/w_asin.c: Likewise.
3341         * math/w_asinf.c: Likewise.
3342         * math/w_asinl.c: Likewise.
3343         * math/w_atan2.c: Likewise.
3344         * math/w_atan2f.c: Likewise.
3345         * math/w_atan2l.c: Likewise.
3346         * math/w_atanh.c: Likewise.
3347         * math/w_atanhf.c: Likewise.
3348         * math/w_atanhl.c: Likewise.
3349         * math/w_cosh.c: Likewise.
3350         * math/w_coshf.c: Likewise.
3351         * math/w_coshl.c: Likewise.
3352         * math/w_dremf.c: Likewise.
3353         * math/w_exp10.c: Likewise.
3354         * math/w_exp10f.c: Likewise.
3355         * math/w_exp10l.c: Likewise.
3356         * math/w_exp2.c: Likewise.
3357         * math/w_exp2f.c: Likewise.
3358         * math/w_fmod.c: Likewise.
3359         * math/w_fmodf.c: Likewise.
3360         * math/w_fmodl.c: Likewise.
3361         * math/w_hypot.c: Likewise.
3362         * math/w_hypotf.c: Likewise.
3363         * math/w_hypotl.c: Likewise.
3364         * math/w_j0.c: Likewise.
3365         * math/w_j0f.c: Likewise.
3366         * math/w_j0l.c: Likewise.
3367         * math/w_j1.c: Likewise.
3368         * math/w_j1f.c: Likewise.
3369         * math/w_j1l.c: Likewise.
3370         * math/w_jn.c: Likewise.
3371         * math/w_jnf.c: Likewise.
3372         * math/w_jnl.c: Likewise.
3373         * math/w_lgamma.c: Likewise.
3374         * math/w_lgamma_r.c: Likewise.
3375         * math/w_lgammaf.c: Likewise.
3376         * math/w_lgammaf_r.c: Likewise.
3377         * math/w_lgammal.c: Likewise.
3378         * math/w_lgammal_r.c: Likewise.
3379         * math/w_log.c: Likewise.
3380         * math/w_log10.c: Likewise.
3381         * math/w_log10f.c: Likewise.
3382         * math/w_log10l.c: Likewise.
3383         * math/w_log2.c: Likewise.
3384         * math/w_log2f.c: Likewise.
3385         * math/w_log2l.c: Likewise.
3386         * math/w_logf.c: Likewise.
3387         * math/w_logl.c: Likewise.
3388         * math/w_pow.c: Likewise.
3389         * math/w_powf.c: Likewise.
3390         * math/w_powl.c: Likewise.
3391         * math/w_remainder.c: Likewise.
3392         * math/w_remainderf.c: Likewise.
3393         * math/w_remainderl.c: Likewise.
3394         * math/w_scalb.c: Likewise.
3395         * math/w_scalbf.c: Likewise.
3396         * math/w_scalbl.c: Likewise.
3397         * math/w_sinh.c: Likewise.
3398         * math/w_sinhf.c: Likewise.
3399         * math/w_sinhl.c: Likewise.
3400         * math/w_sqrt.c: Likewise.
3401         * math/w_sqrtf.c: Likewise.
3402         * math/w_sqrtl.c: Likewise.
3403         * math/w_tgamma.c: Likewise.
3404         * math/w_tgammaf.c: Likewise.
3405         * math/w_tgammal.c: Likewise.
3407         * po/ja.po: Update from translation team.
3409 2011-09-29  Andreas Jaeger  <aj@suse.de>
3411         [BZ #13179]
3412         * sunrpc/netname.c (netname2host): Fix logic.
3414         [BZ #6779]
3415         [BZ #6783]
3416         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
3417         correctly.
3418         * math/w_remainder.c (__remainder): Likewise.
3419         * math/w_remainderf.c (__remainderf): Likewise.
3420         * math/libm-test.inc (remainder_test): Add test cases.
3422 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3424         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
3425         sdiv_qrnnd.
3427 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
3429         * string/test-memcmp.c: Avoid unncessary #defines.
3430         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
3432 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
3434         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
3435         Use new sse2 version for core i3 - i7 as it's faster
3436         than sse42 version.
3437         (bit_Prefer_PMINUB_for_stringop): New.
3438         * sysdeps/x86_64/rawmemchr.S: Update.
3439         Replace with faster SSE2 version.
3440         * sysdeps/x86_64/memrchr.S: New file.
3441         * sysdeps/x86_64/memchr.S: Update.
3442         Replace with faster SSE2 version.
3444 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
3446         * elf/dl-load.c (lose): Add cast to avoid warning.
3448 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
3450         * po/ca.po: Update from translation team.
3452         * inet/getnetgrent_r.c: Hook up nscd.
3453         * nscd/Makefile (routines): Add nscd_netgroup.
3454         (nscd-modules): Add netgroupcache.
3455         (CFLAGS-netgroupcache.c): Define.
3456         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
3457         (cache_search): Add const to second parameter.
3458         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
3459         INNETGR.
3460         (dbs): Add netgrdb entry.
3461         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
3462         (verify_persistent_db): Handle netgrdb.
3463         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
3464         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
3465         GETFDNETGR.
3466         (netgroup_response_header): Define.
3467         (innetgroup_response_header): Define.
3468         (datahead): Add netgroup_response_header and innetgroup_response_header
3469         elements.
3470         * nscd/nscd.conf: Add entries for netgroup cache.
3471         * nscd/nscd.h (dbtype): Add netgrdb.
3472         (_PATH_NSCD_NETGROUP_DB): Define.
3473         (netgroup_iov_disabled): Declare.
3474         (xmalloc, xcalloc, xrealloc): Move declarations here.
3475         (cache_search): Adjust prototype.
3476         Add netgroup-related prototypes.
3477         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
3478         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
3479         (__nscd_innetgr): Declare.
3480         * nscd/selinux.c (perms): Use access_vector_t as element type and
3481         add netgroup-related initializers.
3482         * nscd/netgroupcache.c: New file.
3483         * nscd/nscd_netgroup.c: New file.
3484         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
3485         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
3486         For four parameters use innetgr.
3487         * nss/nss_files/files-init.c: Add definition and callback for netgr.
3488         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
3489         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
3490         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
3492         * nscd/connections.c (register_traced_file): Don't register file
3493         for disabled databases.
3495 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
3497         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
3499         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
3500         from tree and freeing node.
3502 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
3504         * nss/nsswitch.c (__nss_database_lookup): Handle
3505         nss_parse_service_list out of memory case.
3507 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
3509         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
3510         out of memory case.
3512 2011-10-04  Andreas Schwab  <schwab@redhat.com>
3514         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
3515         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
3516         pass it down.
3517         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
3518         elf_machine_rela, elf_machine_lazy_rel.
3519         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
3520         (ELF_DYNAMIC_DO_REL): Likewise.
3521         (ELF_DYNAMIC_DO_RELA): Likewise.
3522         (ELF_DYNAMIC_RELOCATE): Likewise.
3523         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
3524         to ELF_DYNAMIC_DO_REL.
3525         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
3526         (dl_main): In trace mode always set __RTLD_NOIFUNC.
3527         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
3528         elf_machine_rela.
3529         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
3530         skip_ifunc, don't call ifunc function if non-zero.
3531         (elf_machine_rela): Likewise.
3532         (elf_machine_lazy_rel): Likewise.
3533         (elf_machine_lazy_rela): Likewise.
3534         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
3535         (elf_machine_lazy_rel): Likewise.
3536         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
3537         Likewise.
3538         (elf_machine_lazy_rel): Likewise.
3539         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
3540         Likewise.
3541         (elf_machine_lazy_rel): Likewise.
3542         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
3543         (elf_machine_lazy_rel): Likewise.
3544         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
3545         (elf_machine_lazy_rel): Likewise.
3546         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
3547         (elf_machine_lazy_rel): Likewise.
3548         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
3549         (elf_machine_lazy_rel): Likewise.
3550         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
3551         (elf_machine_lazy_rel): Likewise.
3552         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
3553         (elf_machine_lazy_rel): Likewise.
3555 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
3557         * nss/nss_files/files-init.c (_nss_files_init): Use static
3558         initialization for all the *_traced_file variables.
3560 2011-09-28  Andreas Schwab  <schwab@redhat.com>
3562         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
3564 2011-09-27  Roland McGrath  <roland@hack.frob.com>
3566         [BZ #13226]
3567         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
3569 2011-09-27  Andreas Schwab  <schwab@redhat.com>
3571         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
3572         Reread the line before reparsing it.
3574 2011-09-26  Andreas Schwab  <schwab@redhat.com>
3576         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
3578 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
3579             Maxim Kuvyrkov  <maxim@codesourcery.com>
3580             Joseph Myers  <joseph@codesourcery.com>
3582         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
3583         if needed for __stack_chk_guard.
3585 2011-09-19  Roland McGrath  <roland@hack.frob.com>
3587         * sysdeps/posix/spawni.c (script_execute): Always define it.
3588         It will be optimized away if unused.
3589         (maybe_script_execute): New function.
3590         (__spawni): Call it.
3592         * Makerules: Don't include tls.make.
3593         (config-tls): Always set to thread.
3594         * tls.make.c: File removed.
3596 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
3598         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
3599         * config.make.in (CPPFLAGS-config): New substituted variable.
3601 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
3603         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
3605         [BZ #13192]
3606         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
3607         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
3609 2011-09-15  Roland McGrath  <roland@hack.frob.com>
3611         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
3612         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
3613         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
3614         (CALL_FAIL): Likewise.
3615         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
3616         (CALL_FAIL): Macro removed.
3617         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
3619 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
3621         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
3622         for __FINITE_MATH_ONLY__ == 1.
3624 2011-09-15  Andreas Schwab  <schwab@redhat.com>
3626         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
3627         __ieee754_sqrt instead of sqrt.
3628         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
3629         __ieee754_sqrtf instead of sqrtf.
3630         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
3631         __floorf instead of floorf.
3632         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
3633         __floorf, __truncf instead of floorf, truncf.
3635 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
3637         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
3639         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
3640         __extern_always_inline.
3641         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
3642         32-bit.
3644 2011-09-14  Andreas Schwab  <schwab@redhat.com>
3646         * elf/rtld.c (dl_main): Also relocate in dependency order when
3647         doing symbol dependency testing.
3649 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
3651         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
3652         Always define `refsym'.
3654 2011-09-13  Andreas Schwab  <schwab@redhat.com>
3656         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
3657         (__FD_ELT): Renamed from __FDELT.
3658         * misc/bits/select2.h (__FD_ELT): Likewise.
3659         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
3660         __FD_MASK instead of __FDELT, __FDMASK.
3661         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
3662         Likewise.
3663         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
3664         Likewise.
3666         * elf/Makefile (gen-ldd): Fix pattern.
3668         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
3669         (init_tls): Likewise.
3671 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
3673         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
3675 2011-09-12  Andreas Schwab  <schwab@redhat.com>
3677         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
3678         `struct cmsghdr *' instead of `void *'.
3679         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
3680         Likewise.
3682 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
3684         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
3685         if non-absolute.
3686         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
3687         ldd_rewrite_script.
3689 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
3691         * configure.in: Remove --with-tls option.
3692         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
3693         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
3694         out in case it is missing.
3695         * sysdeps/ia64/elf/configure.in: Likewise.
3696         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
3697         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
3698         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
3699         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
3700         * sysdeps/sh/elf/configure.in: Likewise.
3701         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
3702         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
3703         * sysdeps/x86_64/elf/configure.in: Likewise.
3704         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
3705         * sysdeps/mach/hurd/tls.h: Likewise.
3707         [BZ #13067]
3708         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
3710         [BZ #13090]
3711         * configure.in: Fix use of AC_INIT.
3713         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
3715 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
3717         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
3718         __set_errno.
3719         * malloc/hooks.c: Likewise.
3721         [BZ #11929]
3722         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
3723         variables statically.
3724         (narenas): Initialize.
3725         (list_lock): Initialize.
3726         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
3727         initializtion of main_arena and list_lock.  Small cleanups.
3728         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
3729         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
3730         Add initializers to main_arena and mp_.
3731         (malloc_state): Remove pagesize member.  Change all users to use
3732         GLRO(dl_pagesize).
3734         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
3735         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
3736         is always initialized.
3738         * malloc/malloc.c: Removed unused configurations and dead code.
3739         * malloc/arena.c: Likewise.
3740         * malloc/hooks.c: Likewise.
3741         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
3743         * include/tls.h: Removed.  USE___THREAD must always be defined.
3744         * bits/libc-tsd.h: Don't handle !USE___THREAD.
3745         * elf/dl-libc.c: Likewise.
3746         * elf/dl-tsd.c: Likewise.
3747         * include/errno.h: Likewise.
3748         * include/netdb.h: Likewise.
3749         * include/resolv.h: Likewise.
3750         * inet/herrno-loc.c: Likewise.
3751         * inet/herrno.c: Likewise.
3752         * malloc/arena.c: Likewise.
3753         * malloc/hooks.c: Likewise.
3754         * malloc/malloc.c: Likewise.
3755         * resolv/res-state.c: Likewise.
3756         * resolv/res_libc.c: Likewise.
3757         * sysdeps/i386/dl-machine.h: Likewise.
3758         * sysdeps/ia64/dl-machine.h: Likewise.
3759         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
3760         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
3761         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
3762         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
3763         * sysdeps/sh/dl-machine.h: Likewise.
3764         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
3765         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
3766         * sysdeps/unix/i386/sysdep.S: Likewise.
3767         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
3768         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
3769         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
3770         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
3771         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
3772         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
3773         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
3774         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
3775         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
3776         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
3777         * sysdeps/unix/x86_64/sysdep.S: Likewise.
3778         * sysdeps/x86_64/dl-machine.h: Likewise.
3779         * tls.make.c: Likewise.
3781         * configure.in: Remove --with-__thread option.  Make tests for
3782         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
3783         tls_model attribute fail if no support is available.  Remove
3784         USE_IN_LIBIO.
3785         * Makeconfig: Adjust for dropped configure option.  All features are
3786         now mandatory.
3787         * Makerules: Likewise.
3788         * Versions.def: Likewise.
3789         * argp/argp-fmtstream.c: Likewise.
3790         * argp/argp-fmtstream.h: Likewise.
3791         * argp/argp-help.c: Likewise.
3792         * assert/assert.c: Likewise.
3793         * config.h.in: Likewise.
3794         * config.make.in: Likewise.
3795         * configure: Likewise.
3796         * configure.in: Likewise.
3797         * csu/Versions: Likewise.
3798         * csu/init.c: Likewise.
3799         * elf/tst-audit2.c: Likewise.
3800         * elf/tst-tls10.c: Likewise.
3801         * elf/tst-tls10.h: Likewise.
3802         * elf/tst-tls11.c: Likewise.
3803         * elf/tst-tls12.c: Likewise.
3804         * elf/tst-tls14.c: Likewise.
3805         * elf/tst-tlsmod11.c: Likewise.
3806         * elf/tst-tlsmod12.c: Likewise.
3807         * elf/tst-tlsmod13.c: Likewise.
3808         * elf/tst-tlsmod13a.c: Likewise.
3809         * elf/tst-tlsmod14a.c: Likewise.
3810         * elf/tst-tlsmod15b.c: Likewise.
3811         * elf/tst-tlsmod16a.c: Likewise.
3812         * elf/tst-tlsmod16b.c: Likewise.
3813         * elf/tst-tlsmod7.c: Likewise.
3814         * elf/tst-tlsmod8.c: Likewise.
3815         * elf/tst-tlsmod9.c: Likewise.
3816         * gmon/gmon.c: Likewise.
3817         * grp/fgetgrent_r.c: Likewise.
3818         * grp/putgrent.c: Likewise.
3819         * hurd/fopenport.c: Likewise.
3820         * include/libc-symbols.h: Likewise.
3821         * include/tls.h: Likewise.
3822         * intl/gettextP.h: Likewise.
3823         * intl/loadinfo.h: Likewise.
3824         * locale/global-locale.c: Likewise.
3825         * locale/localeinfo.h: Likewise.
3826         * mach/devstream.c: Likewise.
3827         * malloc/arena.c: Likewise.
3828         * malloc/set-freeres.c: Likewise.
3829         * misc/err.c: Likewise.
3830         * misc/getttyent.c: Likewise.
3831         * misc/mntent_r.c: Likewise.
3832         * posix/getopt.c: Likewise.
3833         * posix/wordexp.c: Likewise.
3834         * pwd/fgetpwent_r.c: Likewise.
3835         * resolv/Versions: Likewise.
3836         * resolv/res_hconf.c: Likewise.
3837         * shadow/fgetspent_r.c: Likewise.
3838         * shadow/putspent.c: Likewise.
3839         * stdio-common/printf_fphex.c: Likewise.
3840         * stdio-common/tmpfile.c: Likewise.
3841         * stdlib/abort.c: Likewise.
3842         * stdlib/fmtmsg.c: Likewise.
3843         * sunrpc/auth_unix.c: Likewise.
3844         * sunrpc/clnt_perr.c: Likewise.
3845         * sunrpc/clnt_tcp.c: Likewise.
3846         * sunrpc/clnt_udp.c: Likewise.
3847         * sunrpc/clnt_unix.c: Likewise.
3848         * sunrpc/openchild.c: Likewise.
3849         * sunrpc/svc_simple.c: Likewise.
3850         * sunrpc/svc_tcp.c: Likewise.
3851         * sunrpc/svc_udp.c: Likewise.
3852         * sunrpc/svc_unix.c: Likewise.
3853         * sunrpc/xdr.c: Likewise.
3854         * sunrpc/xdr_array.c: Likewise.
3855         * sunrpc/xdr_rec.c: Likewise.
3856         * sunrpc/xdr_ref.c: Likewise.
3857         * sunrpc/xdr_stdio.c: Likewise.
3859 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
3861         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
3863 2011-07-03  Andreas Jaeger  <aj@suse.de>
3865         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
3866         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
3867         regenerate with gen-libm-tests.pl.
3869 2010-05-12  Petr Baudis  <pasky@suse.cz>
3871         [BZ #11589]
3872         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
3873         around j0() zero points by switching to j1().
3874         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
3875         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
3876         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
3877         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
3879 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
3881         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
3882         instead of 0.
3883         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
3884         instead of 0.                              .
3885         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
3886         Patch in part by Pavel Roskin <proski@gnu.org>.
3888         [BZ #13138]
3889         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
3890         realloc.
3891         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
3892         Free memory block if necessary.
3894         [BZ #12847]
3895         * libio/genops.c (INTDEF): For string streams the _lock pointer can
3896         be NULL.  Don't lock in this case.
3898 2011-09-09  Roland McGrath  <roland@hack.frob.com>
3900         * elf/elf.h (ELFOSABI_GNU): New macro.
3901         (ELFOSABI_LINUX): Define to that.
3903 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
3905         * string/strncat.c (strncat): Undef the symbol in case it has been
3906         defined in bits/string.h.
3908 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
3910         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
3912         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
3913         link map.
3915 2011-08-17  Andreas Jaeger  <aj@suse.de>
3917         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
3919 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
3920             Ian Lance Taylor  <iant@google.com>
3922         * math/libm-test.inc (lround_test): New testcase.
3923         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
3925 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
3927         * Makefile: Remove support for automatic cvs check-ins.
3928         * Makerules: Likewise.
3929         * config.make.in: Likewise.
3930         * configure.in: Likewise.
3931         * intl/Makefile: Likewise.
3932         * locale/Makefile: Likewise.
3933         * po/Makefile: Likewise.
3934         * posix/Makefile: Likewise.
3935         * sysdeps/gnu/Makefile: Likewise.
3936         * sysdeps/mach/hurd/Makefile: Likewise.
3937         * sysdeps/sparc/sparc32/Makefile: Likewise.
3939         [BZ #13118]
3940         * posix/Makefile (bug-regex32-ENV): Define.
3941         Patch by John Stanley <jpsinthemix@verizon.net>.
3943         * misc/Makefile (headers): Add bits/select2.h.
3944         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
3945         * misc/bits/select2.h: New file.
3946         * include/bits/select2.h: New file.
3947         * debug/Makefile (routines): Add fdelt_chk.
3948         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
3949         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
3950         FD_ISSET.
3951         * debug/fdelt_chk.c: New file.
3953         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
3954         * wcsmbs/test-wmemcmp.c: Likewise.
3955         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
3956         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
3958 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
3960         * string/Makefile (strop-tests): Add memcmp.
3961         * string/test-wmemcmp.c: New file.
3962         * string/test-memcmp.c: Add wmemcmp support.
3964 2011-09-08  Roland McGrath  <roland@hack.frob.com>
3966         [BZ #13153]
3967         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
3968         2011-07-19 change.
3970         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
3971         garbage value in a __mach_port_mod_refs call in the cases of the
3972         task-self and thread-self ports.
3974 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3976         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
3978 2011-09-08  Andreas Schwab  <schwab@redhat.com>
3980         * elf/dl-load.c (lose): Check for non-null L.
3982 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
3984         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
3986         * elf/dl-libc.c (dlerror_run): Pass back error code from
3987         dl_catch_error.
3989         [BZ #13123]
3990         * elf/dl-load.c (lose): Free l_origin if it is valid.
3992         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
3993         names.
3994         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
3995         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
3996         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
3997         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
3998         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
3999         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
4001 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4003         * sysdeps/powerpc/fpu/e_hypot.c: New file.
4004         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
4005         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
4006         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
4007         * sysdeps/powerpc/fpu/k_cosf.c: New file.
4008         * sysdeps/powerpc/fpu/k_sinf.c: New file.
4009         * sysdeps/powerpc/fpu/s_cosf.c: New file.
4010         * sysdeps/powerpc/fpu/s_sinf.c: New file.
4011         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
4012         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
4014 2011-08-15  Alan Modra  <amodra@gmail.com>
4016         [BZ #13092]
4017         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
4018         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
4019         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
4020         ppc_mcount to static-only-routines.
4021         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
4022         __mcount_internal.
4023         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
4024         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
4026 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
4028         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
4029         for finite and infinity parameters.
4031 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
4033         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
4034         and add nop instructions for throughput optimization.
4035         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
4037 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
4039         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
4040         aligned copy for power7 with vector-scalar instructions.
4041         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
4043 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
4045         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
4046         AVX check.
4048 2011-09-07  Andreas Schwab  <schwab@redhat.com>
4050         [BZ #13144]
4051         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
4052         last change.
4054 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
4056         * sysdeps/unix/sysv/linux/x86_64/init-first.c
4057         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
4058         syscall wrapper around clock_gettime in __vdso_clock_gettime.
4059         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
4060         clock_gettime.
4062 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
4064         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
4065         Forgot to demangle the pointer.
4067         * sysdeps/i386/sysdep.h: Define atom_text_section.
4068         * sysdeps/x86_64/sysdep.h: Likewise.
4069         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
4070         section with atom_text_section.
4071         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
4072         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
4073         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
4074         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
4075         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
4077         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
4078         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
4079         already be defined.  Change to take two parameters and don't assign
4080         result to variable.  Adjust all users.
4081         Define INTERNAL_GETTIME if not already defined.
4082         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
4083         call.
4084         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
4085         HAVE_CLOCK_GETTIME_VSYSCALL.
4086         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
4088         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
4089         gettimeofday vsyscall, just use time.
4091 2011-09-06  Andreas Schwab  <schwab@redhat.com>
4093         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
4094         <errno.h>.
4096 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
4098         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
4099         syscall on x86-64.
4100         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
4101         syscall.
4102         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
4103         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
4104         syscall if possible.
4106 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
4108         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
4109         e_ident.  Don't pass to find_mapsXX.
4110         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
4112 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
4114         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
4115         strchr-sse2-no-bsf strrchr-sse2-no-bsf
4116         * sysdeps/x86_64/multiarch/strchr.S: Update.
4117         Check bit_slow_BSF bit.
4118         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
4119         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
4120         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
4122 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
4124         [BZ #13134]
4125         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
4126         before glibc 2.15.
4127         (tryshell): Define.
4128         (__spawni): Change last parameter to be flag.  Test
4129         SPAWN_XFLAGS_USE_PATH flag to use path or not.
4130         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
4131         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
4132         * posix/spawni.c: Likewise.
4133         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
4134         * posix/spawnp.c: Likewise.  Change normal version to use
4135         SPAWN_XFLAGS_USE_PATH.
4136         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
4137         SPAWN_XFLAGS_TRY_SHELL.
4139         [BZ #13150]
4140         * posix/glob.h: Remove gcc 1.x support.
4142         [BZ #13068]
4143         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
4145 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
4147         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
4148         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
4149         strrchr-sse2-bsf
4150         * sysdeps/i386/i686/multiarch/strchr.S: New file.
4151         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
4152         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
4153         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
4154         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
4155         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
4157 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
4159         * sysdeps/x86_64/wcscmp.S: New file.
4161         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
4162         wcscmp-c wcscmp-sse2
4163         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
4164         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
4165         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
4166         * wcsmbs/wcscmp.c: Allow renaming.
4168 2011-09-05  David S. Miller  <davem@davemloft.net>
4170         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
4171         stack slot, rather than the struct return pointer slot.
4172         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
4173         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
4174         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
4175         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
4177 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
4179         * po/ja.po: Update from translation team.
4181         [BZ #13144]
4182         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
4183         kernel in 64-bit binaries.
4185 2011-09-01  David S. Miller  <davem@davemloft.net>
4187         * elf/elf.h (HWCAP_SPARC_*): Move to..
4188         * sysdeps/sparc/sysdep.h: this new file and add new values.
4189         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
4190         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
4191         _DL_HWCAP_COUNT to 24.
4192         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
4193         entries.
4194         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
4195         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
4196         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
4197         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
4198         instead of magic constants.
4199         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
4201 2011-08-31  David S. Miller  <davem@davemloft.net>
4203         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
4204         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
4205         Reimplement to do errno handling inline.
4206         (SYSCALL_ERROR_HANDLER): New macro.
4207         (__SYSCALL_STRING): Do not do errno handling in asm.
4208         (__CLONE_SYSCALL_STRING): Delete.
4209         (__INTERNAL_SYSCALL_STRING): Delete.
4210         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
4211         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
4212         (PSEUDO): Reimplement to do errno handling inline.
4213         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
4214         (SYSCALL_ERROR_HANDLER): New macro.
4215         (__SYSCALL_STRING): Do not do errno handling in asm.
4216         (__CLONE_SYSCALL_STRING): Delete.
4217         (__INTERNAL_SYSCALL_STRING): Delete.
4218         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
4219         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
4220         i386.
4221         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
4222         (inline_syscall*): Add 'err' argument.
4223         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
4224         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
4225         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
4226         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
4228         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
4229         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
4231 2011-08-30  Andreas Schwab  <schwab@redhat.com>
4233         * elf/rtld.c (dl_main): Relocate objects in dependency order.
4235 2011-08-29  Jiri Olsa <jolsa@redhat.com>
4237         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
4238         directive.
4240 2011-08-24  David S. Miller  <davem@davemloft.net>
4242         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
4244 2011-08-24  Andreas Schwab  <schwab@redhat.com>
4246         * elf/Makefile: Add rules to build and run unload8 test.
4247         * elf/unload8.c: New file.
4248         * elf/unload8mod1.c: New file.
4249         * elf/unload8mod1x.c: New file.
4250         * elf/unload8mod2.c: New file.
4251         * elf/unload8mod3.c: New file.
4253         * elf/dl-close.c (_dl_close_worker): Reset private search list if
4254         it wasn't used.
4256 2011-08-23  David S. Miller  <davem@davemloft.net>
4258         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
4259         subtract stack bias.
4260         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
4261         %sp not %fp in calculations.
4262         (_JMPBUF_UNWINDS_ADJ): Likewise.
4264         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
4265         (aio_suspend): Call it to force an exception region around the
4266         AIO_MISC_WAIT() invocation.
4268 2011-08-23  Andreas Schwab  <schwab@redhat.com>
4270         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
4271         backslash.
4273 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
4275         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
4276         protection macro.
4277         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
4278         and <dl-machine.h>.
4279         (Elf64_FuncDesc): Remove.
4281 2011-08-22  David S. Miller  <davem@davemloft.net>
4283         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
4284         sigaltstack check, add missing cfi directives.
4285         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
4286         missing cfi directives, and sigaltstack handling.
4288 2011-08-16  Andreas Schwab  <schwab@redhat.com>
4290         [BZ #11724]
4291         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
4292         object is seen twice.
4293         * elf/dl-fini.c (_dl_sort_fini): Likewise.
4295         * elf/Makefile (distribute): Add tst-initorder2.c.
4296         (tests): Add tst-initorder2.
4297         (modules-names): Add tst-initorder2a tst-initorder2b
4298         tst-initorder2c tst-initorder2d.  Add rules to build them.
4299         ($(objpfx)tst-initorder2.out): New rule.
4300         * elf/tst-initorder2.c: New file.
4301         * elf/tst-initorder2.exp: New file.
4303 2011-08-22  Andreas Schwab  <schwab@redhat.com>
4305         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
4307         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
4308         dependencies back to end of function.
4310         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
4311         $(elfobjdir)/ld.so.
4313 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
4315         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
4316         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
4317         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
4318         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
4319         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
4320         of __vdso_gettimeofday.
4321         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
4322         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
4323         attribute_hidden.
4324         (_libc_vdso_platform_setup): Remove initialization of
4325         __vdso_gettimeofday and __vdso_time.
4327 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
4329         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
4330         and fgetc_unlocked.
4331         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
4332         getc_unlocked.
4334         * elf/dl-open.c (add_to_global): Report additions to the global scope
4335         for LD_DEBUG=scopes.
4336         (dl_open_worker): Also print scope of newly loaded dependencies.
4337         (_dl_show_scope): Indicate if there is no scope.
4339         [BZ #13114]
4340         * stdio-common/Makefile (tests): Add bug24.
4341         * stdio-common/bug24.c: New file.
4343 2011-08-19  Andreas Jaeger  <aj@suse.de>
4345         [BZ #13114]
4346         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
4347         non-existant file when using close-on-exec mode.
4349 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
4351         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
4352         the very first instruction.
4354         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
4355         the CFI state in the end.
4356         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
4357         inclusion of dl-trampoline.h.
4358         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
4360 2011-08-19  Andreas Schwab  <schwab@redhat.com>
4362         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
4363         expectations for long double.
4365         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
4366         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
4368 2011-08-14  David S. Miller  <davem@davemloft.net>
4370         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
4371         artificual limit depends upon the system page size.
4373 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
4375         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
4376         * resolv/Makefile: Define CFLAGS-libresolv.
4378 2011-08-17  Andreas Schwab  <schwab@redhat.com>
4380         * nss/makedb.c (compute_tables): Make variables used in nested
4381         function static.
4383 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
4385         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
4386         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
4387         if buffer was too small.
4389         * elf/pldd.c (main): Attach to all threads in the process.
4390         Rewrite /proc handling to use *at functions.
4392 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
4394         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
4395         specifies first scope to show.
4396         (dl_open_worker): Update callers.  Move printing scope of new
4397         object to before the relocation.
4398         * elf/rtld.c (dl_main): Update _dl_show_scope call.
4399         * sysdeps/generic/ldsodefs.h: Update declaration.
4401         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
4402         string for the scope number.
4404 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
4406         * nscd/servicescache.c (cache_addserv): Make sure written is always
4407         initialized.
4409 2011-08-14  Roland McGrath  <roland@hack.frob.com>
4411         * sysdeps/i386/i486/bits/atomic.h
4412         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
4413         statement expression, so as to suppress "set but not used" warning.
4414         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
4416         * string/strncat.c (STRNCAT): Use prototype definition.
4418         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
4419         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
4420         -Iprograms here.
4421         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
4422         (localedef-modules): Add localedef.
4423         (locale-modules): Add locale.
4425         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
4426         * elf/rtld.c (dl_main): Invert order of assignment in last change,
4427         to avoid a warning.
4429 2011-08-14  David S. Miller  <davem@davemloft.net>
4431         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
4432         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
4434 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
4436         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
4437         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
4438         * elf/rtld.c (dl_main): Set l_name of vDSO.
4439         Call _dl_show_scope when DL_DEBUG_SCOPES.
4440         (process_dl_debug): Recognize scopes flag and also set it for all.
4441         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
4442         Declare _dl_show_scope.
4444         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
4445         (do_dlopen): Pass caller_dlopen to dl_open.
4446         (__libc_dlopen_mode): Initialize caller_dlopen.
4448         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
4449         of libc.  Make tolower call locale-independent.  Optimize a bit by
4450         using isdigit instead of isalnum.
4451         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
4453 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
4455         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
4456         was a dependency or dynamically loaded.
4458 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
4460         * intl/l10nflist.c: Allow architecture-specific pop function.
4461         * sysdeps/x86_64/l10nflist.c: New file.
4463         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
4464         classification.
4466 2011-08-10  Andreas Schwab  <schwab@redhat.com>
4468         * include/dirent.h: Add libc_hidden_proto for scandirat and
4469         scandirat64.  Don't declare __scandirat64.
4470         * dirent/scandirat.c: Add libc_hidden_def.
4471         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
4472         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
4474 2011-08-10  David S. Miller  <davem@davemloft.net>
4476         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
4477         enum.
4478         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
4479         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
4480         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
4482 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
4484         * Versions.def [libc]: Add GLIBC_2.15.
4485         * dirent/Makefile (routines): Add scandirat and scandirat64.
4486         * dirent/Versions [libc]: Export scandirat and scandirat64 for
4487         GLIBC_2.15.
4488         * dirent/dirent.h: Declare scandirat and scandirat64.
4489         * dirent/scandirat.c: New file.
4490         * dirent/scandirat64.c: New file.
4491         * sysdeps/wordsize-64/scandirat.c: New file.
4492         * sysdeps/wordsize-64/scandirat64.c: New file.
4493         * dirent/opendir.c: Define opendirat.
4494         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
4495         using scandirat.
4496         * dirent/scandir64.c: Adjust for scandir.c change.
4497         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
4498         __scandirat64, and __scandir_cancel_handler.
4499         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
4500         additional parameter and use openat instead of open (outside of ld.so).
4501         Add new __opendir as wrapper around __opendirat.
4502         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
4503         here without requiring old scandirat implementation.
4505 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
4507         * dirent/scandir.c (cancel_handler): Renamed to
4508         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
4509         defined.  Adjust users.
4510         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
4511         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
4513 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
4515         * string/test-string.h (IMPL): Use __STRING to expand name and then
4516         stringify it.
4518         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
4519         of cleanups.
4521 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
4523         * string/Makefile: Update.
4524         (strop-tests): Append strncat.
4525         * string/test-wcscmp.c: New file.
4526         New comprehensive test for wcscmp.
4527         * string/test-strcmp.c: Update.
4528         (WIDE): New define.
4530 2011-07-22  Andreas Schwab  <schwab@redhat.com>
4532         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
4533         line.
4535 2011-07-26  Andreas Schwab  <schwab@redhat.com>
4537         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
4538         encoding to ACE if AI_IDN.
4540 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
4542         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
4543         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
4545 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
4547         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
4548         Fix overflow bug in strncat.
4549         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
4551         * string/test-strncat.c: Update.
4552         Add new tests for checking overflow bugs.
4554 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
4556         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
4557         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
4558         * sysdeps/i386/i686/multiarch/strcat.S: New file.
4559         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
4560         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
4561         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
4562         * sysdeps/i386/i686/multiarch/strncat.S: New file.
4563         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
4564         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
4566         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
4567         (USE_AS_STRCAT): Define.
4568         Add strcat and strncat support.
4569         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
4571 2011-07-25  Andreas Schwab  <schwab@redhat.com>
4573         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
4574         __n bigger than INT_MAX+1.
4575         (__strncmp_g): Likewise.
4577 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
4579         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
4580         * libio/stido.h: Likewise.
4582         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
4583         (AF_NFC): Define.
4584         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
4585         (AF_NFC): Define.
4587         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
4588         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
4589         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
4590         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
4591         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
4593         [BZ #13021]
4594         * scripts/test-installation.pl: Don't expect libnss_test1 to be
4595         installed.
4597         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
4598         typo.
4599         (_dl_x86_64_save_sse): Likewise.
4601 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
4603         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
4604         OSXSAVE.
4605         (_dl_x86_64_save_sse): Likewise.
4607         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
4609         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
4611 2011-07-21  Andreas Schwab  <schwab@redhat.com>
4613         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
4614         change.
4615         (_dl_x86_64_save_sse): Use correct AVX check.
4617 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
4619         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
4620         bug in strncpy/strncat.
4621         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
4623 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
4625         * string/tester.c (test_strcat): Add tests for different alignments
4626         of source and destination.
4627         (test_strncat): Likewise.
4629 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
4631         [BZ #12852]
4632         * posix/glob.c (glob): Check passed in values before using them in
4633         expressions to avoid some overflows.
4634         (glob_in_dir): Likewise.
4636         [BZ #13007]
4637         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
4638         check for AVX enablement so that we don't crash with old kernels and
4639         new hardware.
4640         * elf/tst-audit4.c: Add same checks here.
4641         * elf/tst-audit6.c: Likewise.
4643         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
4645 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
4647         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
4649 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
4651         * po/cs.po: Update from translation team.
4652         * po/bg.po: Likewise.
4654 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
4656         * misc/sys/cdefs.h: Add support for const attribute.
4657         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
4658         to gnu_dev_{major,minor,makedev} functions.
4660 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
4662         * intl/dcigettext.c (get_output_charset): Add missing bracket.
4664 2011-07-20  Andreas Schwab  <schwab@redhat.com>
4666         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
4667         strlen results.
4669 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4671         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
4672         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
4673         register in order to avoid conflicts with the soft frame pointer
4674         being held in r11 when necessary.
4675         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
4676         (INTERNAL_VSYSCALL_NCS): Likewise.
4678 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
4680         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
4681         * elf/dl-fini.c (_dl_fini): Adjust caller.
4682         * elf/dl-close.c (_dl_close_worker): Likewise.
4683         * sysdeps/generic/ldsodefs.h: Adjust declaration.
4685 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
4687         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
4688         "aux_cache->nlibs < 0".
4690         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
4691         in the reload-count case.
4693 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
4695         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
4696         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
4697         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
4698         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
4699         * sysdeps/x86_64/multiarch/strcat.S: New file.
4700         * sysdeps/x86_64/multiarch/strncat.S: New file.
4701         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
4702         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
4703         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
4704         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
4705         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
4706         (USE_AS_STRCAT): Define.
4707         Add strcat and strncat support.
4708         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
4709         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
4710         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
4711         * string/strncat.c: Update.
4712         (USE_AS_STRNCAT): Define.
4713         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
4714         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
4715         and i7.
4716         * sysdeps/x86_64/multiarch/init-arch.h
4717         (bit_Prefer_PMINUB_for_stringop): New.
4718         (index_Prefer_PMINUB_for_stringop): Likewise.
4719         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
4720         bit_Prefer_PMINUB_for_stringop.
4722 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
4724         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
4725         buffer64.
4726         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
4727         of casting of buffer.
4728         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
4729         buffer32 and buffer64.
4730         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
4731         writes instead of casting of buffer.
4732         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
4733         buffer32.
4734         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
4735         casting of buffer.
4737 2011-07-19  Andreas Schwab  <schwab@redhat.com>
4739         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
4741 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
4743         * nscd/nscd.c (termination_handler): Don't do anything for a database
4744         if it has not yet been initialized.
4746 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
4748         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
4750 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
4752         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
4754 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
4756         * po/nl.po: Update from translation team.
4757         * po/sv.po: Likewise.
4759 2011-07-16  Roland McGrath  <roland@hack.frob.com>
4761         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
4762         now disallowed by GCC.
4764         * configure.in (use-default-link): Default to yes if a test -shared
4765         link meets our qualifications.
4766         * configure: Regenerated.
4768         * config.make.in (output-format): New variable.
4769         * configure.in: Check for ld --print-output-format support.
4770         * configure: Regenerated.
4771         * Makerules ($(common-objpfx)format.lds)
4772         [$(output-format) != unknown]: Just use $(output-format),
4773         instead of the linker-script munging.
4775 2011-07-14  Roland McGrath  <roland@hack.frob.com>
4777         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
4778         of $(common-objpfx)shlib.lds.
4779         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
4781         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
4782         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
4784         * configure.in (-z relro check): Adjust test code to add a large
4785         writable data section after it.
4786         * configure: Regenerated.
4788 2011-07-11  Roland McGrath  <roland@hack.frob.com>
4790         * configure.in (-z relro check): Fix test code to make the variable
4791         truly const.
4792         * configure: Regenerated.
4794 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
4796         * nscd/nscd.h (struct traced_file): Define.
4797         (struct database_dyn): Remove inotify_descr, reset_res, and filename
4798         elements.  Add traced_files.
4799         (inotify_fd): Declare.
4800         (register_traced_file): Declare.
4801         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
4802         (inotify_fd): Export.
4803         (resolv_conf_descr): Remove.
4804         (nscd_init): Move inotify descriptor creation to main.
4805         Don't register files for notification here.
4806         (register_traced_file): New function.
4807         (invalidate_cache): Don't use reset_res to determine whether to call
4808         res_init, go through the list of registered files.
4809         (main_loop_poll): The inotify descriptors are now stored in the
4810         structures for the traced files.
4811         (main_loop_epoll): Likewise
4812         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
4813         to __nss_disable_nscd.
4814         * nscd/cache.c (prune_cache): There is no single inotify descriptor
4815         for a database anymore.  Check the records for all the registered
4816         files instead.
4817         * nss/Makefile (libnss_files-routines): Add files-init.
4818         (libnss_db-routines): Add db-init.
4819         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
4820         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
4821         * nss/nss_db/db-init.c: New file.
4822         * nss/nss_files/files-init.c: New file.
4823         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
4824         __nss_lookup_function.
4825         (__nss_lookup_function): Call nss_load_library.
4826         (nss_load_all_libraries): New function.
4827         (__nss_disable_nscd): Take parameter with callback function for files
4828         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
4829         used for the cached services.
4830         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
4831         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
4832         options for features to all the files in nscd.
4834         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
4836 2011-07-10  Roland McGrath  <roland@hack.frob.com>
4838         * csu/elf-init.c (__libc_csu_init): Comment typo.
4840 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
4842         * po/pl.po: Update from translation team.
4843         * po/ja.po: Likewise.
4844         * po/ru.po: Likewise.
4845         * po/ko.po: Likewise.
4846         * po/fr.po: Likewise.
4848 2011-07-09  Roland McGrath  <roland@hack.frob.com>
4850         * configure.in (.ctors/.dtors header and trailer check):
4851         Use an empirical test on a built program.
4852         * configure: Regenerated.
4854         * configure.in (-z relro check): Use an empirical test on a built DSO.
4855         Detect, but do not require, on ia64.
4856         * configure: Regenerated.
4858         * configure.in (READELF): Find it with AC_CHECK_TOOL.
4859         Update tests that use readelf to use $READELF instead.
4860         * configure: Regenerated.
4862 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
4864         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
4865         if the result is not used.
4867 2011-07-05  Andreas Jaeger  <aj@suse.de>
4869         [BZ#9696]
4870         * stdlib/tst-strtod.c: Add testcase.
4872 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
4874         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
4875         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
4876         The latter has a higher limit.  Take additional parameter to pass to
4877         the new function.
4878         (__pathconf): Pass file to __statfs_link_max.
4879         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
4880         __statfs_link_max.
4881         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
4882         __statfs_link_max.
4884         [BZ #12868]
4885         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
4886         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
4887         Handle Lustre.
4888         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
4889         (__statfs_filesize_max): Likewise.
4890         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
4892 2011-07-05  Andreas Jaeger  <aj@suse.de>
4894         * resolv/res_comp.c (dn_skipname): Remove unused variable.
4896 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
4898         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
4899         `status' variable.
4900         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
4901         Likewise.
4903 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
4905         * Makefile (strop-tests): Add strncat.
4906         * string/test-strncat.c: New file.
4908 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
4910         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
4912 2011-06-21  Andreas Jaeger  <aj@suse.de>
4914         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
4915         Copy rule from iconvdata/Makefile.
4917 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
4919         [BZ #12922]
4920         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
4921         but no long options are defined, just return 'W'.
4923 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
4925         [BZ #9696]
4926         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
4928 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
4930         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
4931         netgroups to read.
4932         (innetgr): Likewise.
4934 2011-07-05  Roland McGrath  <roland@hack.frob.com>
4936         * config.make.in (install_root): Default to $(DESTDIR).
4938 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
4940         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
4942 2011-07-02  Roland McGrath  <roland@hack.frob.com>
4944         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
4946         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
4947         containing directory rather than embedding absolute directory names.
4949         * scripts/check-local-headers.sh: Rewritten using awk.
4950         Match by word, not by line.  Print error messages for matches.
4951         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
4953         * Makerules [shlib-lds-flags empty]:
4954         ($(common-objpfx)libc_pic.opts): New target.
4955         ($(common-objpfx)libc_pic.os.clean): New target.
4956         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
4958         * config.make.in (OBJCOPY): New variable.
4959         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
4960         * configure: Regenerated.
4962         * config.make.in (use-default-link): New variable.
4963         * configure.in (use_default_link): Grok --with-default-link to set it.
4964         * configure: Regenerated.
4965         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
4966         (shlib-lds, shlib-lds-flags): Define to empty.
4968         * Makerules (shlib-lds): New variable.
4969         (shlib-lds-flags): New variable.
4970         (build-shlib, build-moduile, build-module-asneeded): Use it.
4971         ($(common-objpfx)libc.so): Use $(shlib-lds).
4972         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
4973         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
4975         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
4976         DT_FLAGS/DT_FLAGS_1 with zero flags.
4978         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
4979         linker script munging.
4981 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
4983         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
4984         as 128-bit value.
4985         * crypt/sha512.c (sha512_process_block): Perform total addition using
4986         128-bit if possible.
4987         (__sha512_finish_ctx): Likewise.
4988         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
4989         as 64-bit value.
4990         * crypt/sha256.c (SWAP64): Define.
4991         (sha256_process_block): Perform total addition using 64-bit if
4992         possible.
4993         (__sha256_finish_ctx): Likewise.
4995 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
4997         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
4998         * nscd/initgrcache.c (addinitgroupsX): Likewise.
4999         * nscd/hstcache.c (cache_addhst): Likewise.
5000         * nscd/grpcache.c (cache_addgr): Likewise.
5001         * nscd/aicache.c (addhstaiX): Likewise
5002         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
5004 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
5006         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
5007         * nscd/initgrcache.c (addinitgroupsX): Likewise.
5008         * nscd/hstcache.c (cache_addhst): Likewise.
5009         * nscd/grpcache.c (cache_addgr): Likewise.
5010         * nscd/aicache.c (addhstaiX): Likewise
5012 2011-07-01  Andreas Schwab  <schwab@redhat.com>
5014         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
5015         domain only when needed.
5017 2011-06-30  Andreas Schwab  <schwab@redhat.com>
5019         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
5020         is always restored.
5022 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
5024         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
5025         are re-adding the entry.
5026         * nscd/servicescache.c (cache_addserv): Likewise.
5028 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
5030         * sysdeps/generic/dl-irel.h: fix protection against multiple
5031         inclusions.
5032         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
5034 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
5036         [BZ #12935]
5037         * malloc/memusage.sh: Fix quoting in message.
5038         * debug/xtrace.sh: Likewise.
5040         * configure.in: Remove support for --experimental-malloc option, make
5041         it the default.
5042         * config.make.in: Likewise.
5043         * malloc/Makefile: Likewise.
5045 2011-06-27  Andreas Schwab  <schwab@redhat.com>
5047         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
5048         two-byte characters.
5050 2011-06-27  Roland McGrath  <roland@hack.frob.com>
5052         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
5053         AC_CACHE_CHECK invocation.
5054         * configure: Regenerated.
5056         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
5058 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
5060         [BZ #12350]
5061         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
5062         bit from old_res_options.
5064         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
5066         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
5067         value type for setfct.
5069 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
5071         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
5072         __gettimeofday instead of gettimeofday.
5074 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
5076         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
5078 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
5080         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
5082         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
5083         info.
5085 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
5087         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
5088         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
5089         strcpy-sse2-unaligned strncpy-sse2-unaligned
5090         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
5091         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
5092         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
5093         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
5094         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
5095         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
5096         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
5097         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
5098         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
5099         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
5100         (STRCPY): Support SSE2 and SSSE3 versions.
5102 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
5104         [BZ #12874]
5105         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
5106         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
5107         kernels which artificially limit size of requests.
5109 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
5111         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
5112         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
5113         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
5114         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
5115         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
5116         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
5117         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
5118         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
5119         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
5120         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
5121         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
5122         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
5123         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
5124         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
5125         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
5126         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
5127         Enable unaligned load optimization for Intel Core i3, i5 and i7
5128         processors.
5129         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
5130         Define.
5131         (index_Fast_Unaligned_Load): Define.
5132         (HAS_FAST_UNALIGNED_LOAD): Define.
5134 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
5136         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
5138 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
5140         [BZ #12907]
5141         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
5142         until it is clear that the information is realy needed.
5143         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
5145 2011-06-22  Andreas Schwab  <schwab@redhat.com>
5147         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
5149 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
5151         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
5152         /sys/devices/system/cpu/online if it is usable.
5154         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
5155         reading the information from the /proc filesystem to once a second.
5157 2011-06-21  Andreas Jaeger  <aj@suse.de>
5159         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
5160         NULL after inclusion of kernel headers.
5162 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
5164         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
5165         calls to internal_setent.
5167         [BZ #12885]
5168         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
5169         addresses using gethostbyname4_r ignore IPv4 addresses.
5171         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
5172         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
5174         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
5176 2011-06-20  David S. Miller  <davem@davemloft.net>
5178         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
5179         inclusions.
5180         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
5182         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
5183         (elf_irel): Use it.
5184         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
5185         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
5186         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
5187         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
5188         * sysdeps/x86_64/dl-irel.h: Likewise.
5190         * elf/dl-runtime.c: Use elf_ifunc_invoke.
5191         * elf/dl-sym.c: Likewise.
5193 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
5195         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
5196         need to dereference resplen2.
5198 2011-06-14  Andreas Schwab  <schwab@redhat.com>
5200         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
5202 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
5204         * Makeconfig: Define vardbdir and inst_vardbdir.
5205         * nss/Makefile: Add rules to install db-Makefile.
5207         * nss/nss_db/db-XXX.c: Cleanup.
5209         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
5210         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
5211         GLIBC_PRIVATE.
5212         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
5213         * nss/makedb.c: Implement -g option to specify that value strings
5214         are generated and should not be added to table iterated over for
5215         get*ent calls.
5216         * nss/nss_db/db-initgroups.c: New file.
5218         * nss/getent.c: Add support for initgroups lookups through getgrouplist
5219         interface.
5221         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
5222         (internal_getgrouplist): Adjust to name change.
5223         Update use_initgroups_entry if this is not the first call.
5224         * nss/databases.def: Add initgroups entry.
5226         * nss/makedb.c (compute_tables): Check result of multiple hash table
5227         sizes to minimize maximum chain length.
5229 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
5231         * Versions.def: Add entry for libnss_db.
5232         * shlib-versions: Likewise.
5233         * nss/Makefile: Add rules to build libnss_db.
5234         * nss/Versions: Add libnss_db information.  Organize libnss_files
5235         entries better.
5236         * nss/db-Makefile: Add gshadow support.  Change rules for the new
5237         makedb progra.  Some minor improvements to generate smaller files.
5238         * nss/nss_db/nss_db.h: Move NSS database header data structures to
5239         here from...
5240         * nss/makedb.c: ...here.
5241         Improve database format to be smaller and require less memory at
5242         runtime.
5243         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
5244         db anymore.
5245         * nss/nss_db/db-netgrp.c: Likewise.
5246         * nss/nss_db/db-open.c: Likewise.
5247         * nss/nss_files/flies-XXX.x: Adjust comments.
5248         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
5249         * nss/nss_files/files-grp.c: Likewise.
5250         * nss/nss_files/files-hosts.c: Likewise.
5251         * nss/nss_files/files-network.c: Likewise.
5252         * nss/nss_files/files-proto.c: Likewise.
5253         * nss/nss_files/files-pwd.c: Likewise.
5254         * nss/nss_files/files-rpc.c: Likewise.
5255         * nss/nss_files/files-service.c: Likewise.
5256         * nss/nss_files/files-sgrp.c: Likewise.
5257         * nss/nss_files/files-spwd.c: Likewise.
5258         * nss/nss_db/db-alias.c: Removed.
5259         * nss/nss_db/dummy-db.h: Removed.
5261 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
5263         * nss/makedb.c: Rewritten to not use database library.
5264         * nss/Makefile: Update to build new makedb program.
5266 2011-06-14  Andreas Jaeger  <aj@suse.de>
5268         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
5269         memset declaration.
5271 2011-06-10  Andreas Schwab  <schwab@redhat.com>
5273         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
5274         tmpbuf.
5276 2011-06-10  Roland McGrath  <roland@hack.frob.com>
5278         * Makerules (shlib.lds): Fail if the linker script comes out empty.
5279         * elf/Makefile ($(objpfx)ld.so): Likewise.
5281         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
5282         Don't list ld.so twice in dependencies.
5284         * posix/bug-regex31.c: Include <stdlib.h>.
5286         * nscd/hstcache.c (cache_addhst): Remove unused variable.
5288         * nis/nss_compat/compat-spwd.c
5289         (getspent_next_nss_netgr): Remove unused variable.
5290         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
5292         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
5293         nonmembers" output to use the right array.
5295         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
5297         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
5299         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
5300         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
5301         * catgets/gencat.c (read_input_file): Likewise.
5302         * locale/programs/locarchive.c (enlarge_archive): Likewise.
5304         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
5305         variable definition inside #if's controlling its use.
5307         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
5309         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
5311         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
5313         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
5314         unreachable code.
5316         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
5318         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
5319         * configure: Regenerated.
5321         * Makerules: Revert last change.
5322         * elf/Makefile: Likewise.
5324 2011-06-09  Roland McGrath  <roland@hack.frob.com>
5326         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
5327         * elf/Makefile ($(objpfx)librtld.os): Likewise.
5328         (reloc-link): Likewise.
5330 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
5332         * elf/Makefile: Add rules to build pldd.
5333         * elf/pldd.c: New file.
5334         * elf/pldd-xx.c: New file.
5336 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
5338         * version.h: Update for 2.15 development version.
5340 2011-06-07  David S. Miller  <davem@davemloft.net>
5342         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
5343         ifuncs.
5344         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
5345         elf_machine_lazy_rel): Likewise.
5346         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
5347         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
5348         elf_machine_lazy_rel): Likewise.
5349         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
5350         dl_hwcap via passed in argument.
5351         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
5352         Likewise.
5354 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5356         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
5358 2011-06-06  Roland McGrath  <roland@hack.frob.com>
5360         [BZ #12849]
5361         * manual/fdl-1.1.texi: New file, verbatim from:
5362         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
5363         * manual/lgpl-2.1.texi: New file, verbatim from:
5364         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
5365         * manual/Makefile (licenses): New variable, list those new file names.
5366         (texis): Use it.
5367         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
5369         * manual/fdl.texi: File removed.
5370         * manual/lesser.texi: File removed.
5371         * manual/libc.texinfo (Copying, Documentation License):
5372         Use new @include file names, put @appendix directive before @include.
5374 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
5376         [BZ #12841]
5377         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
5378         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
5379         (mq_open): Add __NTH.
5381 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
5383         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
5384         Assume Intel Core i3/i5/i7 processor if AVX is available.
5386 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
5388         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
5389         typo.
5391 2011-05-31  Andreas Schwab  <schwab@redhat.com>
5393         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
5394         memory.  Use alloca_account.  Fix memory leak when retrying.
5396 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
5398         * version.h (RELEASE): Bump for 2.14 release.
5399         * include/features.h (__GLIBC_MINOR__): Bump to 14.
5401         * config.make.in (RANLIB): Remove entry.
5403 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
5405         * po/Makefile (po-sed-cmd): Add ksh to extensions.
5406         (libc.pot): Work around missing support for .ksh extension in xgettext.
5408         [BZ #12684]
5409         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
5410         if both request failed.
5411         (send_dg): In case of server errors clear resplen or *resplen2.
5413         [BZ #12454]
5414         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
5415         when there are multiple maps.
5416         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
5417         (_dl_fini): Remove test here.
5419         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
5421 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
5423         [BZ #12350]
5424         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
5425         bit from old_res_options.
5426         (gaih_inet): Likewise.
5428         [BZ #11099]
5429         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
5430         as signed.
5432         * resolv/res_init.c (res_setoptions): Make the code more compact.
5434         [BZ #11558]
5435         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
5436         set RES_USEVC.
5438         [BZ #11634]
5439         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
5441         * malloc/malloc.h: Mark malloc hook variables as deprecated.
5443         [BZ #11781]
5444         * malloc/malloc.h: Declare malloc hook variables as volatile.
5446         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
5447         in last patch.
5449         [BZ #11799]
5450         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
5451         raise in the comment.
5452         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
5453         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
5454         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
5456 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
5458         [BZ #12811]
5459         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
5460         grow the buffers more if it already has to be sufficient.
5461         (build_wcs_upper_buffer): Likewise.
5462         * posix/regexec.c (check_matching): Likewise.
5463         (clean_state_log_if_needed): Likewise.
5464         (extend_buffers): Don't enlarge buffers beyond size of the input
5465         buffer.
5466         Patches mostly by Emil Wojak <emil@wojak.eu>.
5467         * posix/bug-regex32.c: New file.
5468         * posix/Makefile (tests): Add bug-regex32.
5470         * locale/findlocale.c (_nl_find_locale): Return right away if
5471         _nl_explode_name failed.
5472         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
5474         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
5476         * debug/xtrace.sh: Unify messages.
5477         * malloc/memusage.sh: Likewise.
5479         [BZ #12813]
5480         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
5481         time symbol from vDSO.  Substitute with vsyscall if not available.
5482         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
5483         __vdso_time.
5485         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
5486         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
5487         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
5488         Add sendmmsg and internal_sendmmsg.
5489         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
5490         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
5491         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
5493         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
5494         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
5495         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
5497 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
5499         [BZ #12813]
5500         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
5501         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
5502         available.
5503         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
5504         __vdso_getcpu.
5506         [BZ #12814]
5507         * iconvdata/Makefile (tests): Add bug-iconv9.
5508         * iconvdata/bug-iconv9.c: New file.
5510 2011-05-27  Andreas Schwab  <schwab@redhat.com>
5512         [BZ #12814]
5513         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
5515 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
5517         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
5518         (struct user_regs_struct): Change intcs field back to cs.
5520 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
5522         * po/ja.po: Update from translation team.
5524 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
5526         [BZ #12795]
5527         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
5528         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
5530 2011-05-20  Andreas Schwab  <schwab@redhat.com>
5532         * stdlib/longlong.h: Update from GCC.
5534 2011-05-23  Andreas Schwab  <schwab@redhat.com>
5536         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
5537         parameter name.
5538         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
5539         Add parameter name.
5540         (__sysconf): Pass it down.
5542 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
5544         [BZ #12671]
5545         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
5546         some situations.
5547         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
5548         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
5549         add in in __libc_use_alloca calls.  Adjust callers.
5550         (glob): Use malloc in some situations.
5552         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
5553         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
5554         pltexit.
5556 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
5558         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
5559         and CLOCK_BOOTTIME_ALARM.
5561         [BZ #12782]
5562         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
5563         is returned.
5565         * string/_strerror.c (__strerror_r): Print negative errors as signed
5566         numbers.
5568         [BZ #12777]
5569         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
5570         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
5571         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
5573         * configure.in: Fix typo in redirection and correct removal of test
5574         files in two cases.
5576         [BZ #12788]
5577         * locale/setlocale.c (new_composite_name): Fix test to check for
5578         identical name of all categories.
5580         [BZ #12792]
5581         * libio/filedoalloc.c (local_isatty): New function.
5582         (_IO_file_doallocate): Use local_isatty.
5583         * stdio-common/perror.c (perror): In case a new stream is used
5584         forward the stream error.
5585         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
5586         error flag.
5588 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
5590         [BZ #11869]
5591         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
5592         alloca.
5593         * include/alloca.h (extend_alloca_account): Define.
5595         [BZ #11857]
5596         * posix/regex.h: Fix comments with documentation of user-accessible
5597         fields after compilation and describe correct free'ing of pattern
5598         after re_compile_pattern.
5599         Patch by Reuben Thomas <rrt@sc3d.org>.
5601 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
5603         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
5604         and -mno-altivec to prevent the compiler from using Altivec and/or
5605         VSX instructions when the corresponding registers are not available.
5607 2011-05-19  Andreas Schwab  <schwab@redhat.com>
5609         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
5611 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
5613         * libio/freopen.c (freopen): Use __dup2, not dup2.
5614         * libio/freopen64.c (freopen64): Likewise.
5616 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
5618         [BZ #12775]
5619         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
5620         * math/Makefile (tests): Add test-powl.
5621         (CFLAGS-test-powl.c): Define.
5622         * math/test-powl.c: New file.
5624 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5626         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
5628 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
5630         [BZ #11837]
5631         * iconvdata/gb18030.c: Update to GB18020-2005.
5633 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
5635         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
5636         RE_SYNTAX_POSIX_AWK): Update to match recent development.
5637         Patch by Aharon Robbins <arnold@skeeve.com>.
5639         [BZ #11892]
5640         * stdlib/putenv.c (putenv): Don't always create copy of the variable
5641         on the stack.
5643         [BZ #11895]
5644         * misc/pselect.c (__pselect): Handle timeout value errors hidden
5645         through underflows.
5647         [BZ #12766]
5648         * misc/error.c (error_at_line): Ensure file_name and old_file_name
5649         point to strings before performing equality test for error_one_per_line
5650         mode.
5652         [BZ #11697]
5653         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
5655         [BZ #11820]
5656         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
5657         (struct user_fpregs_struct): Avoid __uint*_t types.
5659         [BZ #6420]
5660         * malloc/mtrace.c (tr_where): Add additional parameter to point to
5661         symbol info.  Use it instead of calling _dl_addr locally.
5662         (lock_and_info): New function.
5663         (tr_freehook): Call lock_and_info and pass symbol info as additional
5664         parameter to tr_where.
5665         (tr_mallochook): Likewise.
5666         (tr_reallochook): Likewise.
5667         (tr_memalignhook): Likewise.
5669         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
5670         used and couldn't be at all thread-safe.
5672 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
5674         * libio/freopen.c (freopen): Don't close old file descriptor
5675         before the new one is opened.  Instead dup the new file descriptor
5676         to the old one after the new stream is created.
5677         * libio/freopen64.c (freopen64): Likewise.
5678         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
5679         * libio/fileops.c (_IO_new_file_close_it): Handle new
5680         _IO_FLAGS2_NOCLOSE flag.
5681         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
5682         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
5683         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
5684         _IO_FLAGS2_NOCLOSE flag.
5685         * include/unistd.h: Add hidden_proto for dup3.
5686         Define __have_dup3.
5687         * io/dup3.c: Define hidden symbol.
5688         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
5690         [BZ #7101]
5691         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
5692         when an incomplete long option is used.
5693         * posix/tst-getopt_long1.c: New file.
5694         * posix/Makefile (tests): Add tst-getopt_long1.
5696         [BZ #10138]
5697         * scripts/config.guess: Update from autoconf-2.68.
5698         * scripts/config.sub: Likewise.
5700         [BZ #10157]
5701         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
5702         tests into ...
5703         (has_cpuclock): ...this.  New function.
5704         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
5705         macro here based on has_cpuclock code.
5707         [BZ #10149]
5708         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
5709         First byte (not low byte) is now always NUL.
5710         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
5712         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
5713         Use non-cancelable interfaces.
5715         [BZ #9809]
5716         * locale/iso-639.def: Add entry for Sorani.
5718         [BZ #11901]
5719         * include/stdlib.h: Move include protection to the right place.
5720         Define abort_msg_s.  Declare __abort_msg with it.
5721         * stdlib/abort.c (__abort_msg): Adjust type.
5722         * assert/assert.c (__assert_fail_base): New function.  Majority
5723         of code from __assert_fail.  Allocate memory for __abort_msg with
5724         mmap.
5725         (__assert_fail): Now call __assert_fail_base.
5726         * assert/assert-perr.c: Remove bulk of implementation.  Use
5727         __assert_fail_base.
5728         * include/assert.hL Declare __assert_fail_base.
5729         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
5730         mmap.
5731         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
5733 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
5735         [BZ #11952]
5736         [BZ #12453]
5737         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
5738         until all modules are registered in the DTV.
5739         * elf/Makefile: Add rules to build and run tst-tls19.
5740         * elf/tst-tls19.c: New file.
5741         * elf/tst-tls19mod1.c: New file.
5742         * elf/tst-tls19mod2.c: New file.
5743         * elf/tst-tls19mod3.c: New file.
5744         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
5746         [BZ #12083]
5747         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
5748         correctly.
5750         [BZ #12601]
5751         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
5752         two-byte sequence errors.
5753         * iconvdata/Makefile (tests): Add bug-iconv8.
5754         * iconvdata/bug-iconv8.c: New file.
5756         [BZ #12626]
5757         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
5758         buf2 definition.
5760         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
5762         [BZ #12432]
5763         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
5764         (dummy_getcfa): New function.
5765         (init): Get _Unwind_GetCFA address, use dummy if not found.
5766         (backtrace_helper): In recursion check, also check whether CFA changes.
5767         (__backtrace): Completely initialize arg.
5769         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
5770         storing incomplete byte sequence in state object.  Avoid testing for
5771         guaranteed too small input if we know there is enough data available.
5773 2011-05-11  Andreas Schwab  <schwab@redhat.com>
5775         * Makeconfig (+link-pie): Indent.
5776         * Rules (binaries-pie): Define if $(have-fpie) and
5777         $(build-shared).
5778         (binaries-shared): Also filter out $(binaries-pie).
5779         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
5780         * nscd/Makefile (others-pie): Add nscd.
5781         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
5782         ($(objpfx)nscd): Remove command override.
5783         * login/Makefile (others-pie): Add pt_chown.
5784         ($(objpfx)pt_chown): Remove command override.
5785         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
5786         remove command overrides.
5788 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
5790         * libio/tst_putwc.c: Fix error messages.
5792         [BZ #12724]
5793         * libio/fileops.c (_IO_new_file_close_it): Always flush when
5794         currently writing and seek to current position when not.
5795         * libio/Makefile (tests): Add bug-fclose1.
5796         * libio/bug-fclose1.c: New file.
5798 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
5800         [BZ #12511]
5801         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
5802         don't set DF_1_NODELETE here.
5803         (do_lookup_x): When entering new entry test for copy relocation
5804         and if necessary set DF_1_NODELETE flag.
5805         * elf/tst-unique4.cc: New file.
5806         * elf/tst-unique4.h: New file.
5807         * elf/tst-unique4lib.cc: New file.
5808         * elf/Makefile: Add rules to build and run tst-unique4.
5809         Patch by Piotr Bury <pbury@goahead.com>.
5811 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
5813         [BZ #12052]
5814         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
5816         [BZ #12625]
5817         * misc/mntent_r.c (addmntent): Flush the stream after the output
5819         [BZ #12393]
5820         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
5821         (is_trusted_path_normalize): Skip initial colon.  Append slash
5822         to empty buffer.  Duplicate is_trusted_path code but allow
5823         constructed patch to be prefix.
5824         (is_dst): Allow $ORIGIN followed by /.
5825         (_dl_dst_substitute): Correct clearing of check_for_trusted.
5826         Correct testing of result of is_trusted_path_normalize
5827         (decompose_rpath): Fix warning.
5829 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
5831         [BZ #11257]
5832         * grp/initgroups.c (internal_getgrouplist): When we found the service
5833         list through the initgroups entry in nsswitch.conf do not always
5834         continue on a successful lookup.  Don't always use the
5835         __nss_group_database value if it is set.
5836         * nss/nsswitch.conf (initgroups): Change action for successful db
5837         lookup to continue for compatibility.
5839 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
5841         [BZ #11532]
5842         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
5843         and CP774 modules.
5844         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
5845         and CP774 modules.
5846         * iconvdata/tst-tables.sh: Likewise.
5847         * iconvdata/cp770.c: New file.
5848         * iconvdata/cp771.c: New file.
5849         * iconvdata/cp772.c: New file.
5850         * iconvdata/cp773.c: New file.
5851         * iconvdata/cp774.c: New file.
5852         * iconvdata/testdata/CP770: New file.
5853         * iconvdata/testdata/CP770..UTF8: New file.
5854         * iconvdata/testdata/CP771: New file.
5855         * iconvdata/testdata/CP771..UTF8: New file.
5856         * iconvdata/testdata/CP772: New file.
5857         * iconvdata/testdata/CP772..UTF8: New file.
5858         * iconvdata/testdata/CP773: New file.
5859         * iconvdata/testdata/CP773..UTF8: New file.
5860         * iconvdata/testdata/CP774: New file.
5861         * iconvdata/testdata/CP774..UTF8: New file.
5863         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
5864         END CHARMAP line.
5865         * iconvdata/gen-8bit-gap.sh: Likewise.
5866         * iconvdata/gen-8bit.sh: Likewise.
5868         * locale/iso-639.def: Add ary entry.
5870         [BZ #11258]
5871         * locale/C-translit.h.in: Add U20A1 transliteration.
5873         [BZ #12178]
5874         * locale/iso-639.def: Add wae entry.
5875         Patch by Kevin Bortis <bortis@translate-wae.ch>.
5877         [BZ #12545]
5878         * locale/programs/localedef.c (construct_output_path): Use ssize_t
5879         for n.
5881         [BZ #12711]
5882         * locale/C-translit.h.in: Add entry for U20B9.
5883         Patch by pravin.d.s@gmail.com.
5885 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
5887         [BZ #12713]
5888         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
5889         ENAMETOOLONG use generic getcwd.
5890         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
5891         in rtld.  Use *stat64.
5892         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
5893         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
5894         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
5895         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
5896         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
5897         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
5898         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
5899         __fstatat64 macros.
5900         * include/dirent.h: Add libc_hidden_proto for rewinddir.
5901         * dirent/rewinddir.c: Add libc_hidden_def.
5902         * sysdeps/mach/hurd/rewinddir.c: Likewise.
5903         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
5905         * include/dirent.h (__alloc_dir): Add flags parameter.
5906         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
5907         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
5908         __alloc_dir.
5909         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
5910         from fdopendir if O_CLOEXEC is already set.
5912 2011-03-15  Alan Modra  <amodra@gmail.com>
5914         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
5915         l_tls_firstbyte_offset non-zero.  Save padding offset in
5916         l_tls_firstbyte_offset for later use.
5917         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
5918         freeing static tls block.
5920 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
5922         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
5923         where #ifdef was intended.  The intent is to prevent ARG_MAX from
5924         being defined by the kernel headers.
5926 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
5928         [BZ #12734]
5929         * resolv/resolv.h: Define RES_NOTLDQUERY.
5930         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
5931         no-tld-query and set RES_NOTLDQUERY.
5932         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
5933         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
5934         modern BIND to search name as TLD unless forbidden.
5936 2011-05-07  Petr Baudis  <pasky@suse.cz>
5937             Ulrich Drepper  <drepper@gmail.com>
5939         [BZ #12393]
5940         * elf/dl-load.c (fillin_rpath): Move trusted path check...
5941         (is_trusted_path): ...to here.
5942         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
5943         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
5944         using is_trusted_path_normalize() in setuid scripts.
5946 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
5948         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
5949         __BEGIN/__END_DECLS.
5951 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
5953         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
5954         NSS_STATUS_NOTFOUND if no record was found.
5956 2011-05-05  Andreas Schwab  <schwab@redhat.com>
5958         * sunrpc/Makefile (headers): Add rpc/netdb.h.
5959         (headers-not-in-tirpc): Remove rpc/netdb.h
5960         * resolv/netdb.h: Revert last change.
5962 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
5964         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
5965         circular dependency between libgcc.a and libc.a.
5967 2011-05-05  Andreas Schwab  <schwab@redhat.com>
5969         * resolv/netdb.h: Don't include <rpc/netdb.h>.
5970         * nis/Makefile: Don't install rpcsvc/*.
5971         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
5972         instead of <rpc/types.h>.
5973         (MAXHOSTNAMELEN): Define.
5975 2011-05-03  Andreas Schwab  <schwab@redhat.com>
5977         * elf/ldconfig.c (add_dir): Don't crash on empty path.
5979 2011-04-28  Maciej Babinski  <mbabinski@google.com>
5981         [BZ #12714]
5982         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
5983         gethostbyname4_r when IPv6 results are possible.
5985 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
5987         [BZ #12723]
5988         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
5989         _PC_PIPE_BUF handling.
5991 2011-04-30  Bruno Haible  <bruno@clisp.org>
5993         [BZ #12717]
5994         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
5995         * resolv/netdb.h (getnameinfo): Change type of flags parameter
5996         to 'int'.
5997         * inet/getnameinfo.c (getnameinfo): Likewise.
5999 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
6001         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
6002         to groups setting in database lookup.
6003         * nss/nsswitch.conf: Add initgroups entry.
6005 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
6007         [BZ #12685]
6008         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
6009         mode string.
6010         Patch by Eric Blake <eblake@redhat.com>.
6012 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
6014         * sunrpc/Makefile (need-export-routines): Add svc_run.
6015         (routines): Remove svc_run.
6016         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
6017         * sunrpc/clnt_perr.c (clnt_perrno): Export.
6018         * sunrpc/svc_run.c (svc_run): Likewise.
6019         * sunrpc/svc_udp.c (svcudp_create): Likewise.
6021 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
6023         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
6024         problem in reallocation in last patch.
6026 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
6028         * sunrpc/Makefile: Move inclusion of Rules.
6030 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
6032         * nss/nss_files/files-initgroups.c: New file.
6033         * nss/Makefile (libnss_files-routines): Add files-initgroups.
6034         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
6035         _nss_files_initgroups_dyn.
6037 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
6039         * elf/elf.h (R_ARM_IRELATIVE): Define.
6041 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
6043         * po/ru.po: Update from translation team.
6045 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
6047         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
6048         dependencies.
6050 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
6052         [BZ #12653]
6053         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
6054         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
6055         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
6056         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
6057         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
6059 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
6061         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
6062         differing bytes.
6063         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
6064         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
6065         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
6067 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
6069         [BZ #12420]
6070         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
6071         storing it.
6072         * stdlib/bug-getcontext.c: New file.
6073         * stdlib/Makefile: Add rules to build and run bug-getcontext.
6075 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6077         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
6078         instructions into .machine "z9-109".
6079         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
6080         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
6082 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6084         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
6085         between environment variables and auxiliary vector.
6087 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
6089         * Makefile: Add rules to build linkobj/libc.so.
6090         * include/libc-symbols.h: Define libc_hidden_nolink.
6091         * include/rpc/auth.h: Mark functions which are to be hidden.
6092         * include/rpc/auth_des.h: Likewise.
6093         * include/rpc/auth_unix.h: Likewise.
6094         * include/rpc/clnt.h: Likewise.
6095         * include/rpc/des_crypt.h: Likewise.
6096         * include/rpc/key_prot.h: Likewise.
6097         * include/rpc/pmap_clnt.h: Likewise.
6098         * include/rpc/pmap_prot.h: Likewise.
6099         * include/rpc/pmap_rmt.h: Likewise.
6100         * include/rpc/rpc_msg.h: Likewise.
6101         * include/rpc/svc.h: Likewise.
6102         * include/rpc/svc_auth.h: Likewise.
6103         * include/rpc/xdr.h: Likewise.
6104         * nis/Makefile: Link all DSOs against linkobj/libc.so.
6105         * nss/Makefile: Likewise.
6106         * sunrpc/Makefile: Don't install headers.  Build library with normal
6107         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
6108         * sunrpc/auth_des.c: Hide exported symbols by default, export some
6109         for the compat linking library.  Remove use of INTDEF/INTUSE.
6110         * sunrpc/auth_none.c: Likewise.
6111         * sunrpc/auth_unix.c: Likewise.
6112         * sunrpc/authdes_prot.c: Likewise.
6113         * sunrpc/authuxprot.c: Likewise.
6114         * sunrpc/clnt_gen.c: Likewise.
6115         * sunrpc/clnt_perr.c: Likewise.
6116         * sunrpc/clnt_raw.c: Likewise.
6117         * sunrpc/clnt_simp.c: Likewise.
6118         * sunrpc/clnt_tcp.c: Likewise.
6119         * sunrpc/clnt_udp.c: Likewise.
6120         * sunrpc/clnt_unix.c: Likewise.
6121         * sunrpc/des_crypt.c: Likewise.
6122         * sunrpc/des_soft.c: Likewise.
6123         * sunrpc/get_myaddr.c: Likewise.
6124         * sunrpc/key_call.c: Likewise.
6125         * sunrpc/key_prot.c: Likewise.
6126         * sunrpc/netname.c: Likewise.
6127         * sunrpc/pm_getmaps.c: Likewise.
6128         * sunrpc/pm_getport.c: Likewise.
6129         * sunrpc/pmap_clnt.c: Likewise.
6130         * sunrpc/pmap_prot.c: Likewise.
6131         * sunrpc/pmap_prot2.c: Likewise.
6132         * sunrpc/pmap_rmt.c: Likewise.
6133         * sunrpc/publickey.c: Likewise.
6134         * sunrpc/rpc_cmsg.c: Likewise.
6135         * sunrpc/rpc_common.c: Likewise.
6136         * sunrpc/rpc_dtable.c: Likewise.
6137         * sunrpc/rpc_prot.c: Likewise.
6138         * sunrpc/rpc_thread.c: Likewise.
6139         * sunrpc/rtime.c: Likewise.
6140         * sunrpc/svc.c: Likewise.
6141         * sunrpc/svc_auth.c: Likewise.
6142         * sunrpc/svc_authux.c: Likewise.
6143         * sunrpc/svc_raw.c: Likewise.
6144         * sunrpc/svc_run.c: Likewise.
6145         * sunrpc/svc_simple.c: Likewise.
6146         * sunrpc/svc_tcp.c: Likewise.
6147         * sunrpc/svc_udp.c: Likewise.
6148         * sunrpc/svc_unix.c: Likewise.
6149         * sunrpc/svcauth_des.c: Likewise.
6150         * sunrpc/xcrypt.c: Likewise.
6151         * sunrpc/xdr.c: Likewise.
6152         * sunrpc/xdr_array.c: Likewise.
6153         * sunrpc/xdr_float.c: Likewise.
6154         * sunrpc/xdr_intXX_t.c: Likewise.
6155         * sunrpc/xdr_mem.c: Likewise.
6156         * sunrpc/xdr_rec.c: Likewise.
6157         * sunrpc/xdr_ref.c: Likewise.
6158         * sunrpc/xdr_sizeof.c: Likewise.
6159         * sunrpc/xdr_stdio.c: Likewise.
6161 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
6163         [BZ #12650]
6164         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
6165         * sysdeps/ia64/dl-tls.h: Likewise.
6166         * sysdeps/powerpc/dl-tls.h: Likewise.
6167         * sysdeps/s390/dl-tls.h: Likewise.
6168         * sysdeps/sh/dl-tls.h: Likewise.
6169         * sysdeps/sparc/dl-tls.h: Likewise.
6170         * sysdeps/x86_64/dl-tls.h: Likewise.
6171         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
6173 2011-03-14  Andreas Schwab  <schwab@redhat.com>
6175         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
6176         rpath element also skip the following colon.
6177         (expand_dynamic_string_token): Add is_path parameter and pass
6178         down to DL_DST_REQUIRED and _dl_dst_substitute.
6179         (decompose_rpath): Call expand_dynamic_string_token with
6180         non-zero is_path.  Ignore empty rpaths.
6181         (_dl_map_object_from_fd): Call expand_dynamic_string_token
6182         with zero is_path.
6184 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
6186         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
6187         Make cancelable.
6189 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
6191         [BZ #12655]
6192         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
6193         Patch by Filipe David Manana <fdmanana@apache.org>.
6195 2011-04-07  Andreas Schwab  <schwab@redhat.com>
6197         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
6198         Maintain aligned stack.
6199         (CHECK_RSP): Remove unused macro.
6201 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
6203         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
6204         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
6206 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
6208         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
6210         * include/features.h: Mention __USE_XOPEN2K8 in comment.
6212 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
6214         [BZ #12518]
6215         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
6216         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
6217         * sysdeps/x86_64/memmove.c: New file.
6218         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
6219         (memcpy): Renamed to ...
6220         (__new_memcpy): This.
6221         (memcpy): Provide GLIBC_2_14 memcpy.
6222         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
6223         (memcpy): Provide GLIBC_2_2_5 memcpy.
6225 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
6227         [BZ #12631]
6228         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
6230 2011-03-30  Andreas Schwab  <schwab@redhat.com>
6232         * misc/syncfs.c: New file.
6233         * misc/Makefile (routines): Add syncfs.
6234         * posix/unistd.h: Declare syncfs.
6235         * sysdeps/unix/syscalls.list: Add syncfs.
6237 2011-04-01  Andreas Schwab  <schwab@redhat.com>
6239         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
6240         open_by_handle_at.
6241         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
6242         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
6243         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
6244         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
6245         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
6246         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
6247         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
6249 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
6251         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
6252         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
6253         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
6254         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
6255         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
6256         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
6257         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
6259         * io/Makefile: Compile fallocate.c, fallocate64.c, and
6260         sync_file_range.c with -fexceptions.
6261         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
6262         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
6263         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
6264         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
6265         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
6266         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
6267         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
6268         sync_file_range as cancellation point
6269         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
6270         now a wrapper around __call_sync_file_range with cancellation handling.
6271         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
6272         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
6273         function name to __call_sync_file_range.
6274         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
6275         Add call_sync_file_range.
6277 2011-04-01  Andreas Schwab  <schwab@redhat.com>
6279         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6280         bits/timex.h.
6282 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
6284         * iconv/iconv.h: Fix typo in comment.
6285         * io/fcntl.h: Likewise.
6286         * libio/stdio.h: Likewise.
6287         * posix/spawn.h: Likewise.
6288         * posix/unistd.h: Likewise.
6289         * stdlib/stdlib.h: Likewise.
6290         * time/time.h: Likewise.
6291         * wcsmbs/wchar.h: Likewise.
6293         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
6294         open_by_handle): Add.
6295         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
6296         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
6297         Augment a few comments.
6298         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
6299         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
6300         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
6301         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
6302         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
6303         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
6304         open_by_handle.
6306         * io/fcntl.h (AT_EMPTY_PATH): Define.
6308 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
6310         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
6311         * sysdeps/unix/sysv/linux/bits/time.h: New file.
6312         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
6313         to...
6314         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
6315         * Versions.def: Add GLIBC_2.14.
6316         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
6317         Export.
6319 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
6321         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
6322         round counter.
6323         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
6325 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
6327         [BZ #12597]
6328         * string/test-strncmp.c (do_page_test): New function.
6329         (check2): Likewise.
6330         (test_main): Call check2.
6331         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
6333 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
6335         [BZ #12587]
6336         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
6337         Handle cache information in CPU leaf 4.
6338         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
6340 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
6342         [BZ #12583]
6343         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
6344         character representation.
6345         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
6347 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
6349         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
6350         END(__isnan) to END(__isnanf) to match function entry point/label
6351         EALIGN(__isnanf,...).
6353 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
6355         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
6357 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
6359         [BZ #12510]
6360         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
6361         copy from the symbol referenced in the relocation to initialize the
6362         used variable.
6363         Patch by Piotr Bury <pbury@goahead.com>.
6364         * elf/Makefile: Add rules to build and tst-unique3.
6365         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
6366         * elf/tst-unique3.cc: New file.
6367         * elf/tst-unique3.h: New file.
6368         * elf/tst-unique3lib.cc: New file.
6369         * elf/tst-unique3lib2.cc: New file.
6371         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
6373 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
6375         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
6376         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
6377         to _start.
6379 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
6381         * elf/dl-load.c (_dl_map_object): If we are looking for the first
6382         to-be-loaded object along a path to loader is ld.so.
6384 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
6385             Ulrich Drepper  <drepper@gmail.com>
6387         * sysdeps/x86_64/memset.S: After aligning destination, code
6388         branches to different locations depending on the value of
6389         misalignment, when multiarch is enabled. Fix this.
6391 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
6393         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
6394         Set _x86_64_preferred_memory_instruction for AMD processsors.
6395         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
6396         Set bit_Prefer_SSE_for_memop for AMD processors.
6398 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
6400         * libio/fmemopen.c (fmemopen): Optimize a bit.
6402 2011-03-03  Andreas Schwab  <schwab@redhat.com>
6404         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
6406 2011-03-03  Roland McGrath  <roland@redhat.com>
6408         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
6410 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
6412         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
6413         __bzero_ultra1 instead of __memset_ultra1.
6415 2011-02-23  Andreas Schwab  <schwab@redhat.com>
6416             Ulrich Drepper  <drepper@gmail.com>
6418         [BZ #12509]
6419         * include/link.h (struct link_map): Add l_orig_initfini.
6420         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
6421         returning unsuccessfully.
6422         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
6423         close of a file loaded at startup, restore the original l_initfini
6424         list.
6425         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
6426         list, store the pointer.
6427         * elf/Makefile ($(objpfx)noload-mem): New rule.
6428         (noload-ENV): Define.
6429         (tests): Add $(objpfx)noload-mem.
6430         * elf/noload.c: Include <memcheck.h>.
6431         (main): Call mtrace.  Close all opened handles.
6433 2011-02-17  Andreas Schwab  <schwab@redhat.com>
6435         [BZ #12454]
6436         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
6437         dependencies are missing.
6439 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6441         Fix __if_freereq crash: Unlike the generic version which uses free,
6442         Hurd needs munmap.
6443         * sysdeps/mach/hurd/ifreq.h: New file.
6445 2011-01-27  Petr Baudis  <pasky@suse.cz>
6446             Ulrich Drepper  <drepper@gmail.com>
6448         [BZ 12445]#
6449         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
6450         to extend_alloca().
6451         * stdio-common/bug23.c: New file.
6452         * stdio-common/Makefile (tests): Add bug23.
6454 2010-09-28  Andreas Schwab  <schwab@redhat.com>
6455             Ulrich Drepper  <drepper@gmail.com>
6457         [BZ #12489]
6458         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
6459         before performing relro protection.  At old place add assertion
6460         to make sure nothing changed.
6462 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
6463             Glauber de Oliveira Costa  <glommer@gmail.com>
6465         * elf/elf.h: Add new ARM TLS relocs.
6467 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
6469         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
6470         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
6471         cast from r3.
6472         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
6473         'tests' variable.
6474         * sysdeps/wordsize-64/tst-writev.c: New file.
6476 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
6478         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
6479         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
6480         insns in _dl_start to prevent a TOC reference before relocs are
6481         resolved.
6483 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
6485         [BZ #12469]
6486         * Makeconfig: Remove RANLIB definition.
6487         * Makerules: Don't use RANLIB.
6488         * aclocal.m4: Remove ranlib test.
6489         * configure.in: No need to check for ranlib.
6490         * elf/rtld-Rules: Don't use RANLIB.
6492 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6494         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
6495         protection macro.
6496         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
6497         inclusion protection macro.
6499         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
6500         SIGRTMIN and SIGRTMAX and print information in that case only when
6501         SIGRTMIN is defined.
6503 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
6505         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
6506         arginfo fn returning -1.
6508         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
6509         and thousands string is zero terminated.
6511 2011-02-03  Andreas Schwab  <schwab@redhat.com>
6513         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
6514         sysdeps/unix/sysv/linux/bits/socket.h.
6516 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6518         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
6519         (__CPU_COUNT): Remove old macros.
6520         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
6521         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
6522         (__CPU_ALLOC, __CPU_FREE): Add macros.
6523         (__sched_cpualloc, __sched_cpufree): Add declarations.
6525 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
6527         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
6528         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
6529         * nscd/aicache.c (addhstaiX): Return timeout of added value.
6530         (readdhstai): Return value of addhstaiX call.
6531         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
6532         (addgrbyX): Return value returned by cache_addgr.
6533         (readdgrbyname): Return value returned by addgrbyX.
6534         (readdgrbygid): Likewise.
6535         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
6536         (addpwbyX): Return value returned by cache_addpw.
6537         (readdpwbyname): Return value returned by addhstbyX.
6538         (readdpwbyuid): Likewise.
6539         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
6540         (addservbyX): Return value returned by cache_addserv.
6541         (readdservbyname): Return value returned by addservbyX:
6542         (readdservbyport): Likewise.
6543         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
6544         (addhstbyX): Return value returned by cache_addhst.
6545         (readdhstbyname): Return value returned by addhstbyX.
6546         (readdhstbyaddr): Likewise.
6547         (readdhstbynamev6): Likewise.
6548         (readdhstbyaddrv6): Likewise.
6549         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
6550         (readdinitgroups): Return value returned by addinitgroupsX.
6551         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
6552         (prune_cache): Keep track of timeout value of re-added entries.
6553         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
6554         * nscd/nscd.h: Adjust prototypes of readd* functions.
6556 2011-02-04  Roland McGrath  <roland@redhat.com>
6558         * nis/nis_server.c (nis_servstate): Use the right name for 0.
6559         (nis_stats): Likewise.
6560         * nis/nis_modify.c (nis_modify): Likewise.
6561         * nis/nis_remove.c (nis_remove): Likewise.
6562         * nis/nis_add.c (nis_add): Likewise.
6564         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
6566         * posix/fnmatch_loop.c: Add some consts.
6568         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
6570 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
6572         [BZ #12460]
6573         * config.make.in (config-cflags-novzeroupper): Define.
6574         * configure.in: Substitute libc_cv_cc_novzeroupper.
6575         * elf/Makefile (AVX-CFLAGS): Define.
6576         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
6577         (CFLAGS-tst-auditmod4a.c): Likewise.
6578         (CFLAGS-tst-auditmod4b.c): Likewise.
6579         (CFLAGS-tst-auditmod6b.c): Likewise.
6580         (CFLAGS-tst-auditmod6c.c): Likewise.
6581         (CFLAGS-tst-auditmod7b.c): Likewise.
6582         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
6584 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
6586         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
6587         function to the callback.
6588         Patch partly by Jiri Olsa <jolsa@redhat.com>.
6590 2011-02-02  Andreas Schwab  <schwab@redhat.com>
6592         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
6593         of errno.
6595 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
6597         [BZ #11724]
6598         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
6599         of constructors.
6600         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
6601         of destructors.
6602         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
6604         [BZ #11724]
6605         * elf/Makefile: Add rules to build and run new test.
6606         * elf/tst-initorder.c: New file.
6607         * elf/tst-initorder.exp: New file.
6608         * elf/tst-initordera1.c: New file.
6609         * elf/tst-initordera2.c: New file.
6610         * elf/tst-initordera3.c: New file.
6611         * elf/tst-initordera4.c: New file.
6612         * elf/tst-initorderb1.c: New file.
6613         * elf/tst-initorderb2.c: New file.
6614         * elf/tst-order-a1.c: New file.
6615         * elf/tst-order-a2.c: New file.
6616         * elf/tst-order-a3.c: New file.
6617         * elf/tst-order-a4.c: New file.
6618         * elf/tst-order-b1.c: New file.
6619         * elf/tst-order-b2.c: New file.
6620         * elf/tst-order-main.c: New file.
6621         New test case by George Gensure <werkt0@gmail.com>.
6623 2010-10-01  Andreas Schwab  <schwab@redhat.com>
6625         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
6626         decoding ACE if AI_CANONIDN.
6628 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
6630         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
6632 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
6634         * version.h (RELEASE): Bump for 2.13 release.
6635         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
6637         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
6639         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
6640         MADV_NOHUGEPAGE.
6641         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
6642         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
6643         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
6644         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
6645         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
6646         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
6648         * posix/getconf.c: Update copyright year.
6649         * catgets/gencat.c: Likewise.
6650         * csu/version.c: Likewise.
6651         * debug/catchsegv.sh: Likewise.
6652         * debug/xtrace.sh: Likewise.
6653         * elf/ldconfig.c: Likewise.
6654         * elf/ldd.bash.in: Likewise.
6655         * elf/sprof.c (print_version): Likewise.
6656         * iconv/iconv_prog.c: Likewise.
6657         * iconv/iconvconfig.c: Likewise.
6658         * locale/programs/locale.c: Likewise.
6659         * locale/programs/localedef.c: Likewise.
6660         * malloc/memusage.sh: Likewise.
6661         * malloc/mtrace.pl: Likewise.
6662         * nscd/nscd.c (print_version): Likewise.
6663         * nss/getent.c: Likewise.
6665         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
6666         PF_CAIF, and PF_ALG.
6667         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
6669 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
6671         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
6672         (modules-names): Use them.
6673         (ifunc-test-modules, ifunc-pie-tests): Define.
6674         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
6675         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
6676         (test-extras): Likewise.
6677         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
6678         $(compile-command.c).
6679         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
6680         (all-built-dso): Define.
6681         (check-textrel.out, check-execstack.out): Depend on it.
6683         * configure.in: Don't override --enable-multi-arch.
6685 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
6687         [BZ #6812]
6688         * nscd/hstcache.c (tryagain): Define.
6689         (cache_addhst): Return tryagain not notfound for temporary errors.
6690         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
6691         failed.
6693 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
6695         [BZ #10563]
6696         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
6697         to make the syscall.
6698         * sysdeps/unix/sysv/linux/setgroups.c: New file.
6700         [BZ #12378]
6701         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
6702         and fall back to matching as normal character if the string ends before
6703         the matching ']' is found.  This is what POSIX requires.
6704         * posix/testfnm.c: Adjust test result.
6705         * posix/globtest.sh: Adjust test result.  Add new test.
6706         * posix/tst-fnmatch.input: Likewise.
6707         * posix/tst-fnmatch2.c: Add new test.
6709 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
6711         * elf/Makefile (check-execstack): Revert last change.  Depend on
6712         check-execstack.h.
6713         (check-execstack.h): New target.
6714         (generated): Add check-execstack.h.
6715         * elf/check-execstack.c: Include "check-execstack.h".
6716         (main): Revert last change.
6717         (handle_file): Return zero if GNU_STACK is absent and
6718         DEFAULT_STACK_PERMS doesn't include PF_X.
6720 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
6722         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
6723         in child fails because the descriptor is already closed.
6724         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
6725         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
6726         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
6728         [BZ #12397]
6729         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
6730         syscall.
6732         [BZ #10484]
6733         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
6734         temporary buffer used to handle multi lookups locally.
6735         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
6737 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
6739         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
6740         loader is ld.so.
6742 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
6744         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
6745         alignment for SSE2.
6747 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
6749         [BZ #12394]
6750         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
6751         characters.  When rounding increased number of integer digits recompute
6752         number of groups.
6753         * stdio-common/tst-grouping.c: New file.
6754         * stdio-common/Makefile: Add rules to build and run tst-grouping.
6756 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
6758         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
6759         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
6761         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
6762         void.
6763         * bits/select.h: Likewise.
6765 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
6767         * po/ja.po: Update from translation team.
6769 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
6771         [BZ #11155]
6772         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
6773         implementation just like for lxstat, fxstatat, et al.
6775 2010-12-27  Jim Meyering  <meyering@redhat.com>
6777         [BZ #12348]
6778         * posix/regexec.c (build_trtable): Return failure indication upon
6779         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
6781 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
6783         [BZ #12201]
6784         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
6785         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
6786         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
6787         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
6789         [BZ #12207]
6790         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
6792         [BZ #12204]
6793         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
6794         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
6796 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
6798         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
6799         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
6800         script has SORT_BY_INIT_PRIORITY.
6801         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
6802         NO_CTORS_DTORS_SECTIONS is defined.
6803         * elf/soinit.c: Likewise.
6804         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
6805         NO_CTORS_DTORS_SECTIONS is defined.
6806         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
6807         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
6808         * sysdeps/sh/init-first.c: Likewise.
6809         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
6811 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
6813         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
6814         always use the slow path.
6816 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
6818         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
6819         similar rule which adds the sysdep directories to the header search in
6820         order to pick up the correct platform stackinfo.h.
6821         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
6822         perform test if it is, otherwise return successfully without testing.
6823         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
6824         DEFAULT_STACK_PERMS define in stackinfo.h.
6825         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
6826         defined in stackinfo.h.
6827         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
6828         DEFAULT_STACK_PERMS defined in stackinfo.h.
6829         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
6830         * sysdeps/ia64/stackinfo.h: Likewise.
6831         * sysdeps/s390/stackinfo.h: Likewise.
6832         * sysdeps/sh/stackinfo.h: Likewise.
6833         * sysdeps/sparc/stackinfo.h: Likewise.
6834         * sysdeps/x86_64/stackinfo.h: Likewise.
6835         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
6836         PF_X for powerpc64.  Retain PF_X for powerpc32.
6838 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
6840         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
6841         accurately.
6842         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
6843         GETDENTS_64BIT_ALIGNED.
6845 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
6847         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
6849 2010-12-10  Andreas Schwab  <schwab@redhat.com>
6851         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
6852         _GNU_SOURCE.
6854         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
6855         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
6856         Remove __restrict.
6857         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
6858         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
6860 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
6862         [BZ #11655]
6863         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
6864         are initialized.
6866 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
6868         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
6870 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
6872         * po/it.po: Update from translation team.
6874 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
6876         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
6877         unused codes.
6879 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
6881         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
6883 2010-11-24  Andreas Schwab  <schwab@redhat.com>
6885         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
6886         specially.
6887         (gaih_getanswer_slice): Likewise.
6889 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
6891         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
6893 2010-05-31  Petr Baudis  <pasky@suse.cz>
6895         [BZ #11149]
6896         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
6897         silently even in the chroot mode.
6899 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
6901         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
6902         last patch a bit.  Pretty printing
6904 2010-05-31  Petr Baudis <pasky@suse.cz>
6906         [BZ #10085]
6907         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
6908         initialization of skip_initgroups_dyn.
6910 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
6912         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
6913         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
6915 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
6917         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
6919 2010-11-11  Andreas Schwab  <schwab@redhat.com>
6921         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
6922         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
6923         (tst-fnmatch-ENV): Set MALLOC_TRACE.
6924         ($(objpfx)tst-fnmatch-mem): New rule.
6925         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
6926         * posix/tst-fnmatch.c (main): Call mtrace.
6928 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
6930         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
6931         Support Intel processor model 6 and model 0x2c.
6933 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
6935         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
6936           signed comparison.
6938 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
6940         [BZ #12205]
6941         * string/test-strncasecmp.c (check_result): New function.
6942         (do_one_test): Use it.
6943         (check1): New function.
6944         (test_main): Use it.
6945         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
6946         Support strcasecmp and strncasecmp.
6948 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
6950         [BZ #12194]
6951         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
6952         * sysdeps/x86_64/bits/byteswap.h: Likewise.
6954 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
6956         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
6957         IFUNC support.
6958         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
6959         memset-x86-64.
6960         * sysdeps/x86_64/multiarch/bzero.S: New file.
6961         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
6962         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
6963         * sysdeps/x86_64/multiarch/memset.S: New file.
6964         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
6965         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
6966         Set bit_Prefer_SSE_for_memop for Intel processors.
6967         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
6968         Define.
6969         (index_Prefer_SSE_for_memop): Define.
6970         (HAS_PREFER_SSE_FOR_MEMOP): Define.
6972 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
6974         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
6975         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
6977 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
6979         [BZ #12191]
6980         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
6981         (__x86_64_raw_data_cache_size_half): Likewise.
6982         (__x86_64_raw_shared_cache_size): Likewise.
6983         (__x86_64_raw_shared_cache_size_half): Likewise.
6985         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
6986         (__x86_64_raw_data_cache_size_half): Likewise.
6987         (__x86_64_raw_shared_cache_size): Likewise.
6988         (__x86_64_raw_shared_cache_size_half): Likewise.
6989         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
6990         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
6991         and __x86_64_raw_shared_cache_size_half.  Round
6992         __x86_64_data_cache_size_half, __x86_64_data_cache_size
6993         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
6994         to multiple of 256 bytes.
6996 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
6998         [BZ #12167]
6999         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
7000         of inacessible symlinks.  Verify result of symlink before returning it.
7001         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
7002         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
7004 2010-10-28  Erich Ritz  <erichritz@gmail.com>
7006         * math/math.h (isinf): Fix typo in comment.
7008 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
7010         * po/da.po: Update from translation team.
7012 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
7014         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
7015         is added to the list.
7017 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7018             Ulrich Drepper  <drepper@gmail.com>
7020         * elf/dl-object.c (_dl_new_object): Don't append the new object to
7021         the global list here.  Move code to...
7022         (_dl_add_to_namespace_list): ...here.  New function.
7023         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
7024         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
7025         * elf/dl-load.c (lose): Don't remove the element from the list.
7026         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
7027         (_dl_map_object): Likewise.
7029 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
7031         [BZ #12159]
7032         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
7033         into all bytes of SSE register.
7034         Patch by Richard Li <richardpku@gmail.com>.
7036 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
7038         [BZ #12140]
7039         * malloc/malloc.c (_int_free): Fill correct number of bytes when
7040         perturbing.
7042 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
7044         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
7045         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
7046         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
7047         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
7048         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
7049         submachine.
7050         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
7052 2010-10-22  Andreas Schwab  <schwab@redhat.com>
7054         * include/dlfcn.h (__RTLD_SECURE): Define.
7055         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
7056         mode & __RTLD_SECURE instead.
7057         (open_path): Rename preloaded parameter to secure.
7058         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
7059         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
7060         * elf/dl-deps.c (openaux): Likewise.
7061         * elf/rtld.c (struct map_args): Remove is_preloaded.
7062         (map_doit): Don't use it.
7063         (dl_main): Likewise.
7064         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
7065         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
7067 2010-09-09  Andreas Schwab  <schwab@redhat.com>
7069         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
7070         (sysd-rules-targets): Remove duplicates.
7071         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
7072         rtld-%.$o dependency.
7074 2010-10-18  Andreas Schwab  <schwab@redhat.com>
7076         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
7077         _dl_map_object do it.
7079 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
7081         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
7082         fast fma builtins, define the macros in the C99 standard.
7083         (FP_FAST_FMAF): Likewise.
7084         (FP_FAST_FMAL): Likewise.
7085         * sysdeps/x86_64/bits/mathdef.h: Likewise.
7087         * bits/mathdef.h: Update copyright year.
7088         * sysdeps/powerpc/bits/mathdef.h: Likewise.
7090 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
7092         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
7093         builtins, define the macros in the C99 standard.
7094         (FP_FAST_FMAF): Likewise.
7095         (FP_FAST_FMAL): Likewise.
7096         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
7097         multiply/add.
7098         (FP_FAST_FMAF): Likewise.
7100 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
7102         [BZ #3268]
7103         * math/libm-test.inc (fma_test): Some new testcases.
7104         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
7105         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
7106         y and infinite z.  Do multiplication by C already in long double.
7107         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
7108         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
7109         y and infinite z.  Do bitwise or of inexact bit into u.d.
7110         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
7111         * sysdeps/i386/fpu/s_fmaf.S: Removed.
7112         * sysdeps/i386/fpu/s_fma.S: Removed.
7113         * sysdeps/i386/fpu/s_fmal.S: Removed.
7115 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
7117         [BZ #3268]
7118         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
7119         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
7120         computation is not scheduled after fetestexcept.  Fix value
7121         of minimum denormal long double.
7123 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
7125         [BZ #3268]
7126         * math/libm-test.inc (fma_test): Add some more tests.
7127         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
7128         correctly.
7130 2010-10-15  Andreas Schwab  <schwab@redhat.com>
7132         * scripts/data/localplt-s390-linux-gnu.data: New file.
7133         * scripts/data/localplt-s390x-linux-gnu.data: New file.
7135 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
7137         [BZ #3268]
7138         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
7139         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
7140         instead of dbl-64.
7141         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
7142         inlines.
7143         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
7144         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
7145         if one of x and y is very large and the other is subnormal.
7146         * sysdeps/s390/fpu/s_fmaf.c: New file.
7147         * sysdeps/s390/fpu/s_fma.c: New file.
7148         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
7149         * sysdeps/powerpc/fpu/s_fma.S: New file.
7150         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
7151         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
7152         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
7154 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
7156         [BZ #3268]
7157         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
7158         fma tests.
7159         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
7160         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
7161         * sysdeps/i386/i686/multiarch/s_fma.c: Include
7162         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
7163         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
7164         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
7165         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
7167 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
7169         [BZ #12078]
7170         * posix/regcomp.c (parse_branch): One more memory leak plugged.
7171         * posix/bug-regex31.input: Add test case.
7173 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
7175         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
7176         * posix/bug-regex31.input: New file.
7178         [BZ #12078]
7179         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
7180         (parse_sub_exp): Fix last change, use postorder.
7182         * posix/bug-regex31.c: New file.
7183         * posix/Makefile: Add rules to build and run bug-regex31.
7185         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
7187         [BZ #12078]
7188         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
7190         [BZ #12108]
7191         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
7192         to have entries in sys_siglist.
7194         [BZ #12093]
7195         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
7196         be NULL.
7198 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
7200         [BZ #3268]
7201         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
7202         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
7203         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
7204         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
7205         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
7206         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
7207         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
7208         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
7209         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
7210         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
7211         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
7212         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
7213         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
7214         * math/ftestexcept.c (fetestexcept): Likewise.
7215         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
7216         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
7217         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
7218         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
7219         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
7220         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
7221         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
7223 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
7225         [BZ #12107]
7226         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
7227         newline.
7229 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
7231         * string/bug-strstr1.c: New file.
7232         * string/Makefile: Add rules to build and run bug-strstr1.
7234 2010-10-05  Eric Blake  <eblake@redhat.com>
7236         [BZ #12092]
7237         * string/str-two-way.h (two_way_long_needle): Always clear memory
7238         when skipping input due to the shift table.
7240 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
7242         [BZ #12005]
7243         * malloc/mcheck.c: Handle large requests.
7245         [BZ #12077]
7246         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
7247         for strncmp and strncasecmp.
7248         * string/stratcliff.c: Add tests for strcmp and strncmp.
7249         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
7251 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
7253         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
7254         __set_fpscr.
7256 2010-09-30  Andreas Jaeger  <aj@suse.de>
7258         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
7259         (CGROUP_SUPER_MAGIC): Define.
7260         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
7261         Handle btrfs and cgroup file systems.
7262         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
7263         Likewise.
7265 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
7267         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
7268         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
7270 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7272         [BZ #12067]
7273         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
7274         trying to locate the ELF header.
7276 2010-09-27  Andreas Schwab  <schwab@redhat.com>
7278         [BZ #11611]
7279         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
7280         Mask out sign-bit copies when constructing f_fsid.
7282 2010-09-24  Petr Baudis <pasky@suse.cz>
7284         * debug/stack_chk_fail_local.c: Add missing licence exception.
7285         * debug/warning-nop.c: Likewise.
7287 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
7289         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
7290         implementing getdents64 using getdents syscall, set d_type if
7291         __ASSUME_GETDENTS32_D_TYPE.
7293 2010-09-16  Andreas Schwab  <schwab@redhat.com>
7295         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
7296         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
7298 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
7300         [BZ #12037]
7301         * posix/unistd.h: Undo change of feature selection for ftruncate from
7302         2010-01-11.
7304 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
7306         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
7307         detection.
7309 2010-09-20  Andreas Schwab  <schwab@redhat.com>
7311         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
7312         fanotify_mark.
7313         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
7315 2010-09-14  Andreas Schwab  <schwab@redhat.com>
7317         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
7318         variables after CHECK_SP call.
7319         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
7321 2010-09-13  Andreas Schwab  <schwab@redhat.com>
7322             Ulrich Drepper  <drepper@redhat.com>
7324         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
7325         re-relocationg ld.so.
7326         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
7327         _dl_init_paths call.
7328         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
7329         here anymore.
7331 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
7333         * resolv/res_init.c (__res_vinit): Count the default server we added.
7335 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
7336             Ulrich Drepper  <drepper@redhat.com>
7338         [BZ #11968]
7339         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
7340         (____longjmp_chk): Use %ebx for saving value across system call.
7341         Add unwind info.
7343 2010-09-06  Andreas Schwab  <schwab@redhat.com>
7345         * manual/Makefile: Don't mix pattern rules with normal rules.
7347 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
7349         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
7350         operation.
7351         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
7352         * libio/iofopncook.c (_IO_cookie_init): Likewise.
7353         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
7354         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
7355         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
7356         Likewise.
7358 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
7360         [BZ #11979]
7361         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
7362         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
7364 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
7366         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
7367         * sysdeps/x86_64/addmul_1.S: Likewise.
7368         * sysdeps/x86_64/lshift.S: Likewise.
7369         * sysdeps/x86_64/mul_1.S: Likewise.
7370         * sysdeps/x86_64/rshift.S: Likewise.
7371         * sysdeps/x86_64/sub_n.S: Likewise.
7372         * sysdeps/x86_64/submul_1.S: Likewise.
7374 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7376         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
7377         Define __sched_param instead of SCHED_* and sched_param when
7378         <bits/sched.h> is included with __need_schedparam defined.
7379         * bits/sched.h [__need_schedparam]
7380         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
7381         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
7382         (__defined_schedparam): Define to 1.
7383         (__sched_param): New structure, identical to sched_param.
7384         (__need_schedparam): Undefine.
7386 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
7388         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
7389         (epoll_create1): Declare.
7391         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
7393 2010-08-31  Andreas Schwab  <schwab@redhat.com>
7395         [BZ #7066]
7396         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
7397         shifting retval into place.
7399 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
7401         * nis/rpcsvc/nis.h: Update copyright notice.
7402         * nis/rpcsvc/nis.x: Likewise.
7403         * nis/rpcsvc/nis_callback.h: Likewise.
7404         * nis/rpcsvc/nis_callback.x: Likewise.
7405         * nis/rpcsvc/nis_object.x: Likewise.
7406         * nis/rpcsvc/nis_tags.h: Likewise.
7407         * nis/rpcsvc/yp.h: Likewise.
7408         * nis/rpcsvc/yp.x: Likewise.
7409         * nis/rpcsvc/ypupd.h: Likewise.
7410         * nis/yp_xdr.c: Likewise.
7411         * nis/ypupdate_xdr.c: Likewise.
7413         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
7414         mainly the body of pmap_getport.  Add parameters to specify timeouts.
7415         (pmap_getport): Use __libc_rpc_getport.
7416         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
7417         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
7418         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
7420 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
7422         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
7423         fanotify_mark.
7425 2010-08-27  Roland McGrath  <roland@redhat.com>
7427         * sysdeps/i386/i686/multiarch/Makefile
7428         (CFLAGS-varshift.c): New variable.
7430 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
7432         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
7433         * sysdeps/i386/i686/multiarch/varshift.c: New file.
7435         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
7437         * sysdeps/x86_64/strlen.S: Minimal code improvement.
7439 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
7441         * sysdeps/x86_64/strlen.S: Unroll the loop.
7442         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
7443         strlen-sse2 strlen-sse2-bsf.
7444         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
7445         __strlen_no_bsf if bit_Slow_BSF is set.
7446         (__strlen_sse42): Removed.
7447         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
7448         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
7450 2010-08-25  Roland McGrath  <roland@redhat.com>
7452         * sysdeps/x86_64/multiarch/varshift.S: File removed.
7453         * sysdeps/x86_64/multiarch/varshift.c: New file.
7454         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
7455         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
7456         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
7457         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
7459 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
7461         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
7462         strlen-sse2 strlen-sse2-bsf.
7463         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
7464         __strlen_sse2_bsf if bit_Slow_BSF is unset.
7465         (__strlen_sse2): Removed.
7466         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
7467         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
7468         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
7469         bit_Slow_BSF for Atom.
7470         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
7471         (index_Slow_BSF): Define.
7472         (HAS_SLOW_BSF): Define.
7474 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
7476         [BZ #10851]
7477         * resolv/res_init.c (__res_vinit): When no server address at all
7478         is given default to loopback.
7480 2010-08-24  Roland McGrath  <roland@redhat.com>
7482         * configure.in: Remove config-name.h generation.
7483         * configure: Regenerated.
7484         * config-name.in: File removed.
7485         * scripts/config-uname.sh: New file.
7486         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
7487         ($(objdir)config-name.h): New target.
7489         * sunrpc/rpc_parse.h: Avoid nested comment.
7491 2010-08-24  Richard Henderson  <rth@redhat.com>
7492             Ulrich Drepper  <drepper@redhat.com>
7493             H.J. Lu  <hongjiu.lu@intel.com>
7495         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
7496         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
7497         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
7498         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
7499         _mm_alignr_epi8 with _mm_loadu_si128.
7500         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
7501         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
7502         (__m128i_shift_right): Removed.
7503         * sysdeps/i386/i686/multiarch/varshift.h: New file.
7504         * sysdeps/i386/i686/multiarch/varshift.S: New file.
7505         * sysdeps/x86_64/multiarch/varshift.h: New file.
7506         * sysdeps/x86_64/multiarch/varshift.S: New file.
7508 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
7510         * configure.in: Move assembler checks to before sysdep dir checking.
7512 2010-08-20  Petr Baudis  <pasky@suse.cz>
7514         * LICENSES: Sync the sunrpc license.
7516 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
7518         * sunrpc/auth_des.c: Update copyright notice once again.
7519         * sunrpc/auth_none.c: Likewise.
7520         * sunrpc/auth_unix.c: Likewise.
7521         * sunrpc/authdes_prot.c: Likewise.
7522         * sunrpc/authuxprot.c: Likewise.
7523         * sunrpc/bindrsvprt.c: Likewise.
7524         * sunrpc/clnt_gen.c: Likewise.
7525         * sunrpc/clnt_perr.c: Likewise.
7526         * sunrpc/clnt_raw.c: Likewise.
7527         * sunrpc/clnt_simp.c: Likewise.
7528         * sunrpc/clnt_tcp.c: Likewise.
7529         * sunrpc/clnt_udp.c: Likewise.
7530         * sunrpc/clnt_unix.c: Likewise.
7531         * sunrpc/des_crypt.c: Likewise.
7532         * sunrpc/des_soft.c: Likewise.
7533         * sunrpc/get_myaddr.c: Likewise.
7534         * sunrpc/getrpcport.c: Likewise.
7535         * sunrpc/key_call.c: Likewise.
7536         * sunrpc/key_prot.c: Likewise.
7537         * sunrpc/openchild.c: Likewise.
7538         * sunrpc/pm_getmaps.c: Likewise.
7539         * sunrpc/pm_getport.c: Likewise.
7540         * sunrpc/pmap_clnt.c: Likewise.
7541         * sunrpc/pmap_prot.c: Likewise.
7542         * sunrpc/pmap_prot2.c: Likewise.
7543         * sunrpc/pmap_rmt.c: Likewise.
7544         * sunrpc/rpc/auth.h: Likewise.
7545         * sunrpc/rpc/auth_unix.h: Likewise.
7546         * sunrpc/rpc/clnt.h: Likewise.
7547         * sunrpc/rpc/des_crypt.h: Likewise.
7548         * sunrpc/rpc/key_prot.h: Likewise.
7549         * sunrpc/rpc/netdb.h: Likewise.
7550         * sunrpc/rpc/pmap_clnt.h: Likewise.
7551         * sunrpc/rpc/pmap_prot.h: Likewise.
7552         * sunrpc/rpc/pmap_rmt.h: Likewise.
7553         * sunrpc/rpc/rpc.h: Likewise.
7554         * sunrpc/rpc/rpc_des.h: Likewise.
7555         * sunrpc/rpc/rpc_msg.h: Likewise.
7556         * sunrpc/rpc/svc.h: Likewise.
7557         * sunrpc/rpc/svc_auth.h: Likewise.
7558         * sunrpc/rpc/types.h: Likewise.
7559         * sunrpc/rpc/xdr.h: Likewise.
7560         * sunrpc/rpc_clntout.c: Likewise.
7561         * sunrpc/rpc_cmsg.c: Likewise.
7562         * sunrpc/rpc_common.c: Likewise.
7563         * sunrpc/rpc_cout.c: Likewise.
7564         * sunrpc/rpc_dtable.c: Likewise.
7565         * sunrpc/rpc_hout.c: Likewise.
7566         * sunrpc/rpc_main.c: Likewise.
7567         * sunrpc/rpc_parse.c: Likewise.
7568         * sunrpc/rpc_parse.h: Likewise.
7569         * sunrpc/rpc_prot.c: Likewise.
7570         * sunrpc/rpc_sample.c: Likewise.
7571         * sunrpc/rpc_scan.c: Likewise.
7572         * sunrpc/rpc_scan.h: Likewise.
7573         * sunrpc/rpc_svcout.c: Likewise.
7574         * sunrpc/rpc_tblout.c: Likewise.
7575         * sunrpc/rpc_util.c: Likewise.
7576         * sunrpc/rpc_util.h: Likewise.
7577         * sunrpc/rpcinfo.c: Likewise.
7578         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
7579         * sunrpc/rpcsvc/key_prot.x: Likewise.
7580         * sunrpc/rpcsvc/klm_prot.x: Likewise.
7581         * sunrpc/rpcsvc/mount.x: Likewise.
7582         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
7583         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
7584         * sunrpc/rpcsvc/rex.x: Likewise.
7585         * sunrpc/rpcsvc/rstat.x: Likewise.
7586         * sunrpc/rpcsvc/rusers.x: Likewise.
7587         * sunrpc/rpcsvc/sm_inter.x: Likewise.
7588         * sunrpc/rpcsvc/spray.x: Likewise.
7589         * sunrpc/rpcsvc/yppasswd.x: Likewise.
7590         * sunrpc/rtime.c: Likewise.
7591         * sunrpc/svc.c: Likewise.
7592         * sunrpc/svc_auth.c: Likewise.
7593         * sunrpc/svc_authux.c: Likewise.
7594         * sunrpc/svc_raw.c: Likewise.
7595         * sunrpc/svc_run.c: Likewise.
7596         * sunrpc/svc_simple.c: Likewise.
7597         * sunrpc/svc_tcp.c: Likewise.
7598         * sunrpc/svc_udp.c: Likewise.
7599         * sunrpc/svc_unix.c: Likewise.
7600         * sunrpc/svcauth_des.c: Likewise.
7601         * sunrpc/xcrypt.c: Likewise.
7602         * sunrpc/xdr.c: Likewise.
7603         * sunrpc/xdr_array.c: Likewise.
7604         * sunrpc/xdr_float.c: Likewise.
7605         * sunrpc/xdr_mem.c: Likewise.
7606         * sunrpc/xdr_rec.c: Likewise.
7607         * sunrpc/xdr_ref.c: Likewise.
7608         * sunrpc/xdr_sizeof.c: Likewise.
7609         * sunrpc/xdr_stdio.c: Likewise.
7611         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
7612         handling.
7614 2010-08-19  Andreas Schwab  <schwab@redhat.com>
7616         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
7618 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
7620         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
7621         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
7622         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
7623         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
7624         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
7625         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
7626         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
7627         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
7628         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
7629         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
7630         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
7631         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
7632         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
7633         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
7635 2010-07-26  Anton Blanchard  <anton@samba.org>
7637         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
7638         * malloc/arena.c (heap_trim): Likewise.
7640 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
7642         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
7643         here.  Not...
7644         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
7645         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
7647 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
7649         * sysdeps/i386/elf/Makefile: New file.
7651 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
7653         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
7654         from fanotify_init.
7655         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
7656         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
7658 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
7660         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
7661         of strncasecmp_l.
7662         * sysdeps/multiarch/strcmp.S: Likewise.
7664 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
7666         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
7667         strncase_l-nonascii.
7668         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
7669         Add strncase_l-ssse3.
7670         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
7671         * sysdeps/x86_64/strcmp.S: Likewise.
7672         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
7673         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
7674         * sysdeps/x86_64/strncase.S: New file.
7675         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
7676         * sysdeps/x86_64/strncase_l.S: New file.
7677         * string/Makefile (strop-tests): Add strncasecmp.
7678         * string/test-strncasecmp.c: New file.
7680         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
7681         warning.
7683         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
7684         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
7686 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
7688         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
7690 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
7692         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
7693         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7694         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
7696 2010-05-01  Alan Modra  <amodra@gmail.com>
7698         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
7699         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
7700         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
7701         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
7702         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
7703         tidying.  Don't tail-call __sigjmp_save for static lib.
7704         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
7705         save location.
7706         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
7707         (CALL_MCOUNT): Add eh info, and nop after bl.
7708         (TAIL_CALL_SYSCALL_ERROR): New macro.
7709         (PSEUDO_RET): Use it.
7710         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
7711         Correct save location of integer regs and cr.
7712         (_dl_profile_resolve): Correct cr save location.  Delete nops
7713         after bl when SHARED.  Reduce cfi size a little by better
7714         placement of cfi directives.
7715         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
7716         make a stack frame.  Instead use parm save area as a temp.
7717         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
7718         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
7719         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
7720         Don't make a stack frame for parent, use parm save area.
7721         Increase child stack frame to 112 bytes.  Don't save unused reg,
7722         and adjust reg usage.  Set up cfi on error recovery and
7723         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
7724         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
7725         (__makecontext): Add dummy nop after jump to exit.
7726         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
7727         Use correct parm save area and cr save, reduce stack frame.
7728         Correct cfi for possible PSEUDO_RET frame setup.
7729         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
7730         Branch to local label emitted by PSEUDO_RET rather than
7731         __syscall_error.
7733 2010-08-12  Andreas Schwab  <schwab@redhat.com>
7735         [BZ #11904]
7736         * locale/programs/locale.c (print_assignment): New function.
7737         (show_locale_vars): Use it.
7739 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
7741         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
7742         field.
7743         (struct statfs64): Likewise.
7744         (_STATFS_F_FLAGS): Define.
7745         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
7746         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
7747         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
7748         (ST_VALID): Define locally.
7749         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
7750         __statvfs_getflags, use the provided value.
7751         * sysdeps/unix/sysv/linux/kernel-features.h: Define
7752         __ASSUME_STATFS_F_FLAGS.
7754         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
7756         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
7757         Add sys/fanotify.h.
7758         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
7759         fanotify_mask for GLIBC_2.13.
7760         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
7761         fanotify_init and fanotify_mark.
7762         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
7763         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
7765         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
7766         Add prlimit.
7767         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
7768         prlimit64 for GLIBC_2.13.
7769         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
7770         prlimit64.
7771         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
7772         syscall.
7773         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
7774         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
7775         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
7776         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
7777         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
7778         add prlimit alias.
7779         * sysdeps/unix/sysv/linux/prlimit.c: New file.
7781         [BZ #11903]
7782         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
7783         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
7785         * nss/Makefile: Add rules to build and run tst-nss-test1.
7786         * shlib-versions: Add entry for libnss_test1.
7787         * nss/nss_test1.c: New file.
7788         * nss/tst-nss-test1.c: New file.
7790         * nss/nsswitch.c (__nss_database_custom): Define new variable.
7791         (__nss_configure_lookup): Set appropriate entry in
7792         __nss_configure_lookup to true.
7793         * nss/nsswitch.h: Define enum with indeces of databases in
7794         databases and __nss_database_custom arrays.  Declare
7795         __nss_database_custom.
7796         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
7797         to avoid using nscd when custom rules are installed.
7798         * nss/getXXbyYY_r.c: Likewise.
7799         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
7801         * nss/nss_files/files-parse.c: Whitespace fixes.
7803 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
7805         [BZ #11883]
7806         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
7807         * posix/fnmatch_loop.c: Likewise.
7809 2010-07-17  Andi Kleen  <ak@linux.intel.com>
7811         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
7812         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
7813         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
7814         * Versions.def [GLIBC_2.13]: Add.
7816 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
7818         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
7819         Also fail if tpwd after pwuid call is NULL.
7821 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7823         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
7824         when converting to ms.
7826 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7828         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
7829         EOPNOTSUPP errors with ENOTTY.
7830         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
7831         EOPNOTSUPP errors with ENOTTY.
7833 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
7835         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
7836         Add strcasecmp_l-ssse3.
7837         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
7838         strcasecmp.
7839         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
7840         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
7841         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
7843 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
7845         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
7847         * string/Makefile (strop-tests): Add strcasecmp.
7848         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
7849         strcasecmp_l-nonascii.
7850         (gen-as-const-headers): Add locale-defines.sym.
7851         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
7852         * sysdeps/x86_64/strcasecmp.S: New file.
7853         * sysdeps/x86_64/strcasecmp_l.S: New file.
7854         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
7855         * sysdeps/x86_64/locale-defines.sym: New file.
7856         * string/test-strcasecmp.c: New file.
7858         * string/test-strcasestr.c: Test both ends of the range of characters.
7859         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
7861 2010-07-29  Roland McGrath  <roland@redhat.com>
7863         [BZ #11856]
7864         * manual/locale.texi (Yes-or-No Questions): Fix example code.
7866 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
7868         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
7869         for ld.so.
7871 2010-07-27  Andreas Schwab  <schwab@redhat.com>
7873         * manual/memory.texi (Malloc Tunable Parameters): Document
7874         M_PERTURB.
7876 2010-07-26  Roland McGrath  <roland@redhat.com>
7878         [BZ #11840]
7879         * configure.in (-fgnu89-inline check): Set and substitute
7880         gnu89_inline, not libc_cv_gnu89_inline.
7881         * configure: Regenerated.
7882         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
7884 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
7886         * string/test-strnlen.c: New file.
7887         * string/Makefile (strop-tests): Add strnlen.
7888         * string/tester.c (test_strnlen): Add a few more test cases.
7889         * string/tst-strlen.c: Better error reporting.
7891         * sysdeps/x86_64/strnlen.S: New file.
7893 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
7895         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
7896         lower-latency instructions.
7898 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
7900         * string/test-strcasestr.c: New file.
7901         * string/test-strstr.c: New file.
7902         * string/Makefile (strop-tests): Add strstr and strcasestr.
7903         * string/str-two-way.h: Don't undefine MAX.
7904         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
7906 2010-07-21  Andreas Schwab  <schwab@redhat.com>
7908         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
7909         strcasestr-nonascii.
7910         (CFLAGS-strcasestr-nonascii.c): Define.
7911         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
7912         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
7913         Remove unused attribute.
7915 2010-07-20  Roland McGrath  <roland@redhat.com>
7917         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
7918         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
7919         ld.so.cache was broken.  With it, there is no way to disable dsocaps
7920         like LD_HWCAP_MASK can disable hwcaps.
7922 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
7924         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
7926 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
7928         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
7929         call in strcasestr.
7930         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
7931         __strcasestr_sse42_nonascii.
7932         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
7933         strcasestr-nonascii.c.
7934         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
7936 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
7938         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
7939         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
7940         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
7941         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
7943 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
7945         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
7946         fcntl.
7948 2010-07-06  Andreas Schwab  <schwab@redhat.com>
7950         [BZ #11577]
7951         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
7952         dl_signal_cerror.
7954 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
7956         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
7957         _PC_PIPE_BUF using F_GETPIPE_SZ.
7959 2010-07-05  Roland McGrath  <roland@redhat.com>
7961         * manual/arith.texi (Rounding Functions): Fix rint description
7962         implicit in round description.
7964 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
7966         * elf/Makefile: Fix linking for a few tests to make recent linker
7967         happy.
7969 2010-06-30  Andreas Schwab  <schwab@redhat.com>
7971         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
7972         $(common-objpfx)libc_nonshared.a.
7974 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
7976         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
7977         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
7978         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
7979         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
7980         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
7981         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
7982         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
7983         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
7984         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
7985         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
7986         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
7987         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
7988         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
7989         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
7990         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
7991         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
7992         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
7993         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
7994         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
7995         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
7996         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
7997         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
7998         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
7999         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
8000         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
8001         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
8002         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
8003         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
8004         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
8005         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
8006         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
8007         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
8008         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
8009         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
8010         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
8011         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
8012         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
8013         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
8014         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
8015         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
8016         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
8017         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
8018         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
8019         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
8020         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
8021         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
8022         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
8023         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
8025 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
8027         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
8028         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
8029         * string/memmove.c (memmove): Renamed to ...
8030         (MEMMOVE): ...this.  Default to memmove.
8031         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
8032         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
8033         (END_CHK): Define.
8034         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
8035         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
8036         mempcpy-ssse3-back memmove-ssse3-back.
8037         * sysdeps/x86_64/multiarch/bcopy.S: New file .
8038         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
8039         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
8040         * sysdeps/x86_64/multiarch/memcpy.S: New file.
8041         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
8042         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
8043         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
8044         * sysdeps/x86_64/multiarch/memmove.c: New file.
8045         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
8046         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
8047         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
8048         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
8049         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
8050         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
8051         Define.
8052         (index_Fast_Copy_Backward): Define.
8053         (HAS_ARCH_FEATURE): Define.
8054         (HAS_FAST_REP_STRING): Define.
8055         (HAS_FAST_COPY_BACKWARD): Define.
8057 2010-06-21  Andreas Schwab  <schwab@redhat.com>
8059         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
8060         Restore proper fallback handling.
8062 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
8064         [BZ #11701]
8065         * posix/group_member.c (__group_member): Correct checking loop.
8067         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
8068         OOM in getpwuid_r correctly.  Return error number when the caller
8069         should return, otherwise -1.
8070         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
8071         call returning > 0 value.
8072         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
8074 2010-06-07  Andreas Schwab  <schwab@redhat.com>
8076         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
8077         libc_nonshared.a from targets in modules-names.
8079 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
8081         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
8082         requires it.
8084 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
8086         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
8087         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
8088         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
8089         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
8091 2010-06-02  Andreas Schwab  <schwab@redhat.com>
8093         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
8095 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
8097         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
8098         and F_GETPIPE_SZ.
8099         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
8100         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
8101         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
8102         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
8103         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
8104         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
8106 2010-06-14  Roland McGrath  <roland@redhat.com>
8108         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
8110 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
8112         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
8113         __REDIRECT followed by __THROW.
8114         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
8115         * posix/getopt.h (getopt): Likewise.
8117 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
8119         * hurd/lookup-at.c (__file_name_lookup_at): Accept
8120         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
8121         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
8122         in AT_FLAGS.
8123         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
8124         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
8126 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
8128         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
8130 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
8132         [BZ #11640]
8133         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
8134         Properly check family and model.
8136 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
8138         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
8140 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
8142         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
8144 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
8146         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
8147         symbol reference.
8149 2010-05-19  Andreas Schwab  <schwab@redhat.com>
8151         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
8152         symbol reference.
8154 2010-05-21  Andreas Schwab  <schwab@redhat.com>
8156         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
8157         and internal_recvmmsg.
8158         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
8159         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
8160         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
8161         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
8163         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
8164         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
8165         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
8167 2010-05-20  Andreas Schwab  <schwab@redhat.com>
8169         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
8171 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
8173         POWER7 optimizations.
8174         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
8175         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
8177 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
8179         * version.h: Update for 2.13 development version.
8181 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
8183         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
8184         exceptions.  Return 0.
8186 2010-05-07  Roland McGrath  <roland@redhat.com>
8188         * elf/ldconfig.c (main): Add a const.
8190 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
8192         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
8193         (args_options): Add no-idn option.
8194         (ahosts_keys_int): Add idn_flags to ai_flags.
8195         (parse_option): Handle 'i' option to clear idn_flags.
8197         * malloc/malloc.c (_int_free): Possible race in the most recently
8198         added check.  Only act on the data if no current modification
8199         happened.
8201 See ChangeLog.17 for earlier changes.