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