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