* sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
[platform/upstream/glibc.git] / ChangeLog
1 2012-08-22  Jeff Law <law@redhat.com>
2
3         [BZ #14505]
4         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
5         if the family is PF_UNSPEC.
6
7 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
8
9         * Makerules (lib-version): Rename from V.
10         (install-lib-nosubdir): Change V to lib-version.
11
12 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
13
14         [BZ #14252]
15         * powerpc32/power6/wcschr.c: New file.
16         * powerpc32/power6/wcscpy.c: New file.
17         * powerpc32/power6/wcsrchr.c: New file.
18         * powerpc64/power6/wcschr.c: New file.
19         * powerpc64/power6/wcscpy.c: New file.
20         * powerpc64/power6/wcsrchr.c: New file.
21
22 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
23
24         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
25         (two_way_short_needle): Use it.
26         * string/strstr.c (AVAILABLE1_USES_J): Define.
27         * string/strcasestr.c: Likewise.
28
29         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
30         array references.
31         * string/strcasestr.c (TOLOWER): Make side-effect safe.
32
33         [BZ #11607]
34         * NEWS: Add an entry.
35         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
36         define their defaults.
37         (two_way_short_needle): Detect end-of-string on-the-fly.
38         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
39         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
40         * string/bug-strcasestr1.c: New test.
41         * string/Makefile: Run it.
42
43 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
44
45         [BZ #11607]
46         * string/str-two-way.h (two_way_short_needle): Optimize matching of
47         the first character.
48
49 2012-08-21  Roland McGrath  <roland@hack.frob.com>
50
51         * csu/elf-init.c (__libc_csu_irel): Function removed.
52         * csu/libc-start.c (apply_irel): New function.
53         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
54
55 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
56
57         * sysdeps/unix/sysv/linux/kernel-features.h
58         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
59         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
60         <kernel-features.h>.
61         [__NR_fadvise64_64]: Make code unconditional.
62         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
63         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
64         !__NR_fadvise64_64)]: Likewise.
65         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
66         !__NR_fadvise64_64))]: Likewise.
67         [__NR_fadvise64]: Make code unconditional.
68         [!__NR_fadvise64]: Remove conditional code.
69         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
70         <kernel-features.h>.
71         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
72         unconditional.
73         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
74         conditional code.
75         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
76         not include <kernel-features.h>.
77         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
78         unconditional.
79         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
80         conditional code.
81         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
82         include <kernel-features.h>.
83         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
84         unconditional.
85         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
86         conditional code.
87
88 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
89
90         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
91         slight instruction rearrangements per scrollpipe analysis.
92         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
93
94 2012-08-20  Roland McGrath  <roland@hack.frob.com>
95
96         * manual/syslog.texi (syslog; vsyslog, closelog):
97         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
98         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
99
100         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
101         DSOCAPS to match condition on defining it.
102
103 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
104
105         * sysdeps/unix/sysv/linux/kernel-features.h
106         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
107         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
108         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
109         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
110         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
111         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
112         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
113         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
114         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
115         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
116
117         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
118         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
119
120         * sysdeps/unix/sysv/linux/kernel-features.h
121         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
122         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
123         unconditional.
124         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
125         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
126         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
127         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
128         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
129         Make code unconditional.
130         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
131         (__mmap64) [!__NR_mmap2]: Likewise.
132         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
133         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
134         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
135         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
136         [__NR_mmap2]: Make code unconditional.
137         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
138         (__mmap64) [!__NR_mmap2]: Likewise.
139
140 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
141
142         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
143
144 2012-08-18  Andreas Jaeger  <aj@suse.de>
145
146         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
147
148 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
149
150         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
151         * include/unistd.h (__have_sock_cloexec): Likewise.
152         (__have_pipe2): Likewise.
153         (__have_dup3): Likewise.
154
155 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
156
157         [BZ #9685]
158         * include/unistd.h (__have_pipe2): Change define into an extern int.
159         (__have_dup3): Likewise.
160         * socket/have_sock_cloexec.c: Include fcntl.h.
161         (__have_pipe2): New variable.
162         (__have_dup3): Likewise.
163
164 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
165
166         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
167
168 2012-08-17  Marek Polacek  <polacek@redhat.com>
169
170         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
171         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
172
173 2012-08-17  Roland McGrath  <roland@hack.frob.com>
174
175         * configure.in: Add AC_SUBST for sysheaders.
176         * configure: Regenerated.
177         * config.make.in (sysheaders): New substituted variable.
178
179         * sysdeps/unix/mkfifo.c: Moved ...
180         * sysdeps/posix/mkfifo.c: ... here.
181         * sysdeps/unix/mkfifoat.c: Moved ...
182         * sysdeps/posix/mkfifoat.c: ... here.
183
184         * sysdeps/unix/utime.c: Moved ...
185         * sysdeps/posix/utime.c: ... here.
186
187         * sysdeps/unix/time.c: Moved ...
188         * sysdeps/posix/time.c: ... here.
189         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
190         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
191
192         * sysdeps/unix/nice.c: Moved ...
193         * sysdeps/posix/nice.c: ... here.
194
195         * sysdeps/unix/alarm.c: Moved ...
196         * sysdeps/posix/alarm.c: ... here.
197
198         * intl/Makefile ($(codeset_mo)): Depend on the input file.
199
200 2012-08-17  Jeff Law <law@redhat.com>
201
202         * intl/Makefile (codeset_mo): New variable.
203         ($(codeset_mo)): New target.
204         (tst-codeset.out): Depend on that.  Remove explicit rule.
205         (tst-gettext3.out, tst-gettext5.out): Likewise.
206         (LOCPATH-ENV, tst-codeset-ENV): New variables.
207         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
208         * intl/tst-codeset.sh: Remove.
209         * intl/tst-gettext3.sh: Likewise.
210         * intl/tst-gettext5.sh: Likewise.
211
212 2012-08-17  Roland McGrath  <roland@hack.frob.com>
213
214         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
215         * sysdeps/unix/syscalls.list: ... here.
216
217         * sysdeps/posix/getaddrinfo.c
218         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
219         (gaiconf_init, gaiconf_reload): Use them.
220         [!_STATBUF_ST_NSEC]
221         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
222         Define using time_t rather than struct timespec.
223
224         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
225         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
226         Macros removed.
227         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
228         [!NO_THREADS].
229         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
230         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
231         Likewise.
232
233         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
234         __libc_cleanup_push argument.
235
236         * bits/param.h: New file.
237         * misc/sys/param.h: New file.
238         * include/sys/param.h: New file.
239         * misc/Makefile (headers): Add bits/param.h.
240         * sysdeps/generic/sys/param.h: File removed.
241         * sysdeps/unix/sysv/linux/bits/param.h: New file.
242         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
243         * sysdeps/mach/hurd/bits/param.h: New file.
244         * sysdeps/mach/hurd/sys/param.h: New file.
245
246         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
247         last change.
248
249         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
250         [_IO_MTSAFE_IO].
251         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
252         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
253         New macros.
254
255         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
256         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
257         rather than -D_IO_MTSAFE_IO conditionally.
258         * stdio-common/Makefile (CPPFLAGS): Likewise.
259         * wcsmbs/Makefile (CPPFLAGS): Likewise.
260         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
261         Use $(libio-mtsafe).
262         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
263         of -D_IO_MTSAFE_IO.
264         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
265         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
266         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
267         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
268         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
269         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
270         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
271         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
272         (CFLAGS-fread_u_chk.c): Likewise.
273         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
274         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
275         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
276         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
277         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
278         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
279         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
280         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
281         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
282
283         * libio/Makefile: Test [$(libc-reentrant) = yes]
284         instead of [$(filter %REENTRANT, $(defines)) nonempty].
285
286         * Makeconfig
287         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
288         * sysdeps/pthread/configure: File removed.
289         * sysdeps/pthread/Makeconfig: New file.
290         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
291         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
292
293 2012-08-16  Gary Benson  <gbenson@redhat.com>
294
295         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
296         unmapping the first object in a namespace.
297
298 2012-08-16  Roland McGrath  <roland@hack.frob.com>
299
300         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
301         (__internal_setnetgrent): ... this.  Add internal_function to
302         definition.  Add libc_hidden_def.
303         (setnetgrent): Update caller.
304         (internal_endnetgrent): Renamed to ...
305         (__internal_endnetgrent): ... this.  Add internal_function to
306         definition.  Add libc_hidden_def.
307         (endnetgrent): Update caller.
308         (internal_getnetgrent_r): Renamed to ...
309         (__internal_getnetgrent_r): ... this.  Add internal_function to
310         definition.  Add libc_hidden_def.
311         (__getnetgrent_r): Update caller.
312         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
313
314 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
315
316         * stdlib/longlong.h: Update from GCC.
317
318 2012-08-16  Roland McGrath  <roland@hack.frob.com>
319
320         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
321         on _QL, which is set by umul_ppmm but never used.
322         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
323         variables, which are set by GMP macros but never used.
324         * stdio-common/_itowa.c (_itowa): Likewise.
325         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
326         * stdlib/mod_1.c (mpn_mod_1): Likewise.
327
328 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
329
330         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
331         struct La_sh_regs is not constant.
332         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
333         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
334         and struct La_sparc64_regs are not constant.
335
336 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
337
338         * sysdeps/unix/sysv/linux/kernel-features.h
339         (__ASSUME_POSIX_TIMERS): Remove.
340         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
341         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
342         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
343         Make code unconditional.
344         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
345         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
346         Make code unconditional.
347         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
348         * sysdeps/unix/sysv/linux/clock_nanosleep.c
349         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
350         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
351         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
352         Make code unconditional.
353         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
354         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
355         (__libc_missing_posix_timers): Remove.
356
357 2012-08-15  Roland McGrath  <roland@hack.frob.com>
358
359         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
360         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
361
362         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
363
364         * elf/dl-sym.c: Include <stdlib.h>.
365
366         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
367         constants, which avoids warnings in 32-bit builds.
368
369         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
370         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
371
372         * misc/lseek.c: File moved to ...
373         * io/lseek.c: ... here.
374
375         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
376
377         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
378         shifting LEN more than 31 bits at once.
379
380 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
381
382         [BZ #14195]
383         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
384         segmentation fault for a case of two empty input strings.
385         * string/test-strncasecmp.c (check1): Renamed to...
386         (bz12205): ...this.
387         (bz14195): Add new testcase for two empty input strings and N > 0.
388         (test_main): Call new testcase, adapt for renamed function.
389
390 2012-08-15  Andreas Jaeger  <aj@suse.de>
391
392         [BZ #14090]
393         * crypt/md5test2.c: New test, based on test supplied by Serge
394         Belyshev <belyshev@depni.sinp.msu.ru>.
395         * crypt/Makefile (xtests): Add md5test-giant..
396         * crypt/Makefile ($(objpfx)md5test-giant): Add.
397
398 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
399
400         [BZ #14090]
401         * crypt/md5.c (md5_process_block): Don't assume the buffer
402         length is less than 2**32.
403         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
404         length is less than 2**64.
405
406 2012-08-15  Roland McGrath  <roland@hack.frob.com>
407
408         * string/str-two-way.h: Include <sys/param.h>.
409         (MAX): Macro removed.
410
411         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
412         Move #define and #undef of memmove to just before and after
413         including <string.h>.
414
415         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
416         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
417         and after including <string.h>.  Move declarations of
418         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
419         to before #include "string/memmove.c".
420
421         * include/dirent.h: Declare __getdirentries.
422
423         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
424         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
425
426 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
427
428         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
429         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
430         * sysdeps/i386/configure: Regenerated.
431         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
432         STABS_CURRENT_FILE, and STABS_FUN.
433         (END): Remove call to STABS_FUN_END.
434         (STABS_CURRENT_FILE1): Delete.
435         (STABS_CURRENT_FILE): Likewise.
436         (STABS_FUN): Likewise.
437         (STABS_FUN_END): Likewise.
438         (STABS_FUN2): Likewise.
439         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
440         * sysdeps/x86_64/configure: Regenerated.
441
442 2012-08-14  Roland McGrath  <roland@hack.frob.com>
443
444         * elf/dl-open.c: Include <atomic.h>.
445         * elf/dl-lookup.c: Likewise.
446
447 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
448
449         * sysdeps/unix/sysv/linux/kernel-features.h
450         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
451         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
452         unconditionally.
453         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
454         unconditionally.
455         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
456         condition on __ASSUME_CLONE_THREAD_FLAGS.
457
458 2012-08-14  Andreas Jaeger  <aj@suse.de>
459
460         * sysdeps/i386/fpu/libm-test-ulps: Update.
461
462 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
463
464         * include/atomic.h (atomic_exchange_and_add): Split into ...
465         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
466         New atomic macros.
467
468 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
469
470         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
471
472 2012-08-13  Jeff Law <law@redhat.com>
473
474         * manual/stdio.texi (snprintf): Clarify handling of the trailing
475         null byte in the output string.
476
477 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
478
479         * sysdeps/unix/sysv/linux/kernel-features.h
480         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
481         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
482         (__ASSUME_ARG_MAX_STACK_BASED): Define.
483         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
484         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
485         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
486         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
487
488 2012-08-09  Jeff Law <law@redhat.com>
489
490         [BZ #13939]
491         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
492         When avoid_arena is set, don't retry in the that arena.  Pick the
493         next one, whatever it might be.
494         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
495         (arena_lock): Pass in new parameter to arena_get2.
496         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
497         arena_get2.
498         (__libc_malloc): Unify retrying after main arena failure with
499         __libc_memalign version.
500         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
501
502 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
503
504         [BZ #14166]
505         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
506         to __redirect_strstr.
507         (__strstr_sse42): Use typeof __redirect_strstr.
508         (__strstr_ia32): Likewise.
509         (__libc_strstr): New prototype.
510         (strstr): Renamed to ...
511         (__libc_strstr): This.
512         (strstr): New strong alias of __libc_strstr.
513         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
514         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
515         __redirect_time.
516         Include <time.h>.
517         (__libc_time): New prototype.
518         (time_ifunc): Replace time with __libc_time.
519         (time): New strong alias and hidden definition of __libc_time.
520         (__GI_time): Remove strong alias.
521         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
522         Include <stddef.h>.
523         (memmove): Redefined to __redirect_memmove.
524         (__memmove_sse2): Use typeof __redirect_memmove.
525         (__memmove_ssse3): Likewise.
526         (__memmove_ssse3_back): Likewise.
527         (__libc_memmove): New prototype.
528         (memmove): Renamed to ...
529         (__libc_memmove): This.
530         (memmove): New strong alias of __libc_memmove.
531
532 2012-08-08  Mark Salter  <msalter@redhat.com>
533
534         * elf/elf.h
535         (R_MN10300_TLS_GD): Define.
536         (R_MN10300_TLS_LD): Likewise.
537         (R_MN10300_TLS_LDO): Likewise.
538         (R_MN10300_TLS_GOTIE): Likewise.
539         (R_MN10300_TLS_IE): Likewise.
540         (R_MN10300_TLS_LE): Likewise.
541         (R_MN10300_TLS_DTPMOD): Likewise.
542         (R_MN10300_TLS_DTPOFF): Likewise.
543         (R_MN10300_TLS_TPOFF): Likewise.
544         (R_MN10300_SYM_DIFF): Likewise.
545         (R_MN10300_ALIGN): Likewise.
546         (R_MN10300_NUM): Update.
547
548 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
549
550         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
551         Remove.
552
553 2012-08-08  Roland McGrath  <roland@hack.frob.com>
554
555         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
556
557         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
558         sysdeps/unix -> sysdeps/posix move.
559         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
560
561 2012-08-07      Allan McRae     <allan@archlinux.org>
562
563         [BZ #14303]
564         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
565         (SUNOS_CPP): Likewise.
566         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
567         not found.
568         (open_input): Call CPP using execvp.
569
570 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
571
572         * sysdeps/unix/sysv/linux/kernel-features.h
573         (__ASSUME_PROT_GROWSUPDOWN): Remove.
574         (__ASSUME_NO_CLONE_DETACHED): Likewise.
575         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
576         (__ASSUME_WAITID_SYSCALL): Likewise.
577         * sysdeps/unix/sysv/linux/dl-execstack.c
578         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
579         code unconditional.
580         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
581         conditional code.
582         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
583         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
584         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
585         code.
586         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
587         unconditional.
588         [__ASSUME_WAITID_SYSCALL]: Likewise.
589         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
590
591 2012-08-07  Roland McGrath  <roland@hack.frob.com>
592
593         * sysdeps/unix/closedir.c: Renamed to ...
594         * sysdeps/posix/closedir.c: ... here.
595         * sysdeps/unix/dirfd.c: Renamed to ...
596         * sysdeps/posix/dirfd.c: ... here.
597         * sysdeps/unix/dirstream.h: Renamed to ...
598         * sysdeps/posix/dirstream.h: ... here.
599         * sysdeps/unix/fdopendir.c: Renamed to ...
600         * sysdeps/posix/fdopendir.c: ... here.
601         * sysdeps/unix/opendir.c: Renamed to ...
602         * sysdeps/posix/opendir.c: ... here.
603         * sysdeps/unix/readdir.c: Renamed to ...
604         * sysdeps/posix/readdir.c: ... here.
605         * sysdeps/unix/readdir_r.c: Renamed to ...
606         * sysdeps/posix/readdir_r.c: ... here.
607         * sysdeps/unix/rewinddir.c: Renamed to ...
608         * sysdeps/posix/rewinddir.c: ... here.
609         * sysdeps/unix/seekdir.c: Renamed to ...
610         * sysdeps/posix/seekdir.c: ... here.
611         * sysdeps/unix/telldir.c: Renamed to ...
612         * sysdeps/posix/telldir.c: ... here.
613         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
614         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
615         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
616         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
617
618         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
619         * bits/fcntl.h: ... here.
620
621         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
622         not 0.
623         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
624         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
625         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
626         (struct flock): Move l_start, l_len to the beginning.
627         Use __pid_t for l_pid.
628         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
629         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
630         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
631         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
632         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
633         [__USE_LARGEFILE64] (struct flock64): New type.
634         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
635
636         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
637         * bits/dirent.h: ... here.
638
639         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
640         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
641
642 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
643
644         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
645         Change from 2.6.0 to 2.6.16.
646         * sysdeps/unix/sysv/linux/configure: Regenerated.
647         * sysdeps/unix/sysv/linux/kernel-features.h
648         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
649         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
650         version.
651         (__ASSUME_UTIMES): Likewise.
652         (__ASSUME_CLONE_STOPPED): Remove.
653         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
654         architectures, not kernel version.
655         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
656         (__ASSUME_NO_CLONE_DETACHED): Likewise.
657         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
658         (__ASSUME_WAITID_SYSCALL): Likewise.
659         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
660         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
661         * README: State 2.6.16 as minimum Linux kernel version.  Do not
662         refer to older versions.
663
664 2012-08-06  Roland McGrath  <roland@hack.frob.com>
665
666         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
667         Define alphasort64 as an alias.
668         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
669         Define versionsort64 as an alias.
670         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
671         Define scandir64 as an alias.
672         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
673         Define scandirat64 as an alias.
674         * dirent/alphasort64.c (alphasort64):
675         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
676         * dirent/versionsort64.c: Likewise.
677         * dirent/scandir64.c: Likewise.
678         * dirent/scandirat64.c: Likewise.
679         * sysdeps/wordsize-64/alphasort.c: File removed.
680         * sysdeps/wordsize-64/alphasort64.c: File removed.
681         * sysdeps/wordsize-64/scandir.c: File removed.
682         * sysdeps/wordsize-64/scandir64.c: File removed.
683         * sysdeps/wordsize-64/scandirat.c: File removed.
684         * sysdeps/wordsize-64/scandirat64.c: File removed.
685         * sysdeps/wordsize-64/versionsort.c: File removed.
686         * sysdeps/wordsize-64/versionsort64.c: File removed.
687         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
688         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
689         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
690         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
691         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
692         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
693         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
694         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
695
696         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
697         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
698         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
699         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
700         [defined __arch64__ || defined __sparcv9]
701         (__INO_T_MATCHES_INO64_T): New macro.
702         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
703         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
704         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
705         * sysdeps/unix/sysv/linux/bits/dirent.h
706         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
707         (_DIRENT_MATCHES_DIRENT64): New macro.
708
709         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
710         Define lockf64 as an alias.
711         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
712         Define fseeko64 as an alias.
713         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
714         Define ftello64 as an alias.
715         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
716         Define _IO_fgetpos64 and fgetpos64 as aliases.
717         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
718         Define _IO_fsetpos64 and fsetpos64 as aliases.
719         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
720         Conditionalize body on this.
721         * libio/fseeko64.c: Likewise.
722         * libio/ftello64.c: Likewise.
723         * libio/iofgetpos64.c: Likewise.
724         * libio/iofsetpos64.c: Likewise.
725         * sysdeps/wordsize-64/lockf.c: File removed.
726         * sysdeps/wordsize-64/lockf64.c: File removed.
727         * sysdeps/wordsize-64/fseeko.c: File removed.
728         * sysdeps/wordsize-64/fseeko64.c: File removed.
729         * sysdeps/wordsize-64/ftello.c: File removed.
730         * sysdeps/wordsize-64/ftello64.c: File removed.
731         * sysdeps/wordsize-64/iofgetpos.c: File removed.
732         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
733         * sysdeps/wordsize-64/iofsetpos.c: File removed.
734         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
735         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
736         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
737         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
738         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
739         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
740         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
741         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
742         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
743         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
744         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
745
746         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
747         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
748         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
749         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
750         [defined __arch64__ || defined __sparcv9]
751         (__OFF_T_MATCHES_OFF64_T): New macro.
752         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
753         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
754         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
755         (__OFF_T_MATCHES_OFF64_T): New macro.
756
757 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
758
759         * stdlib/secure-getenv.c (__secure_getenv): Replace
760         GLIBC_2_16 with GLIBC_2_17.
761
762 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
763
764         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
765         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
766
767 2012-08-03  David S. Miller  <davem@davemloft.net>
768
769         * sysdeps/sparc/fpu/libm-test-ulps: Update.
770
771 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
772
773         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
774         Remove.
775         (__ASSUME_CORRECT_SI_PID): Likewise.
776         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
777         (__ASSUME_TMPFS_NAME): Likewise.
778         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
779         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
780         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
781         (HAVE_AUX_SECURE): Make definition unconditional.
782         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
783         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
784
785 2012-08-03  Roland McGrath  <roland@hack.frob.com>
786
787         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
788         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
789         * sysdeps/mach/hurd/eloop-threshold.h: New file.
790         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
791         __eloop_threshold instead of SYMLOOP_MAX.
792
793         * sysdeps/generic/eloop-threshold.h: New file.
794         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
795         of MAXSYMLINKS.
796         * elf/chroot_canon.c (chroot_canon): Likewise.
797
798 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
799
800         [BZ #13717]
801         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
802         Change to 2.6.0 everywhere.
803         * sysdeps/unix/sysv/linux/configure: Regenerated.
804         * sysdeps/unix/sysv/linux/kernel-features.h
805         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
806         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
807         kernel versions.
808         (__ASSUME_POSIX_TIMERS): Define unconditionally.
809         (__ASSUME_FUTEX_REQUEUE): Remove.
810         (__ASSUME_STATFS64): Define unconditionally.
811         (__ASSUME_AT_SECURE): Likewise.
812         (__ASSUME_CORRECT_SI_PID): Likewise.
813         (__ASSUME_TGKILL): Define without depending on kernel version for
814         i386.
815         (__ASSUME_UTIMES): Likewise.
816         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
817         kernel version.
818         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
819         (__ASSUME_TMPFS_NAME): Likewise.
820         * README: Update reference to Linux kernel versions.
821
822 2012-08-02  Marek Polacek  <polacek@redhat.com>
823
824         [BZ#14150]
825         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
826         libc_cv_asm_type_prefix with %.
827         * configure: Regenerated.
828         * include/libc-symbols.h: Remove comment about
829         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
830         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
831         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
832         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
833         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
834         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
835         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
836         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
837         * elf/tst-unique2mod1.c: Likewise.
838         * elf/tst-unique1mod2.c: Likewise.
839         * elf/tst-unique1mod1.c: Likewise.
840         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
841         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
842         Replace ASM_TYPE_DIRECTIVE with .type.
843         * sysdeps/s390/s390-64/sysdep.h: Likewise.
844         * sysdeps/i386/sysdep.h: Likewise.
845         * sysdeps/x86_64/sysdep.h: Likewise.
846         * sysdeps/sh/sysdep.h: Likewise.
847         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
848         Do not define ASM_TYPE_DIRECTIVE.
849         * sysdeps/powerpc/sysdep.h: Likewise.
850         * sysdeps/powerpc/powerpc32/sysdep.h:
851         Replace ASM_TYPE_DIRECTIVE with .type.
852         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
853         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
854         * sysdeps/i386/fpu/e_powf.S: Likewise.
855         * sysdeps/i386/fpu/e_expl.S: Likewise.
856         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
857         * sysdeps/i386/fpu/e_acosh.S: Likewise.
858         * sysdeps/i386/fpu/e_pow.S: Likewise.
859         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
860         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
861         * sysdeps/i386/fpu/s_expm1.S: Likewise.
862         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
863         * sysdeps/i386/fpu/e_log2.S: Likewise.
864         * sysdeps/i386/fpu/e_log2l.S: Likewise.
865         * sysdeps/i386/fpu/e_scalb.S: Likewise.
866         * sysdeps/i386/fpu/e_powl.S: Likewise.
867         * sysdeps/i386/fpu/e_log10f.S: Likewise.
868         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
869         * sysdeps/i386/fpu/e_logl.S: Likewise.
870         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
871         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
872         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
873         * sysdeps/i386/fpu/e_log2f.S: Likewise.
874         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
875         * sysdeps/i386/fpu/e_log.S: Likewise.
876         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
877         * sysdeps/i386/fpu/e_logf.S: Likewise.
878         * sysdeps/i386/fpu/e_log10l.S: Likewise.
879         * sysdeps/i386/fpu/e_atanh.S: Likewise.
880         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
881         * sysdeps/i386/fpu/e_log10.S: Likewise.
882         * sysdeps/i386/fpu/s_frexp.S: Likewise.
883         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
884         * sysdeps/i386/fpu/s_asinh.S: Likewise.
885         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
886         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
887         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
888         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
889         * sysdeps/i386/i686/strtok.S: Likewise.
890         * sysdeps/i386/i386-mcount.S: Likewise.
891         * sysdeps/i386/strtok.S: Likewise.
892         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
893         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
894         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
895         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
896         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
897         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
898         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
899         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
900         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
901         * sysdeps/x86_64/_mcount.S: Likewise.
902         * sysdeps/x86_64/strtok.S: Likewise.
903         * sysdeps/sh/_mcount.S: Likewise.
904
905 2012-08-01  Roland McGrath  <roland@hack.frob.com>
906
907         * libio/iofopen.c: Include <fcntl.h>.
908         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
909         (_IO_fopen64, fopen64): Define as aliases.
910         * libio/iofopen64.c: Include <fcntl.h>.
911         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
912         Conditionalize body on this.
913         * sysdeps/wordsize-64/iofopen.c: File removed.
914         * sysdeps/wordsize-64/iofopen64.c: File removed.
915
916 2012-08-01  Marek Polacek  <polacek@redhat.com>
917
918         * libc/Makeconfig: Use elf in place of binfmt-subdir.
919         Use dlfcn directly instead of a variable.
920         (binfmt-subdir): Do not define.
921         (dlfcn): Likewise.
922
923 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
924
925         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
926         Remove all definitions.
927         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
928         <kernel-features.h>.
929         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
930         (miss_F_GETOWN_EX): Remove all definitions.
931         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
932         macro definition.
933         [!__ASSUME_FCNTL64]: Remove conditional code.
934         [__ASSUME_FCNTL64]: Make code unconditional.
935         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
936         <kernel-features.h>.
937         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
938         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
939         (lockf64) [__NR_fcntl64]: Make code unconditional.
940         (lockf64) [__ASSUME_FCNTL64]: Likewise.
941
942         * sysdeps/unix/sysv/linux/kernel-features.h
943         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
944         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
945         Make code unconditional.
946         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
947         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
948         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
949         [__NR_vfork]: Make code unconditional.
950         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
951         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
952         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
953         [__NR_vfork]: Make code unconditional.
954         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
955         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
956
957 2012-08-01  Roland McGrath  <roland@hack.frob.com>
958
959         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
960         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
961
962         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
963         Define mkstemp64 as an alias.
964         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
965         Define mkstemps64 as an alias.
966         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
967         Define mkostemp64 as an alias.
968         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
969         Define mkostemps64 as an alias.
970         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
971         Conditionalize body on this.
972         * misc/mkostemp64.c: Likewise.
973         * misc/mkostemps64.c: Likewise.
974         * misc/mkstemps64.c: Likewise.
975         * sysdeps/wordsize-64/mkstemp64.c: File removed.
976         * sysdeps/wordsize-64/mkostemp64.c: File removed.
977         * sysdeps/wordsize-64/mkostemp.c: File removed.
978         * sysdeps/wordsize-64/mkstemp.c: File removed.
979         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
980         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
981         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
982         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
983
984         [BZ #14138]
985         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
986         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
987         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
988         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
989
990         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
991         compat_symbol macros from <shlib-compat.h> rather than the underlying
992         default_symbol_version and symbol_version macros, so that DEFAULT
993         lines in shlib-versions are respected.
994         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
995
996 2012-08-01  Florian Weimer  <fweimer@redhat.com>
997
998         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
999         Declare with warn_unused_result.
1000         (setgid, setregid, setegid, setresgid): Likewise.
1001         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
1002         Likewise.
1003         * WUR-REPORT: Remove set*id functions.
1004
1005 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
1006
1007         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
1008
1009 2012-07-31  Roland McGrath  <roland@hack.frob.com>
1010
1011         * include/sys/socket.h (__libc_accept, __libc_accept4):
1012         Add attribute_hidden.
1013         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
1014
1015         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
1016         use of PTR_MANGLE.
1017         * inet/getnetgrent_r.c (setup): Likewise.
1018
1019         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
1020
1021 2012-07-31  David S. Miller  <davem@davemloft.net>
1022
1023         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1024
1025 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
1026
1027         [BZ #13629]
1028         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
1029         value between 1.0 and 2.0 and smaller part has absolute value less
1030         than 1.0.
1031         * math/s_clog10.c (__clog10): Likewise.
1032         * math/s_clog10f.c (__clog10f): Likewise.
1033         * math/s_clog10l.c (__clog10l): Likewise.
1034         * math/s_clogf.c (__clogf): Likewise.
1035         * math/s_clogl.c (__clogl): Likewise.
1036         * math/libm-test.inc (clog_test): Add more tests.
1037         (clog10_test): Likewise.
1038         * sysdeps/i386/fpu/libm-test-ulps: Update.
1039         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1040
1041 2012-07-31  Florian Weimer  <fweimer@redhat.com>
1042
1043         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
1044         Exit with zero in case no suitable GID is found, and write a
1045         message to standard error.
1046
1047 2012-07-30  Roland McGrath  <roland@hack.frob.com>
1048
1049         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
1050         rather than to 1.
1051         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
1052         (MAXPATHLEN): Removed.
1053         (NOGROUP, NODEV): New macros.
1054         (setbit, clrbit, isset, isclr): New macros.
1055         (howmany, roundup, powerof2): New macros.
1056         (DEV_BSIZE): New macro.
1057
1058         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
1059         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
1060
1061         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
1062         definition on [!__NO_LONG_DOUBLE_MATH].
1063
1064         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
1065         PTR_MANGLE and PTR_DEMANGLE.
1066
1067         * socket/accept4.c (accept4): Rename to __libc_accept4.
1068         Define accept4 as a weak alias.
1069
1070         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
1071         on [_DIRENT_HAVE_D_TYPE].
1072         * io/ftw.c (ftw_dir): Likewise.
1073
1074         * io/xmknod.c (__xmknod): Don't check PATH for being null.
1075
1076         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
1077
1078         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
1079         Use the BSD numbers rather than the arbitrary ones we had.
1080         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
1081         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
1082         (SIGXCPU, SIGXFSZ): New macros.
1083         (_NSIG): Now 32.
1084
1085         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
1086         initializer on [_LIBC_REENTRANT].
1087
1088         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
1089         definitions inside [_POSIX_MAPPED_FILES].
1090
1091         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
1092
1093         * dirent/opendir.c: Include <fcntl.h>.
1094
1095         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
1096         (__libc_getspecific): Likewise.
1097         (__libc_key_create): Likewise.
1098
1099         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
1100         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
1101         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
1102         (tmpfile64): Define as alias.
1103         * sysdeps/wordsize-64/tmpfile.c: File removed.
1104         * sysdeps/wordsize-64/tmpfile64.c: File removed.
1105         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
1106         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
1107
1108         * stdio-common/vfscanf.c: Include <stdbool.h>.
1109         * nss/makedb.c: Likewise.
1110         * stdio-common/_i18n_number.h: Likewise.
1111         * argp/argp-help.c: Likewise.
1112         * posix/wordexp.c: Likewise.
1113         * sysdeps/posix/spawni.c: Likewise.
1114         * nss/nss_files/files-initgroups.c: Likewise.
1115         * stdio-common/reg-modifier.c: Include <stdlib.h>.
1116         * nss/nss_files/files-initgroups.c: Likewise.
1117         * nss/nss_db/db-netgrp.c: Likewise.
1118         * nss/nss_db/db-initgroups.c: Likewise.
1119         * io/fchmodat.c: Include <sys/stat.h>.
1120
1121         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
1122         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
1123
1124         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
1125         [HAVE_MMAP].
1126
1127         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
1128         Add multiple inclusion protection.
1129
1130 2012-07-27  David S. Miller  <davem@davemloft.net>
1131
1132         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1133
1134 2012-07-27  Gary Benson  <gbenson@redhat.com>
1135
1136         [BZ #14298]
1137         * elf/rtld.c: Include <stap-probe.h>.
1138         (dl_main): Added static probes "init_start" and "init_complete".
1139         * elf/dl-load.c: Include <stap-probe.h>.
1140         (lose): Take new parameter "nsid".
1141         Added static probe "map_failed".
1142         (_dl_map_object_from_fd): Pass namespace id to lose.
1143         Added static probe "map_start".
1144         (open_verify): Pass namespace id to lose.
1145         * elf/dl-open.c: Include <stap-probe.h>.
1146         (dl_open_worker) Added static probes "map_complete", "reloc_start"
1147         and "reloc_complete".
1148         * elf/dl-close.c: Include <stap-probe.h>.
1149         (_dl_close_worker): Added static probes "unmap_start" and
1150         "unmap_complete".
1151         * elf/rtld-debugger-interface.txt: New file documenting the above.
1152
1153 2012-07-26  Roland McGrath  <roland@hack.frob.com>
1154
1155         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
1156         rather than a string variable.
1157         * sunrpc/rpc_main.c (h_output): Likewise.
1158         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
1159
1160 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
1161
1162         * inet/check_native.c: New file.
1163
1164 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
1165
1166         [BZ #13629]
1167         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
1168         if larger part has absolute value 1.0.
1169         * math/s_clog10.c (__clog10): Likewise.
1170         * math/s_clog10f.c (__clog10f): Likewise.
1171         * math/s_clog10l.c (__clog10l): Likewise.
1172         * math/s_clogf.c (__clogf): Likewise.
1173         * math/s_clogl.c (__clogl): Likewise.
1174         * math/libm-test.inc (clog_test): Add more tests.
1175         (clog10_test): Likewise.
1176         * sysdeps/i386/fpu/libm-test-ulps: Update.
1177         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1178
1179         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
1180         (pltexit): Likewise.
1181         (La_regs): Likewise.
1182         (La_retval): Likewise.
1183         (int_retval): Likewise.
1184         Update #error for removed macros to refer only to definitions in
1185         tst-audit.h.
1186         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
1187         macro.
1188         (pltexit): Likewise.
1189         (La_regs): Likewise.
1190         (La_retval): Likewise.
1191         (int_retval): Likewise.
1192         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
1193         macro.
1194         (pltexit): Likewise.
1195         (La_regs): Likewise.
1196         (La_retval): Likewise.
1197         (int_retval): Likewise.
1198         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
1199         macro.
1200         (pltexit): Likewise.
1201         (La_regs): Likewise.
1202         (La_retval): Likewise.
1203         (int_retval): Likewise.
1204         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
1205         macro.
1206         (pltexit): Likewise.
1207         (La_regs): Likewise.
1208         (La_retval): Likewise.
1209         (int_retval): Likewise.
1210         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
1211         macro.
1212         (pltexit): Likewise.
1213         (La_regs): Likewise.
1214         (La_retval): Likewise.
1215         (int_retval): Likewise.
1216         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
1217         macro.
1218         (pltexit): Likewise.
1219         (La_regs): Likewise.
1220         (La_retval): Likewise.
1221         (int_retval): Likewise.
1222         * sysdeps/generic/tst-audit.h: Update comment to refer only to
1223         macro definitions in tst-audit.h.
1224         * sysdeps/i386/tst-audit.h: New file.
1225         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
1226         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
1227         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
1228         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
1229         * sysdeps/sh/tst-audit.h: Likewise.
1230         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
1231         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
1232         * sysdeps/x86_64/tst-audit.h: Likewise.
1233
1234 2012-07-26  Andreas Jaeger  <aj@suse.de>
1235
1236         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
1237         ptrace.
1238
1239         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
1240         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
1241         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
1242         PTRACE_O_MASK.
1243         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
1244         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
1245         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
1246
1247         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
1248         value.
1249
1250         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
1251         _sigsys.
1252         (si_call_addr, si_syscall, si_arch): Define new macro.
1253         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
1254         _sigsys.
1255         (si_call_addr, si_syscall, si_arch): Define new marcro.
1256         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
1257         _sigsys.
1258         (si_call_addr, si_syscall, si_arch): Define new macro.
1259         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
1260         _sigsys.
1261         (si_call_addr, si_syscall, si_arch): Define new macro.
1262
1263 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
1264
1265         [BZ #13717]
1266         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
1267         Change to 2.4.21 where previously 2.4.1.
1268         * sysdeps/unix/sysv/linux/configure: Regenerated.
1269         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
1270         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
1271         Linux kernel version.
1272         (__ASSUME_STD_AUXV): Remove.
1273         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
1274         kernel version.
1275         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
1276         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
1277         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
1278         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
1279         (__ASSUME_NETLINK_SUPPORT): Likewise.
1280         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
1281         (__no_netlink_support): Remove conditional definition.
1282         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
1283         Remove.
1284         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
1285         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
1286         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
1287         (if_nameindex_ioctl): Remove.
1288         (if_nameindex_netlink): Do not handle __no_netlink_support.
1289         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
1290         code.
1291         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
1292         Remove conditional code.
1293         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
1294         code.
1295         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
1296         unconditional.
1297         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
1298         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
1299         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
1300         Remove.
1301         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
1302         [!__ASSUME_STD_AUXV]: Remove conditional code.
1303         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
1304         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
1305         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
1306         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
1307         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
1308         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
1309         code.
1310         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
1311         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
1312         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
1313         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
1314         conditional code.
1315         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
1316         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
1317         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
1318         code.
1319         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
1320         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
1321         conditional code.
1322         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
1323         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
1324         code unconditional.
1325         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
1326         conditional code.
1327         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
1328         unconditional.
1329         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
1330         conditional code.
1331         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
1332         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
1333         unconditional.
1334         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
1335         conditional code.
1336         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
1337         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
1338         code unconditional.
1339         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
1340         conditional code.
1341         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
1342         unconditional.
1343         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
1344         conditional code.
1345         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
1346         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
1347         code unconditional.
1348         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
1349         conditional code.
1350         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
1351         unconditional.
1352         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
1353         conditional code.
1354
1355 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
1356
1357         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
1358         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
1359         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
1360         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
1361         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
1362         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
1363         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
1364         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
1365         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
1366         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
1367         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
1368         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
1369         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
1370         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
1371         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
1372         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
1373         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
1374         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
1375         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
1376         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
1377         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
1378         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
1379         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
1380
1381 2012-07-25  Florian Weimer  <fweimer@redhat.com>
1382
1383         * Versions.def: Add GLIBC_2.17.
1384         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
1385         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
1386         Introduce __libc_secure_getenv.
1387         * stdlib/Versions (2.17): Add secure_getenv
1388         (GLIBC_PRIVATE): Add __libc_secure_getenv.
1389         * stdlib/secure-getenv.c: Rename __secure_getenv to
1390         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
1391         symbol __secure_getenv for GLIBC_2.0.
1392         * stdlib/tst-secure-getenv.c: New.
1393         * stdlib/Makefile (tests): Add testcase.
1394         * manual/startup.texi (Environment Access): Document
1395         secure_getenv.
1396         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
1397         __libc_secure_getenv.
1398         * inet/ruserpass.c (ruserpass): Likewise.
1399         * malloc/mtrace.c (mtrace): Likewise.
1400         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
1401         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
1402         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
1403         * sysdeps/posix/tempname.c: Likewise.  Evaluate
1404         HAVE_SECURE_GETENV.
1405         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
1406         __secure_getenv to __libc_secure_getenv.
1407         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
1408         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
1409         Likewise.
1410         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
1411         Likewise.
1412         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
1413         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
1414         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
1415         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
1416         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
1417         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
1418         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
1419
1420 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
1421
1422         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
1423         (struct La_i86_retval): Likewise.
1424         (struct La_x86_64_regs): Likewise.
1425         (struct La_x86_64_retval): Likewise.
1426         (struct La_x32_regs): Likewise.
1427         (struct La_x32_retval): Likewise.
1428         (struct La_ppc32_regs): Likewise.
1429         (struct La_ppc32_retval): Likewise.
1430         (struct La_ppc64_regs): Likewise.
1431         (struct La_ppc64_retval): Likewise.
1432         (struct La_sh_regs): Likewise.
1433         (struct La_sh_retval): Likewise.
1434         (struct La_s390_32_regs): Likewise.
1435         (struct La_s390_32_retval): Likewise.
1436         (struct La_s390_64_regs): Likewise.
1437         (struct La_s390_64_retval): Likewise.
1438         (struct La_sparc32_regs): Likewise.
1439         (struct La_sparc32_retval): Likewise.
1440         (struct La_sparc64_regs): Likewise.
1441         (struct La_sparc64_retval): Likewise.
1442         (struct audit_ifaces): Remove architecture-specific pltenter and
1443         pltexit members.
1444         * sysdeps/i386/ldsodefs.h: New file.
1445         * sysdeps/powerpc/ldsodefs.h: Likewise.
1446         * sysdeps/s390/ldsodefs.h: Likewise.
1447         * sysdeps/sh/ldsodefs.h: Likewise.
1448         * sysdeps/sparc/ldsodefs.h: Likewise.
1449         * sysdeps/x86_64/ldsodefs.h: Likewise.
1450
1451 2012-07-25  Marek Polacek  <polacek@redhat.com>
1452
1453         [BZ #6808]
1454         * math/libm-test.inc (yn_test): Add another test.
1455         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
1456         to ERANGE when the result is +-Inf.
1457         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
1458         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
1459         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
1460         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
1461
1462 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
1463
1464         * conform/data/time.h-data (NULL): Use macro-constant.  Require
1465         equal to 0.
1466         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
1467         clock_t.
1468         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
1469
1470 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
1471
1472         * configure.in <sysdeps resolving>: Correct printing
1473         Implies_before.
1474         * configure: Regenerate.
1475
1476 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
1477
1478         * math/w_ilogb.c: Include <limits.h>.
1479         * math/w_ilogbl.c: Likewise.
1480
1481 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
1482
1483         * manual/lang.texi (__va_copy): Document primarily as ISO C99
1484         va_copy.  Document allowing for unavailable va_copy only as
1485         pre-C99 compatibility.
1486         * manual/string.texi (Copying and Concatenation): Use va_copy
1487         instead of __va_copy in concat example.
1488
1489 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
1490
1491         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
1492         (__sendto): Use create_address_port.  Initialize APORT and deallocate
1493         it if not null.
1494
1495         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
1496         with O_NOLINK passed to __file_name_lookup.
1497
1498         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
1499         with O_NOLINK passed to __file_name_lookup.
1500
1501         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
1502         negative N or less than NGIDS.
1503
1504         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
1505         type to string_t.  Set ERANGE as errno and return it if NAME is not big
1506         enough.  Use memcpy instead of strncpy.
1507
1508 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
1509
1510         * elf/Makefile (check-data): Remove.
1511         (localplt.data): New vpath directive.
1512         ($(objpfx)check-localplt.out): Use localplt.data from vpath
1513         instead of $(check-data).
1514         * scripts/data/localplt-generic.data: Move to ...
1515         * sysdeps/generic/localplt.data: ... here.
1516         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
1517         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
1518         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
1519         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
1520         ... here.
1521         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
1522         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
1523         ... here.
1524         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
1525         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
1526         ... here.
1527         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
1528         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
1529         ... here.
1530         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
1531         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
1532         ... here.
1533         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
1534         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
1535         ... here.
1536
1537 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1538
1539         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
1540         PPC32 and PPC64 files.
1541         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
1542         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
1543
1544 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1545
1546         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
1547         __makecontext_ret to ...
1548         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
1549         ... here and call exit if uc_link is NULL.  New file.
1550         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
1551         __makecontext_ret.S.
1552         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
1553         __makecontext_ret to ...
1554         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
1555         ... here and call exit if uc_link is NULL.  New file.
1556         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
1557         __makecontext_ret.S.
1558
1559 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1560
1561         * elf/elf.h (R_390_IRELATIVE): New definition.
1562         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
1563         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
1564         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
1565         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
1566         (elf_machine_lazy_rel): Likewise.
1567         * sysdeps/s390/dl-irel.h: New file.
1568         * sysdeps/s390/s390-64/memcpy.S: New asm code.
1569         * sysdeps/s390/s390-64/memset.S: New asm code.
1570         * sysdeps/s390/s390-64/memcmp.S: New asm code.
1571         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
1572         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
1573         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
1574         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
1575         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
1576         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
1577         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
1578         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
1579         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
1580         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
1581         * sysdeps/s390/s390-32/memcpy.S: New asm code.
1582         * sysdeps/s390/s390-32/memset.S: New asm code.
1583         * sysdeps/s390/s390-32/memcmp.S: New asm code.
1584
1585 2012-07-17  Marek Polacek  <polacek@redhat.com>
1586
1587         [BZ #14349]
1588         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
1589         * sysdeps/s390/s390-64/configure.in: Likewise.
1590         * sysdeps/sparc/configure.in: Likewise.
1591         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
1592         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
1593         * sysdeps/i386/configure.in: Likewise.
1594         * sysdeps/x86_64/configure.in: Likewise.
1595         * sysdeps/sh/configure.in: Likewise.
1596         * sysdeps/s390/s390-32/configure: Regenerated.
1597         * sysdeps/s390/s390-64/configure: Likewise.
1598         * sysdeps/x86_64/configure: Likewise.
1599         * sysdeps/sh/configure: Likewise.
1600         * sysdeps/powerpc/powerpc64/configure: Likewise.
1601         * sysdeps/powerpc/powerpc32/configure: Likewise.
1602         * sysdeps/sparc/configure: Likwise.
1603         * sysdeps/i386/configure: Likewise.
1604
1605         * elf/dl-open.c: Comment fixes.
1606
1607 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
1608
1609         * Makefile [CXX] (check-data): Remove.
1610         [CXX] (c++-types.data): New vpath directive.
1611         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
1612         vpath.  Do not allow for C++ type data being missing.
1613         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
1614         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
1615         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
1616         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
1617         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
1618         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
1619         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
1620         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
1621         ... here.
1622         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
1623         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
1624         ... here.
1625         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
1626         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
1627         ... here.
1628         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
1629         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
1630         ... here.
1631         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
1632         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
1633         ... here.
1634         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
1635         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
1636         ... here.
1637         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
1638         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
1639         ... here.
1640         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
1641         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
1642
1643         * elf/tls-macros.h (TLS_LE): Move architecture-specific
1644         definitions to architecture-specific files.
1645         (TLS_IE): Likewise.
1646         (TLS_LD): Likewise.
1647         (TLS_GD): Likewise.
1648         * sysdeps/i386/tls-macros.h: New file.
1649         * sysdeps/powerpc/tls-macros.h: Likewise.
1650         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
1651         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
1652         * sysdeps/sh/tls-macros.h: Likewise.
1653         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
1654         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
1655         * sysdeps/x86_64/tls-macros.h: Likewise.
1656
1657 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
1658
1659         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
1660         zero value for regular exit case.
1661
1662         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
1663         (__start_context): Preserve zero value for regular exit case.
1664
1665 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
1666             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1667
1668         * manual/setjmp.texi (setcontext): Clarify normal process
1669         termination when uc_link is the null pointer.
1670         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
1671         exit call.
1672
1673 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
1674
1675         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
1676         preprocessor.  Test for each exception mask separately.
1677
1678 2012-07-16  Andreas Jaeger  <aj@suse.de>
1679
1680         * po/ru.po: Update from translation team.
1681
1682 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
1683
1684         * conform/data/string.h-data (NULL): Use macro-constant.  Require
1685         equal to 0.
1686         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
1687         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
1688         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
1689         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
1690         [ISO || ISO99 || ISO11] (*_t): Do not allow.
1691
1692 2012-07-13  Andreas Jaeger  <aj@suse.de>
1693
1694         * po/fr.po: Update from translation team.
1695
1696 2012-07-12  Marek Polacek  <polacek@redhat.com>
1697
1698         [BZ #14173]
1699         * math/libm-test.inc (yn_test): Add test for BZ #14173.
1700         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
1701         loop condition.
1702
1703 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
1704
1705         [BZ #13717]
1706         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
1707         Change to 2.4.1 where previously 2.4.0.
1708         * sysdeps/unix/sysv/linux/configure: Regenerated.
1709         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
1710         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
1711         version.
1712         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
1713         (__ASSUME_AT_CLKTCK): Remove.
1714         (__ASSUME_AT_PAGESIZE): Likewise.
1715         (__ASSUME_AT_XID): Likewise.
1716         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
1717         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
1718         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
1719         unconditionally.
1720         (HAVE_AUX_PAGESIZE): Likewise.
1721         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
1722         [__ASSUME_AT_CLKTCK]: Make code unconditional.
1723         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
1724
1725 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
1726
1727         [BZ #14307]
1728         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
1729         the temporary buffer used to invoke __gethostbyname2_r,
1730         __gethostbyaddr_r and gethostbyname4_r to make room for struct
1731         host_data / struct gaih_addrtuple.
1732         * resolv/nss_dns/dns-host.c (global scope): Move definition of
1733         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
1734         header file nss/nsswitch.h.
1735         * nss/nsswitch.h (global scope): Add definition of implementation
1736         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
1737         resolv/nss_dns/dns-host.c).
1738
1739 2012-07-11  Andreas Jaeger  <aj@suse.de>
1740
1741         * po/fr.po: Update from translation team.
1742
1743         * po/sv.po: Update from translation team
1744         * po/fr.po: Another update from translation team.
1745
1746 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1747
1748         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
1749         for subnormals or multiply small sinh result by itself.
1750         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
1751         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1752
1753 2012-07-11  David S. Miller  <davem@davemloft.net>
1754
1755         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1756
1757 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
1758
1759         [BZ #14347]
1760         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
1761         (INTERNAL_MARK): Shift it here.
1762
1763 2012-07-10  Marek Polacek  <polacek@redhat.com>
1764
1765         [BZ #14151]
1766         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
1767         libc_cv_asm_global_directive with .globl.
1768         * configure: Regenerated.
1769         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
1770         with .globl.
1771         * sysdeps/i386/configure: Regenerated.
1772         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
1773         with .globl.
1774         * sysdeps/x86_64/configure: Regenerated.
1775         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
1776         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
1777         * elf/tst-unique2mod2.c: Likewise.
1778         * elf/tst-unique2mod1.c: Likewise.
1779         * elf/tst-unique1mod2.c: Likewise.
1780         * elf/tst-unique1mod1.c: Likewise.
1781         * sysdeps/s390/s390-32/sysdep.h: Likewise.
1782         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
1783         * sysdeps/s390/s390-64/sysdep.h: Likewise.
1784         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
1785         * sysdeps/mach/sysdep.h: Likewise.
1786         * sysdeps/i386/sysdep.h: Likewise.
1787         * sysdeps/i386/i386-mcount.S: Likewise.
1788         * sysdeps/x86_64/_mcount.S: Likewise.
1789         * sysdeps/x86_64/sysdep.h: Likewise.
1790         * sysdeps/sh/_mcount.S: Likewise.
1791         * sysdeps/sh/sysdep.h: Likewise.
1792         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
1793         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
1794         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
1795         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
1796         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
1797         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
1798         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
1799         * locale/localeinfo.h: Likewise.
1800         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
1801         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
1802
1803 2012-07-09  Roland McGrath  <roland@hack.frob.com>
1804
1805         [BZ #14336]
1806         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
1807         system".
1808         * manual/message.texi (The Uniforum approach): Likewise.
1809         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
1810         (glibc iconv Implementation): Likewise.
1811
1812 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
1813
1814         [BZ #14337]
1815         * math/s_clog.c (__clog): Avoid scaling a value down where that
1816         could result in underflow.
1817         * math/s_clog10.c (__clog10): Likewise.
1818         * math/s_clog10f.c (__clog10f): Likewise.
1819         * math/s_clog10l.c (__clog10l): Likewise.
1820         * math/s_clogf.c (__clogf): Likewise.
1821         * math/s_clogl.c (__clogl): Likewise.
1822         * math/libm-test.inc (clog_test): Add more tests.
1823         (clog10_test): Likewise.
1824         * sysdeps/i386/fpu/libm-test-ulps: Update.
1825         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1826
1827 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
1828
1829         [BZ #14283]
1830         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
1831         by 7 not 8 to examine high bit of fractional part.
1832
1833         [BZ #14042]
1834         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
1835         for call to __mcount_internal.
1836         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
1837         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
1838         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
1839
1840 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
1841
1842         [BZ #14154]
1843         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
1844         approximation for values within 0x1p-13f of an odd multiple of
1845         pi/4.
1846         * math/libm-test.inc (tan_test): Do not allow spurious underflow
1847         exception.  Add more tests.
1848         * sysdeps/i386/fpu/libm-test-ulps: Update.
1849
1850         [BZ #6778]
1851         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
1852         inputs and return -1 for them.  Do not check for +Inf in case not
1853         reachable for +Inf.
1854         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
1855         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
1856         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
1857         and return -1 for them.  Do not check for +Inf in case not
1858         reachable for +Inf.
1859         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
1860         define.
1861         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
1862         and return -1 for them.  Do not check for +Inf in case not
1863         reachable for +Inf.
1864         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
1865         spurious underflow.
1866         * sysdeps/i386/fpu/libm-test-ulps: Update.
1867         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1868
1869 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
1870
1871         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
1872
1873 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
1874
1875         [BZ #14157]
1876         [BZ #14331]
1877         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
1878         could result in spurious underflow.  Scale down values above
1879         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
1880         * math/s_csqrtf.c (__csqrtf): Likewise.
1881         * math/s_csqrtl.c (__csqrtl): Likewise.
1882         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
1883         spurious underflow.
1884         * sysdeps/i386/fpu/libm-test-ulps: Update.
1885         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1886
1887 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
1888
1889         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
1890         xopen-msg.sed.
1891         * catgets/xopen-msg.awk: New file.
1892         * catgets/xopen-msg.sed: Removed.
1893
1894         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
1895         po2text.sed.
1896         * intl/po2test.awk: New file.
1897         * intl/po2test.sed: Removed.
1898
1899 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
1900
1901         [BZ #14328]
1902         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
1903         or multiply small sinh result by itself.
1904         * math/s_ctanf.c (__ctanf): Likewise.
1905         * math/s_ctanh.c (__ctanh): Likewise.
1906         * math/s_ctanhf.c (__ctanhf): Likewise.
1907         * math/s_ctanhl.c (__ctanhl): Likewise.
1908         * math/s_ctanl.c (__ctanl): Likewise.
1909         * math/libm-test.inc (ctan_test_tonearest): New function.
1910         (ctan_test_towardzero): Likewise.
1911         (ctan_test_downward): Likewise.
1912         (ctan_test_upward): Likewise.
1913         (ctanh_test_tonearest): Likewise.
1914         (ctanh_test_towardzero): Likewise.
1915         (ctanh_test_downward): Likewise.
1916         (ctanh_test_upward): Likewise.
1917         (main): Call these new functions.
1918         * sysdeps/i386/fpu/libm-test-ulps: Update.
1919         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1920
1921 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
1922
1923         * .gitignore: Delete /ports entry.
1924
1925 2012-07-03  Andreas Jaeger  <aj@suse.de>
1926
1927         * po/bg.po: Update from translation team.
1928         * po/cs.po: Likewise.
1929         * po/de.po: Likewise.
1930         * po/hr.po: Likewise.
1931         * po/nl.pl: Likewise.
1932         * po/pl.po: Likewise.
1933         * po/vi.po: Likewise.
1934
1935 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
1936
1937         * Makeconfig [!+link] (+link-before-libc): New variable.
1938         [!+link] (+link-after-libc): Likewise.
1939         [!+link] (+link-tests): Likewise.
1940         [!+link] (+link): Define in terms of $(+link-before-libc) and
1941         $(+link-after-libc).
1942         [!+link-static] (+link-static-before-libc): New variable.
1943         [!+link-static] (+link-static-after-libc): Likewise.
1944         [!+link-static] (+link-static-tests): Likewise.
1945         [!+link-static] (+link-static): Define in terms of
1946         $(+link-static-before-libc) and $(+link-static-after-libc).
1947         [build-shared] (link-libc-before-gnulib): New variable.
1948         [build-shared] (link-libc-tests): Likewise.
1949         [build-shared] (link-libc): Define in terms of
1950         $(link-libc-before-gnulib).
1951         [!build-shared] (link-libc-tests): New variable.
1952         (link-libc-static-tests): New variable.
1953         [!gnulib] (gnulib-arch): New variable.
1954         [!gnulib] (gnulib-tests): Likewise.
1955         [!gnulib] (static-gnulib-arch): Likewise.
1956         [!gnulib] (static-gnulib-tests): Likewise.
1957         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
1958         Define with "=" instead of ":=".
1959         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
1960         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
1961         * Rules (binaries-all-notests): New variable.
1962         (binaries-all-tests): Likewise.
1963         (binaries-static-notests): Likewise.
1964         (binaries-static-tests): Likewise.
1965         (binaries-all): Define using $(binaries-all-notests) and
1966         $(binaries-all-tests).
1967         (binaries-static): Define using $(binaries-static-notests) and
1968         $(binaries-static-tests).
1969         (binaries-shared-tests): New variable.
1970         (binaries-shared-notests): Likewise.
1971         (binaries-shared): Remove variable.
1972         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
1973         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
1974         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
1975         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
1976         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
1977         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
1978         * elf/Makefile (sln-modules): New variable.
1979         (extra-objs): Add $(sln-modules:=.o).
1980         (ldconfig-modules): Add static-stubs.
1981         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
1982         * elf/static-stubs.c: New file.
1983
1984         [BZ #14283]
1985         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
1986         by 7 not 8 to examine high bit of fractional part.  Use volatile
1987         variables when splitting into final array of floats if
1988         __FLT_EVAL_METHOD__ != 0.
1989         * math/libm-test.inc (cos_test): Add another test.
1990         (sin_test): Likewise.
1991         * sysdeps/i386/fpu/libm-test-ulps: Update.
1992
1993         [BZ #14273]
1994         * math/libm-test.inc (cosh_test): Add more tests.
1995
1996         * version.h (RELEASE): Set to "development".
1997         (VERSION): Set to "2.16.90".
1998
1999 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
2000
2001         * NEWS: Update copyright. Remove last-updated date.
2002         Mention math library bug fixes and timezone data changes.
2003         * README: Mention GNU/Hurd, x32, and HPPA support status.
2004
2005 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
2006
2007         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
2008
2009 2012-06-27  Andreas Jaeger  <aj@suse.de>
2010
2011         * manual/contrib.texi (Contributors): Add Samuel Thibault.
2012
2013 2012-06-25  Andreas Jaeger  <aj@suse.de>
2014
2015         * sysdeps/s390/fpu/libm-test-ulps: Update.
2016
2017 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
2018             Thomas Schwinge  <thomas@codesourcery.com>
2019
2020         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
2021         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
2022         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
2023         fanotify_mark.
2024
2025 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
2026
2027         * sysdeps/mach/start.c: Remove file.
2028         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
2029         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
2030         * sysdeps/sh/init-first.c: Likewise.
2031
2032         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
2033         registers for frame unwinding purposes, add CFI directives.
2034         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
2035         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
2036         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
2037         Likewise.
2038
2039         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
2040         __fortify_fail returning.
2041         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
2042
2043         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
2044         sysdeps/sh/____longjmp_chk.S.
2045         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
2046         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
2047         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
2048         (gen-as-const-headers): Append sigaltstack-offsets.sym.
2049
2050         * sysdeps/sh/abort-instr.h: New file.
2051         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
2052         process in case exit returns.
2053
2054         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
2055         initialize the GOT register before use.
2056
2057         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
2058         calculation of ARGC > 4.
2059
2060         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
2061         meaningful names to some local labels.
2062
2063 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
2064             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2065
2066         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
2067         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
2068         (__arch_compare_and_exchange_val_16_acq): Likewise.
2069         (__arch_compare_and_exchange_val_32_acq): Likewise.
2070         (atomic_exchange_and_add): Fix gUSA sequence.
2071         (atomic_add): Likewise.
2072         (atomic_add_negative): Likewise.
2073         (atomic_add_zero): Likewise.
2074         (atomic_bit_test_set): Likewise.
2075
2076 2012-06-22  Andreas Schwab  <schwab@redhat.com>
2077
2078         [BZ #13579]
2079         * include/link.h (struct link_map): Add l_free_initfini.
2080         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
2081         l_initfini.
2082         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
2083         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
2084         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
2085         set.
2086
2087 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
2088
2089         * configure.in: Use AC_LANG_SOURCE.
2090         * configure: Regenerate.
2091
2092 2012-06-22  Roland McGrath  <roland@hack.frob.com>
2093
2094         * configure.in (libc_cv_localstatedir): New substituted variable.
2095         * configure: Regenerated.
2096         * config.make.in (localstatedir): New variable, substituted from
2097         libc_cv_localstatedir.
2098         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
2099         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
2100         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
2101         * sysdeps/gnu/configure: Regenerated.
2102
2103 2012-06-21  Jeff Law  <law@redhat.com>
2104
2105         [BZ #14277]
2106         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
2107         free.  Simplify list management for _LIBC case.
2108
2109 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
2110
2111         [BZ #14273]
2112         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
2113         Clear sign bit of 64-bit integer value before comparing against
2114         overflow value.
2115
2116         * sysdeps/mach/configure: Regenerated.
2117
2118 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
2119
2120         [BZ #14278]
2121         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
2122
2123 2012-06-21  Jeff Law  <law@redhat.com>
2124
2125         [BZ #13882]
2126         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
2127         uint16_t for elements in the "seen" array to avoid char overflows.
2128         * elf/dl-fini.c (_dl_sort_fini): Likewise.
2129         * elf/dl-open.c (dl_open_worker): Likewise.
2130
2131 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
2132
2133         * scripts/list-sources.sh: Scan PORTS for translations.
2134         * po/libc.pot: Regenerated.
2135
2136 2012-06-21  Andreas Jaeger  <aj@suse.de>
2137
2138         [BZ #12194]
2139         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
2140         warning.
2141         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
2142         * bits/byteswap-16.h (__bswap_16): Likewise.
2143         * bits/byteswap.h (__bswap_constant_16): Likewise.
2144
2145 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
2146
2147         [BZ #14117]
2148         * sysdeps/i386/fpu_control.h: Removed.
2149         * sysdeps/x86_64/fpu_control.h: Moved to ...
2150         * sysdeps/x86/fpu_control.h: Here.
2151
2152         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
2153         (_FPU_SETCW): Likewise.
2154
2155 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
2156
2157         [BZ #14117]
2158         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
2159         * sysdeps/x86/fpu/bits/mathinline.h: This.
2160         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
2161
2162         [BZ #14050]
2163         [BZ #14117]
2164         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
2165         functions if __x86_64__ is defined.
2166
2167 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
2168
2169         * string/endian.h: Add !__ASSEMBLER__ condition for including
2170         conversion interfaces.
2171
2172 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
2173
2174         [BZ #14241]
2175         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
2176         of ABS(x) in calculating zero to negative powers other than odd
2177         integers.
2178         * math/libm-test.inc (pow_test): Add more tests.
2179
2180 2012-06-15  Andreas Jaeger  <aj@suse.de>
2181
2182         * manual/contrib.texi (Contributors): Update entry of Liubov
2183         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
2184         Machado Filho.
2185
2186 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
2187
2188         * string/string.h: Add __wur to GNU version of strerror_r.
2189
2190 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
2191
2192         [BZ #14229]
2193         * string/Makefile (tests): Add tst-strtok_r.
2194         * string/tst-strtok_r.c: New file.
2195         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
2196         RAX_LP/RDX_LP on SAVE_PTR.
2197
2198 2012-06-14  Roland McGrath  <roland@hack.frob.com>
2199
2200         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
2201
2202 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
2203
2204         * libm_test.inc (csqrt_test): Allow more spurious underflow
2205         exceptions.
2206         (j0_test): Likewise.
2207         (j1_test): Likewise.
2208         (y0_test): Likewise.
2209         (y1_test): Likewise.
2210
2211 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
2212
2213         * po/Makefile (libc.pot): Use UTF-8 charset.
2214
2215 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
2216
2217         [BZ #14210]
2218         Suppress sign-conversion warning from FD_SET.
2219         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
2220         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
2221         not unsigned long int.
2222         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
2223
2224 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
2225
2226         [BZ #14050]
2227         [BZ #14117]
2228         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
2229         __extern_always_inline instead of __extern_inline.
2230         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
2231         (__signbit): Likewise.
2232         (__signbitl): Support C++ namespace.
2233         (lrintf): New inline function.
2234         (lrint): Likewise.
2235         (llrintf): Likewise.
2236         (llrint): Likewise.
2237         (fmaxf): Likewise.
2238         (fmax): Likewise.
2239         (fminf): Likewise.
2240         (fmin): Likewise.
2241         (rint): Likewise.
2242         (rintf): Likewise.
2243         (ceil): Likewise.
2244         (ceilf): Likewise.
2245         (floor): Likewise.
2246         (floorf): Likewise.
2247         (nearbyint): Likewise.
2248         (nearbyintf): Likewise.
2249
2250 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
2251
2252         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
2253         non-default versions.
2254
2255 2012-06-11  Roland McGrath  <roland@hack.frob.com>
2256
2257         [BZ #14218]
2258         * manual/argp.texi (Argp): Reword argp_parse description slightly.
2259
2260 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
2261
2262         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
2263         (FE_UPWARD, FE_DOWNWARD): Don't define.
2264         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
2265         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
2266
2267         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
2268         reading it.
2269         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
2270         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
2271
2272 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2273
2274         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
2275         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
2276         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
2277         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
2278
2279 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
2280
2281         [BZ #14117]
2282         * sysdeps/i386/fpu/bits/fenv.h: Removed.
2283         * sysdeps/i386/fpu/Implies: New file.
2284         * sysdeps/x86_64/fpu/Implies: Likewise.
2285         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
2286         * sysdeps/x86/fpu/bits/fenv.h: This.
2287
2288         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
2289         __SSE_MATH__.
2290
2291 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
2292
2293         [BZ #14134]
2294         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
2295         character 0xffff that matches the last element of the
2296         conversion table.
2297
2298 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2299
2300         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
2301         fmodl commit.
2302
2303 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2304
2305         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
2306         values higher than 25.6283.
2307
2308 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2309
2310         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
2311         subnormal exponent extraction and add some __builtin_expect.
2312         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
2313         Fix for subnormal mantissa calculation.
2314
2315 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
2316
2317         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
2318         cpu2 is -1 and errno is not ENOSYS.
2319
2320 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
2321
2322         [BZ #14117]
2323         * sysdeps/i386/i486/bits/string.h: Renamed to ...
2324         * sysdeps/x86/bits/string.h: This.
2325         * sysdeps/x86_64/bits/string.h: Removed.
2326
2327         * sysdeps/i386/i486/bits/string.h: Define inline functions only
2328         if not compiling for x86-64, but compiling for >= i486.
2329
2330         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
2331         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
2332
2333         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
2334         New macro from Linux kernel 3.4.0.
2335         (FP_XSTATE_MAGIC2): Likewise.
2336         (FP_XSTATE_MAGIC2_SIZE): Likewise.
2337         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
2338         (struct _fpx_sw_bytes): New struct.
2339         (struct _xsave_hdr): Likewise.
2340         (struct _ymmh_state): Likewise.
2341         (struct _xstate): Likewise.
2342
2343         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
2344         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
2345         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
2346         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
2347         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
2348         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
2349
2350         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
2351         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
2352         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
2353         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
2354         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
2355         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
2356
2357 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2358
2359         [BZ #13743]
2360         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
2361         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
2362         (sysdep_headers): Include sys/platform/ppc.h.
2363         * sysdeps/powerpc/test-gettimebase.c: Test for
2364         __ppc_get_timebase() to catch future ISA opcode/insn changes.
2365         * manual/Makefile (appendices): Include platform.texi.
2366         * manual/contrib.texi (Contributors): Update @node pointers.
2367         * manual/maint.texi (Maintenance): Likewise.
2368         (Platform): New node.
2369         * manual/platform.texi: New file.  Document the new features.
2370
2371 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
2372             Jakub Jelinek  <jakub@redhat.com>
2373
2374         [BZ #14188]
2375         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
2376         where __builtin_expect is unavailable.
2377
2378 2012-06-03  David S. Miller  <davem@davemloft.net>
2379
2380         * stdlib/longlong.h: Updated from GCC.
2381
2382 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
2383
2384         [BZ #14042]
2385         * sysdeps/powerpc/powerpc32/mcount.c: New file.
2386         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
2387         __mcount_internal.
2388         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
2389         (GLIBC_2.16): Likewise.
2390
2391 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
2392
2393         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
2394
2395 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
2396
2397         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
2398         (default-abi): New variable.
2399         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
2400         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
2401         variable.
2402         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
2403         Likewise.
2404         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
2405         Likewise.
2406         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
2407         Likewise.
2408
2409         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
2410         definition.  Document in comment.
2411
2412 2012-06-01  David S. Miller  <davem@davemloft.net>
2413
2414         * stdlib/longlong.h: Updated from GCC.
2415
2416 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
2417
2418         [BZ #14117]
2419         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
2420         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
2421         sys/debugreg.h sys/io.h here.
2422         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
2423         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
2424         sys/io.h.
2425         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
2426         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
2427         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
2428         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
2429         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
2430         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
2431
2432         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
2433         Define only if __x86_64__ is defined.
2434
2435 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
2436
2437         [BZ #14048]
2438         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
2439         Use int64_t for variable i.
2440         * math/libm-test.inc (fmod_test): Add more tests.
2441
2442         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
2443         z computation is not scheduled after fetestexcept.
2444         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
2445         Use math_force_eval instead of asm to ensure calculation scheduled
2446         before exception test.
2447         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
2448         Ensure a1 + u.d computation is not scheduled after fetestexcept.
2449
2450 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
2451
2452         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
2453         computation is not scheduled after fetestexcept.
2454
2455 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
2456
2457         [BZ #14117]
2458         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
2459         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
2460
2461 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2462
2463         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
2464         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
2465
2466 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
2467
2468         [BZ #14117]
2469         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
2470         <bits/wordsize.h>.
2471         (__WCHAR_MIN): Support __WORDSIZE == 64.
2472         (__WCHAR_MAX): Likewise.
2473
2474         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
2475         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
2476
2477         [BZ #14183]
2478         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
2479         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
2480
2481         [BZ #14117]
2482         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
2483         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
2484
2485         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
2486         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
2487
2488         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
2489         Defined to 1 if __x86_64__ isn't defined.
2490         (_STAT_VER_LINUX_OLD): New.
2491         (st_atime): Remove duplicate.
2492         (st_mtime): Likewise.
2493         (st_ctime): Likewise.
2494
2495 2012-05-31  David S. Miller  <davem@davemloft.net>
2496
2497         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
2498         entries.
2499
2500 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
2501
2502         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
2503         gen-libm-test.pl.
2504
2505         [BZ #14132]
2506         * elf/dl-reloc.c: Include <_itoa.h>.
2507         (_dl_reloc_bad_type): Remove use of INTUSE.
2508         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
2509         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
2510         * stdio-common/psiginfo.c (psiginfo): Likewise.
2511         * stdio-common/psignal.c (psignal): Likewise.
2512         * string/strsignal.c (strsignal): Likewise.
2513         * include/signal.h (_sys_siglist): Declare hidden proto.
2514         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
2515         INTVARDEF with libc_hidden_data_def.
2516         * stdio-common/itoa-udigits.c: Likewise.
2517         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
2518         (_itoa_lower_digits_internal): Remove declaration.
2519         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
2520         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
2521         (_sys_sigabbrev_internal): Remove aliases.
2522         (_sys_siglist): Define hidden alias.
2523
2524 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
2525
2526         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2527         bits/sysctl.h.
2528
2529 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
2530
2531         [BZ #14117]
2532         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
2533         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
2534
2535         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
2536         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
2537         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
2538         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
2539         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
2540         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
2541
2542         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
2543         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
2544         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
2545
2546         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
2547         with __addr.
2548         (insw): Likewise.
2549         (insl): Likewise.
2550         (outsb): Likewise.
2551         (outsw): Likewise.
2552         (outsl): Likewise.
2553
2554         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
2555         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
2556         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
2557
2558         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
2559         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
2560         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
2561         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
2562         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
2563         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
2564
2565         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
2566         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
2567
2568         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
2569         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
2570
2571         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
2572         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
2573         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
2574
2575         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
2576         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
2577         to ...
2578         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
2579
2580         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
2581         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
2582         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
2583
2584         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
2585         for x86-64.
2586         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
2587
2588 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
2589
2590         * math/math.h (M_El): Use two more decimal places.
2591         (M_LOG2El): Likewise.
2592         (M_LOG10El): Likewise.
2593         (M_LN2l): Likewise.
2594         (M_LN10l): Likewise.
2595         (M_PIl): Likewise.
2596         (M_PI_2l): Likewise.
2597         (M_PI_4l): Likewise.
2598         (M_1_PIl): Likewise.
2599         (M_2_PIl): Likewise.
2600         (M_2_SQRTPIl): Likewise.
2601         (M_SQRT2l): Likewise.
2602         (M_SQRT1_2l): Likewise.
2603
2604 2012-05-31  David S. Miller  <davem@davemloft.net>
2605
2606         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
2607         values between float registers.
2608         * sysdeps/sparc/sparc64/memset.S: Likewise.
2609         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
2610
2611 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
2612
2613         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
2614         -D_FORTIFY_SOURCE=1.
2615         (CPPFLAGS-tst-longjmp_chk.c): Define.
2616         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
2617         (CPPFLAGS-tst-longjmp_chk2.c): Define.
2618         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
2619         CFLAGS-tst-wchar-h.c.
2620
2621 2012-05-31  Marek Polacek  <polacek@redhat.com>
2622
2623         [BZ #14132]
2624         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
2625         __endmntent_internal): Remove declaration.
2626         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
2627         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
2628         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
2629
2630 2012-05-30  David S. Miller  <davem@davemloft.net>
2631
2632         * sysdeps/sparc/sparc32/soft-fp/q_util.c
2633         (___Q_simulate_exceptions): Use real FP ops rather than writing
2634         into the %fsr.
2635         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
2636         Likewise.
2637
2638 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
2639
2640         [BZ #14117]
2641         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
2642         * sysdeps/x86/bits/xtitypes.h: This.
2643
2644         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
2645         * sysdeps/x86/bits/wordsize.h: This.
2646
2647         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
2648         * sysdeps/x86/bits/huge_vall.h: This.
2649
2650         * sysdeps/i386/bits/select.h: Removed.
2651         * sysdeps/x86_64/bits/select.h: Renamed to ...
2652         * sysdeps/x86/bits/select.h: This.
2653
2654         * sysdeps/i386/bits/setjmp.h: Removed.
2655         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
2656         * sysdeps/x86/bits/setjmp.h: This.
2657
2658         * sysdeps/i386/bits/mathdef.h: Removed.
2659         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
2660         * sysdeps/x86/bits/mathdef.h: This.
2661
2662 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
2663
2664         [BZ #14132]
2665         * include/sys/socket.h (__connect_internal)
2666         (__libc_sa_len_internal): Remove declaration.
2667         (__connect, __libc_sa_len): Declare hidden_proto.
2668         (SA_LEN): Remove use of INTUSE.
2669         * socket/connect.c: Add libc_hidden_def.
2670         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
2671         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
2672         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
2673         alias.
2674         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
2675         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2676         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
2677         of adding _internal alias.
2678
2679 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
2680
2681         [BZ #14117]
2682         * sysdeps/i386/bits/link.h: Removed.
2683         * sysdeps/i386/bits/linkmap.h: Likewise.
2684         * sysdeps/x86_64/bits/link.h: Renamed to ...
2685         * sysdeps/x86/bits/link.h: This.
2686         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
2687         * sysdeps/x86/bits/linkmap.h: This.
2688
2689         * sysdeps/i386/bits/endian.h: Removed.
2690         * sysdeps/x86_64/bits/endian.h: Renamed to ...
2691         * sysdeps/x86/bits/endian.h: This.
2692
2693         * sysdeps/i386/bits/byteswap.h: Removed.
2694         * sysdeps/i386/bits/byteswap-16.h: Likewise.
2695         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
2696         * sysdeps/x86/bits/byteswap.h: This.
2697         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
2698         * sysdeps/x86/bits/byteswap-16.h: This.
2699         * sysdeps/i386/Implies: Add x86.
2700         * sysdeps/x86_64/Implies: Likewise.
2701
2702 2012-05-30  David S. Miller  <davem@davemloft.net>
2703
2704         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
2705         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
2706         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
2707         (FP_TRAPPING_EXCEPTIONS): Define.
2708         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
2709         (FP_TRAPPING_EXCEPTIONS): Define.
2710         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
2711         subnormals only when inexact has been signalled or underflow
2712         exceptions are enabled.
2713         (_FP_PACK_CANONICAL): Likewise.
2714
2715 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
2716
2717         [BZ #14183]
2718         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
2719         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
2720
2721 2012-05-30  Richard Henderson  <rth@twiddle.net>
2722
2723         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
2724         with #ifndef NOT_IN_libc.
2725
2726         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
2727         marked to avoid plt entry.
2728
2729 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
2730
2731         [BZ #14112]
2732         * Makeconfig (default-abi): New macro.
2733         (abi-includes): Likewise.
2734         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
2735         $(abi-$(default-abi)-lib-soname) for soname if defined.
2736         ($(common-objpfx)gnu/lib-names.stmp): Generate from
2737         abi-variants.
2738         * Makefile (installed-stubs): Likewise.
2739         * include/stubs-biarch.h: Removed.
2740         * scripts/lib-names.awk: Only handle one library at a time.
2741         * scripts/soversions.awk: Remove WORDSIZE support.
2742         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
2743         entries.
2744         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
2745         Removed.
2746         (syscall-list-default-condition): Likewise.
2747         (syscall-list-default-condition): Likewise.
2748         (syscall-list-includes): Likewise.
2749         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
2750         syscall-list-* with abi-*.  Handle undefined abi-variants.
2751         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
2752         * sysdeps/unix/sysv/linux/i386/Implies: New file.
2753         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
2754         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
2755         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
2756         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
2757         Removed.
2758         (syscall-list-32-options): Likewise.
2759         (syscall-list-32-condition): Likewise.
2760         (syscall-list-64-options): Likewise.
2761         (syscall-list-64-condition): Likewise.
2762         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
2763         macro.
2764         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
2765         Renamed to ...
2766         (abi-*): This.
2767         (abi-64-ld-soname): New macro.
2768         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
2769         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
2770         Renamed to ...
2771         (abi-*): This.
2772         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
2773         * sysdeps/x86_64/x32/shlib-versions: Likewise.
2774
2775 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
2776
2777         * sysdeps/unix/sysv/linux/kernel-features.h
2778         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
2779         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
2780         include <kernel-features.h>.
2781         [!__NR_ftruncate64]: Remove conditional code.
2782         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
2783         [__NR_ftruncate64]: Make code unconditional.
2784         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
2785         * sysdeps/unix/sysv/linux/truncate64.c: Do not
2786         include <kernel-features.h>.
2787         [!__NR_ftruncate64]: Remove conditional code.
2788         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
2789         [__NR_ftruncate64]: Make code unconditional.
2790         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
2791         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
2792         include <kernel-features.h>.
2793         [!__NR_ftruncate64]: Remove conditional code.
2794         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
2795         [__NR_ftruncate64]: Make code unconditional.
2796         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
2797         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
2798         include <kernel-features.h>.
2799         [!__NR_ftruncate64]: Remove conditional code.
2800         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
2801         [__NR_ftruncate64]: Make code unconditional.
2802         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
2803
2804         * configure.in (libc_cv_fpie): Weaken to a compile test using
2805         LIBC_TRY_CC_OPTION.
2806         * configure: Regenerated.
2807
2808 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2809
2810         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
2811         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
2812         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
2813         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
2814         Refreshed.
2815         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
2816         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
2817         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
2818         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
2819         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
2820         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
2821         Refreshed.
2822
2823 2012-05-27  David S. Miller  <davem@davemloft.net>
2824
2825         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
2826         (___Q_zero): New.
2827         (__Q_simulate_exceptions): Return void.  Change to simulate
2828         exceptions by writing into the %fsr.
2829         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
2830         (__Qp_handle_exceptions): Likewise.
2831         (numbers): Delete.
2832         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
2833         __Qp_handle_exceptions.
2834         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
2835         __Qp_handle_exceptions.
2836         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
2837         as unused and give dummy FP_RND_NEAREST initializer.
2838         (FP_INHIBIT_RESULTS): Define.
2839         (___Q_simulate_exceptions): Update declaration.
2840         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
2841         formatting.
2842         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
2843         as unused and give dummy FP_RND_NEAREST initializer.
2844         (__Qp_handle_exceptions): Update declaration.
2845         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
2846         formatting.
2847
2848 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
2849
2850         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
2851         the temporary FPU control word.
2852         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
2853         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
2854         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
2855         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
2856         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
2857         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
2858         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
2859         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
2860         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
2861         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
2862         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
2863
2864 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2865
2866         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
2867         fields.
2868
2869 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
2870
2871         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
2872         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
2873         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
2874         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
2875         Likewise.
2876         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
2877         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
2878         Likewise.
2879
2880 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
2881
2882         * po/h.po: Update from translation team.
2883
2884 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
2885
2886         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
2887
2888         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
2889         handling of denormals.
2890         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
2891         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
2892         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
2893         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
2894         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
2895         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
2896         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
2897         Likewise.
2898
2899 2012-05-26  Marek Polacek  <polacek@redhat.com>
2900
2901         [BZ #14152]
2902         * math/libm-test.inc (fma_test): Don't always expect underflow
2903         exception.
2904
2905 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
2906
2907         [BZ #12416]
2908         * elf/tst-execstack.c: Include stackinfo.h.
2909         (do_test): Adjust test case to ensure that pthread_getattr_np
2910         behaviour remains the same after marking stack executable.
2911
2912 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
2913
2914         * sysdeps/unix/sysv/linux/kernel-features.h
2915         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
2916         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
2917         kernel-features.h.
2918         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
2919         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
2920         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
2921         kernel-features.h.
2922         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
2923         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
2924
2925 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
2926
2927         * configure.in: Define the default includes to being none.
2928         * configure: Regenerated.
2929
2930 2012-05-25  Roland McGrath  <roland@hack.frob.com>
2931
2932         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
2933         * sysdeps/x86_64/setjmp.S: Likewise.
2934         * sysdeps/i386/bsd-setjmp.S: Likewise.
2935         * sysdeps/i386/bsd-_setjmp.S: Likewise.
2936         * sysdeps/i386/setjmp.S: Likewise.
2937         * sysdeps/i386/__longjmp.S: Likewise.
2938         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
2939         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
2940
2941         * include/stap-probe.h: New file.
2942         * configure.in: Handle --enable-systemtap.
2943         * configure: Regenerated.
2944         * config.h.in (USE_STAP_PROBE): New #undef.
2945         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
2946         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
2947         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
2948
2949 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
2950
2951         [BZ #13717]
2952         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
2953         to 2.4.0 where earlier.
2954         * sysdeps/unix/sysv/linux/configure: Regenerated.
2955         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
2956         <kernel-features.h>.
2957         [__ASSUME_32BITUIDS]: Make code unconditional.
2958         [!__ASSUME_32BITUIDS]: Remove conditional code.
2959         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
2960         <kernel-features.h>.
2961         [__ASSUME_32BITUIDS]: Make code unconditional.
2962         [!__ASSUME_32BITUIDS]: Remove conditional code.
2963         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
2964         [__ASSUME_32BITUIDS]: Make code unconditional.
2965         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
2966         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
2967         <kernel-features.h>.
2968         [__ASSUME_32BITUIDS]: Make code unconditional.
2969         [!__ASSUME_32BITUIDS]: Remove conditional code.
2970         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
2971         <kernel-features.h>.
2972         [__ASSUME_32BITUIDS]: Make code unconditional.
2973         [!__ASSUME_32BITUIDS]: Remove conditional code.
2974         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
2975         <kernel-features.h>.
2976         [__ASSUME_32BITUIDS]: Make code unconditional.
2977         [!__ASSUME_32BITUIDS]: Remove conditional code.
2978         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
2979         <kernel-features.h>.
2980         [__ASSUME_32BITUIDS]: Make code unconditional.
2981         [!__ASSUME_32BITUIDS]: Remove conditional code.
2982         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
2983         <kernel-features.h>.
2984         [__ASSUME_32BITUIDS]: Make code unconditional.
2985         [!__ASSUME_32BITUIDS]: Remove conditional code.
2986         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
2987         <kernel-features.h>.
2988         [__ASSUME_32BITUIDS]: Make code unconditional.
2989         [!__ASSUME_32BITUIDS]: Remove conditional code.
2990         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
2991         <kernel-features.h>.
2992         [__ASSUME_32BITUIDS]: Make code unconditional.
2993         [!__ASSUME_32BITUIDS]: Remove conditional code.
2994         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
2995         <kernel-features.h>.
2996         [__ASSUME_32BITUIDS]: Make code unconditional.
2997         [!__ASSUME_32BITUIDS]: Remove conditional code.
2998         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
2999         <kernel-features.h>.
3000         [__ASSUME_32BITUIDS]: Make code unconditional.
3001         [!__ASSUME_32BITUIDS]: Remove conditional code.
3002         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
3003         <kernel-features.h>.
3004         [__ASSUME_32BITUIDS]: Make code unconditional.
3005         [!__ASSUME_32BITUIDS]: Remove conditional code.
3006         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
3007         <kernel-features.h>.
3008         [__NR_setresgid] (__setresgid): Do not declare.
3009         [__ASSUME_32BITUIDS]: Make code unconditional.
3010         [!__ASSUME_32BITUIDS]: Remove conditional code.
3011         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
3012         <kernel-features.h>.
3013         [__NR_setresuid] (__setresuid): Do not declare.
3014         [__ASSUME_32BITUIDS]: Make code unconditional.
3015         [!__ASSUME_32BITUIDS]: Remove conditional code.
3016         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
3017         <kernel-features.h>.
3018         [__ASSUME_32BITUIDS]: Make code unconditional.
3019         [!__ASSUME_32BITUIDS]: Remove conditional code.
3020         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
3021         <kernel-features.h>.
3022         [__ASSUME_32BITUIDS]: Make code unconditional.
3023         [!__ASSUME_32BITUIDS]: Remove conditional code.
3024         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
3025         <kernel-features.h>.
3026         [__ASSUME_32BITUIDS]: Make code unconditional.
3027         [!__ASSUME_32BITUIDS]: Remove conditional code.
3028         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
3029         <kernel-features.h>.
3030         [__ASSUME_32BITUIDS]: Make code unconditional.
3031         [!__ASSUME_32BITUIDS]: Remove conditional code.
3032         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
3033         <kernel-features.h>.
3034         [__ASSUME_32BITUIDS]: Make code unconditional.
3035         [!__ASSUME_32BITUIDS]: Remove conditional code.
3036         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
3037         <kernel-features.h>.
3038         [__ASSUME_32BITUIDS]: Make code unconditional.
3039         [!__ASSUME_32BITUIDS]: Remove conditional code.
3040         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
3041         <kernel-features.h>.
3042         [__ASSUME_32BITUIDS]: Make code unconditional.
3043         [!__ASSUME_32BITUIDS]: Remove conditional code.
3044         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
3045         <kernel-features.h>.
3046         [__ASSUME_32BITUIDS]: Make code unconditional.
3047         [!__ASSUME_32BITUIDS]: Remove conditional code.
3048         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
3049         <kernel-features.h>.
3050         [__ASSUME_32BITUIDS]: Make code unconditional.
3051         [!__ASSUME_32BITUIDS]: Remove conditional code.
3052         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
3053         <kernel-features.h>.
3054         [__ASSUME_32BITUIDS]: Make code unconditional.
3055         [!__ASSUME_32BITUIDS]: Remove conditional code.
3056         * sysdeps/unix/sysv/linux/kernel-features.h
3057         (__ASSUME_SETRESUID_SYSCALL): Remove.
3058         (__ASSUME_SETRESGID_SYSCALL): Likewise.
3059         (__ASSUME_32BITUIDS): Likewise.
3060         (__ASSUME_LDT_WORKS): Likewise.
3061         (__ASSUME_O_DIRECTORY): Likewise.
3062         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
3063         architecture but not kernel version.
3064         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
3065         (__ASSUME_MMAP2_SYSCALL): Likewise.
3066         (__ASSUME_STAT64_SYSCALL): Likewise.
3067         (__ASSUME_IPC64): Likewise.
3068         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
3069         <kernel-features.h>.
3070         [__ASSUME_32BITUIDS]: Make code unconditional.
3071         [!__ASSUME_32BITUIDS]: Remove conditional code.
3072         * sysdeps/unix/sysv/linux/opendir.c: Do not include
3073         <kernel-features.h>.
3074         [__ASSUME_O_DIRECTORY]: Make code unconditional.
3075         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
3076         132096]: Remove conditional code.
3077         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
3078         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
3079         <kernel-features.h>.
3080         [__ASSUME_32BITUIDS]: Make code unconditional.
3081         [!__ASSUME_32BITUIDS]: Remove conditional code.
3082         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
3083         <kernel-features.h>.
3084         [__ASSUME_32BITUIDS]: Make code unconditional.
3085         [!__ASSUME_32BITUIDS]: Remove conditional code.
3086         * sysdeps/unix/sysv/linux/setegid.c: Do not include
3087         <kernel-features.h>.
3088         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
3089         unconditional.
3090         (__setresgid): Do not declare.
3091         [__ASSUME_32BITUIDS]: Make code unconditional.
3092         [!__ASSUME_32BITUIDS]: Remove conditional code.
3093         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
3094         <kernel-features.h>.
3095         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
3096         unconditional.
3097         (__setresuid): Do not declare.
3098         [__ASSUME_32BITUIDS]: Make code unconditional.
3099         [!__ASSUME_32BITUIDS]: Remove conditional code.
3100         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
3101         <kernel-features.h>.
3102         [__ASSUME_32BITUIDS]: Make code unconditional.
3103         [!__ASSUME_32BITUIDS]: Remove conditional code.
3104         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
3105         <kernel-features.h>.
3106         [__ASSUME_32BITUIDS]: Make code unconditional.
3107         [!__ASSUME_32BITUIDS]: Remove conditional code.
3108
3109 2012-05-25  Richard Henderson  <rth@twiddle.net>
3110
3111         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
3112         dl_hwcap to ifunc resolver.
3113         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
3114         elf_ifunc_invoke.
3115         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
3116         dl_hwcap to ifunc resolver.
3117         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
3118
3119 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
3120
3121         [BZ #14153]
3122         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
3123         for |x| <= 2**-26, not 2**-57.
3124         * math/libm-test.inc (acos_test): Do not allow spurious underflow
3125         exception.
3126
3127 2012-05-24  Jeff Law  <law@redhat.com>
3128
3129         * stdio-common/Makefile (tests): Add bug25.
3130         * stdio-common/bug25.c: New test.
3131
3132 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
3133
3134         [BZ #13576]
3135         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
3136         multiple of MALLOC_ALIGNMENT in size.
3137         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
3138
3139 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
3140
3141         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
3142         Require >= 256.
3143         (FILENAME_MAX): Use macro-int-constant.
3144         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
3145         (_IOFBF): Use macro-int-constant.
3146         (_IOLBF): Likewise.
3147         (_IONBF): Likewise.
3148         (SEEK_CUR): Likewise.
3149         (SEEK_END): Likewise.
3150         (SEEK_SET): Likewise.
3151         (TMP_MAX): Likewise.
3152         (EOF): Use macro-int-constant.  Require < 0.
3153         (NULL): Use macro-constant.  Require == 0.
3154         (stdin): Require type to be FILE *.
3155         (stdout): Likewise.
3156         (stderr): Likewise.
3157         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
3158         macro-int-constant.
3159         (EXIT_SUCCESS): Likewise.
3160         (NULL): Use macro-constant.  Require == 0.
3161         (RAND_MAX): Use macro-int-constant.
3162         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
3163         [C99-based standards] (strtof): Require function.
3164         [C99-based standards] (strtold): Likewise.
3165         [C99-based standards] (strtoll): Likewise.
3166         [C99-based standards] (strtoull): Likewise.
3167         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
3168         [ISO || ISO99 || ISO11] (limits.h): Likewise.
3169         [ISO || ISO99 || ISO11] (math.h): Likewise.
3170         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
3171         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
3172         [ISO || ISO99 || ISO11] (*_t): Do not allow.
3173
3174 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
3175
3176         [BZ #14132]
3177         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
3178         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
3179         * intl/dgettext.c (DCGETTEXT): Likewise.
3180         * intl/gettext.c (DCGETTEXT): Likewise.
3181         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
3182         * posix/regex_internal.h (gettext): Likewise.
3183         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
3184         Remove declaration.
3185         * include/argz.h (__argz_count_internal)
3186         (__argz_stringify_internal): Remove declaration.
3187         (__argz_count, __argz_stringify): Declare hidden proto.
3188         * intl/dcgettext.c: Remove use of INTDEF.
3189         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
3190         * string/argz-stringify.c: Likewise.
3191         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
3192         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
3193         Declare hidden proto.
3194         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
3195         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
3196         Declare hidden proto.
3197         * include/stdio.h (__asprintf_internal): Don't declare.
3198         (__asprintf): Don't define as macro.  Declare hidden proto.
3199         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
3200         (__fsetlocking): Declare hidden proto.
3201         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
3202         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
3203         hidden proto.
3204         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
3205         (_IO_setlinebuf): Remove use of INTUSE.
3206         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
3207         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
3208         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
3209         Remove declaration.
3210         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
3211         (_IO_do_flush): Remove use of INTUSE.
3212         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
3213         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
3214         (_IO_adjust_column, _IO_least_wmarker)
3215         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
3216         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
3217         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
3218         (_IO_default_doallocate, _IO_wdefault_doallocate)
3219         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
3220         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
3221         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
3222         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
3223         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
3224         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
3225         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
3226         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
3227         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
3228         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
3229         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
3230         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
3231         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
3232         proto.
3233         (_IO_flush_all_internal, _IO_adjust_column_internal)
3234         (_IO_default_uflow_internal, _IO_default_finish_internal)
3235         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
3236         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
3237         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
3238         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
3239         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
3240         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
3241         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
3242         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
3243         (_IO_file_close_internal, _IO_file_close_it_internal)
3244         (_IO_file_underflow_internal, _IO_file_overflow_internal)
3245         (_IO_file_init_internal, _IO_file_attach_internal)
3246         (_IO_file_fopen_internal, _IO_file_read_internal)
3247         (_IO_file_sync_internal, _IO_file_seek_internal)
3248         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
3249         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
3250         (_IO_str_underflow_internal, _IO_str_overflow_internal)
3251         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
3252         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
3253         (_IO_list_all_internal, _IO_link_in_internal)
3254         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
3255         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
3256         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
3257         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
3258         (_IO_do_write_internal, _IO_padn_internal)
3259         (_IO_getline_info_internal, _IO_getline_internal)
3260         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
3261         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
3262         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
3263         (_IO_vfscanf_internal, _IO_vfprintf_internal)
3264         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
3265         (_IO_init_internal, _IO_un_link_internal): Don't declare.
3266         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
3267         with libc_hidden_ver, remove use of INTUSE.
3268         * libio/genops.c: Likewise.
3269         * libio/freopen.c: Likewise.
3270         * libio/freopen64.c: Likewise.
3271         * libio/iofclose.c: Likewise.
3272         * libio/iofdopen.c: Likewise.
3273         * libio/iofflush.c: Likewise.
3274         * libio/iofflush_u.c: Likewise.
3275         * libio/iofgets.c: Likewise.
3276         * libio/iofgets_u.c: Likewise.
3277         * libio/iofopen.c: Likewise.
3278         * libio/iofopncook.c: Likewise.
3279         * libio/iofread.c: Likewise.
3280         * libio/iofread_u.c: Likewise.
3281         * libio/ioftell.c: Likewise.
3282         * libio/iofwrite.c: Likewise.
3283         * libio/iogetline.c: Likewise.
3284         * libio/iogets.c: Likewise.
3285         * libio/iogetwline.c: Likewise.
3286         * libio/iopadn.c: Likewise.
3287         * libio/iopopen.c: Likewise.
3288         * libio/ioseekoff.c: Likewise.
3289         * libio/ioseekpos.c: Likewise.
3290         * libio/iosetbuffer.c: Likewise.
3291         * libio/iosetvbuf.c: Likewise.
3292         * libio/ioungetc.c: Likewise.
3293         * libio/ioungetwc.c: Likewise.
3294         * libio/iovdprintf.c: Likewise.
3295         * libio/iovsprintf.c: Likewise.
3296         * libio/iovsscanf.c: Likewise.
3297         * libio/memstream.c: Likewise.
3298         * libio/obprintf.c: Likewise.
3299         * libio/oldfileops.c: Likewise.
3300         * libio/oldiofclose.c: Likewise.
3301         * libio/oldiofdopen.c: Likewise.
3302         * libio/oldiofopen.c: Likewise.
3303         * libio/oldiopopen.c: Likewise.
3304         * libio/oldstdfiles.c: Likewise.
3305         * libio/putc.c: Likewise.
3306         * libio/setbuf.c: Likewise.
3307         * libio/setlinebuf.c: Likewise.
3308         * libio/stdfiles.c: Likewise.
3309         * libio/strops.c: Likewise.
3310         * libio/vasprintf.c: Likewise.
3311         * libio/vscanf.c: Likewise.
3312         * libio/vsnprintf.c: Likewise.
3313         * libio/vswprintf.c: Likewise.
3314         * libio/wfiledoalloc.c: Likewise.
3315         * libio/wfileops.c: Likewise.
3316         * libio/wgenops.c: Likewise.
3317         * libio/wmemstream.c: Likewise.
3318         * libio/wstrops.c: Likewise.
3319         * libio/__fpurge.c: Likewise.
3320         * libio/__fsetlocking.c: Likewise.
3321         * assert/assert.c: Likewise.
3322         * debug/fgets_chk.c: Likewise.
3323         * debug/fgets_u_chk.c: Likewise.
3324         * debug/fread_chk.c: Likewise.
3325         * debug/fread_u_chk.c: Likewise.
3326         * debug/gets_chk.c: Likewise.
3327         * debug/obprintf_chk.c: Likewise.
3328         * debug/vasprintf_chk.c: Likewise.
3329         * debug/vdprintf_chk.c: Likewise.
3330         * debug/vsnprintf_chk.c: Likewise.
3331         * debug/vsprintf_chk.c: Likewise.
3332         * malloc/mtrace.c: Likewise.
3333         * misc/error.c: Likewise.
3334         * misc/syslog.c: Likewise.
3335         * stdio-common/asprintf.c: Likewise.
3336         * stdio-common/fxprintf.c: Likewise.
3337         * stdio-common/getw.c: Likewise.
3338         * stdio-common/isoc99_fscanf.c: Likewise.
3339         * stdio-common/isoc99_scanf.c: Likewise.
3340         * stdio-common/isoc99_vfscanf.c: Likewise.
3341         * stdio-common/isoc99_vscanf.c: Likewise.
3342         * stdio-common/isoc99_vsscanf.c: Likewise.
3343         * stdio-common/printf-prs.c: Likewise.
3344         * stdio-common/printf_fp.c: Likewise.
3345         * stdio-common/printf_fphex.c: Likewise.
3346         * stdio-common/printf_size.c: Likewise.
3347         * stdio-common/putw.c: Likewise.
3348         * stdio-common/scanf.c: Likewise.
3349         * stdio-common/sprintf.c: Likewise.
3350         * stdio-common/tmpfile.c: Likewise.
3351         * stdio-common/vfprintf.c: Likewise.
3352         * stdio-common/vfscanf.c: Likewise.
3353         * stdlib/strfmon_l.c: Likewise.
3354         * sunrpc/openchild.c: Likewise.
3355         * sunrpc/xdr_stdio.c: Likewise.
3356         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
3357         * sysdeps/mach/hurd/tmpfile.c: Likewise.
3358
3359 2012-05-24  Roland McGrath  <roland@hack.frob.com>
3360
3361         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
3362
3363         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
3364         in the third column, to generate for the shared library an IFUNC
3365         that uses _dl_vdso_vsym.
3366         * Makerules (COMPILE.c, compile-stdin.c): New variables.
3367         * Makeconfig (object-suffixes-noshared): New variable.
3368
3369         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
3370         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
3371         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
3372         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
3373
3374         [BZ #14132]
3375         * include/sys/time.h (__gettimeofday): Remove macro.
3376         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
3377         * time/gettimeofday.c (__gettimeofday): Remove #undef.
3378         Remove INTDEF.
3379         (__gettimeofday): Add libc_hidden_def.
3380         (gettimeofday): Add libc_hidden_weak.
3381         * sysdeps/mach/gettimeofday.c: Likewise.
3382         * sysdeps/posix/gettimeofday.c: Likewise.
3383         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
3384         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
3385         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
3386         (__gettimeofday_internal): Remove strong_alias.
3387         (__gettimeofday): Add libc_hidden_def.
3388         (gettimeofday): Add libc_hidden_weak.
3389         * sysdeps/unix/syscalls.list (gettimeofday):
3390         Remove __gettimeofday_internal alias.
3391
3392 2012-05-24  Daniel Jacobowitz  <drow@false.org>
3393             H.J. Lu  <hongjiu.lu@intel.com>
3394
3395         [BZ #12495]
3396         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
3397         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
3398         (largebin_index_32_big): New.
3399         (largebin_index): Use it for 16-byte alignment.
3400         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
3401         correction with front_misalign.
3402
3403 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
3404
3405         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
3406         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
3407         Likewise.
3408         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
3409         Likewise.
3410         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
3411         Likewise.
3412         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
3413         Likewise.
3414         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
3415         Likewise.
3416         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
3417         Likewise.
3418         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
3419         Likewise.
3420         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
3421         Likewise.
3422         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
3423         Likewise.
3424         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
3425         Likewise.
3426         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
3427         Likewise.
3428         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
3429         Likewise.
3430
3431         * scripts/data/c++-types-x32-linux-gnu.data: New file.
3432         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
3433
3434 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
3435
3436         [BZ #10846]
3437         [BZ #14036]
3438         * math/libm-test.inc (exp_test): Add test from bug 14036.
3439         (pow_test): Add test from bug 10846.
3440
3441         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
3442         and other flags.
3443         (special_function): Do not include flags in test name.
3444         (parse_args): Likewise.
3445         * sysdeps/i386/fpu/libm-test-ulps: Update.
3446         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
3447         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
3448         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
3449         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3450
3451         * math/gen-libm-test.pl (%beautify): Add entries for underflow
3452         exceptions.
3453         * math/libm-test.inc ("Philosophy"): Update comment about
3454         exception testing.
3455         (UNDERFLOW_EXCEPTION): New macro.
3456         (UNDERFLOW_EXCEPTION_OK): Likewise.
3457         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
3458         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
3459         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
3460         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
3461         (INVALID_EXCEPTION_OK): Update value.
3462         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
3463         (OVERFLOW_EXCEPTION_OK): Likewise.
3464         (IGNORE_ZERO_INF_SIGN): Likewise.
3465         (test_exceptions): Handle underflow exceptions.
3466         (acos_test): Update for underflow exception expectations.
3467         (cexp_test): Likewise.
3468         (clog_test): Likewise.
3469         (clog10_test): Likewise.
3470         (csqrt_test): Likewise.
3471         (ctan_test): Likewise.
3472         (ctanh_test): Likewise.
3473         (exp_test): Likewise.
3474         (exp10_test): Likewise.
3475         (exp2_test): Likewise.
3476         (expm1_test): Likewise.
3477         (fma_test): Likewise.
3478         (j0_test): Likewise.
3479         (jn_test): Likewise.
3480         (nexttoward_test): Likewise.
3481         (pow_test): Likewise.
3482         (scalbn_test): Likewise.
3483         (scalbln_test): Likewise.
3484         (tan_test): Likewise.
3485         (y1_test): Likewise.
3486         * sysdeps/i386/fpu/libm-test-ulps: Update.
3487         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3488
3489 2012-05-23  David S. Miller  <davem@davemloft.net>
3490
3491         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
3492         (__libc_sigaction): Remove unused local variables.
3493
3494 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
3495
3496         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
3497
3498 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
3499
3500         mktime: avoid signed integer overflow
3501         * time/mktime.c (__mktime_internal): Do not mishandle the case
3502         where diff == INT_MIN.
3503
3504         mktime: simplify computation of average
3505         * time/mktime.c (ranged_convert): Use new time_t_avg function
3506         instead of rolling our own (probably-slower) code.
3507
3508         mktime: do not assume signed right shift propagates sign bit
3509         * time/mktime.c (isdst_differ): New static function.
3510         (__mktime_internal): No need to normalize tm_isdst now.
3511         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
3512         tm_isdst values.
3513
3514         mktime: merge another wrapv change from gnulib
3515         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
3516         from some compilers.
3517
3518         mktime: remove incorrect attempt at unusual arithmetics
3519         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
3520         The code didn't really work on such machines anyway.
3521         (TYPE_MINIMUM): Assume two's complement.
3522         (twos_complement_arithmetic): Verify that long_int and time_t
3523         are two's complement (or unsigned, in the latter case).
3524
3525         mktime: check signed shifts on long_int and time_t, too
3526         * time/mktime.c (SHR): Check that shifts work as desired
3527         on the types long_int and time_t too, as SHR is used on
3528         such types.
3529
3530         mktime: do not assume 'long' is wide enough
3531         * time/mktime.c (verify): Move decl up.
3532         (long_int): New type.
3533         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
3534         to remove assumption in the code that 'long' is wide enough to
3535         store year values.  This assumption is not true on x32 and on
3536         some non-glibc platforms.
3537
3538         mktime: merge wrapv change from gnulib
3539         * time/mktime.c (WRAPV): New macro.
3540         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
3541         (guess_time_tm, __mktime_internal): Do not assume that signed
3542         integer overflow wraps around; modern compilers generate code
3543         where this assumption is no longer valid.
3544
3545 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
3546
3547         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
3548         Replace "jmp L(pseudo_end)" with "ret".
3549         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
3550         Likewise.
3551
3552 2012-05-23  Andreas Jaeger  <aj@suse.de>
3553
3554         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
3555         * sysdeps/unix/sysv/linux/poll.c: Remove file.
3556
3557 2012-05-23  Andreas Jaeger  <aj@suse.de>
3558             Maximilian Attems  <max@stro.at>
3559
3560         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
3561         New macros.
3562
3563 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
3564
3565         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
3566         code so that pseudo_end is just ret and the stack pointer is
3567         correct also for static library in error case.
3568
3569 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
3570
3571         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
3572         move to syscalls.list.
3573         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
3574         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
3575         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
3576         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
3577
3578         * manual/install.texi (Running make install): Do not mention Linux
3579         kernel version for which pt_chown is not needed.
3580         (Linux): Do not mention problems with nscd with 2.0 kernels.
3581         * INSTALL: Regenerated.
3582
3583 2012-05-23  Andreas Jaeger  <aj@suse.de>
3584
3585         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
3586         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
3587         macro.
3588         * sysdeps/unix/sysv/linux/s390/bits/mman.h
3589         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
3590         * sysdeps/unix/sysv/linux/sh/bits/mman.h
3591         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
3592         * sysdeps/unix/sysv/linux/i386/bits/mman.h
3593         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
3594         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
3595         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
3596         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
3597         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
3598         * sysdeps/unix/sysv/linux/bits/in.h
3599         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
3600
3601 2012-05-22  Roland McGrath  <roland@hack.frob.com>
3602
3603         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
3604         (PREPARE_VERSION): Just use assert instead, it will be elided
3605         under [NDEBUG] anyway.
3606
3607 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
3608
3609         * sysdeps/unix/sysv/linux/Makefile: Include
3610         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
3611         (sysdep_routines): Remove sysctl.
3612         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
3613         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
3614         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
3615         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
3616         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
3617
3618 2012-05-22  Andreas Jaeger  <aj@suse.de>
3619
3620         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
3621         that pseudo_end is just ret and the stack pointer is correct also
3622         for static library in error case.
3623
3624 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
3625
3626         [BZ #14122]
3627         * nss/nsswitch.c (defconfig_entries): New variable.
3628         (__nss_database_lookup): Don't leak defconfig entries.
3629         (nss_parse_service_list): Don't leak on error paths.
3630         (free_database_entries): New function.
3631         (free_defconfig): New function.
3632         (free_mem): Move common code to free_database_entries.
3633
3634 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
3635
3636         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
3637         Add arch_prctl.
3638         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
3639
3640         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
3641         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
3642         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
3643         New macro.
3644         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
3645         (INTERNAL_SYSCALL_TYPES): Likewise.
3646         (LOAD_ARGS_TYPES_[1-6]): Likewise.
3647         (LOAD_REGS_TYPES_[1-6]): Likewise.
3648         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
3649         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
3650
3651 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3652
3653         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
3654         copysignl for GLIBC_2_0.
3655         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
3656         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
3657         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
3658         logbl for GLIBC_2_0.
3659         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
3660         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
3661
3662 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
3663
3664         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
3665         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
3666
3667         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
3668         Use "neg %eax".
3669
3670         * time/mktime.c: Update copyright years.
3671
3672 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
3673
3674         mktime: merge comment-quoting-style change from gnulib
3675         * time/mktime.c: Quote 'like this' in comments.
3676         The GNU coding standards suggest that we no longer quote `like this',
3677         as "`" and "'" are typically rendered asymmetrically nowadays.
3678         The typical gnulib style is to quote 'like this' when quoting
3679         code, and "like this" when quoting English.
3680
3681         * time/mktime.c (compile-command): Add "-I.".
3682
3683         mktime: merge mktime-internal.h change from gnulib
3684         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
3685
3686         mktime: merge time_r change from gnulib
3687         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
3688
3689         mktime: merge DEBUG change from gnulib
3690         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
3691         case system <time.h> has a #define.
3692
3693         mktime: merge <sys/types.h> change from gnulib
3694         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
3695         since <time.t> is now guaranteed to define time_t.
3696
3697         mktime: merge HAVE_CONFIG_H change from gnulib
3698         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
3699
3700 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
3701
3702         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
3703         Use "neg %eax".
3704
3705         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
3706         __rlim_t cast.
3707         (struct rusage): Use anonymous union to pad each field to
3708         __syscall_slong_t.
3709
3710 2012-05-21  David S. Miller  <davem@davemloft.net>
3711
3712         * Makefules (o-iterator): Remove .s cases.
3713         (compile-command.s): Delete.
3714         (COMPILE.s): Delete.
3715         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
3716
3717 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
3718
3719         * configure.in (libc_cv_predef_stack_protector): Only consider
3720         "foobar" and "__stack_chk_fail" lines in libc_undefs.
3721         * configure: Regenerated.
3722
3723 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
3724
3725         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
3726         New macro.  Use R*LP on int and pointer.
3727         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
3728         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
3729         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
3730         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
3731
3732         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
3733         [__WORDSIZE_TIME64_COMPAT32] instead of
3734         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
3735         (struct utmp): Likewise.
3736         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
3737         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
3738         Renamed to ...
3739         (__WORDSIZE_TIME64_COMPAT32): This.
3740         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
3741         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
3742         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
3743         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
3744         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
3745         (__WORDSIZE_TIME64_COMPAT32): New macro.
3746
3747 2012-05-21  Andreas Jaeger  <aj@suse.de>
3748
3749         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
3750         only if [SHARED]. Add prototype for __wcschr_ia32.
3751
3752 2012-05-21  Roland McGrath  <roland@hack.frob.com>
3753
3754         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
3755         of %rbp unmolested in the jmp_buf while mangling the low bits.
3756         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
3757         unmolested high bits of %rbp while demangling the low bits.
3758         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
3759
3760 2012-05-21  Andreas Jaeger  <aj@suse.de>
3761
3762         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
3763         * sunrpc/svc_simple.c: Use it for registerrpc.
3764         * sunrpc/xcrypt.c: Use it for passwd2des.
3765
3766         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
3767
3768 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
3769
3770         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
3771         Don't define if [__SYSCALL_WORDSIZE != 32].
3772         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
3773         New macro.
3774
3775 2012-05-21  Bruno Haible  <bruno@clisp.org>
3776             Andreas Jaeger  <aj@suse.de>
3777
3778         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
3779         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
3780         inptr and inend for must_buffer_ch.
3781         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
3782         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
3783         * stdio-common/Makefile (tests): Remove bug15.
3784         (bug15-ENV): Remove macro.
3785         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
3786         anymore.
3787
3788 2012-05-19  Andreas Jaeger  <aj@suse.de>
3789             Roland McGrath  <roland@hack.frob.com>
3790
3791         * manual/contrib.texi: Completely rewritten. It contains now an
3792         alphabetical list of contributors and their contributions.
3793
3794 2012-05-21  Richard Henderson  <rth@twiddle.net>
3795
3796         * misc/getauxval.c (__getauxval): Use unsigned long int.
3797         * misc/sys/auxv.h: Include <sys/cdefs.h>.
3798         (getauxval): Use unsigned long int.
3799
3800 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
3801
3802         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
3803
3804 2012-05-21  Roland McGrath  <roland@hack.frob.com>
3805
3806         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
3807         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
3808         __alignof__ (long double).
3809
3810 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3811
3812         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3813
3814 2012-05-20  Richard Henderson  <rth@twiddle.net>
3815
3816         * misc/getauxval.c: New file.
3817         * misc/sys/auxv.h: New file.
3818         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
3819         (routines): Add getauxval.
3820         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
3821         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
3822         * elf/dl-sysdep.c (_dl_auxv): Remove.
3823         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
3824         * elf/dl-support.c (_dl_auxv): New variable.
3825         (_dl_aux_init): Initialize it.
3826         * manual/startup.texi (Auxiliary Vector): New node.
3827         * sysdeps/generic/bits/hwcap.h: New file.
3828         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
3829         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
3830         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
3831         * sysdeps/sparc/sysdep.h: ... here.  Include it.
3832         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
3833         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
3834         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
3835         Update.
3836         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
3837         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
3838         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
3839         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
3840         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
3841         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
3842         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
3843         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
3844
3845 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3846
3847         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3848
3849 2012-05-19  David S. Miller  <davem@davemloft.net>
3850
3851         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3852
3853 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
3854
3855         [BZ #14123]
3856         * math/s_ccosh.c: Include <float.h>
3857         (__ccosh): Avoid internal overflow calculating sinh and cosh
3858         values before multiplying by sin and cos values.
3859         * math/s_ccoshf.c: Likewise.
3860         * math/s_ccoshl.c: Likewise.
3861         * math/s_csin.c: Likewise.
3862         * math/s_csinf.c: Likewise.
3863         * math/s_csinl.c: Likewise.
3864         * math/s_csinh.c: Likewise.
3865         * math/s_csinhf.c: Likewise.
3866         * math/s_csinhl.c: Likewise.
3867         * math/libm-test.inc (ccos_test): Add more tests.
3868         (ccosh_test): Likewise.
3869         (csin_test): Likewise.
3870         (csinh_test): Likewise.
3871         * sysdeps/i386/fpu/libm-test-ulps: Update.
3872         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3873
3874 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
3875
3876         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
3877         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
3878
3879         * sysdeps/x86_64/x32/_itoa.h: Add comment.
3880
3881 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
3882
3883         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
3884         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
3885         * sysdeps/powerpc/soft-fp/Versions: Likewise.
3886         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
3887         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
3888         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
3889         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
3890         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
3891         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
3892         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
3893         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
3894         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
3895         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
3896         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
3897         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
3898         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
3899         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
3900         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
3901         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
3902         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
3903         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
3904         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
3905         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
3906         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
3907         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
3908         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
3909         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
3910         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
3911         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
3912         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
3913         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
3914
3915 2012-05-18  Andreas Jaeger  <aj@suse.de>
3916
3917         * csu/.gitignore: Delete.
3918
3919 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
3920
3921         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
3922         (timex): Use __syscall_slong_t.
3923
3924 2012-05-18  Andreas Jaeger  <aj@suse.de>
3925             Carlos O'Donell  <carlos_odonell@mentor.com>
3926
3927         * manual/install.texi (Configuring and compiling): Update
3928         description about files modified in the source directory.
3929         * INSTALL: Regenerated.
3930
3931 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
3932
3933         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
3934         value.  Use "or" to set return value to -1.
3935         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
3936         negate return value.
3937
3938 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3939
3940         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
3941         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
3942         failure if the compiler has Graphite support disabled.
3943         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
3944         Likewise.
3945         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
3946         CFLAGS-memmove.c): Likewise.
3947         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
3948         Likewise.
3949
3950 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
3951
3952         * sysdeps/x86_64/x32/_itoa.h: New file.
3953
3954         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
3955         getdents system call only if kernel and user dirents have the
3956         same d_ino and d_off.
3957
3958         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
3959         LLONG_MAX != LONG_MAX.
3960         (_itoa_word): Use _ITOA_WORD_TYPE on value.
3961         (_fitoa_word): Likewise.
3962
3963         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
3964         years.
3965         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
3966         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
3967         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
3968
3969         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
3970         include <bits/wordsize.h>.  Check __x86_64__ instead of
3971         __WORDSIZE.
3972         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
3973         if __x86_64__ is defined.  Use anonymous union on fpstate.
3974
3975         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
3976         anonymous union.
3977
3978 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
3979
3980         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
3981         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
3982         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
3983         Refer to _rtld_local_ro instead of _rtld_global_ro.
3984         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
3985         Likewise.
3986         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
3987         Likewise.
3988         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
3989         Likewise.
3990         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
3991         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
3992         of _rtld_global, and rtld_progname instead of _dl_argv[0].
3993
3994         * sysdeps/powerpc/powerpc32/dl-machine.c
3995         (__elf_machine_runtime_setup) [PROF]: Don't reference
3996         _dl_prof_resolve.
3997
3998 2012-05-18  Andreas Jaeger  <aj@suse.de>
3999
4000         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
4001         function only available for GCCs before 3.4 since GCC 3.4
4002         introduced a builtin.
4003         (lrint): Likewise.
4004         (llrintf): Likewise.
4005         (llrint): Likewise.
4006         (fmaxf): Likewise.
4007         (fmax): Likewise.
4008         (fminf): Likewise.
4009         (fmin): Likewise.
4010         (rint): Likewise.
4011         (rintf): Likewise.
4012         (nearbyint): Likewise.
4013         (nearbyintf): Likewise.
4014         (ceil): Likewise.
4015         (ceilf): Likewise.
4016         (floor): Likewise.
4017         (floorf): Likewise.
4018
4019 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
4020
4021         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
4022         on both fields and cast pointer to __syscall_ulong_t.
4023
4024         * bits/types.h (__fsword_t): New type.
4025         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
4026         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
4027         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
4028         (__FSWORD_T_TYPE): Likewise.
4029         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
4030         (__FSWORD_T_TYPE): Likewise.
4031         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
4032         (__FSWORD_T_TYPE): Likewise.
4033         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
4034         (__FSWORD_T_TYPE): Likewise.
4035         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
4036         __SWORD_TYPE with __fsword_t.
4037         (statfs64): Likewise.
4038
4039 2012-05-17  David S. Miller  <davem@davemloft.net>
4040
4041         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
4042
4043 2012-05-17  Andreas Jaeger  <aj@suse.de>
4044
4045         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
4046         warning.
4047
4048 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
4049
4050         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
4051
4052 2012-05-17  Andreas Jaeger  <aj@suse.de>
4053
4054         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
4055         when it is used.
4056
4057 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
4058
4059         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
4060
4061 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
4062
4063         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
4064         * sysdeps/x86_64/tst-mallocalign1.c: New file.
4065
4066 2012-05-17  Andreas Jaeger  <aj@suse.de>
4067             Carlos O'Donell  <carlos_odonell@mentor.com>
4068
4069         [BZ #14059]
4070         * sysdeps/x86_64/multiarch/init-arch.h
4071         (bit_YMM_Usable): Rename to...
4072         (bit_AVX_Usable): ... this.
4073         (bit_FMA4_Usable): New macro.
4074         (bit_XMM_state): New macro.
4075         (bit_YMM_state): New macro.
4076         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
4077         [__ASSEMBLER__] (index_AVX_Usable): ... this.
4078         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
4079         (CPUID_OSXSAVE): New macro.
4080         (CPUID_AVX): New macro.
4081         (CPUID_FMA4): New macro.
4082         (index_YMM_Usable): Rename to...
4083         (index_AVX_Usable): ... this.
4084         (HAS_AVX): Use HAS_ARCH_FEATURE.
4085         (HAS_FMA4): Likewise.
4086         (HAS_YMM_USABLE): Remove.
4087         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
4088         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
4089         are present.
4090         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
4091         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
4092         * sysdeps/x86_64/multiarch/Makefile: Likewise.
4093         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
4094         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
4095
4096 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
4097
4098         * math/libm-test.c: Support platforms without multiple rounding modes.
4099         * math/bug-nextafter.c: Support platforms without FP exceptions.
4100         * math/bug-nexttoward.c: Likewise.
4101         * math/test-fenv.c: Likewise.
4102         * math/test-misc.c: Likewise.
4103         * stdlib/bug-getcontext.c: Likewise.
4104
4105 2012-05-17  Andreas Jaeger  <aj@suse.de>
4106
4107         * manual/examples/search.c (critter_cmp): Change signature to
4108         avoid warnings.
4109         * manual/string.texi (Collation Functions): Likewise.
4110
4111 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
4112
4113         * bits/types.h: Fold copyright years.
4114         * bits/typesizes.h: Likewise.
4115         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
4116         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
4117         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
4118         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
4119         * time/time.h: Likewise.
4120
4121 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
4122
4123         [BZ #208]
4124         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
4125         in instead of returning them.  Return void.
4126         (__libc_mallinfo): Accumulate over all arenas.
4127         (__malloc_stats): Adjust for change in int_mallinfo interface.
4128
4129 2012-05-16  Roland McGrath  <roland@hack.frob.com>
4130
4131         [BZ #10375]
4132         * configure.in (NM): Add AC_CHECK_TOOL for it.
4133         (libc_extra_cflags): New substituted variable.
4134         Check for -fstack-protector being used implicitly.
4135         * configure: Regenerated.
4136         * config.make.in (config-extra-cflags): New variable,
4137         gets @libc_extra_cflags@.
4138         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
4139
4140         [BZ #10375]
4141         * configure.in: Check for _FORTIFY_SOURCE being predefined.
4142         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
4143         * configure: Regenerated.
4144         * config.make.in (CPPUNDEFS): New substituted variable.
4145         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
4146         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
4147         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
4148
4149 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
4150
4151         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
4152         (mq_attr): Use __syscall_slong_t.
4153
4154 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
4155
4156         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
4157         Check __x86_64__ instead of __WORDSIZE.
4158         (_STAT_VER_LINUX): Likewise.
4159         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
4160         __syscall_ulong_t and __syscall_slong_t.
4161         (stat64): Likewise.
4162
4163 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
4164
4165         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
4166
4167 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
4168
4169         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
4170
4171 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
4172
4173         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
4174         __syscall_ulong_t.
4175
4176         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
4177         include <bits/wordsize.h>.  Check __x86_64__ instead of
4178         __WORDSIZE.
4179         (greg_t): Use "__extension__ long long int" if __x86_64__ is
4180         defined.
4181         (mcontext_t): Replace "unsigned long" with "unsigned long long".
4182
4183         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
4184         include <bits/wordsize.h>.  Check __x86_64__ instead of
4185         __WORDSIZE.
4186         (user_regs_struct): Use "__extension__ unsigned long long"
4187         instead of "unsigned long" if __x86_64__ is defined.
4188         (user): Likewise.  Pad after pointer field if __ILP32__ is
4189         defined.
4190
4191 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
4192
4193         * configure.in (makeinfo): Require version 4.5 or later.  Allow
4194         versions 5 to 9.
4195         * configure: Regenerated.
4196         * manual/install.texi (texinfo): Increase version requirement to
4197         4.5 or later.
4198         * INSTALL: Regenerated.
4199
4200         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
4201
4202 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
4203
4204         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
4205
4206         * sysdeps/x86_64/x32/ffs.c: New file.
4207
4208         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
4209         __syscall_ulong_t.
4210         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
4211         defined.  Use __syscall_ulong_t.
4212         (shminfo): Use __syscall_ulong_t.
4213         (shm_info): Likewise.
4214
4215         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
4216         __syscall_ulong_t.
4217
4218         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
4219         <bits/wordsize.h>.
4220         (msgqnum_t): Use __syscall_ulong_t.
4221         (msglen_t): Likewise.
4222         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
4223         __syscall_ulong_t.
4224
4225         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
4226         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
4227
4228         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
4229
4230         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
4231         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
4232
4233         * sysvipc/sys/msg.h (msgbuf): Replace long int with
4234         __syscall_slong_t.
4235
4236         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
4237         include <bits/wordsize.h>.  Check __x86_64__ instead of
4238         __WORDSIZE.
4239
4240         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
4241         "unsigned long long int" if __x86_64__ is defined.
4242         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
4243
4244         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
4245         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
4246         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
4247
4248         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
4249         <stdint.h>.
4250         (GET_PC): Cast to uintptr_t first.
4251         (GET_FRAME): Likewise.
4252         (GET_STACK): Likewise.
4253
4254         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
4255         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
4256         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
4257         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
4258         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
4259         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
4260         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
4261         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
4262         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
4263         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
4264         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
4265         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
4266         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
4267         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
4268         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
4269         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
4270         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
4271         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
4272         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
4273         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
4274         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
4275         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
4276         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
4277         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
4278         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
4279         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
4280         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
4281         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
4282         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
4283
4284 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
4285
4286         * Makerules (+depfiles): Also collect depfiles from .oS in
4287         $(extra-objs).
4288         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
4289         .oS, $(libnldbl-routines)).
4290
4291         * Makerules (native-compile-mkdep-flags): Define.
4292         * sunrpc/Makefile (extra-objs): Add $(addprefix
4293         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
4294         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
4295         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
4296         calling $(make-target-directory).
4297
4298 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4299
4300         * bits/types.h (__snseconds_t): Removed.
4301         * time/time.h (struct timespec): Replace __snseconds_t with
4302         __syscall_slong_t.
4303         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
4304         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
4305         Likewise.
4306         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
4307         (__SNSECONDS_T_TYPE): Likewise.
4308         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
4309         (__SNSECONDS_T_TYPE): Likewise.
4310         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
4311         (__SNSECONDS_T_TYPE): Likewise.
4312
4313 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4314
4315         * sysdeps/mach/hurd/bits/typesizes.h
4316         (__SYSCALL_SLONG_TYPE): New macro.
4317         (__SYSCALL_ULONG_TYPE): Likewise.
4318
4319 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4320
4321         * bits/types.h (__syscall_slong_t): New type.
4322         (__syscall_ulong_t): Likewise.
4323
4324         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
4325         (__SYSCALL_ULONG_TYPE): Likewise.
4326         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
4327         (__SYSCALL_SLONG_TYPE): Likewise.
4328         (__SYSCALL_ULONG_TYPE): Likewise.
4329         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
4330         (__SYSCALL_SLONG_TYPE): Likewise.
4331         (__SYSCALL_ULONG_TYPE): Likewise.
4332         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
4333         (__SYSCALL_SLONG_TYPE): Likewise.
4334         (__SYSCALL_ULONG_TYPE): Likewise.
4335
4336 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4337
4338         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
4339         Add sigaltstack-offsets.sym.
4340         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
4341         <sigaltstack-offsets.h>.
4342         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
4343         longjmp_msg pointer.
4344         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
4345         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
4346         signal stack.
4347         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
4348
4349 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
4350
4351         * elf/stackguard-macros.h: Remove file.
4352         * sysdeps/generic/stackguard-macros.h: New file.
4353         * sysdeps/i386/stackguard-macros.h: Likewise.
4354         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
4355         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
4356         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
4357         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
4358         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
4359         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
4360         * sysdeps/x86_64/stackguard-macros.h: Likewise.
4361         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
4362         <elf/stackguard-macros.h>.
4363
4364         [BZ #14109]
4365         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
4366         __aligned__ in attribute.
4367         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
4368         (gregset_t): Likewise.
4369
4370 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4371
4372         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
4373         * sysdeps/x86_64/64/Implies-after: Here.  New file.
4374         * sysdeps/x86_64/x32/Implies-after: New file.
4375
4376 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4377
4378         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
4379         and access return value for _dl_profile_fixup.  Use R10_LP to
4380         load frame size.
4381
4382 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4383
4384         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
4385
4386 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4387
4388         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
4389         * sysdeps/x86_64/x32/sysdep.h: New file.
4390
4391 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4392
4393         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
4394         * sysdeps/x86_64/setjmp.S: Likewise.
4395
4396 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4397
4398         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
4399         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
4400         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
4401         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
4402         remove unused global constant.
4403
4404 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
4405
4406         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
4407         include of <not-cancel.h>.
4408
4409 2012-05-15  Roland McGrath  <roland@hack.frob.com>
4410
4411         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
4412
4413 2012-05-15  Jeff Law  <law@redhat.com>
4414             Andreas Jaeger  <aj@suse.de>
4415
4416         [BZ #13594]
4417         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
4418         out from...
4419         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
4420         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
4421         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
4422         code changing __hst_map_handle.map.
4423
4424 2012-05-15  Roland McGrath  <roland@hack.frob.com>
4425
4426         * configure.in (sysnames): Look for Implies-before and Implies-after
4427         files.
4428         * configure: Regenerated.
4429
4430 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4431
4432         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
4433         8-byte data alignment with LP_SIZE alignment.
4434
4435 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4436
4437         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
4438         into R10_LP.
4439
4440 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4441
4442         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
4443
4444 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4445
4446         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
4447         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
4448         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
4449         Likewise.
4450         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
4451
4452 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4453
4454         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
4455         (stackinfo_sub_sp): Likewise.
4456
4457 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4458
4459         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
4460         RAX_LP.
4461
4462 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4463
4464         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
4465         into R*_LP.
4466
4467 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4468
4469         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
4470         sizes into R*_LP.
4471
4472 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4473
4474         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
4475
4476 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4477
4478         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
4479         into R11_LP and load __x86_64_shared_cache_size_half into
4480         R8_LP.
4481
4482 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4483
4484         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
4485         R8_LP.
4486
4487 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4488
4489         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
4490         logb for POWER7.
4491         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
4492         logbf for POWER7.
4493         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
4494         logbl for POWER7.
4495         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
4496         powerpc32/power7/fpu/s_logb.c via #include.
4497         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
4498         powerpc32/power7/fpu/s_logbf.c via #include.
4499         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
4500         powerpc32/power7/fpu/s_logbl.c via #include.
4501
4502 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
4503
4504         * README.libm: Remove file.
4505
4506 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
4507
4508         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
4509         count for x32.  Use R*_LP and omit operand-size suffix.
4510
4511 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
4512
4513         * shlib-versions: Move x86_64-.*-linux.* entries to ...
4514         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
4515         * sysdeps/x86_64/x32/shlib-versions: New file.
4516
4517 2012-05-14  Roland McGrath  <roland@hack.frob.com>
4518
4519         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
4520         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
4521         Use _dl_fatal_printf instead.
4522
4523 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
4524
4525         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
4526         set if not set by the user.  Do not allow for being unset.
4527         * sysdeps/unix/sysv/linux/configure: Regenerated.
4528
4529 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
4530
4531         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
4532         the `q' suffix from lea and replace .quad with ASM_ADDR.
4533
4534 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
4535
4536         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
4537         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
4538         instead of $17.
4539         (PTR_DEMANGLE): Likewise.
4540
4541 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
4542
4543         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
4544         (LP_OP): Likewise.
4545         (ASM_ADDR): Likewise.
4546         (RAX_LP): Likewise.
4547         (RBP_LP): Likewise.
4548         (RBX_LP): Likewise.
4549         (RCX_LP): Likewise.
4550         (RDI_LP): Likewise.
4551         (RSI_LP): Likewise.
4552         (RSP_LP): Likewise.
4553         (R8_LP): Likewise.
4554         (R9_LP): Likewise.
4555         (R10_LP): Likewise.
4556         (R10_LP): Likewise.
4557         (R11_LP): Likewise.
4558         (R12_LP): Likewise.
4559         (R13_LP): Likewise.
4560         (R14_LP): Likewise.
4561         (R15_LP): Likewise.
4562
4563 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
4564
4565         * sysdeps/x86_64/x32/dl-machine.h: New file.
4566
4567 2012-05-14  Andreas Jaeger  <aj@suse.de>
4568
4569         * manual/Makefile (subdir): Remove export of subdir.
4570         (all): Remove target.
4571         (.PHONY): Remove all from list.
4572         (mkinstalldirs): Remove.
4573         (.PHONY): Remove installdirs from list.
4574         ($(inst_infodir)/libc.info): Use make-target-directory.
4575         (installdirs): Remove.
4576         (subdir_%): Remove.
4577         (glibc-targets): Remove.
4578         (lib): Remove.
4579         (stubs): Remove.
4580         ($(objpfx)stubs ../po/manual.pot): Remove.
4581         ($(objpfx)stamp%): Remove.
4582         (make-target-directory): Remove.
4583         (subdir_install): Remove.
4584         (routines): Remove.
4585         (aux): Remove.
4586         (sources): Remove.
4587         (objects): Remove.
4588         (headers): Remove.
4589
4590         [BZ #13750]
4591         * manual/.gitignore: Remove, it's not needed anymore.
4592         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
4593         all files in it.
4594         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
4595         directory.
4596         (texis): Renamed to $(objpfx)texis.
4597         (texis-path): New, contains path to generated files.
4598         (chapters.%): Use texis-path for complete path, add extra argument
4599         libc-texinfo.sh.
4600         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
4601         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
4602         (summary,texi, stamp-summary): Use complete path of
4603         files. Generate files in build dir.
4604         (dir-add.texi): Build in build dir.
4605         (libm-err.texi,stamp-libm-err): Likewise.
4606         (version.texi, stamp-version): Likewise.
4607         (.%c.texi): Likewise.
4608         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
4609         (mostlyclean): Remove target.
4610         (realclean): Remove target.
4611         (generated): Add new variable with contents from mostlyclean and
4612         realclean, remove entries duplicated in common-mostlyclean, add
4613         stamp-libm-err and stamp-version.
4614         (generated-dirs): Add libc directory.
4615         ($(inst_infodir)/libc.info): Install files from build dir.
4616
4617         * manual/install.texi (Configuring and compiling): Adjust since
4618         the info files are not part of the tar ball anymore.
4619
4620 2012-05-14  Andreas Jaeger  <aj@suse.de>
4621
4622         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
4623         variable.
4624
4625 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
4626
4627         [BZ #13717]
4628         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
4629         to 2.2.0 where earlier.
4630         * sysdeps/unix/sysv/linux/configure: Regenerated.
4631         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
4632         Remove conditional code.
4633         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
4634         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
4635         Remove conditional code.
4636         [!__NR_lchown]: Likewise.
4637         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
4638         [__NR_lchown]: Likewise.
4639         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
4640         comment referencing __ASSUME_LCHOWN_SYSCALL.
4641         * sysdeps/unix/sysv/linux/i386/sigaction.c
4642         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
4643         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
4644         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
4645         Remove conditional code.
4646         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
4647         (__protocol_available): Remove #if 0 code.
4648         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
4649         conditional code.
4650         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
4651         * sysdeps/unix/sysv/linux/kernel-features.h
4652         (__ASSUME_GETCWD_SYSCALL): Don't define.
4653         (__ASSUME_REALTIME_SIGNALS): Likewise.
4654         (__ASSUME_PREAD_SYSCALL): Likewise.
4655         (__ASSUME_PWRITE_SYSCALL): Likewise.
4656         (__ASSUME_POLL_SYSCALL): Likewise.
4657         (__ASSUME_LCHOWN_SYSCALL): Likewise.
4658         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
4659         non-SPARC.
4660         (__ASSUME_SIOCGIFNAME): Don't define.
4661         (__ASSUME_MSG_NOSIGNAL): Likewise.
4662         (__ASSUME_SENDFILE): Define unconditionally.
4663         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
4664         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
4665         conditional code.
4666         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
4667         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
4668         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
4669         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
4670         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
4671         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
4672         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
4673         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
4674         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
4675         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
4676         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
4677         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
4678         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
4679         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
4680         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
4681         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
4682         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
4683         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
4684         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
4685         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
4686         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
4687         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
4688         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
4689         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
4690         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
4691         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
4692         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
4693         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
4694         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
4695         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
4696         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
4697         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
4698         Remove conditional code.
4699         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
4700         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
4701         Remove conditional code.
4702         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
4703         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
4704         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
4705         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
4706         Remove conditional code.
4707         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
4708         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
4709         Remove conditional code.
4710         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
4711         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
4712         Remove conditional code.
4713         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
4714         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
4715         Remove conditional code.
4716         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
4717         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
4718         Remove conditional code.
4719         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
4720         * sysdeps/unix/sysv/linux/sh/pwrite64.c
4721         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
4722         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
4723         * sysdeps/unix/sysv/linux/sigaction.c
4724         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
4725         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
4726         * sysdeps/unix/sysv/linux/sigpending.c
4727         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
4728         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
4729         * sysdeps/unix/sysv/linux/sigprocmask.c
4730         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
4731         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
4732         * sysdeps/unix/sysv/linux/sigsuspend.c
4733         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
4734         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
4735         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
4736         (__libc_missing_rt_sigs): Remove.
4737         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
4738         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
4739         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
4740         Remove conditional code.
4741         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
4742         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
4743         return 1.
4744         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
4745         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
4746         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
4747         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
4748
4749 2012-05-14  Andreas Jaeger  <aj@suse.de>
4750
4751         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
4752         it's not used in glibc.
4753         (__coshm1): Likewise.
4754         (__acosh1p): Likewise.
4755         (__sgn): Likewise.
4756
4757         * manual/string.texi (Copying and Concatenation): Add missing
4758         variable in concat example.
4759         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
4760
4761 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
4762
4763         [BZ #14103]
4764         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
4765         __builtin_clzl with __builtin_clzll.
4766
4767 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
4768
4769         [BZ #14104]
4770         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
4771         libc_freeres_ptr.
4772
4773 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
4774
4775         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
4776         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
4777         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
4778         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
4779
4780 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
4781
4782         * NEWS: Update ia64 info.
4783
4784 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
4785
4786         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
4787         used as bcopy.
4788
4789 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
4790
4791         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
4792         * sysdeps/unix/syscalls.list (dup3): Likewise.
4793         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
4794         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
4795
4796 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
4797
4798         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
4799         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
4800
4801 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
4802
4803         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
4804         thread pointer.
4805         (TLS_IE): Use mov/add instead of movq/addq to load thread
4806         pointer.
4807         (TLS_GD_PREFIX): New.
4808         (TLS_GD): Use it.
4809
4810 2012-05-11  David S. Miller  <davem@davemloft.net>
4811
4812         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
4813         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
4814         (_FPU_SETCW): Likewise.
4815
4816 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
4817
4818         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
4819         is 32-byte aligned.
4820
4821 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
4822
4823         [BZ #11837]
4824         * iconvdata/gb18030.c: Update tables.
4825         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
4826         characters specially.
4827         (BODY for TO_LOOP): Add encoding of missing ranges.
4828
4829 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
4830
4831         [BZ #13673]
4832         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
4833         * sysdeps/mach/hurd/dup3.c: Likewise.
4834         * sysdeps/mach/hurd/readlinkat.c: Likewise.
4835         * sysdeps/powerpc/memmove.c:: Likewise.
4836
4837 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
4838
4839         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
4840         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
4841
4842 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
4843
4844         * elf/elf.h (R_X86_64_RELATIVE64): New.
4845         (R_X86_64_NUM): Updated.
4846         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
4847         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
4848         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
4849         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
4850         tst-quad1pie tst-quad2pie
4851         (modules-names): Add tst-quadmod1 tst-quadmod2.
4852         ($(objpfx)tst-quad1): New dependency.
4853         ($(objpfx)tst-quad2): Likewise.
4854         ($(objpfx)tst-quad1pie): Likewise.
4855         ($(objpfx)tst-quad2pie): Likewise.
4856         * sysdeps/x86_64/tst-quad1.c: New file.
4857         * sysdeps/x86_64/tst-quad1pie.c: New file.
4858         * sysdeps/x86_64/tst-quad2.c: Likewise.
4859         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
4860         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
4861         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
4862         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
4863         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
4864
4865 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4866
4867         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
4868         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
4869         * streams/stropts.h (t_scalar_t): Define type.
4870
4871         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
4872         (_PATH_PRESERVE): Set to "/var/lib".
4873         (_PATH_RWHODIR): Set to "/var/spool/rwho".
4874
4875         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
4876         instead of int.
4877
4878         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
4879         if __dir_mkfile succeeded.
4880
4881         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
4882         checking for _hurd_dtablesize.  Unlock it right after having
4883         finished _hurd_dtable allocation.
4884
4885 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
4886
4887         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
4888         * sysdeps/mach/hurd/configure: Regenerated.
4889         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
4890         special-casing to...
4891         * sysdeps/gnu/configure.in: ... this new file.
4892         * sysdeps/unix/sysv/linux/configure: Regenerated.
4893         * sysdeps/gnu/configure: New generated file.
4894
4895         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
4896         for Linux: use nsec instead of usec, as well as:
4897         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
4898         members of type struct timespec.
4899         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
4900         New macros.
4901         (struct stat64): Likewise.
4902         (_STATBUF_ST_NSEC): New macro.
4903         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
4904
4905         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
4906         __strtoul_internal rather than strtoul.
4907
4908 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
4909
4910         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
4911         and reject them.
4912
4913 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4914
4915         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
4916         which preserves existing values.
4917         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
4918
4919 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
4920
4921         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
4922         TIMEOUT values.  Return EINVAL for NFDS values either negative or
4923         greater than FD_SETSIZE.
4924
4925 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4926
4927         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
4928         allocated, call __vm_protect to finish enabling the existing space, and
4929         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
4930         allocate the remainder.
4931
4932 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
4933
4934         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
4935         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
4936
4937 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4938
4939         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
4940         sysdeps/mach/hurd/readlink.c.
4941
4942         * posix/tst-sysconf.c (posix_options): Only use
4943         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
4944         _POSIX_SYNCHRONIZED_IO when they are defined
4945         * sysdeps/mach/hurd/bits/posix_opt.h:
4946         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
4947         (_XOPEN_REALTIME): Undefine macro.
4948         (_XOPEN_REALTIME_THREADS): Undefine macro.
4949         (_XOPEN_SHM): Undefine macro.
4950         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
4951         macro to -1.
4952         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
4953         macro to -1.
4954         (_POSIX_ASYNC_IO): Undefine macro.
4955         (_POSIX_PRIORITIZED_IO): Undefine macro.
4956         (_POSIX_SPIN_LOCKS): Define macro to -1.
4957
4958         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
4959         SA_NODEFER, SA_RESETHAND.
4960         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
4961         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
4962         F_DUPFD_CLOEXEC.
4963
4964 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
4965
4966         * elf/Makefile (pldd-modules): Define unconditionally.
4967
4968 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
4969
4970         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
4971
4972 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4973
4974         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
4975         Return ENOENT when name is empty.
4976         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
4977
4978 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
4979
4980         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
4981
4982         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
4983
4984 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4985
4986         Fix mlock in all cases except non-readable pages.
4987         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
4988         instead of VM_PROT_ALL as parameter to __vm_wire function.
4989
4990         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
4991         (__mkdir): When path is `/', just fail with EEXIST.
4992         * sysdeps/mach/hurd/mkdirat.c: Likewise.
4993
4994 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
4995
4996         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
4997         <sys/uio.h> (for writev).
4998         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
4999         and <sys/param.h> (for MIN).
5000
5001 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
5002
5003         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
5004         REQUESTED_TIME.  Properly set the remaining time and return EINTR
5005         if interrupted.
5006
5007 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5008
5009         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
5010         Depend on against $(link-rpcuserlibs).
5011
5012 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5013
5014         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
5015         (__libc_stack_end): Do not use attribute_relro.
5016         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
5017         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
5018         to libthread-provided value.
5019         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
5020         attribute_relro.
5021
5022 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5023
5024         [BZ #3748]
5025         * bits/libc-lock.h (__libc_once_get): New macro.
5026         * sysdeps/mach/bits/libc-lock.h: Likewise.
5027         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
5028         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
5029         instead of using implementation details.
5030
5031         * libio/fileops.c: Unconditionally include <kernel-features.h>.
5032         * libio/freopen.c: Likewise.
5033         * libio/freopen64.c: Likewise.
5034         * misc/syslog.c: Likewise.
5035         * nscd/connections.c: Likewise.
5036         * nscd/netgroupcache.c: Likewise.
5037         * sysdeps/posix/getcwd.c: Likewise.
5038
5039 2012-05-10  Roland McGrath  <roland@hack.frob.com>
5040
5041         * math/w_ilogbf.c: Add #include <limits.h>.
5042
5043 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5044
5045         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
5046         path instead of returning without unlocking.
5047
5048         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
5049         immediate-write ioctls.
5050         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
5051
5052 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5053
5054         * sysdeps/mach/hurd/i386/init-first.c (init): Use
5055         __builtin_frame_address instead of making assumptions about the
5056         location of the return address relative to DATA.  Force early load of
5057         the return address.
5058         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
5059         __builtin_frame_address.
5060
5061         dup3 for GNU Hurd.
5062         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
5063         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
5064         implement dup3 and do some further code clean-ups.
5065         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
5066         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
5067
5068 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5069
5070         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
5071
5072         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
5073         HURD_CRITICAL_END around holding _hurd_dtable_lock.
5074         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
5075         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
5076         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
5077         d->port.lock.
5078
5079         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
5080         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
5081         when handler == SIG_ERR, not when handler != SIG_ERR.
5082
5083 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5084
5085         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
5086         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
5087         definitions.
5088
5089         accept4 for GNU Hurd.
5090         * include/sys/socket.h (__libc_accept4): New prototype.
5091         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
5092         to implement __libc_accept4.
5093         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
5094         __libc_accept4.
5095         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
5096
5097         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
5098         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
5099         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
5100         signal-defines.sym.
5101
5102 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5103
5104         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
5105
5106 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5107
5108         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
5109         assertion on O_CLOEXEC flag.
5110         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
5111         * hurd/intern-fd.c: Likewise.
5112         * hurd/port2fd.c: Likewise.
5113
5114 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5115
5116         [BZ #3906]
5117         * bits/in.h (IPV6_PKTINFO): Define new macro.
5118         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
5119
5120 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5121
5122         [BZ #13954]
5123         [BZ #13955]
5124         [BZ #13956]
5125         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
5126         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
5127         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
5128         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
5129         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
5130         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
5131         * math/libm-test.inc (logb_test) : Additional logb tests.
5132
5133 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
5134             Andreas Jaeger  <aj@suse.de>
5135
5136         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
5137         * configure: Regenerated.
5138         * config.h.in (LINK_OBSOLETE_RPC): New macro.
5139         * config.make.in (link-obsolete-rpc): New substituted variable.
5140         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
5141         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
5142         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
5143         (shared-only-routines): Don't set it under [link-obsolete-rpc],
5144         so that libc.a contains the symbols.
5145         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
5146         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
5147         * sunrpc/auth_none.c: Likewise.
5148         * sunrpc/auth_unix.c: Likewise.
5149         * sunrpc/authdes_prot.c: Likewise.
5150         * sunrpc/authuxprot.c: Likewise.
5151         * sunrpc/clnt_gen.c: Likewise.
5152         * sunrpc/clnt_perr.c: Likewise.
5153         * sunrpc/clnt_raw.c: Likewise.
5154         * sunrpc/clnt_simp.c: Likewise.
5155         * sunrpc/clnt_tcp.c: Likewise.
5156         * sunrpc/clnt_udp.c: Likewise.
5157         * sunrpc/clnt_unix.c: Likewise.
5158         * sunrpc/des_crypt.c: Likewise.
5159         * sunrpc/des_soft.c: Likewise.
5160         * sunrpc/get_myaddr.c: Likewise.
5161         * sunrpc/key_call.c: Likewise.
5162         * sunrpc/key_prot.c: Likewise.
5163         * sunrpc/netname.c: Likewise.
5164         * sunrpc/pm_getmaps.c: Likewise.
5165         * sunrpc/pm_getport.c: Likewise.
5166         * sunrpc/pmap_clnt.c: Likewise.
5167         * sunrpc/pmap_prot.c: Likewise.
5168         * sunrpc/pmap_prot2.c: Likewise.
5169         * sunrpc/pmap_rmt.c: Likewise.
5170         * sunrpc/publickey.c: Likewise.
5171         * sunrpc/rpc_cmsg.c: Likewise.
5172         * sunrpc/rpc_common.c: Likewise.
5173         * sunrpc/rpc_dtable.c: Likewise.
5174         * sunrpc/rpc_prot.c: Likewise.
5175         * sunrpc/rpc_thread.c: Likewise.
5176         * sunrpc/rtime.c: Likewise.
5177         * sunrpc/svc.c: Likewise.
5178         * sunrpc/svc_auth.c: Likewise.
5179         * sunrpc/svc_raw.c: Likewise.
5180         * sunrpc/svc_run.c: Likewise.
5181         * sunrpc/svc_tcp.c: Likewise.
5182         * sunrpc/svc_udp.c: Likewise.
5183         * sunrpc/svc_unix.c: Likewise.
5184         * sunrpc/svcauth_des.c: Likewise.
5185         * sunrpc/xcrypt.c: Likewise.
5186         * sunrpc/xdr.c: Likewise.
5187         * sunrpc/xdr_array.c: Likewise.
5188         * sunrpc/xdr_float.c: Likewise.
5189         * sunrpc/xdr_intXX_t.c: Likewise.
5190         * sunrpc/xdr_mem.c: Likewise.
5191         * sunrpc/xdr_rec.c: Likewise.
5192         * sunrpc/xdr_ref.c: Likewise.
5193         * sunrpc/xdr_sizeof.c: Likewise.
5194         * sunrpc/xdr_stdio.c: Likewise.
5195
5196 2012-05-10  Roland McGrath  <roland@hack.frob.com>
5197
5198         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
5199         change.  Update copyright years.
5200
5201 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
5202
5203         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
5204
5205 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
5206             Joseph Myers  <joseph@codesourcery.com>
5207             Paul Pluzhnikov  <ppluzhnikov@google.com>
5208
5209         [BZ #14012]
5210         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
5211         requiring rpcgen.
5212         [cross-compiling] (extra-libs): Likewise.
5213         [cross-compiling] (extra-libs-others): Likewise.
5214         [cross-compiling] (librpcsvc-routines): Likewise.
5215         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
5216         [cross-compiling] (omit-deps): Likewise.
5217         (sunrpc-CPPFLAGS): New variable.
5218         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
5219         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
5220         (cross-rpcgen-objs): New variable.
5221         (extra-objs): Append $(cross-rpcgen-objs).
5222         ($(cross-rpcgen-objs)): New rule.
5223         ($(objpfx)cross-rpcgen): Likewise.
5224         (rpcgen-cmd): Define to use $(built-program-file).  Expand
5225         comment.
5226         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
5227         ($(objpfx)x%.stmp): Likewise.
5228         * sunrpc/proto.h [IS_IN_build] (_): Define.
5229         [IS_IN_build] (_libc_intl_domainname): Likewise.
5230
5231 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
5232
5233         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
5234         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
5235         and R_X86_64_TPOFF64.
5236
5237 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
5238
5239         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
5240         sysdeps/unix/sysv/syscalls.list.
5241         (stime): Likewise.
5242         (utime): Likewise.
5243         * sysdeps/unix/sysv/syscalls.list: Remove file.
5244
5245 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
5246
5247         [BZ #3440]
5248         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
5249         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
5250         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
5251         (__LC_IDENTIFICATION): Make these macros useful in #if
5252         expressions, as required by C99.
5253
5254 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
5255
5256         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
5257         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
5258         after this.
5259
5260 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
5261
5262         * stdlib/longlong.h: Updated from GCC.
5263
5264 2012-05-09  Andreas Jaeger  <aj@suse.de>
5265
5266         * nscd/nscd.c (run_modes): Make named enum, reorder so that
5267         default is first entry.
5268         (run_mode): Set type.
5269         (main): Remove informal message about syslog.
5270         (options): Fix typo.
5271
5272         [BZ #14053]
5273         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
5274         to asm.
5275         (lrint): Likewise.
5276         (llrintf): Likewise.
5277         (llrint): Likewise.
5278         (rint): Likewise.
5279         (rintf): Likewise.
5280         (nearbyint): Likewise.
5281         (nearbyintf): Likewise.
5282
5283 2012-05-09  Andreas Jaeger  <aj@suse.de>
5284             Pedro Alves  <palves@redhat.com>
5285
5286         * nscd/nscd.c (run_mode): Use enum.
5287         (main): Cleanup coding style issue.
5288
5289 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
5290             Andreas Jaeger  <aj@suse.de>
5291
5292         * nscd/nscd.c (go_background): Replaced with...
5293         (run_mode): ... this.
5294         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
5295         (options): Add -F --foreground.
5296         (main): Implement it.
5297         (parse_opt): Parse it.
5298
5299 2012-05-09  Andreas Jaeger  <aj@suse.de>
5300
5301         [BZ #14083]
5302         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
5303         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
5304         -Wconversion warning.
5305         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
5306         Likewise.
5307
5308 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
5309
5310         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
5311         == 0.
5312         (LC_ALL): Use macro-int-constant.
5313         (LC_COLLATE): Likewise.
5314         (LC_CTYPE): Likewise.
5315         (LC_MESSAGES): Likewise.
5316         (LC_MONETARY): Likewise.
5317         (LC_NUMERIC): Likewise.
5318         (LC_TIME): Likewise.
5319         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
5320         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
5321         [ISO || ISO99 || ISO11] (*_t): Do not allow.
5322         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
5323         Specify type.
5324         [C99-based standards] (float_t): Expect type.
5325         [C99-based standards] (double_t): Expect type.
5326         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
5327         type.
5328         [C99-based standards] (HUGE_VALL): Likewise.
5329         [C99-based standards] (INFINITY): Likewise.
5330         [C99-based standards] (NAN): Likewise.
5331         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
5332         [C99-based standards] (FP_NAN): Likewise.
5333         [C99-based standards] (FP_NORMAL): Likewise.
5334         [C99-based standards] (FP_SUBNORMAL): Likewise.
5335         [C99-based standards] (FP_ZERO): Likewise.
5336         [C99-based standards] (FP_FAST_FMA): Use
5337         optional-macro-int-constant.  Specify type.  Require == 1.
5338         [C99-based standards] (FP_FAST_FMAF): Likewise.
5339         [C99-based standards] (FP_FAST_FMAL): Likewise.
5340         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
5341         [C99-based standards] (FP_ILOGBNAN): Likewise.
5342         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
5343         Specify type.
5344         [C99-based standards] (MATH_ERREXCEPT): Likewise.
5345         [C99-based standards] (math_errhandling): Specify type.
5346         [ISO99 || ISO11] (signgam): Do not allow.
5347         [non-C99-based standards] (copysignf): Do not allow.
5348         [non-C99-based standards] (exp2f): Likewise.
5349         [non-C99-based standards] (log2f): Likewise.
5350         [non-C99-based standards] (modff): Allow.
5351         [non-C99-based standards] (erff): Do not allow.
5352         [non-C99-based standards] (erfcf): Likewise.
5353         [non-C99-based standards] (gammaf): Likewise.
5354         [non-C99-based standards] (hypotf): Likewise.
5355         [non-C99-based standards] (j0f): Likewise.
5356         [non-C99-based standards] (j1f): Likewise.
5357         [non-C99-based standards] (jnf): Likewise.
5358         [non-C99-based standards] (lgammaf): Likewise.
5359         [non-C99-based standards] (tgammaf): Likewise.
5360         [non-C99-based standards] (y0f): Likewise.
5361         [non-C99-based standards] (y1f): Likewise.
5362         [non-C99-based standards] (ynf): Likewise.
5363         [non-C99-based standards] (isnanf): Likewise.
5364         [non-C99-based standards] (acoshf): Likewise.
5365         [non-C99-based standards] (asinhf): Likewise.
5366         [non-C99-based standards] (atanhf): Likewise.
5367         [non-C99-based standards] (cbrtf): Likewise.
5368         [non-C99-based standards] (expm1f): Likewise.
5369         [non-C99-based standards] (ilogbf): Likewise.
5370         [non-C99-based standards] (log1pf): Likewise.
5371         [non-C99-based standards] (logbf): Likewise.
5372         [non-C99-based standards] (nextafterf): Likewise.
5373         [non-C99-based standards] (remainderf): Likewise.
5374         [non-C99-based standards] (rintf): Likewise.
5375         [non-C99-based standards] (scalbf): Likewise.
5376         [non-C99-based standards] (copysignl): Likewise.
5377         [non-C99-based standards] (exp2l): Likewise.
5378         [non-C99-based standards] (log2l): Likewise.
5379         [non-C99-based standards] (modfl): Allow.
5380         [non-C99-based standards] (erfl): Do not allow.
5381         [non-C99-based standards] (erfcl): Likewise.
5382         [non-C99-based standards] (gammal): Likewise.
5383         [non-C99-based standards] (hypotl): Likewise.
5384         [non-C99-based standards] (j0l): Likewise.
5385         [non-C99-based standards] (j1l): Likewise.
5386         [non-C99-based standards] (jnl): Likewise.
5387         [non-C99-based standards] (lgammal): Likewise.
5388         [non-C99-based standards] (tgammal): Likewise.
5389         [non-C99-based standards] (y0l): Likewise.
5390         [non-C99-based standards] (y1l): Likewise.
5391         [non-C99-based standards] (ynl): Likewise.
5392         [non-C99-based standards] (isnanl): Likewise.
5393         [non-C99-based standards] (acoshl): Likewise.
5394         [non-C99-based standards] (asinhl): Likewise.
5395         [non-C99-based standards] (atanhl): Likewise.
5396         [non-C99-based standards] (cbrtl): Likewise.
5397         [non-C99-based standards] (expm1l): Likewise.
5398         [non-C99-based standards] (ilogbl): Likewise.
5399         [non-C99-based standards] (log1pl): Likewise.
5400         [non-C99-based standards] (logbl): Likewise.
5401         [non-C99-based standards] (nextafterl): Likewise.
5402         [non-C99-based standards] (remainderl): Likewise.
5403         [non-C99-based standards] (rintl): Likewise.
5404         [non-C99-based standards] (scalbl): Likewise.
5405         [ISO || ISO99 || ISO11] (*_t): Do not allow.
5406         [non-C99-based standards] (FP_*): Do not allow.
5407         [C99-based standards] (FP_*): Change to
5408         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
5409         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
5410         allow.
5411         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
5412         (SIG_ERR): Likewise.
5413         [X/Open-based standards] (SIG_HOLD): Likewise.
5414         (SIG_IGN): Likewise.
5415         (SIGABRT): Use macro-int-constant.  Specify type.  Require
5416         positive value.
5417         (SIGFPE): Likewise.
5418         (SIGILL): Likewise.
5419         (SIGINT): Likewise.
5420         (SIGSEGV): Likewise.
5421         (SIGTER): Likewise.
5422         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
5423         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
5424         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
5425         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
5426         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
5427         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
5428         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
5429         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
5430         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
5431         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
5432         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
5433         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
5434         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
5435         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
5436         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
5437         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
5438         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
5439         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
5440         [X/Open-based standards] (SIGTRAP): Likewise.
5441         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
5442         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
5443         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
5444         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
5445         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
5446         allow.
5447
5448 2012-05-08  Ian Wienand  <ianw@vmware.com>
5449
5450         [BZ #14080]
5451         * time/tzset.c (__tzset_parse_tz): Update default rules for
5452         daylight time changes in the Energy Policy Act of 2005.
5453
5454 2012-05-09  Andreas Jaeger  <aj@suse.de>
5455
5456         [BZ #13983]
5457         * elf/ldconfig.c (parse_conf): Change string to make clear that
5458         ldconfig only issued a warning if ld.so.conf does not exist.
5459
5460 2012-05-08  David S. Miller  <davem@davemloft.net>
5461
5462         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
5463         movxtod instead of popping the value on the stack.
5464
5465         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5466
5467 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
5468
5469         * config.h.in: Add HAVE_ARM_PCS_VFP.
5470
5471 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
5472
5473         [BZ #13979]
5474         * include/features.h: Warn if user requests __FORTIFY_SOURCE
5475         checking but the checks are disabled for any reason.
5476
5477 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
5478
5479         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
5480         and ELF64_R_TYPE with ELFW(R_TYPE).
5481
5482 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
5483
5484         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
5485         (ulimit): Likewise.
5486
5487         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
5488         (settimeofday): Likewise.
5489
5490 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
5491
5492         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
5493         a struct th_u2 inside the union, and move tu_block/tu_code into
5494         a new th_u3 union of tu_block/tu_code inside of that.  Move
5495         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
5496         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
5497         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
5498         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
5499         (th_stuff): Change to th_u1.tu_stuff.
5500         (th_data): Define.
5501         (th_msg): Change to th_u1.th_u2.tu_data.
5502
5503 2012-05-07  David S. Miller  <davem@davemloft.net>
5504
5505         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5506
5507         [BZ #14074]
5508         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
5509         (SETUP_PIC_REG): Use it.
5510         (SETUP_PIC_REG_LEAF): Use it.
5511
5512 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
5513
5514         [BZ #13885]
5515         [BZ #13923]
5516         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
5517         USE_AS_EXPM1L.
5518         (EXPL_FINITE): Likewise.
5519         (FLDLOG): Likewise.
5520         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
5521         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
5522         e_expl.S.
5523         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
5524         USE_AS_EXPM1L.
5525         (EXPL_FINITE): Likewise.
5526         (FLDLOG): Likewise.
5527         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
5528         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
5529         e_expl.S.
5530         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
5531         test of -max_value argument for long double.
5532         * sysdeps/i386/fpu/libm-test-ulps: Update.
5533         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5534
5535 2012-05-06  David S. Miller  <davem@davemloft.net>
5536
5537         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
5538         quad soft-float symbols whose references which are compiler
5539         generated.
5540         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
5541
5542 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
5543
5544         [BZ #13884]
5545         [BZ #13914]
5546         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
5547         USE_AS_EXP10L.
5548         (EXPL_FINITE): Likewise.
5549         (FLDLOG): Likewise.
5550         (c0): Likewise.
5551         (c1): Likewise.
5552         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
5553         Adjust comments for base varying.
5554         (__expl_finite): Change alias to EXPL_FINITE.
5555         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
5556         e_expl.S.
5557         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
5558         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
5559         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
5560         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
5561         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
5562         USE_AS_EXP10L.
5563         (EXPL_FINITE): Likewise.
5564         (FLDLOG): Likewise.
5565         (c0): Likewise.
5566         (c1): Likewise.
5567         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
5568         Adjust comments for base varying.
5569         (__expl_finite): Change alias to EXPL_FINITE.
5570         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
5571         tests for bugs.
5572         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
5573
5574         [BZ #14064]
5575         * math/libm-test.inc (check_float_internal): Correct ulp
5576         calculation for subnormal expected results.
5577
5578 2012-05-06  Andreas Jaeger  <aj@suse.de>
5579
5580         * Makeconfig (+math-flags): New, set to -frounding-math.
5581         (+cflags): Add +math-flags so that all of glibc gets compiled with
5582         it.
5583
5584         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
5585
5586 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
5587
5588         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
5589         Disable one test.
5590
5591         [BZ #13787]
5592         [BZ #13922]
5593         [BZ #14036]
5594         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
5595         (__ieee754_expl): Allow for and saturate large arguments.
5596         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
5597         (u_threshold): Likewise.
5598         (__exp): Call __ieee754_exp before checking for overflow and
5599         underflow.
5600         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
5601         (u_threshold): Likewise.
5602         (__expf): Call __ieee754_expf before checking for overflow and
5603         underflow.
5604         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
5605         (u_threshold): Likewise.
5606         (__expl): Call __ieee754_expl before checking for overflow and
5607         underflow.
5608         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
5609         (__ieee754_expl): Allow for and saturate large arguments.
5610         * math/libm-test.inc (exp_test): Add another test.  Do not allow
5611         missing overflow exception on overflow.
5612         (expm1_test): Do not allow missing overflow exception on overflow.
5613
5614         * sysdeps/i386/fpu/e_expl.c: Move to ...
5615         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
5616         rather than using inline asm.
5617         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
5618         * sysdeps/x86_64/fpu/e_expl.S: Copy from
5619         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
5620
5621         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
5622         (nice): Likewise.
5623         (poll): Likewise.
5624         (signal): Likewise.
5625         (time): Likewise.
5626         (times): Likewise.
5627
5628 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
5629
5630         * sysdeps/unix/syscalls.list (adjtime): Add entry from
5631         sysdeps/unix/common/syscalls.list.
5632         (fchmod): Likewise.
5633         (fchown): Likewise.
5634         (ftruncate): Likewise.
5635         (getrusage): Likewise.
5636         (gettimeofday): Likewise.
5637         (setpgid): Likewise.
5638         (setregid): Likewise.
5639         (setreuid): Likewise.
5640         (sigaction): Likewise.
5641         (truncate): Likewise.
5642         (vhangup): Likewise.
5643         * sysdeps/unix/common/syscalls.list: Remove file.
5644         * sysdeps/unix/bsd/Implies: Don't include unix/common.
5645         * sysdeps/unix/sysv/linux/Implies: Likewise.
5646
5647 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
5648
5649         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
5650         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
5651         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
5652         Moved to ...
5653         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
5654         Here.
5655         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
5656         to ...
5657         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
5658         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
5659         to ...
5660         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
5661         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
5662         to ...
5663         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
5664         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
5665         to ...
5666         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
5667         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
5668         to ...
5669         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
5670         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
5671         to ...
5672         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
5673         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
5674         to ...
5675         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
5676         Here.
5677         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
5678         to ...
5679         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
5680         Here.
5681         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
5682         to ...
5683         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
5684         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
5685         Moved to ...
5686         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
5687         Here.
5688         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
5689         to ...
5690         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
5691
5692 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
5693
5694         * sysdeps/unix/common/bits/dirent.h: Remove file.
5695         * sysdeps/unix/common/bits/fcntl.h: Likewise.
5696
5697         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
5698         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
5699         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
5700         * sysdeps/unix/bsd/isatty.c: Likewise.
5701         * sysdeps/unix/bsd/tcdrain.c: Likewise.
5702         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
5703         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
5704
5705 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5706
5707         [BZ #13563]
5708         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
5709         long double comparison inaccuracies.
5710         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
5711         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5712
5713 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
5714
5715         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
5716         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
5717
5718 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
5719
5720         [BZ #14049]
5721         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
5722         nonzero digits before rounding a hex value.
5723         * stdlib/tst-strtod.c (tests): Add another test.
5724
5725 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5726
5727         * sysdeps/s390/fpu/libm-test-ulps: Update.
5728
5729 2012-05-03  Andreas Jaeger  <aj@suse.de>
5730
5731         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
5732         does not get optimized out.
5733         (malloc_opt_barrier): New.
5734
5735 2012-05-03  Andreas Jaeger  <aj@suse.de>
5736             Roland McGrath  <roland@hack.frob.com>
5737
5738         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
5739         intermediate file deletion.
5740         (generated): Add .symlist files.
5741
5742 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
5743
5744         [BZ #13775]
5745         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
5746         Redirect under this condition.
5747         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
5748         [__USE_GNU] (__dprintf_chk): Not under this condition.
5749         [__USE_GNU] (__vdprintf_chk): Likewise.
5750         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
5751         under this condition.
5752         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
5753         [__USE_XOPEN2K8] (dprintf): Define under this condition.
5754         [__USE_XOPEN2K8] (vdprintf): Likewise.
5755         [__USE_GNU] (__dprintf_chk): Not under this condition.
5756         [__USE_GNU] (__vdprintf_chk): Likewise.
5757         [__USE_GNU] (dprintf): Likewise.
5758         [__USE_GNU] (vdprintf): Likewise.
5759
5760 2012-05-03  Roland McGrath  <roland@hack.frob.com>
5761
5762         * elf/Makefile (common-generated): Set this instead of generated for
5763         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
5764         $(all-built-dso)-derived lists.
5765
5766 2012-05-03  Andreas Jaeger  <aj@suse.de>
5767
5768         * sysdeps/i386/fpu/libm-test-ulps: Update.
5769
5770         * FAQ: Removed.
5771         * FAQ.in: Likewise.
5772         * scripts/gen-FAQ.pl: Likewise.
5773         * manual/install.texi (Installation): Point to online location of
5774         FAQ.
5775         * Makefile (files-for-dist): Remove FAQ.
5776         (FAQ): Remove.
5777
5778 2012-05-02  Allan McRae  <allan@archlinux.org>
5779
5780         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
5781         (LDFLAGS-reldepmod5.so): Likewise.
5782         (LDFLAGS-reldep6mod1.so): Likewise.
5783         (LDFLAGS-reldep6mod4.so): Likewise.
5784         (LDFLAGS-reldep8mod3.so): Likewise.
5785         (LDFLAGS-unload4mod1.so): Likewise.
5786         (LDFLAGS-unload4mod2.so): Likewise.
5787         (LDFLAGS-tst-initorder): Likewise.
5788         (LDFLAGS-tst-initordera2.so): Likewise.
5789         (LDFLAGS-tst-initordera3.so): Likewise.
5790         (LDFLAGS-tst-initordera4.so): Likewise.
5791         (LDFLAGS-tst-initorderb2.so): Likewise.
5792         (LDFLAGS-noload): Likewise.
5793         (LDFLAGS-next): Likewise.
5794         (LDFLAGS-order2mod1.so): Likewise.
5795         (LDFLAGS-order2mod2.so): Likewise.
5796         (LDFLAGS-tst-initorder2): Likewise.
5797         (LDFLAGS-tst-initorder2a.so): Likewise.
5798         (LDFLAGS-tst-initorder2b.so): Likewise.
5799         (LDFLAGS-tst-initorder2c.so): Likewise.
5800         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
5801
5802 2012-05-02  David S. Miller  <davem@davemloft.net>
5803
5804         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5805
5806 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
5807
5808         [BZ #14055]
5809         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
5810
5811 2012-05-02  Andreas Jaeger  <aj@suse.de>
5812
5813         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
5814         since we manipulate rounding mode.
5815         (CPPFLAGS-test-idouble.c): Likewise.
5816         (CPPFLAGS-test-ifloat.c): Likewise.
5817         (CFLAGS-test-ldouble.c): Likewise.
5818         (CFLAGS-test-double.c): Likewise.
5819         (CFLAGS-test-float.c): Likewise.
5820         (CFLAGS-test-misc.c): Likewise.
5821         (CFLAGS-test-test-fenv.c): Likewise.
5822
5823 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5824
5825         [BZ #2550]
5826         [BZ #2570]
5827         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
5828         comparisons to determine direction to adjust input.
5829
5830 2012-05-01  Roland McGrath  <roland@hack.frob.com>
5831
5832         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
5833         output to the target.
5834
5835         * scripts/localplt.awk: New file.
5836         * elf/Makefile ($(objpfx)check-localplt): Target removed.
5837         (check-localplt-CFLAGS): Variable removed.
5838         ($(all-built-dso:=.jmprel)): New static pattern rule.
5839         (generated): Add those targets.
5840         (localplt-built-dso): New variable.
5841         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
5842
5843         * elf/check-localplt.c: File removed.
5844
5845         * scripts/check-execstack.awk: New file.
5846         * elf/Makefile ($(objpfx)check-execstack): Target removed.
5847         (check-execstack-CFLAGS): Variable removed.
5848         ($(objpfx)check-execstack.h): Target removed.
5849         ($(objpfx)execstack-default): New target.
5850         (generated): Add that instead of check-execstack.h.
5851         ($(all-built-dso:=.phdr)): New static pattern rule.
5852         (generated): Add those targets.
5853         * elf/check-execstack.c: File removed.
5854
5855         * scripts/check-textrel.awk: New file.
5856         * elf/Makefile ($(objpfx)check-textrel): Target removed.
5857         (check-textrel-CFLAGS): Variable removed.
5858         (all-built-dso): Use := to define.o
5859         ($(all-built-dso:=.dyn)): New static pattern rule.
5860         (generated): Add those targets.
5861         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
5862         * config.make.in (READELF): New substituted variable.
5863         * elf/check-textrel.c: File removed.
5864
5865 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
5866
5867         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
5868         allow.
5869         * conform/data/ctype.h-data [C99-based standards] (isblank):
5870         Expect function.
5871         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
5872         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
5873         [ISO || ISO99 || ISO11] (*_t): Do not allow.
5874         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
5875         Specify type.  Require positive value.
5876         (EILSEQ): Likewise.
5877         (ERANGE): Likewise.
5878         [ISO || POSIX] (EILSEQ): Do not expect.
5879         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
5880         Specify type.  Require positive value.
5881         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
5882         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
5883         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
5884         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
5885         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
5886         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
5887         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
5888         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
5889         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
5890         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
5891         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
5892         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
5893         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
5894         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
5895         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
5896         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
5897         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
5898         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
5899         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
5900         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
5901         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
5902         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
5903         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
5904         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
5905         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
5906         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
5907         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
5908         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
5909         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
5910         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
5911         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
5912         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
5913         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
5914         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
5915         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
5916         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
5917         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
5918         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
5919         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
5920         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
5921         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
5922         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
5923         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
5924         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
5925         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
5926         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
5927         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
5928         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
5929         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
5930         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
5931         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
5932         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
5933         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
5934         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
5935         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
5936         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
5937         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
5938         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
5939         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
5940         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
5941         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
5942         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
5943         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
5944         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
5945         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
5946         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
5947         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
5948         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
5949         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
5950         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
5951         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
5952         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
5953         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
5954         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
5955         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
5956         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
5957         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
5958         Require >= 2.
5959         (FLT_ROUNDS): Expect as macro, not constant.
5960         (FLT_MANT_DIG): Use macro-int-constant.
5961         (DBL_MANT_DIG): Likewise.
5962         (LDBL_MANT_DIG): Likewise.
5963         (FLT_DIG): Likewise.
5964         (DBL_DIG): Likewise.
5965         (LDBL_DIG): Likewise.
5966         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
5967         (DBL_MIN_EXP): Likewise.
5968         (LDBL_MIN_EXP): Likewise.
5969         (FLT_MAX_EXP): Use macro-int-constant.
5970         (DBL_MAX_EXP): Likewise.
5971         (LDBL_MAX_EXP): Likewise.
5972         (FLT_MAX_10_EXP): Likewise.
5973         (DBL_MAX_10_EXP): Likewise.
5974         (LDBL_MAX_10_EXP): Likewise.
5975         (FLT_MAX): Use macro-constant.
5976         (DBL_MAX): Likewise.
5977         (LDBL_MAX): Likewise.
5978         (FLT_EPSILON): Use macro-constant.  Give upper bound.
5979         (DBL_EPSILON): Likewise.
5980         (LDBL_EPSILON): Likewise.
5981         (FLT_MIN): Likewise.
5982         (DBL_MIN): Likewise.
5983         (LDBL_MIN): Likewise.
5984         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
5985         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
5986         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
5987         [ISO11] (FLT_HAS_SUBNORM): Likewise.
5988         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
5989         [ISO11] (DBL_DECIMAL_DIG): Likewise.
5990         [ISO11] (FLT_DECIMAL_DIG): Likewise.
5991         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
5992         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
5993         [ISO11] (FLT_TRUE_MIN): Likewise.
5994         [ISO11] (LDBL_TRUE_MIN): Likewise.
5995         [ISO || ISO99 || ISO11] (*_t): Do not allow.
5996         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
5997         (SCHAR_MIN): Use macro-int-constant.  Specify type.
5998         (SCHAR_MAX): Likewise.
5999         (UCHAR_MAX): Likewise.
6000         (CHAR_MIN): Likewise.
6001         (CHAR_MAX): Likewise.
6002         (MB_LEN_MAX): Use macro-int-constant.
6003         (SHRT_MIN): Use macro-int-constant.  Specify type.
6004         (SHRT_MAX): Likewise.
6005         (USHRT_MAX): Likewise.
6006         (INT_MAX): Likewise.
6007         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
6008         bound negative.
6009         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
6010         bound with "U".
6011         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
6012         bound with "L".
6013         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
6014         bound negative.  Suffix upper bound with "L".
6015         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
6016         bound with "UL".
6017         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
6018         Specify type.
6019         [C99-based standards] (LLONG_MAX): Likewise.
6020         [C99-based standards] (ULLONG_MAX): Likewise.
6021         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
6022         == 0.
6023         [ISO11] (max_align_t): Require type.
6024         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6025
6026         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
6027         from $CFLAGS, without defining away __attribute__ calls.
6028         (checknamespace): Use $CFLAGS_namespace.
6029
6030         * conform/conformtest.pl (@keywords): Only include C99 keywords
6031         for standards based on C99 or C11.
6032
6033         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
6034         Disable tests.
6035         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
6036         UNIX98]: Likewise.
6037
6038         * conform/conformtest.pl: Handle "macro-int-constant" and test for
6039         usability of symbols in #if.
6040
6041         * conform/conformtest.pl: If macro or constant types start
6042         "promoted:", expect the symbol to be of the following type
6043         promoted by the integer promotions.
6044
6045         * conform/conformtest.pl: Parse all "constant" and "macro" lines
6046         in one place.  Also handle "macro-constant".
6047
6048         * conform/conformtest.pl: Only accept expected macro values with
6049         "==".  Parse all "macro" lines in one place.
6050         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
6051
6052         * conform/conformtest.pl: Handle braced types on "constant" lines
6053         instead of handling "typed-constant".
6054         * conform/data/signal.h-data: Use "constant" instead of
6055         "typed-constant".
6056
6057         * conform/conformtest.pl: Handle "optional-" at start of lines in
6058         one place rather than duplicating several cases.  Handle each
6059         format of "macro" line with initial "optional-".
6060
6061         * conform/conformtest.pl: Only accept expected constant or
6062         optional-constant values with "==".  Parse all "constant" lines in
6063         one place.  Parse all "optional-constant" lines in one place.
6064         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
6065         * conform/data/fmtmsg.h-data: Likewise.
6066         * conform/data/netinet/in.h-data: Likewise.
6067         * conform/data/tar.h-data: Likewise.
6068         * conform/data/limits.h-data: Use "==" form on "constant" and
6069         "optional-constant" lines.
6070
6071         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
6072         Use -std=c99 for XOPEN2K.
6073         (@knownproblems): Remove.
6074         (newtoken): Don't check %isknown.
6075
6076         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
6077         Do not expect macro.
6078         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
6079         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
6080         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
6081         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
6082         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
6083         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
6084         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
6085         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
6086         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
6087         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
6088         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
6089         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
6090         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
6091         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
6092         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
6093         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
6094         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
6095         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
6096         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
6097         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
6098         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
6099         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
6100         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
6101         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
6102         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
6103         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
6104         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
6105         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
6106         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
6107         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
6108         [XPG3] (acosh): Likewise.
6109         [XPG3] (asinh): Likewise.
6110         [XPG3] (atanh): Likewise.
6111         [XPG3] (cbrt): Likewise.
6112         [XPG3] (expm1): Likewise.
6113         [XPG3] (ilogb): Likewise.
6114         [XPG3] (log1p): Likewise.
6115         [XPG3] (logb): Likewise.
6116         [XPG3] (nextafter): Likewise.
6117         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
6118         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
6119         [XPG3] (remainder): Likewise.
6120         [XPG3] (rint): Likewise.
6121         [XPG3 || XPG4 || UNIX98] (round): Likewise.
6122         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
6123         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
6124         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
6125         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
6126         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
6127         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
6128         [UNIX98 || XOPEN2K] (scalb): Expect.
6129         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
6130         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
6131         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
6132         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
6133         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
6134         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
6135         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
6136         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
6137         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
6138         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
6139         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
6140         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
6141         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
6142         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
6143         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
6144         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
6145         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
6146         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
6147         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
6148         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
6149         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
6150         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
6151         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
6152         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
6153         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
6154         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
6155         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
6156         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
6157         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
6158         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
6159         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
6160         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
6161         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
6162         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
6163         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
6164         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
6165         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
6166         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
6167         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
6168         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
6169         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
6170         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
6171         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
6172         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
6173         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
6174         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
6175         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
6176         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
6177         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
6178         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
6179         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
6180         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
6181         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
6182         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
6183         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
6184         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
6185         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
6186         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
6187         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
6188         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
6189         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
6190         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
6191         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
6192         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
6193         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
6194         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
6195         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
6196         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
6197         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
6198         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
6199         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
6200         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
6201         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
6202         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
6203         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
6204         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
6205         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
6206         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
6207         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
6208         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
6209         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
6210         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
6211         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
6212         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
6213         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
6214         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
6215         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
6216         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
6217         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
6218         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
6219         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
6220         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
6221         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
6222         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
6223         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
6224         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
6225         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
6226         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
6227         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
6228         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
6229         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
6230         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
6231         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
6232         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
6233         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
6234         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
6235         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
6236         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
6237         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
6238         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
6239         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
6240         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
6241         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
6242         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
6243         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
6244         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
6245         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
6246         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
6247         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
6248         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
6249         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
6250         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
6251         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
6252         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
6253         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
6254         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
6255         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
6256         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
6257         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
6258         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
6259         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
6260         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
6261         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
6262         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
6263         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
6264         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
6265         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
6266
6267         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
6268         _XOPEN_SOURCE_EXTENDED for XPG4.
6269
6270         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
6271
6272         * Makeconfig (localtime): Remove variable.
6273         (inst_localtime-file): Likewise.
6274
6275 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
6276
6277         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
6278         Update.
6279         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
6280         Update.
6281         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
6282         Update.
6283         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
6284         Update.
6285         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
6286         Update.
6287         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
6288         Update.
6289         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
6290         Update.
6291         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
6292         Update.
6293         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
6294         Update.
6295
6296 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
6297
6298         [BZ #2550]
6299         [BZ #2570]
6300         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
6301         comparisons to determine direction to adjust input.
6302         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
6303         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
6304         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
6305         Likewise.
6306         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
6307         Likewise.
6308         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
6309         Likewise.
6310         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
6311         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
6312         Likewise.
6313         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
6314         Likewise.
6315         * math/libm-test.inc (nexttoward_test): Add more tests.
6316
6317 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
6318
6319         [BZ #14040]
6320         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
6321         in version GLIBC_2.1, not GLIBC_2.0.
6322         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
6323         Likewise.
6324
6325 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
6326
6327         [BZ #13942]
6328         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
6329         (1 - x) * (1 + x).
6330         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
6331         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
6332         * math/libm-test.inc (acos_test): Add more tests.
6333         (asin_test): Likewise.
6334         * sysdeps/i386/fpu/libm-test-ulps: Update.
6335         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6336
6337         [BZ #14034]
6338         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
6339         of square root.
6340         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
6341         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
6342         * math/libm-test.inc (acos_test_tonearest): New function.
6343         (acos_test_towardzero): Likewise.
6344         (acos_test_downward): Likewise.
6345         (acos_test_upward): Likewise.
6346         (asin_test_tonearest): Likewise.
6347         (asin_test_towardzero): Likewise.
6348         (asin_test_downward): Likewise.
6349         (asin_test_upward): Likewise.
6350         (main): Call the new functions.
6351         * sysdeps/i386/fpu/libm-test-ulps: Update.
6352         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6353
6354         [BZ #13884]
6355         [BZ #13924]
6356         * math/e_exp10.c: Include <float.h>.
6357         (__ieee754_exp10): Handle underflow here rather than multiplying
6358         large negative argument by M_LN10.
6359         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
6360         of __ieee754_expf.
6361         * math/e_exp10l.c: Include <float.h>.
6362         (__ieee754_exp10l): Handle underflow here rather than multiplying
6363         large negative argument by M_LN10l.
6364         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
6365         spurious overflow exception on underflow.
6366
6367 2012-04-29  Marek Polacek  <polacek@redhat.com>
6368
6369         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
6370         (__fortify_function): New macro.
6371         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
6372         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
6373         __extern_always_inline.
6374         * libio/bits/stdio2.h: Likewise.
6375         * libio/bits/stdio.h: Likewise.
6376         * string/string.h: Likewise.
6377         * string/bits/string3.h: Likewise.
6378         * include/stdio.h: Likewise.
6379         * stdlib/bits/stdlib.h: Likewise.
6380         * stdlib/stdlib.h: Likewise.
6381         * rt/bits/mqueue2.h: Likewise.
6382         * rt/mqueue.h: Likewise.
6383         * posix/bits/unistd.h: Likewise.
6384         * posix/unistd.h: Likewise.
6385         * io/bits/poll2.h: Likewise.
6386         * io/bits/fcntl2.h: Likewise.
6387         * io/fcntl.h: Likewise.
6388         * io/sys/poll.h: Likewise.
6389         * misc/bits/syslog.h: Likewise.
6390         * misc/bits/syslog-ldbl.h: Likewise.
6391         * misc/sys/syslog.h: Likewise.
6392         * socket/bits/socket2.h: Likewise.
6393         * socket/sys/socket.h: Likewise.
6394         * debug/tst-chk1.c: Likewise.
6395         * wcsmbs/bits/wchar2.h: Likewise.
6396         * wcsmbs/bits/wchar-ldbl.h: Likewise.
6397         * wcsmbs/wchar.h: Likewise.
6398
6399 2012-04-29  Andreas Jaeger  <aj@suse.de>
6400
6401         * Makerules (tests): Remove enable-check-abi protection.
6402         (check-abi-warn): Remove.
6403         (check-abi-%): Remove check-abi-warn usage.
6404
6405         * configure.in: Remove check-abi configure option.
6406         * configure: Regenerated.
6407         * config.make.in (enable-check-abi): Remove.
6408
6409 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
6410
6411         [BZ #14033]
6412         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
6413         double functions to double *_finite functions.
6414
6415         [BZ #13941]
6416         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
6417         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
6418         LDBL_MIN_EXP.
6419         * stdio-common/Makefile (tests): Add tst-sprintf3.
6420         * stdio-common/tst-sprintf3.c: New file.
6421
6422         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
6423         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
6424
6425 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
6426
6427         * conform/conformtest.pl: Remove duplicate typed-constant
6428         handling.
6429
6430 2012-04-28  David S. Miller  <davem@davemloft.net>
6431
6432         * Makerules (%.abilist): Add vpath on sysdep_dirs.
6433         (check-abi-%): Remove AWK script prerequisite and explicit
6434         abilist directory.
6435         (check-abi): Rewrite to just diff the symlist with the abilist.
6436         (config-tls, config-abi-config): Delete, no longer used.
6437         (update-abi-%): Remove AWK script and explicit abilist directory.
6438         (update-abi): Rewrite to simply compare and conditionally copy the
6439         symlist and the sysdep abilist file.  Remove update-abi-config
6440         checks.
6441         * abilist/ld.abilist: Remove.
6442         * abilist/libBrokenLocale.abilist: Remove.
6443         * abilist/libanl.abilist: Remove.
6444         * abilist/libcrypt.abilist: Remove.
6445         * abilist/libdl.abilist: Remove.
6446         * abilist/librt.abilist: Remove.
6447         * abilist/libthread_db.abilist: Remove.
6448         * abilist/libutil.abilist: Remove.
6449         * scripts/extract-abilist.awk: Remove.
6450         * scripts/merge-abilist.awk: Remove.
6451         * sysdeps/generic/libcidn.abilist: New file.
6452         * sysdeps/generic/libnss_compat.abilist: New file.
6453         * sysdeps/generic/libnss_db.abilist: New file.
6454         * sysdeps/generic/libnss_dns.abilist: New file.
6455         * sysdeps/generic/libnss_files.abilist: New file.
6456         * sysdeps/generic/libnss_hesiod.abilist: New file.
6457         * sysdeps/generic/libnss_nis.abilist: New file.
6458         * sysdeps/generic/libnss_nisplus.abilist: New file.
6459         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
6460         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
6461         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
6462         file.
6463         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
6464         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
6465         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
6466         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
6467         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
6468         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
6469         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
6470         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
6471         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
6472         file.
6473         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
6474         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
6475         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
6476         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
6477         file.
6478         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
6479         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
6480         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
6481         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
6482         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
6483         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
6484         file.
6485         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
6486         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
6487         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
6488         file.
6489         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
6490         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
6491         New file.
6492         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
6493         New file.
6494         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
6495         New file.
6496         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
6497         New file.
6498         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
6499         New file.
6500         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
6501         New file.
6502         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
6503         New file.
6504         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
6505         New file.
6506         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
6507         New file.
6508         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
6509         New file.
6510         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
6511         New file.
6512         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
6513         New file.
6514         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
6515         New file.
6516         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
6517         file.
6518         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
6519         New file.
6520         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
6521         New file.
6522         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
6523         file.
6524         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
6525         New file.
6526         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
6527         New file.
6528         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
6529         file.
6530         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
6531         New file.
6532         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
6533         New file.
6534         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
6535         New file.
6536         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
6537         New file.
6538         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
6539         New file.
6540         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
6541         New file.
6542         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
6543         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
6544         file.
6545         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
6546         New file.
6547         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
6548         file.
6549         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
6550         file.
6551         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
6552         file.
6553         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
6554         file.
6555         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
6556         file.
6557         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
6558         New file.
6559         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
6560         file.
6561         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
6562         file.
6563         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
6564         New file.
6565         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
6566         file.
6567         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
6568         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
6569         file.
6570         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
6571         New file.
6572         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
6573         file.
6574         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
6575         file.
6576         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
6577         file.
6578         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
6579         file.
6580         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
6581         file.
6582         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
6583         New file.
6584         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
6585         file.
6586         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
6587         file.
6588         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
6589         New file.
6590         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
6591         file.
6592         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
6593         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
6594         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
6595         file.
6596         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
6597         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
6598         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
6599         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
6600         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
6601         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
6602         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
6603         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
6604         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
6605         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
6606         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
6607         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
6608         file.
6609         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
6610         New file.
6611         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
6612         file.
6613         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
6614         file.
6615         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
6616         file.
6617         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
6618         file.
6619         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
6620         file.
6621         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
6622         New file.
6623         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
6624         New file.
6625         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
6626         file.
6627         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
6628         New file.
6629         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
6630         file.
6631         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
6632         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
6633         file.
6634         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
6635         New file.
6636         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
6637         file.
6638         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
6639         file.
6640         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
6641         file.
6642         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
6643         file.
6644         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
6645         file.
6646         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
6647         New file.
6648         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
6649         New file.
6650         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
6651         file.
6652         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
6653         New file.
6654         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
6655         file.
6656
6657 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
6658
6659         * conform/conformtest.pl: Fix typo in handling typed-constant from
6660         allow-header.
6661
6662 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
6663
6664         * README: Cut down references to pre-2.6 Linux kernels and
6665         Linuxthreads.  Update lists of configurations in libc and ports
6666         and sort alphabetically.  Say "or newer" with Linux kernel version
6667         requirements.
6668
6669         * config.h.in [IS_IN_build]: Allow compiling without optimization.
6670
6671 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
6672
6673         [BZ #887]
6674         * math/libm-test.inc (logb_test_downward): New test to expose
6675         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
6676         rounding mode.
6677
6678 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
6679
6680         [BZ #14027]
6681         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
6682         to be done.
6683         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
6684         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
6685
6686 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
6687
6688         * sysdeps/unix/i386/brk.S: Remove file.
6689         * sysdeps/unix/i386/dl-brk.S: Likewise.
6690         * sysdeps/unix/i386/pipe.S: Likewise.
6691         * sysdeps/unix/i386/sigreturn.S: Likewise.
6692         * sysdeps/unix/i386/syscall.S: Likewise.
6693         * sysdeps/unix/i386/vfork.S: Likewise.
6694         * sysdeps/unix/i386/wait.S: Likewise.
6695
6696         * sysdeps/unix/common/tcsendbrk.c: Move to ...
6697         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
6698
6699         * configure.in (arm*-none*): Do not allow without
6700         --enable-hacker-mode.
6701         (netbsd*): Remove case setting base_os.
6702         (386bsd*): Likewise.
6703         (freebsd*): Likewise.
6704         (bsdi*): Likewise.
6705         (osf*): Likewise.
6706         (sunos*): Likewise.
6707         (ultrix*): Likewise.
6708         (newsos*): Likewise.
6709         (dynix*): Likewise.
6710         (*bsd*): Likewise.
6711         (sysv*): Likewise.
6712         (isc*): Likewise.
6713         (esix*): Likewise.
6714         (sco*): Likewise.
6715         (minix*): Likewise.
6716         (irix4*): Likewise.
6717         (irix6*): Likewise.
6718         (solaris[2-9]*): Likewise.
6719         (none): Likewise.
6720         * configure: Regenerated.
6721
6722 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6723
6724         [BZ #11521]
6725         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
6726         overflow or cancellation in calculating denominator.
6727         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
6728         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
6729         down expression to avoid unexpected rounding in newer GCCs.
6730         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
6731
6732 2012-04-26  David S. Miller  <davem@davemloft.net>
6733
6734         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
6735         long-double compat symbols.
6736         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
6737         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
6738         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
6739         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
6740         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
6741         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
6742         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
6743         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
6744         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
6745         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
6746         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
6747         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
6748         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
6749
6750 2012-04-25  David S. Miller  <davem@davemloft.net>
6751
6752         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
6753         HWCAP_* values only after the memory barriers have been defined.
6754         (atomic_full_barrier): Define.
6755         (atomic_read_barrier): Define.
6756         (atomic_write_barrier): Define.
6757
6758 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
6759
6760         * shlib-versions: Add libgcc_s version information.
6761         * sysdeps/generic/libgcc_s.h: Remove.
6762         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
6763         libgcc_s.h.
6764         * sysdeps/gnu/unwind-resume.c: Likewise.
6765         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
6766
6767 2012-04-25  David S. Miller  <davem@davemloft.net>
6768
6769         * sysdeps/unix/sparc/brk.S: Delete.
6770         * sysdeps/unix/sparc/dl-brk.S: Delete.
6771         * sysdeps/unix/sparc/pipe.S: Delete.
6772         * sysdeps/unix/sparc/sysdep.S: Delete.
6773         * sysdeps/unix/sparc/sysdep.h: Delete.
6774         * sysdeps/unix/sparc/vfork.S: Delete.
6775         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
6776         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
6777         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
6778         ret_ERRVAL, r0, r1, MOVE): Define.
6779         (JUMPTARGET): Remove.
6780         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
6781         sysdeps/unix/sparc/sysdep.h
6782         (ENTRY, END): Remove.
6783         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
6784
6785 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
6786
6787         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
6788         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
6789         -DIS_IN_build.
6790
6791         * timezone/README: Update upstream location and email address for
6792         tzcode and tzdata.
6793         * timezone/zdump.c: Update from tzcode 2012b.
6794         * timezone/zic.c: Likewise.
6795
6796         * configure.in (libc_cv_as_needed): Remove test.
6797         * configure: Regenerated.
6798         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
6799         conditional definition.
6800         [$(have-as-needed) != yes] (no-as-needed): Likewise.
6801         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
6802         * config.make.in (have-as-needed): Remove variable.
6803
6804 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
6805             Paul Pluzhnikov  <ppluzhnikov@google.com>
6806
6807         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
6808         strings correctly.
6809
6810 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
6811
6812         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
6813         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
6814         * sysdeps/sh/strlen.S: Likewise.
6815
6816 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
6817
6818         * sysdeps/unix/fork.S: Remove file.
6819         * sysdeps/unix/i386/fork.S: Likewise.
6820         * sysdeps/unix/sparc/fork.S: Likewise.
6821
6822         * sysdeps/unix/system.c: Remove file.
6823         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
6824
6825         * sysdeps/unix/getegid.S: Remove file.
6826         * sysdeps/unix/geteuid.S: Likewise.
6827
6828 2012-04-24  Roland McGrath  <roland@hack.frob.com>
6829
6830         * scripts/check-localplt.awk: New file.
6831         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
6832         of diff.
6833         * scripts/data/localplt-generic.data: Add a comment.
6834
6835         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
6836         NODE when __dir_mkfile failed.
6837         * sysdeps/mach/hurd/symlinkat.c: Likewise.
6838         Reported by Ludovic Courtès <ludo@gnu.org>.
6839
6840 2012-04-24  Andreas Jaeger  <aj@suse.de>
6841
6842         * Makerules (common-clean): Also remove gen-as-const-headers
6843         files.
6844
6845 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
6846
6847         * Makerules (native-compile): Do not change working directory for
6848         build.  Use $(OUTPUT_OPTION) in command.
6849         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
6850
6851 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6852
6853         [BZ #13886]
6854         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
6855         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
6856         * math/libm-test.inc (floor_test): Add more tests.
6857         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
6858
6859 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
6860
6861         * sysdeps/unix/getdents.c: Remove file.
6862         * sysdeps/unix/sysv/getdents.c: Likewise.
6863         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
6864
6865         * sysdeps/unix/syscalls.list (madvise): Add syscall from
6866         sysdeps/unix/mman/syscalls.list.
6867         (mmap): Likewise.
6868         (mprotect): Likewise.
6869         (msync): Likewise.
6870         (munmap): Likewise.
6871         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
6872         * sysdeps/unix/mman/syscalls.list: Remove.
6873         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
6874
6875         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
6876         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
6877         * configure: Regenerated.
6878         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
6879         $(libgcc_s_suffix).
6880         * config.make.in (libgcc_s_suffix): Remove variable.
6881
6882 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
6883
6884         * sysdeps/unix/sysv/gethostname.c: Move to ...
6885         * sysdeps/posix/gethostname.c: ... here.
6886
6887         * sysdeps/unix/execve.S: Remove file.
6888
6889         * sysdeps/unix/_exit.S: Remove file.
6890
6891 2012-04-23  Andreas Jaeger  <aj@suse.de>
6892
6893         [BZ #13739]
6894         * manual/Makefile: Remove make dist support, there's no
6895         need for a stand-alone documentation tar ball.
6896         (TEXI2DVI): Define always, it's not in Makeconfig.
6897         (dist): Removed.
6898         (tar-it): Removed.
6899         (edition): Removed.
6900         (glibc-doc-$(edition).tar): Removed
6901         (%.Z): Removed.
6902         (%.gz): Removed.
6903         (%.uu): Removed.
6904         (ETAGS): Remove, it's in Makeconfig.
6905         (move-if-change): Remove, it's in Makeconfig.
6906
6907 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
6908
6909         [BZ #13970]
6910         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
6911         (strtod, strtof, strtold, strtol, strtoul, strtoq)
6912         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
6913         (strtod_l, strtof_l, strtold_l): Remove __wur.
6914         It is not necessarily an error to ignore strtol's return value.
6915         One can reliably look at the stored endptr to decide whether
6916         the number had valid syntax.
6917
6918 2012-04-21  Andreas Jaeger  <aj@suse.de>
6919
6920         [BZ #13739]
6921         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
6922
6923 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
6924
6925         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
6926         * sysdeps/unix/sysv/Versions: Remove file.
6927
6928 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
6929
6930         [BZ #13927]
6931         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6932
6933 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
6934
6935         [BZ #7064]
6936         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
6937         version from __vm86.
6938
6939 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
6940
6941         * sysdeps/unix/common/lxstat.c: Remove file.
6942         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
6943
6944         * sysdeps/unix/sysv/Makefile: Remove file.
6945
6946         * sysdeps/unix/sysv/direct.h: Remove file.
6947
6948         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
6949         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
6950         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
6951         * sysdeps/unix/sysv/bits/signum.h: Likewise.
6952         * sysdeps/unix/sysv/bits/stat.h: Likewise.
6953         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
6954         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
6955
6956         * sysdeps/unix/sysv/setrlimit.c: Remove file.
6957
6958         * sysdeps/unix/xmknod.c: Remove file.
6959         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
6960
6961         * sysdeps/unix/sysv/settimeofday.c: Remove file.
6962
6963         * sysdeps/unix/sysv/i386/time.S: Remove file.
6964
6965         * sysdeps/unix/fxstat.c: Remove file.
6966         * sysdeps/unix/xstat.c: Likewise.
6967         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
6968
6969         * sysdeps/unix/sysv/sigaction.c: Remove file.
6970
6971         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
6972         (sysdep_headers): Remove variable.
6973         [termio.h not in sysdep_headers] (generated): Likewise.
6974         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
6975         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
6976         * sysdeps/unix/sysv/tcdrain.c: Likewise.
6977         * sysdeps/unix/sysv/tcflow.c: Likewise.
6978         * sysdeps/unix/sysv/tcflush.c: Likewise.
6979         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
6980         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
6981         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
6982         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
6983         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
6984
6985         * sysdeps/unix/siglist.c: Remove file.
6986
6987         * sysdeps/unix/getppid.S: Remove file.
6988
6989         * sysdeps/unix/mkdir.c: Remove file.
6990         * sysdeps/unix/rmdir.c: Likewise.
6991
6992 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
6993
6994         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
6995         ERR_MAX value.
6996         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
6997         errlist-compat value.
6998
6999 2012-04-18  David S. Miller  <davem@davemloft.net>
7000
7001         * sysdeps/generic/memcopy.h (reg_char): Delete.
7002         * debug/strcat_chk.c: Use char, not reg_char.
7003         * debug/strcpy_chk.c: Likewise.
7004         * debug/strncat_chk.c: Likewise.
7005         * debug/strncpy_chk.c: Likewise.
7006         * string/memchr.c: Likewise.
7007         * string/memrchr.c: Likewise.
7008         * string/rawmemchr.c: Likewise.
7009         * string/strcat.c: Likewise.
7010         * string/strchr.c: Likewise.
7011         * string/strchrnul.c: Likewise.
7012         * string/strcmp.c: Likewise.
7013         * string/strcpy.c: Likewise.
7014         * string/strncat.c: Likewise.
7015         * string/strncmp.c: Likewise.
7016         * string/strncpy.c: Likewise.
7017
7018 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
7019
7020         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
7021         __builtin_memcopy is called when src and dest ranges are known to not
7022         overlap.
7023
7024 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
7025
7026         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
7027         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
7028         fwd_align_merge macro call.
7029         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
7030         bwd_align_merge macro call.
7031         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
7032
7033 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
7034
7035         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
7036         bwd_align_merge macros.
7037         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
7038         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
7039         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
7040
7041 2012-04-18  David S. Miller  <davem@davemloft.net>
7042
7043         * sysdeps/sparc/sparc64/memcopy.h: Delete.
7044
7045 2012-04-18  Andreas Jaeger  <aj@suse.de>
7046
7047         [BZ# 6794]
7048         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
7049         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
7050         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
7051
7052         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
7053         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
7054         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
7055
7056         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
7057         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
7058         Adjust for changed ldbl-128 files.
7059
7060         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
7061         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
7062         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
7063
7064 2012-04-17  David S. Miller  <davem@davemloft.net>
7065
7066         * sysdeps/sparc/sparc32/memcopy.h: Delete.
7067
7068 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
7069
7070         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
7071         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
7072         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
7073         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
7074         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
7075         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
7076
7077 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7078
7079         [BZ #6794]
7080         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
7081         * math/libm-test.inc: Add ilogb errno and exception tests.
7082         * math/w_ilogb.c: New file: ilogb wrapper.
7083         * math/w_ilogbf.c: New file: ilogbf wrapper.
7084         * math/w_ilogbl.c: New file: ilogbl wrapper.
7085         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
7086         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
7087         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
7088         exception being thrown with 0.0 as argument.
7089         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
7090         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
7091         exception being thrown with 0.0 as argument.
7092         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
7093         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
7094         exception being thrown with 0.0 as argument.
7095         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
7096         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
7097         exception being thrown with 0.0 as argument.
7098         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
7099         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
7100         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
7101         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
7102         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
7103         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
7104         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
7105         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
7106         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
7107
7108 2012-04-17  Petr Baudis  <pasky@ucw.cz>
7109
7110         * include/sys/uio.h: Change __vector to __iovec to avoid clash
7111         with altivec.
7112
7113 2012-04-16  Marek Polacek  <polacek@redhat.com>
7114
7115         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
7116
7117 2012-04-16  Marek Polacek  <polacek@redhat.com>
7118
7119         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
7120         operands of fdivp instruction.
7121
7122 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
7123
7124         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
7125         * elf/tst-auditmod3b.c: Likewise.
7126         * elf/tst-auditmod4b.c: Likewise.
7127         * elf/tst-auditmod5b.c: Likewise.
7128         * elf/tst-auditmod6b.c: Likewise.
7129         * elf/tst-auditmod6c.c: Likewise.
7130         * elf/tst-auditmod7b.c: Likewise.
7131         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
7132         * sysdeps/x86_64/preconfigure.in: Likewise.
7133         * sysdeps/x86_64/preconfigure: Regenerated.
7134
7135 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
7136
7137         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
7138         __ILP32__.
7139
7140 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
7141
7142         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
7143         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
7144
7145 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
7146
7147         [BZ #13973]
7148         * locale/iso-639.def: Fix gl language name. Spotted by
7149         Yaron Shahrabani.
7150
7151 2012-04-12  Roland McGrath  <roland@hack.frob.com>
7152
7153         [BZ #2074]
7154         * libio/libio.h (__io_write_fn): Update comment.
7155
7156 2012-04-12  Petr Baudis  <pasky@ucw.cz>
7157
7158         [BZ #2074]
7159         * stdio.texi (Hook Functions): The user provided writer function
7160         is not allowed to return -1.
7161
7162 2012-04-11  David S. Miller  <davem@davemloft.net>
7163
7164         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7165
7166 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
7167
7168         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
7169         Add a leading slash to rtkaio.
7170
7171 2012-04-11  Jim Meyering  <meyering@redhat.com>
7172
7173         [BZ #11959]
7174         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
7175         It is not necessarily an error to ignore fwrite's return
7176         value.  One can reliably use ferror to test for errors after
7177         the fact.
7178
7179 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
7180
7181         * bits/types.h (__snseconds_t): New type.
7182         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
7183
7184         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
7185         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
7186         (__SNSECONDS_T_TYPE): Likewise.
7187         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
7188         (__SNSECONDS_T_TYPE): Likewise.
7189         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
7190         (__SNSECONDS_T_TYPE): Likewise.
7191
7192 2012-04-10  Andreas Jaeger  <aj@suse.de>
7193
7194         [BZ #2636]
7195         * manual/time.texi (Processor Time): Return type of times is
7196         elapsed real time since an arbitrary point in the past.
7197         (CPU Time): Move CLK_TCK from here...
7198         (Processor Time): ...to here.  Correct description.
7199         * manual/conf.texi (Constants for Sysconf): Correct description of
7200         _SC_CLK_TCK.
7201
7202 2012-04-10  David S. Miller  <davem@davemloft.net>
7203
7204         [BZ #13967]
7205         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
7206         where the is a gap between DT_REL(A) and DT_JMPREL.
7207
7208 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
7209
7210         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
7211         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
7212         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
7213
7214 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
7215
7216         * elf/dl-support.c (_dl_inhibit_cache): New variable.
7217         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
7218         (dl_main): Handle --inhibit-cache.
7219         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
7220         _dl_inhibit_cache.
7221         * elf/dl-load.c (_dl_map_object): Use it.
7222         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
7223
7224 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
7225
7226         [BZ #13872]
7227         * sysdeps/i386/fpu/e_powl.S (p78): New object.
7228         (__ieee754_powl): Saturate large exponents rather than testing for
7229         overflow of y*log2(x).
7230         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
7231         * math/libm-test.inc (pow_test): Do not permit spurious overflow
7232         exceptions.
7233
7234         [BZ #11521]
7235         * math/s_ctan.c: Include <float.h>.
7236         (__ctan): Avoid internal overflow or cancellation in calculating
7237         denominator.
7238         * math/s_ctanf.c: Likewise.
7239         * math/s_ctanl.c: Likewise.
7240         * math/s_ctanh.c: Likewise.
7241         * math/s_ctanhf.c: Likewise.
7242         * math/s_ctanhl.c: Likewise.
7243         * math/libm-test.inc (ctan_test): Add more tests.
7244         (ctanh_test): Likewise.
7245         * sysdeps/i386/fpu/libm-test-ulps: Update.
7246         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7247
7248 2012-04-09  Andreas Jaeger  <aj@suse.de>
7249
7250         [BZ #6894]
7251         * manual/filesys.texi (Directory Entries): Mention that d_namlen
7252         is an optional BSD extension.
7253
7254         [BZ #10254]
7255         * manual/stdio.texi (Opening Streams): Document additional fopen
7256         parameters.
7257
7258 2012-04-09  Roland McGrath  <roland@hack.frob.com>
7259
7260         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
7261         %eax without telling the compiler.
7262
7263 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
7264
7265         [BZ # 13963]
7266         * manual/install.texi: Use sourceware.org.
7267
7268 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
7269
7270         [BZ #13873]
7271         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
7272         (__ieee754_pow): Generate overflow and underflow using huge*huge
7273         and tiny*tiny rather than just returning constant infinity or zero
7274         for large exponents.
7275         * math/libm-test.inc (pow_test): Require overflow exceptions for
7276         applicable cases of large exponents.
7277
7278         [BZ #706]
7279         * sysdeps/i386/fpu/e_pow.S (p10): New object.
7280         (__ieee754_pow): Use iterative multiplication algorithm only for
7281         integer exponents with absolute value below 1024.  Check for odd
7282         integer exponents when using algorithm for real exponents.
7283         * math/libm-test.inc (pow_test): Add more tests.
7284         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7285
7286 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
7287
7288         [BZ #13705]
7289         * math/libm-test.inc (exp_test): Do not allow overflow exception
7290         on underflow test.
7291
7292 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
7293
7294         [BZ #13705]
7295         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
7296         instead of __kernel_standard_f.
7297
7298 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
7299
7300         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
7301         * sysdeps/x86_64/memset_chk.S: Likewise.
7302
7303 2012-04-08  Andreas Jaeger  <aj@suse.de>
7304
7305         [BZ #10153]
7306         * manual/startup.texi (Environment Access): Describe return value
7307         for putenv and setenv.
7308
7309         [BZ #6895]
7310         * manual/filesys.texi (Directory Entries): Add description for
7311         DT_LNK.
7312
7313         [BZ #6890]
7314         * manual/filesys.texi (Directory Entries): Clarify that it's file
7315         system not operating system in the description of DT_UNKNOWN.
7316
7317         [BZ #6578]
7318         * manual/syslog.texi (closelog): Fix reference, it's openlog.
7319
7320 2012-04-08  Stephen Compall  <s11@member.fsf.org>
7321
7322         [BZ #6649]
7323         * manual/llio.texi (Opening and Closing Files): Add cross
7324         reference to explain mode argument.
7325
7326 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
7327
7328         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
7329         * sysdeps/x86_64/memset_chk.S: Likewise.
7330
7331 2012-04-07  David S. Miller  <davem@davemloft.net>
7332
7333         * elf/elf.h (R_SPARC_WDISP10): Define.
7334         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
7335         R_SPARC_SIZE32.
7336         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
7337         R_SPARC_SIZE64 and R_SPARC_H34.
7338
7339 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
7340
7341         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
7342         conditions and remove no longer applicable assertion.
7343
7344 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
7345
7346         * bits/byteswap.h: Include <features.h>.
7347         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
7348         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
7349
7350 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
7351
7352         * bits/byteswap.h (__bswap_16): Removed.
7353         Include <bits/byteswap-16.h> to get __bswap_16.
7354         * sysdeps/i386/bits/byteswap.h: Likewise.
7355         * sysdeps/s390/bits/byteswap.h: Likewise.
7356         * sysdeps/x86_64/bits/byteswap.h: Likewise.
7357         * bits/byteswap-16.h: New file.
7358         * sysdeps/i386/bits/byteswap-16.h: Likewise.
7359         * sysdeps/s390/bits/byteswap-16.h: Likewise.
7360         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
7361         * string/Makefile (headers): Add bits/byteswap-16.h.
7362
7363 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
7364
7365         [BZ #13895]
7366         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
7367         extra indirection.
7368         * nss/Makefile (tests-static, tests): Add tst-nss-static.
7369         * nss/tst-nss-static.c: New.
7370
7371 2012-04-06  Robert Millan  <rmh@gnu.org>
7372
7373         [BZ #6486]
7374         * manual/llio.texi (File Position Primitive): lseek
7375         refers to WHENCE when it really means OFFSET.
7376
7377 2012-04-06  Andreas Jaeger  <aj@suse.de>
7378
7379         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
7380         strncmp declarations.
7381
7382         * abilist/libc.abilist: Add __poll and __ppoll.
7383
7384 2012-04-05  David S. Miller  <davem@davemloft.net>
7385
7386         * scripts/check-local-headers.sh: Accept a host triplet in the
7387         path matched by the exclude regexp.
7388
7389         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
7390         definition.
7391         * sysdeps/powerpc/powerpc32/dl-machine.h
7392         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
7393         * sysdeps/s390/s390-32/dl-machine.h
7394         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
7395         * sysdeps/sparc/sparc32/dl-machine.h
7396         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
7397         * sysdeps/sparc/sparc64/dl-machine.h
7398         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
7399
7400         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
7401         lazy binding.
7402         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
7403         undefined symbol errors.
7404
7405         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
7406         DT_NEEDED entries.
7407
7408 2012-04-05  Michael Matz  <matz@suse.de>
7409
7410         [BZ #13592]
7411         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
7412
7413 2012-04-05  Andreas Jaeger  <aj@suse.de>
7414
7415         [BZ #13908]
7416         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
7417         comment.
7418
7419 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
7420
7421         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
7422         which ROUND is no valid rounding mode.
7423
7424 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
7425
7426         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
7427         read again.
7428         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
7429
7430 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
7431
7432         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
7433         an exception using FPU order intentionally.
7434
7435 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
7436
7437         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
7438         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
7439         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
7440         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
7441
7442 2012-04-05  Simon Josefsson  <simon@josefsson.org>
7443
7444         [BZ #12340]
7445         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
7446         EINVAL when BUFLEN is too smal.
7447
7448 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
7449
7450         [BZ #13553]
7451         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
7452         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
7453
7454 2012-04-03  Andreas Jaeger  <aj@suse.de>
7455
7456         [BZ #13938]
7457         * manual/setjmp.texi (System V contexts): Fix sentence.
7458
7459         [BZ #13926]
7460         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
7461         New macro for this case.
7462         [!__GNUC__] (__bswap_64): New inline function for this case.
7463         * sysdeps/x86_64/bits/byteswap.h: Likewise.
7464         * bits/byteswap.h: Likewise.
7465         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
7466         ull, guard with __GLIBC_HAVE_LONG_LONG.
7467
7468         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
7469         __GLIBC_HAVE_LONG_LONG.
7470
7471         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
7472         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
7473
7474 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
7475
7476         [BZ #13691]
7477         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
7478         inptr and inend, rather than using last_ch.
7479
7480 2012-04-02  David S. Miller  <davem@davemloft.net>
7481
7482         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
7483         * stdio-common/printf-parse.h (read_int): Change return type to
7484         'int', return -1 on INT_MAX overflow.
7485         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
7486         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
7487         overflows INT_MAX.  Check for overflow of in-format-string precision
7488         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
7489         SIZE_MAX not INT_MAX for integer overflow test.
7490         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
7491         skip the construct in the format string but do not record anything.
7492         * stdio-common/bug22.c: Adjust to test both width/prevision
7493         INT_MAX overflow as well as total length INT_MAX overflow.  Check
7494         explicitly for proper errno values.
7495
7496 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
7497
7498         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
7499         CHAR_MAX.
7500         * string/test-strcmp.c [! WIDE]: Likewise.
7501         * time/tst-mktime2.c: Likewise for INT_MAX.
7502         * string/test-string.h: #include <sys/param.h> for MIN.
7503
7504         * csu/init-first.c (__libc_init_first): Call __ctype_init.
7505         * sysdeps/i386/init-first.c (init): Likewise.
7506         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
7507         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
7508         * sysdeps/sh/init-first.c (init): Likewise.
7509
7510 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
7511
7512         * po/ru.po: Update from translation team.
7513         * po/vi.po: Likewise.
7514
7515 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
7516
7517         * resolv/nss_dns/dns-host.c: Merge copyright years.
7518
7519 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7520
7521         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
7522         Optimize memcpy with prefetch if
7523         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
7524         src, dst pointers have unequal 16 byte alignments.
7525
7526 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
7527
7528         [BZ #13928]
7529         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
7530         from a CNAME entry and return the minimum ttl for the query.
7531         (gaih_getanswer_slice): Likewise.
7532
7533 2012-03-30  Jeff Law  <law@redhat.com>
7534
7535         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
7536         due to long keys.
7537         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
7538         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
7539
7540         * resolv/nss_dns/dns-host.c: Update copyright year.
7541
7542 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
7543
7544         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
7545         requests to save a system call.  Fix check that all bytes are sent.
7546
7547         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
7548         comments for sendmmsg.
7549
7550 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
7551
7552         [BZ #13691]
7553         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
7554         with only 1 character between 0x0041 and 0x01b0.
7555         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
7556         * wcsmbs/tst-mbsnrtowcs.c: New file.
7557
7558 2012-03-29  David S. Miller  <davem@davemloft.net>
7559
7560         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
7561         small copies by hand.
7562
7563 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
7564
7565         [BZ #13761]
7566         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
7567         _nss_compat_initgroups_dyn): Fall back to malloc/free
7568         for large group memberships.
7569
7570 2012-03-28  David S. Miller  <davem@davemloft.net>
7571
7572         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
7573         that branches into memcpy.
7574         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
7575         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
7576         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
7577         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
7578         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
7579         bits.
7580         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
7581         implementation too.
7582         * sysdeps/sparc/mempcpy.S: New file.
7583
7584         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
7585         the IFUNC routine in the libc case.
7586         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
7587
7588         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
7589         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
7590         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
7591         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
7592         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
7593         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
7594         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
7595         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
7596
7597         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
7598         loop to 256 bytes instead of 64 bytes and fix test signedness.
7599
7600         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
7601         * sysdeps/sparc/sparc32/Makefile: rather than here...
7602         * sysdeps/sparc/sparc64/Makefile: and here.
7603
7604 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
7605
7606         * malloc/mallocbug.c: Avoid warnings about unused variables.
7607
7608 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
7609
7610         [BZ #13760]
7611         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
7612         in the right place. Discard and retry query if response is
7613         larger than input buffer size.
7614
7615 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
7616
7617         [BZ #369]
7618         [BZ #2678]
7619         [BZ #3866]
7620         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
7621         x for large integer exponent.
7622         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
7623         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
7624         sign of result as needed afterwards.
7625         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
7626         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
7627         result for underflowing pow the same as for overflow.
7628         (__kernel_standard_l): Handle powl overflow and underflow here
7629         rather than calling __kernel_standard.
7630         * math/libm-test.inc (pow_test): Add more tests.
7631
7632         [BZ #3868]
7633         [BZ #13879]
7634         [BZ #13910]
7635         [BZ #13911]
7636         [BZ #13912]
7637         [BZ #13913]
7638         [BZ #13915]
7639         [BZ #13916]
7640         [BZ #13917]
7641         [BZ #13918]
7642         [BZ #13919]
7643         [BZ #13920]
7644         [BZ #13921]
7645         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
7646         * sysdeps/ieee754/k_standard.c: Include <float.h>.
7647         (__kernel_standard_l): New function.
7648         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
7649         __kernel_standard.
7650         * math/w_acosl.c (__acosl): Likewise.
7651         * math/w_asinl.c (__asinl): Likewise.
7652         * math/w_atan2l.c (__atan2l): Likewise.
7653         * math/w_atanhl.c (__atanhl): Likewise.
7654         * math/w_coshl.c (__coshl): Likewise.
7655         * math/w_exp10l.c (__exp10l): Likewise.
7656         * math/w_exp2l.c (__exp2l): Likewise.
7657         * math/w_fmodl.c (__fmodl): Likewise.
7658         * math/w_hypotl.c (__hypotl): Likewise.
7659         * math/w_j0l.c (__j0l, __y0l): Likewise.
7660         * math/w_j1l.c (__j1l, __y1l): Likewise.
7661         * math/w_jnl.c (__jnl, __ynl): Likewise.
7662         * math/w_lgammal.c (__lgammal): Likewise.
7663         * math/w_log10l.c (__log10l): Likewise.
7664         * math/w_log2l.c (__log2l): Likewise.
7665         * math/w_logl.c (__logl): Likewise.
7666         * math/w_powl.c (__powl): Likewise.
7667         * math/w_remainderl.c (__remainderl): Likewise.
7668         * math/w_scalbl.c (sysv_scalbl): Likewise.
7669         * math/w_sinhl.c (__sinhl): Likewise.
7670         * math/w_sqrtl.c (__sqrtl): Likewise.
7671         * math/w_tgammal.c (__tgammal): Likewise.
7672         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
7673         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
7674         * math/libm-test.inc (acos_test): Add more tests.
7675         (acosh_test): Likewise.
7676         (asin_test): Likewise.
7677         (atanh_test): Likewise.
7678         (exp_test): Likewise.
7679         (exp10_test): Likewise.
7680         (exp2_test): Likewise.
7681         (expm1_test): Likewise.
7682         (lgamma_test): Likewise.
7683         (log_test): Likewise.
7684         (log10_test): Likewise.
7685         (log1p_test): Likewise.
7686         (log2_test): Likewise.
7687         (pow_test): Do not allow some spurious overflow exceptions.
7688         (sqrt_test): Add more tests.
7689         (tgamma_test): Likewise.
7690         (y0_test): Likewise.
7691         (y1_test): Likewise.
7692         (yn_test): Likewise.
7693
7694 2012-03-27  Anton Blanchard  <anton@samba.org>
7695
7696         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
7697         MAP_HUGETLB.
7698         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
7699         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
7700         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
7701
7702 2012-03-27  David S. Miller  <davem@davemloft.net>
7703
7704         * conform/Makefile: Run run-conformtest.sh using $(BASH).
7705
7706         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
7707         have-as-vis3 check.
7708
7709 2012-03-27  Andreas Jaeger  <aj@suse.de>
7710
7711         * sysdeps/x86_64/elf/configure.in: Moved to ...
7712         * sysdeps/x86_64/configure.in: ... here.
7713         * sysdeps/x86_64/elf/start.S: Moved to ...
7714         * sysdeps/x86_64/start.S: ... here.
7715         * sysdeps/x86_64/elf/configure: Delete.
7716
7717         * sysdeps/x86_64/configure.in: Merge contents from
7718         sysdeps/i386/configure.in (without i686 check).
7719
7720         * sysdeps/i386/elf/Versions: Merge into ...
7721         * sysdeps/i386/Versions: ... this.
7722         * sysdeps/i386/elf/Versions: Delete file.
7723         * sysdeps/i386/elf/start.S: Moved to ...
7724         * sysdeps/i386/start.S: ...here.
7725         * sysdeps/i386/elf/configure.in: Merge into...
7726         * sysdeps/i386/configure.in: ...here.
7727         * sysdeps/i386/elf/configure.in: Delete file.
7728         * sysdeps/i386/elf/configure: Delete file.
7729
7730         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
7731         * debug/backtracesyms.c: ... here.
7732         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
7733         * debug/backtracesymsfd.c: ... here.
7734         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
7735         * sysdeps/generic/ifunc-sel.h: ... here.
7736
7737         * sysdeps/unix/i386/start.c: Delete file.
7738         * sysdeps/unix/sparc/start.c: Delete file.
7739         * sysdeps/unix/start.c: Delete file.
7740
7741         * sysdeps/sh/elf/configure.in: Moved to ...
7742         * sysdeps/sh/configure.in: ... here.
7743         * sysdeps/sh/elf/start.S: Moved to ...
7744         * sysdeps/sh/start.S: ... here.
7745         * sysdeps/sh/elf/configure: Delete file.
7746
7747         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
7748         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
7749         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
7750         * sysdeps/powerpc/powerpc64/entry.h: ... here.
7751         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
7752         * sysdeps/powerpc/powerpc64/start.S: here.
7753         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
7754         * sysdeps/powerpc/powerpc64/Makefile: ... this.
7755         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
7756         * sysdeps/powerpc/powerpc64/configure.in: ... this.
7757         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
7758
7759         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
7760         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
7761         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
7762         * sysdeps/powerpc/powerpc32/start.S: ... here.
7763         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
7764         * sysdeps/powerpc/powerpc32/configure.in: ... this.
7765         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
7766
7767         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
7768         * sysdeps/powerpc/ifunc-sel.h: ... here.
7769         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
7770         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
7771
7772         * sysdeps/sparc/elf/configure.in: Moved to ...
7773         * sysdeps/sparc/configure.in: ... here.
7774         * sysdeps/sparc/elf/configure: Delete file.
7775         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
7776         * sysdeps/sparc/sparc32/start.S: ... here.
7777         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
7778         * sysdeps/sparc/sparc64/start.S: ... here.
7779         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
7780         * sysdeps/sparc/sparc32/Makefile: ... this.
7781         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
7782         * sysdeps/sparc/sparc64/Makefile: ... this.
7783
7784         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
7785         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
7786         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
7787         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
7788         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
7789         * sysdeps/s390/s390-32/setjmp.S: ... here.
7790         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
7791         * sysdeps/s390/s390-32/configure.in: ... here.
7792         * sysdeps/s390/s390-32/elf/configure: Delete file.
7793         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
7794         * sysdeps/s390/s390-32/start.S: ... here.
7795
7796         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
7797         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
7798         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
7799         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
7800         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
7801         * sysdeps/s390/s390-64/setjmp.S: ... here.
7802         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
7803         * sysdeps/s390/s390-64/configure.in: ... here
7804         * sysdeps/s390/s390-64/elf/configure: Delete file.
7805         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
7806         * sysdeps/s390/s390-64/start.S: ... here.
7807         * sysdeps/s390/s390-64/elf/configure: Delete.
7808
7809         * configure.in: Remove support for elf directories in sysdeps.
7810
7811         * configure: Regenerated.
7812         * sysdeps/i386/configure: Regenerated.
7813         * sysdeps/powerpc/powerpc32/configure: Regenerated.
7814         * sysdeps/powerpc/powerpc64/configure: Regenerated.
7815         * sysdeps/s390/s390-32/configure: Regenerated.
7816         * sysdeps/s390/s390-64/configure: Regenerated.
7817         * sysdeps/sh/configure: Regenerated.
7818         * sysdeps/sparc/configure: Regenerated.
7819         * sysdeps/x86_64/configure: Regenerated.
7820
7821 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
7822
7823         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7824
7825         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
7826         denormal result into account.
7827
7828 2012-03-25  Roland McGrath  <roland@hack.frob.com>
7829
7830         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
7831         Reported by Allan McRae <allan@archlinux.org>.
7832
7833 2012-03-23  Jeff Law  <law@redhat.com>
7834
7835         * nss/getnssent.c (__nss_getent): Fix typo.
7836
7837 2012-03-23  David S. Miller  <davem@davemloft.net>
7838
7839         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7840
7841 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
7842
7843         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
7844         to pad to uint64_t for each field.
7845         (dl_tls_index): Replace unsigned long with uint64_t.
7846
7847 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
7848         Paul Pluzhnikov  <ppluzhnikov@google.com>
7849
7850         [BZ #6528]
7851         * grp/Makefile (otherlibs): Don't set it.
7852         * inet/Makefile (otherlibs): Likewise.
7853         * login/Makefile (otherlibs): Likewise.
7854         * nscd/Makefile (otherlibs): Likewise.
7855         * posix/Makefile (otherlibs): Likewise.
7856         * pwd/Makefile (otherlibs): Likewise.
7857         * rt/Makefile (otherlibs): Likewise.
7858         * sunrpc/Makefile (otherlibs): Likewise.
7859         * nss/Makefile (otherlibs): Likewise.
7860         Add libnss_files to routines and static-only-routines.
7861         ($(objpfx)getent): Remove rule.
7862         * resolv/Makefile: Add libnss_dns and libresolv to routines and
7863         static-only-routines.
7864
7865 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
7866
7867         [BZ #13892]
7868         * math/s_cexp.c: Include <float.h>.
7869         (__cexp): Handle exp result overflowing not necessarily
7870         overflowing both real and imaginary parts of result.
7871         * math/s_cexpf.c: Likewise.
7872         * math/s_cexpl.c: Likewise.
7873         * math/libm-test.inc (cexp_test): Add more tests.
7874         * sysdeps/i386/fpu/libm-test-ulps: Update.
7875         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7876
7877 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
7878
7879         * include/link.h (ELFW): New macro.
7880         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
7881         Replace ELF64_R_TYPE with ELFW(R_TYPE).
7882
7883 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
7884
7885         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
7886         with uint64_t.
7887
7888 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
7889
7890         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
7891         declaration.
7892         (struct La_x32_retval): Likewise.
7893
7894 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
7895
7896         * sysdeps/x86_64/preconfigure.in: New file.
7897         * sysdeps/x86_64/preconfigure: New generated file.
7898
7899 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
7900
7901         [BZ #13824]
7902         * math/e_exp2l.c: Include <float.h>.
7903         (__ieee754_exp2l): Handle overflow and underflow cases
7904         separately.  Only pass fractional part of argument to
7905         __ieee754_expl.
7906         * math/libm-test.inc (exp2_test): Add more tests.
7907
7908         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
7909         negating x to take absolute value.
7910         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
7911         Likewise.
7912         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
7913         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
7914         Likewise.
7915         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
7916         computing low part if x was negated.
7917         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
7918
7919 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
7920
7921         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
7922         la_x32_gnu_pltexit.
7923         (pltexit): Cast int_retval to ptrdiff_t.
7924         * elf/tst-auditmod3b.c: Likewise.
7925         * elf/tst-auditmod4b.c: Likewise.
7926         * elf/tst-auditmod5b.c: Likewise.
7927         * elf/tst-auditmod6b.c: Likewise.
7928         * elf/tst-auditmod6c.c: Likewise.
7929         * elf/tst-auditmod7b.c: Likewise.
7930
7931         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
7932         and x32_gnu_pltexit.
7933
7934         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
7935         __ELF_NATIVE_CLASS.
7936         (La_x32_regs): New macro.
7937         (La_x32_retval): Likewise.
7938         (la_x32_gnu_pltenter): New function prototype.
7939         (la_x32_gnu_pltexit): Likewise.
7940
7941 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
7942
7943         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
7944         exponent.
7945
7946         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7947
7948         * configure.in (libc_cv_cc_nofma): Check for option to disable
7949         generation of FMA instructions.
7950         * configure: Regenerate.
7951         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
7952         * sysdeps/ieee754/dbl-64/Makefile: New file.
7953         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
7954         Remove brandred-fma4.
7955         (CFLAGS-brandred-fma4.c): Remove.
7956         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
7957         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
7958         define.
7959         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
7960         define.
7961
7962 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
7963
7964         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
7965         LLONG_MAX != LONG_MAX.
7966         (_itoa_word): Use _ITOA_WORD_TYPE on value.
7967         (_fitoa_word): Likewise.
7968         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
7969         LLONG_MAX != LONG_MAX.
7970         * stdio-common/_itowa.h: Include <_itoa.h>.
7971         (_itowa_word): Use _ITOA_WORD_TYPE on value.
7972         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
7973         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
7974         only if not defined.
7975         (_ITOA_WORD_TYPE): Likewise.
7976         (_itoa_word): Use _ITOA_WORD_TYPE on value.
7977         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
7978
7979 2012-03-21  David S. Miller  <davem@davemloft.net>
7980
7981         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7982
7983 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
7984
7985         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
7986         of x86_64 when setting libc_cv_slibdir, libdir and
7987         libc_cv_localedir.
7988         * sysdeps/unix/sysv/linux/configure: Regenerated.
7989
7990 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
7991
7992         * manual/lang.texi (Old Varargs): Remove section.
7993         (How Variadic): Update menu.
7994         (va_start): Do not mention varargs.h.
7995
7996 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
7997             Joseph Myers  <joseph@codesourcery.com>
7998
7999         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
8000         link test.
8001         * configure: Regenerated.
8002
8003 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
8004
8005         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
8006         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
8007         conformtest.pl
8008
8009 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
8010
8011         * NOTES: Remove.
8012         * Makefile (files-for-dist): Remove NOTES.
8013         (NOTES): Remove rule.
8014         * README: Don't refer to NOTES.
8015         * manual/creature.texi: Don't include macros.texi.
8016         * manual/intro.texi (creature.texi): Remove comment referring to
8017         NOTES.
8018
8019         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
8020         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
8021         * configure: Regenerated.
8022         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
8023         LIBC_TRY_CC_OPTION.
8024         (libc_cv_as_i686): Likewise.
8025         (libc_cv_cc_avx): Likewise.
8026         (libc_cv_cc_sse2avx): Likewise.
8027         (libc_cv_cc_fma4): Likewise.
8028         (libc_cv_cc_novzeroupper): Likewise.
8029         * sysdeps/i386/configure: Regenerated.
8030
8031         [BZ #13883]
8032         * sysdeps/i386/fpu/s_cexp.S: Remove.
8033         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
8034         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
8035         * math/libm-test.inc (cexp_test): Add more tests.
8036         * sysdeps/i386/fpu/libm-test-ulps: Update.
8037         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8038
8039 2012-03-21  Allan McRae  <allan@archlinux.org>
8040
8041         * timezone/Makefile: Do not install iso3166.tab and zone.tab
8042
8043 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
8044
8045         [BZ #13871]
8046         * math/w_exp2.c: Do not include <float.h>.
8047         (o_threshold, u_threshold): Remove.
8048         (__exp2): Calculate result before checking finiteness and calling
8049         __kernel_standard.
8050         * math/w_exp2f.c: Likewise.
8051         * math/w_exp2l.c: Likewise.
8052         * math/libm-test.inc (exp2_test): Require overflow exception for
8053         1e6 input.
8054
8055         [BZ #3866]
8056         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
8057         range of signed 64-bit integers before using fistpll.  Remove
8058         checks for whether integers fit in mantissa bits.
8059         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
8060         the range of signed 32-bit integers before using fistpl.  Remove
8061         checks for whether integers fit in mantissa bits.
8062         * sysdeps/i386/fpu/e_powl.S (p64): New object.
8063         (__ieee754_powl): Test for y outside the range of signed 64-bit
8064         integers before using fistpll.  Reduce 64-bit values to 63-bit
8065         ones as needed.
8066         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
8067         divide-by-zero is raised for zero to large negative powers.
8068         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
8069         (__ieee754_powl): Test for y outside the range of signed 64-bit
8070         integers before using fistpll.  Reduce 64-bit values to 63-bit
8071         ones as needed.
8072         * math/libm-test.inc (pow_test): Add more tests.
8073
8074 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
8075
8076         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
8077         <stdio-common/_itoa.h>.
8078         * debug/segfault.c: Likewise.
8079         * elf/dl-cache.c: Likewise.
8080         * elf/dl-minimal.c: Likewise.
8081         * elf/dl-misc.c: Likewise.
8082         * elf/dl-sysdep.c: Likewise.
8083         * elf/dl-version.c: Likewise.
8084         * elf/rtld.c: Likewise.
8085         * hurd/hurdsock.c: Likewise.
8086         * hurd/lookup-retry.c: Likewise.
8087         * malloc/malloc.c: Likewise.
8088         * malloc/mtrace.c: Likewise.
8089         * nscd/nscd_getgr_r.c: Likewise.
8090         * nscd/nscd_getpw_r.c: Likewise.
8091         * nscd/nscd_getserv_r.c: Likewise.
8092         * posix/getopt_init.c: Likewise.
8093         * posix/wordexp.c: Likewise.
8094         * stdio-common/_itoa.c: Likewise.
8095         * stdio-common/printf_fphex.c: Likewise.
8096         * stdio-common/vfprintf.c: Likewise.
8097         * string/_strerror.c: Likewise.
8098         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
8099         * sysdeps/i386/i686/hp-timing.h: Likewise.
8100         * sysdeps/mach/_strerror.c: Likewise.
8101         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
8102         * sysdeps/mach/hurd/sethostid.c: Likewise.
8103         * sysdeps/mach/hurd/xmknodat.c: Likewise.
8104         * sysdeps/mach/xpg-strerror.c: Likewise.
8105         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
8106         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
8107         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
8108         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
8109         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
8110         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
8111         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
8112         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
8113         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
8114         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
8115         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
8116         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
8117         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
8118         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
8119         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
8120         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
8121         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
8122         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
8123         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
8124         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
8125         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
8126
8127         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
8128
8129         * stdio-common/_itoa.h: Moved to ...
8130         * sysdeps/generic/_itoa.h: Here.
8131
8132         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
8133
8134         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
8135         instead of "_itoa.h" and "_itowa.h".
8136         * stdio-common/vfprintf.: Likewise.
8137
8138 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
8139
8140         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
8141         <bits/wordsize.h>.
8142         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
8143         (__signbit): Likwise.
8144         (llrintf): Likwise.
8145         (llrint): Likwise.
8146
8147 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
8148
8149         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
8150         __WORDSIZE != 64.
8151
8152 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
8153
8154         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
8155         OVERFLOW_EXCEPTION_OK.
8156         * math/libm-test.inc ("Philosophy"): Update comment about
8157         exception testing.
8158         (OVERFLOW_EXCEPTION): Define.
8159         (OVERFLOW_EXCEPTION_OK): Likewise.
8160         (INVALID_EXCEPTION_OK): Renumber.
8161         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
8162         (IGNORE_ZERO_INF_SIGN): Likewise.
8163         (test_exceptions): Handle FE_OVERFLOW.
8164         (exp10_test): Expect overflow exceptions.
8165         (exp2_test): Likewise.
8166         (expm1_test): Likewise.
8167         (nextafter_test): Likewise.
8168         (pow_test): Likewise.
8169         (scalbn_test): Likewise.
8170         (scalbln_test): Likewise.
8171
8172 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
8173
8174         * sysdeps/x86_64/bits/atomic.h
8175         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
8176         64bit integer.
8177         (atomic_exchange_acq): Likewise.
8178         (__arch_exchange_and_add_body): Likewise.
8179         (__arch_add_body): Likewise.
8180         (atomic_add_negative): Likewise.
8181         (atomic_add_zero): Likewise.
8182
8183 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
8184
8185         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
8186         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
8187
8188 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
8189
8190         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
8191         Check __x86_64__ instead of __WORDSIZE.
8192
8193 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
8194
8195         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
8196
8197 2012-03-19  David S. Miller  <davem@davemloft.net>
8198
8199         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8200
8201         * sysdeps/sparc/fpu/fenv_private.h: New file.
8202         * sysdeps/sparc/fpu/math_private.h: Use it.
8203         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
8204         Remove.
8205         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
8206         (libc_feholdexcept_setroundl): Remove.
8207         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
8208         Remove.
8209         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
8210         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
8211
8212 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
8213
8214         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
8215         int64_t instead of long int.
8216         (INSERT_WORDS64): Likwise.
8217
8218 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
8219
8220         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
8221         _Unwind_GetCFA return to _Unwind_Ptr first.
8222
8223 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
8224
8225         [BZ #13629]
8226         * math/s_clog.c: Include <float.h>.
8227         (__clog): Scale large or subnormal inputs.
8228         * math/s_clogf.c: Likewise.
8229         * math/s_clogl.c: Likewise.
8230         * math/s_clog10.c: Include <float.h>.
8231         (M_LOG10_2): Define.
8232         (__clog10): Scale large or subnormal inputs.
8233         * math/s_clog10f.c: Likewise.
8234         * math/s_clog10l.c: Likewise.
8235         * math/libm-test.inc (clog_test): Add more tests.
8236         (clog10_test): Likewise.
8237         * sysdeps/i386/fpu/libm-test-ulps: Update.
8238         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8239
8240         [BZ #11451]
8241         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
8242         x and y.
8243         * math/libm-test.inc (atan2_test): Add another test.
8244
8245         * Makerules (common-objdir-compile): Remove.
8246         * sysdeps/unix/Makefile (config-generated): Do not add
8247         $(unix-generated) to variable.
8248         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
8249         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
8250         Remove rule.
8251         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
8252         Likewise.
8253         [generic bits/local_lim.h] (before-compile): Do not append to
8254         variable.
8255         [generic bits/local_lim.h] (common-generated): Likewise.
8256         [generic sys/param.h] (before-compile): Do not append to variable.
8257         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
8258         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
8259         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
8260         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
8261         include.
8262         [generic sys/param.h] (sys/param.h-includes): Remove variable.
8263         [generic sys/param.h] (sys/param.h-includes): Remove rule.
8264         [generic sys/param.h] ($(addprefix
8265         $(common-objpfx),$(sys/param.h-includes))): Likewise.
8266         [generic sys/param.h] (common-generated): Do not append to
8267         variable.
8268         [generic sys/param.h] (sysdep_headers): Likewise.
8269         [generic bits/errno.h] (before-compile): Do not append to
8270         variable.
8271         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
8272         rule.
8273         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
8274         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
8275         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
8276         [generic bits/errno.h] (common-generated): Do not append to
8277         variable.
8278         [generic bits/ioctls.h] (before-compile): Do not append to
8279         variable.
8280         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
8281         rule.
8282         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
8283         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
8284         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
8285         rule.
8286         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
8287         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
8288         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
8289         [generic bits/ioctls.h] (common-generated): Do not append to
8290         variable.
8291         [generic sys/syscall.h] (syscall.h): Remove variable.
8292         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
8293         rule.
8294         [generic sys/syscall.h] (before-compile): Do not append to
8295         variable.
8296         [generic sys/syscall.h] (common-generated): Likewise.
8297         * sysdeps/unix/errnos-tmpl.c: Remove file.
8298         * sysdeps/unix/errnos.awk: Likewise.
8299         * sysdeps/unix/ioctls-tmpl.c: Likewise.
8300         * sysdeps/unix/ioctls.awk: Likewise.
8301         * sysdeps/unix/mk-local_lim.c: Likewise.
8302         * sysdeps/unix/snarf-ioctls: Likewise.
8303
8304 2012-03-19  Richard Henderson  <rth@twiddle.net>
8305
8306         * sysdeps/i386/fpu/fenv_private.h: New file.
8307         * sysdeps/i386/fpu/math_private.h: Use it.
8308         (math_opt_barrier, math_force_eval): Remove.
8309         (libc_feholdexcept_setround_53bit): Remove.
8310         (libc_feupdateenv_53bit): Remove.
8311         * sysdeps/x86_64/fpu/math_private.h: Likewise.
8312         (math_opt_barrier, math_force_eval): Remove.
8313         (libc_feholdexcept): Remove.
8314         (libc_feholdexcept_setround): Remove.
8315         (libc_fetestexcept, libc_fesetenv): Remove.
8316         (libc_feupdateenv_test): Remove.
8317         (libc_feupdateenv, libc_feholdsetround): Remove.
8318         (libc_feresetround): Remove.
8319
8320         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
8321         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
8322
8323         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
8324         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
8325         (libc_feupdateenv_testl): New.
8326         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
8327         (libc_feupdateenv_testf): New.
8328         (libc_feupdateenv): Use libc_feupdateenv_test.
8329         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
8330         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
8331
8332         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
8333         (libc_feholdsetroundf, libc_feholdsetroundl): New.
8334         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
8335         (libc_feresetround_noex): New.
8336         (libc_feresetround_noexf): New.
8337         (libc_feresetround_noexl): New.
8338         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
8339         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
8340         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
8341         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
8342         SET_RESTORE_ROUND.
8343         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
8344         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
8345         (__cos): Likewise.
8346         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
8347         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
8348         SET_RESTORE_ROUND_NOEX.
8349         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
8350         SET_RESTORE_ROUND_NOEXF.
8351         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
8352         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
8353         (libc_feholdsetroundf): New.
8354         (libc_feresetround, libc_feresetroundf): New.
8355
8356         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
8357         (libc_feholdexcept_setround_53bit): Convert from macro to function.
8358         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
8359
8360         * sysdeps/generic/math_private.h: Include <fenv.h>.
8361         (default_libc_feholdexcept): New.
8362         (default_libc_feholdexcept_setround): New.
8363         (default_libc_fesetenv, default_libc_feupdateenv): New.
8364         (libc_feholdexcept): Only define if undefined.
8365         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
8366         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
8367         (libc_feholdexcept_setroundl): Likewise.
8368         (libc_feholdexcept_setround_53bit): Likewise.
8369         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
8370         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
8371         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
8372         (libc_feupdateenv_53bit): Likewise.
8373         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
8374         (libc_feholdexcept): Convert from macro to inline function.
8375         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
8376         (libc_fesetenv, libc_feupdateenv): Likewise.
8377
8378         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
8379         not previously defined.
8380         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
8381         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
8382         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
8383         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
8384         * sysdeps/ieee754/flt-32/math_private.h: New file.
8385         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
8386         math_private.h below SET_FLOAT_WORD.
8387         (__isnan, __isinf_ns, __finite): Remove.
8388         (__isnanf, __isinf_nsf, __finitef): Remove.
8389
8390 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
8391
8392         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8393
8394 2012-03-17  David S. Miller  <davem@davemloft.net>
8395
8396         [BZ #6471]
8397         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
8398         for 2.16.
8399
8400 2012-03-16  David S. Miller  <davem@davemloft.net>
8401
8402         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
8403         warnings.
8404
8405         [BZ #6471]
8406         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
8407         properly.
8408         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
8409         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
8410         sysdep_routines when subdir is sysvipc.
8411         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
8412         __getshmlba helper.
8413
8414         * sysdeps/sparc/fpu/libm-test/ulps: Update.
8415
8416 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
8417
8418         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
8419         [__LP64__].
8420
8421 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
8422
8423         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
8424         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
8425         (__lround): Renamed to ...
8426         (__llround): This.  Replace long int with long long int.
8427         Define lround functions as aliases of llround functions.
8428         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
8429
8430 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
8431
8432         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
8433         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
8434         adresses to uintptr_t.  Replace "long int" and "unsigned long
8435         int" with "greg_t" on va_arg.
8436
8437 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
8438
8439         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
8440         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
8441
8442         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
8443         Move e_machine check before EI_CLASS check.  Handle x32
8444         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
8445         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
8446         SKIP_EM_IA_64 and include
8447         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
8448
8449         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
8450         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
8451         (add_system_dir): New macro.
8452
8453         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
8454         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
8455
8456 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
8457
8458         [BZ #2551]
8459         [BZ #2552]
8460         [BZ #2553]
8461         [BZ #2554]
8462         [BZ #2562]
8463         [BZ #2563]
8464         [BZ #2565]
8465         [BZ #2566]
8466         [BZ #2576]
8467         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
8468         (y0): Likewise.
8469         * math/w_j0f.c (j0f): Likewise.
8470         (y0f): Likewise.
8471         * math/w_j0l.c (__j0l): Likewise.
8472         (__y0l): Likewise.
8473         * math/w_j1.c (j1): Likewise.
8474         (y1): Likewise.
8475         * math/w_j1f.c (j1f): Likewise.
8476         (y1f): Likewise.
8477         * math/w_j1l.c (__j1l): Likewise.
8478         (__y1l): Likewise.
8479         * math/w_jn.c (jn): Likewise.
8480         (yn): Likewise.
8481         * math/w_jnf.c (jnf): Likewise.
8482         (ynf): Likewise.
8483         * math/w_jnl.c (__jnl): Likewise.
8484         (__ynl): Likewise.
8485         * math/libm-test.inc (j0_test): Add more tests.
8486         (j1_test): Likewise.
8487         (jn_test): Likewise.  Add trailing semicolon to existing test.
8488         (y0_test): Likewise.
8489         (y1_test): Likewise.
8490         * sysdeps/i386/fpu/libm-test-ulps: Update.
8491         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8492
8493         [BZ #13851]
8494         [BZ #13854]
8495         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
8496         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
8497         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
8498         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
8499         (__tanl): Set errno for infinite argument.
8500         * sysdeps/i386/fpu/mptan.c: Remove.
8501         * sysdeps/i386/fpu/s_tan.S: Likewise.
8502         * sysdeps/i386/fpu/s_tanl.S: Likewise.
8503         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
8504         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
8505         * math/libm-test.inc (tan_test): Add more tests and enable more
8506         tests for double and long double.
8507         * sysdeps/i386/fpu/libm-test-ulps: Update.
8508         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8509
8510 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8511
8512         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
8513         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
8514
8515 2012-03-16  Roland McGrath  <roland@hack.frob.com>
8516
8517         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
8518         * configure.in: Use it for both main tree and add-ons.
8519         * configure: Regenerated.
8520
8521 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
8522
8523         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
8524
8525 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
8526
8527         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
8528         in comment.
8529
8530         [BZ #13851]
8531         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
8532         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
8533         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
8534         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
8535         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
8536         infinite argument.
8537         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
8538         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
8539         != 0 for prec == 2.
8540         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
8541         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
8542         * sysdeps/i386/fpu/s_cosl.S: Likewise.
8543         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
8544         * sysdeps/i386/fpu/s_sinl.S: Likewise.
8545         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
8546         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
8547         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
8548         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
8549         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
8550         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
8551         * math/libm-test.inc (cos_test): Add more tests and enable more
8552         tests for long double.
8553         (sin_test): Likewise.
8554         (sincos_test): Likewise.
8555         * sysdeps/i386/fpu/libm-test-ulps: Update.
8556         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8557
8558 2012-03-16  David S. Miller  <davem@davemloft.net>
8559
8560         * sysdeps/sparc/fpu/math_private.h: New file.
8561
8562 2012-03-15  David S. Miller  <davem@davemloft.net>
8563
8564         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
8565         file.
8566         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
8567         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
8568         file.
8569         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
8570         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
8571         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
8572         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
8573         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
8574         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
8575         sysdep routines.
8576         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
8577
8578         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
8579         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
8580
8581         * sysdeps/sparc/sparc-ifunc.h: New file.
8582         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
8583         sparc-ifunc.h
8584         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
8585         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
8586         Likewise.
8587         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
8588         Likewise.
8589         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
8590         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
8591         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
8592         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
8593         Likewise.
8594         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
8595         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
8596         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
8597         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
8598         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
8599         Likewise.
8600         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
8601         Likewise.
8602         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
8603         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
8604         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
8605         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
8606         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
8607         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
8608         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
8609         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
8610         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
8611         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
8612         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
8613         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
8614         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
8615         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
8616         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
8617         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
8618         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
8619         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
8620         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
8621         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
8622         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
8623         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
8624         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
8625         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
8626
8627 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
8628
8629         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
8630         scaling.
8631         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8632
8633 2012-03-15  Andreas Jaeger  <aj@suse.de>
8634
8635         [BZ #13852]
8636         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
8637         ieee754/flt-32 implementation for sin, cos and sincos.
8638         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
8639         * sysdeps/i386/fpu/s_cosf.S: Likewise.
8640         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
8641         * sysdeps/i386/fpu/s_sinf.S: Likewise.
8642         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
8643         ieee754/flt-32 implementation for tan.
8644
8645         * math/libm-test.inc (cos_test): Enable some large input tests for
8646         float as well
8647         (sin_test): Likewise.
8648         (sincos_test): Likewise.
8649         (tan_test): Add tests for large input.
8650
8651         * sysdeps/i386/fpu/libm-test-ulps: Update.
8652
8653 2012-03-15  Andreas Jaeger  <aj@suse.de>
8654
8655         [BZ #13658]
8656         * math/libm-test.inc (cos_test): Add more test cases.
8657         (sin_test): Likewise.
8658         (sincos_test): Likewise.
8659
8660 2012-03-15  Andreas Jaeger  <aj@suse.de>
8661
8662         [BZ #13837]
8663         * math/libm-test.inc (cos_test): Add a test case for large input
8664         value.
8665         (sin_test): Likewise.
8666         (sincos_test): Likewise.
8667
8668 2012-03-15  Andreas Jaeger  <aj@suse.de>,
8669         Joseph Myers  <joseph@codesourcery.com>
8670
8671         [BZ #13658]
8672         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
8673         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
8674         * sysdeps/i386/fpu/branred.c: Likewise.
8675         * sysdeps/i386/fpu/dosincos.c: Likewise.
8676         * sysdeps/i386/fpu/mpa.c: Likewise.
8677         * sysdeps/i386/fpu/s_cos.S: Likewise.
8678         * sysdeps/i386/fpu/s_sin.S: Likewise.
8679         * sysdeps/i386/fpu/s_sincos.S: Likewise.
8680         * sysdeps/i386/fpu/sincos32.c: Likewise.
8681
8682         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
8683         Define.
8684         (libc_feupdateenv_53bit): Define.
8685         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
8686         Define.
8687         (libc_feupdateenv_53bit): Define.
8688
8689         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
8690         53 bit (without extend i386 double precision).
8691
8692         * math/libm-test.inc (sincos_test): Add tests for large input.
8693         (sin): Likewise.
8694         (cos): Likewise.
8695
8696         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
8697
8698 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
8699
8700         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8701
8702 2012-03-15  David S. Miller  <davem@davemloft.net>
8703
8704         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
8705         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
8706         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
8707         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
8708         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
8709         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
8710         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
8711         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
8712         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
8713         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
8714         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
8715         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
8716         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
8717         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
8718         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
8719         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
8720         file.
8721         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
8722         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
8723         file.
8724         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
8725         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
8726         file.
8727         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
8728         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
8729         file.
8730         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
8731         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
8732         fmin/fmax sysdep routines.
8733         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
8734
8735 2012-03-14  David S. Miller  <davem@davemloft.net>
8736
8737         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
8738         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
8739         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
8740         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
8741         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
8742         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
8743         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
8744         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
8745         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
8746         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
8747         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
8748         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
8749         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
8750         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
8751         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
8752         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
8753         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
8754         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
8755         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
8756         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
8757         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
8758         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
8759         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
8760         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
8761         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
8762         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
8763         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
8764         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
8765         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
8766         routines.
8767         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
8768         file.
8769         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
8770         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
8771         file.
8772         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
8773         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
8774         file.
8775         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
8776         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
8777         file.
8778         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
8779         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
8780         file.
8781         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
8782         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
8783         file.
8784         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
8785         file.
8786         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
8787         file.
8788         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
8789         file.
8790         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
8791         New file.
8792         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
8793         file.
8794         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
8795         file.
8796         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
8797         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
8798         file.
8799         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
8800         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
8801         file.
8802         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
8803         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
8804         file.
8805         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
8806         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
8807         VIS3 routines.
8808
8809         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
8810         New file.
8811
8812         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8813
8814         * sysdeps/sparc/configure.in: New file.
8815         * sysdeps/sparc/configure: Generate.
8816         * configure.in (libc_cv_sparc_as_vis3): Substitute.
8817         * configure: Regenerate.
8818         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
8819         * config.make.in (have-as-vis3): New.
8820         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
8821         available use -Av9d instead of -Av9a.
8822         * sysdeps/sparc/sparc64/Makefile: Likewise.
8823         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
8824         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
8825         New file.
8826         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
8827         file.
8828         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
8829         New file.
8830         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
8831         file.
8832         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
8833         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
8834         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
8835         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
8836         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
8837
8838         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
8839         fzeros/fnegs to load 0x80000000 into a float register instead of
8840         using the stack.
8841         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
8842
8843 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
8844
8845         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8846         bits/syscall.h.
8847         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
8848         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
8849         ($(inst_includedir)/bits/syscall.h): Remove rule.
8850         ($(objpfx)bits/syscall.d): Include instead of
8851         $(objpfx)syscall-list.d.
8852         (generated): Change syscall-list.h and syscall-list.d to
8853         bits/syscall.h and bits/syscall.d.
8854
8855 2012-03-14  Roland McGrath  <roland@hack.frob.com>
8856
8857         [BZ #13846]
8858         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
8859
8860 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
8861
8862         [BZ #13841]
8863         * math/s_csqrt.c: Include <float.h>.
8864         (__csqrt): Scale large or subnormal inputs.
8865         * math/s_csqrtf.c: Likewise.
8866         * math/s_csqrtl.c: Likewise.
8867         * math/libm-test.inc (csqrt_test): Add more tests.
8868         * sysdeps/i386/fpu/libm-test-ulps: Update.
8869         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8870
8871         [BZ #13840]
8872         * math/libm-test.inc (hypot_test): Add more tests.
8873
8874 2012-03-13  David S. Miller  <davem@davemloft.net>
8875
8876         [BZ #13840]
8877         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
8878         double-precision for the calculation instead of scaling.
8879
8880 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
8881
8882         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
8883         manipulate bits before adding and subtracting TWO52[sx].
8884         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
8885         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
8886         Likewise.
8887         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
8888
8889 2012-03-13  David S. Miller  <davem@davemloft.net>
8890
8891         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
8892         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
8893         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
8894         rtld-global-offsets.h
8895         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
8896
8897         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
8898         large parameters.
8899
8900         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
8901
8902         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
8903         'err' in the ifdef scope in which it is actually used.
8904
8905         * nss/nss_db/db-init.c: Include string.h
8906
8907 2012-03-12  David S. Miller  <davem@davemloft.net>
8908
8909         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
8910         masking out of the most significant byte of random value used.
8911         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
8912         Fix coding style in previous change.
8913
8914         * sysdeps/unix/sysv/linux/kernel-features.h
8915         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
8916         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
8917         expression.
8918         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
8919         later.
8920
8921 2012-03-11  David S. Miller  <davem@davemloft.net>
8922
8923         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
8924         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
8925         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
8926         for 'resultvar' otherwise things get truncated on 64-bit.
8927
8928         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
8929         Fix masking out of the most significant byte of random value used.
8930
8931         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8932
8933 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
8934
8935         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8936
8937 2012-03-09  David S. Miller  <davem@davemloft.net>
8938
8939         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
8940         variables with appropriate CPP guards.
8941         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
8942         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
8943         on resulting framesize and the management of the outregs buffer for pltexit.
8944         Preserve floating point return values across _dl_call_pltexit call.
8945         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
8946         framesize and the management of the outregs buffer for pltexit.
8947         Preserve floating point return values across _dl_call_pltexit
8948         call.
8949         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
8950         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
8951         (print_exit): Fix format string for return register value.
8952
8953 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
8954
8955         * sunrpc/Makefile (others): Add rpcgen.
8956         ($(objpfx)rpcgen): Remove special build rule and dependency on
8957         libc.
8958         * sunrpc/rpcgen.c: New file.
8959
8960 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
8961
8962         [BZ #13673]
8963         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
8964         * stdio-common/bug-vfprintf-nargs.c: Likewise.
8965         * sysdeps/i386/crti.S: Likewise.
8966         * sysdeps/i386/crtn.S: Likewise.
8967         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
8968         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
8969         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
8970         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
8971         * sysdeps/sh/crti.S: Likewise.
8972         * sysdeps/sh/crtn.S: Likewise.
8973         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
8974
8975         [BZ #13673]
8976         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
8977         with URL.
8978         * locale/programs/locfile-kw.gperf: Likewise.
8979         * locale/programs/charmap-kw.h: Regenerated.
8980         * locale/programs/locfile-kw.h: Likewise.
8981
8982         [BZ #13673]
8983         * intl/plural.y: Replace FSF snail mail address with URL.
8984         * intl/plural.c: Regenerated.
8985
8986 2012-03-09  Richard Henderson  <rth@twiddle.net>
8987
8988         * include/math_private.h: Remove file.
8989         * math/math_private.h: Move file ...
8990         * sysdeps/generic/math_private.h: ... here.
8991
8992         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
8993         * sysdeps/powerpc/fpu/math_private.h: Likewise.
8994         * sysdeps/x86_64/fpu/math_private.h: Likewise.
8995
8996         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
8997         and <math_private.h>.
8998         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
8999         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
9000         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
9001         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
9002         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
9003         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
9004         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
9005         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
9006         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
9007         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
9008         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
9009         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
9010         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
9011         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
9012         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
9013         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
9014         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
9015         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
9016         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
9017         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
9018         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
9019         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
9020         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
9021         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
9022         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
9023         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
9024         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
9025         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
9026         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
9027         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
9028         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
9029         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
9030         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
9031         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
9032         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
9033         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
9034         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
9035         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
9036         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
9037         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
9038         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
9039         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
9040         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
9041         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
9042         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
9043         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
9044         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
9045         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
9046         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
9047         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
9048         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
9049         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
9050         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
9051         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
9052         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
9053         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
9054         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
9055         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
9056         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
9057         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
9058         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
9059         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
9060         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
9061         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
9062         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
9063         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
9064         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
9065         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
9066         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
9067         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
9068         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
9069         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
9070         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
9071         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
9072         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
9073         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
9074         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
9075         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
9076         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
9077         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
9078         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
9079         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
9080         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
9081         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
9082         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
9083         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
9084         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
9085         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
9086         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
9087         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
9088         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
9089         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
9090         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
9091         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
9092         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
9093         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
9094         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
9095         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
9096         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
9097         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
9098         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
9099         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
9100         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
9101         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
9102         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
9103         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
9104         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
9105         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
9106         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
9107         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
9108         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
9109         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
9110         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
9111         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
9112         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
9113         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
9114         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
9115         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
9116         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
9117         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
9118         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
9119         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
9120         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
9121         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
9122         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
9123         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
9124         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
9125         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
9126         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
9127         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
9128         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
9129         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
9130         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
9131         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
9132         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
9133         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
9134         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
9135         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
9136         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
9137         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
9138         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
9139         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
9140         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
9141         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
9142         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
9143         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
9144         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
9145         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
9146         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
9147         * sysdeps/ieee754/k_standard.c: Likewise.
9148         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
9149         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
9150         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
9151         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
9152         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
9153         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
9154         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
9155         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
9156         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
9157         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
9158         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
9159         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
9160         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
9161         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
9162         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
9163         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
9164         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
9165         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
9166         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
9167         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
9168         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
9169         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
9170         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
9171         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
9172         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
9173         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
9174         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
9175         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
9176         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
9177         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
9178         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
9179         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
9180         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
9181         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
9182         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
9183         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
9184         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
9185         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
9186         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
9187         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
9188         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
9189         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
9190         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
9191         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
9192         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
9193         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
9194         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
9195         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
9196         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
9197         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
9198         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
9199         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
9200         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
9201         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
9202         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
9203         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
9204         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
9205         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
9206         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
9207         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
9208         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
9209         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
9210         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
9211         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
9212         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
9213         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
9214         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
9215         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
9216         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
9217         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
9218         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
9219         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
9220         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
9221         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
9222         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
9223         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
9224         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
9225         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
9226         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
9227         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
9228         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
9229         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
9230         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
9231         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
9232         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
9233         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
9234         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
9235         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
9236         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
9237         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
9238         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
9239         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
9240         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
9241         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
9242         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
9243         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
9244         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
9245         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
9246         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
9247         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
9248         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
9249         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
9250         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
9251         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
9252         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
9253         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
9254         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
9255         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
9256         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
9257         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
9258         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
9259         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
9260         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
9261         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
9262         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
9263         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
9264         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
9265         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
9266         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
9267         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
9268         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
9269         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
9270         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
9271         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
9272         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
9273         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
9274         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
9275         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
9276         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
9277         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
9278         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
9279         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
9280         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
9281         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
9282         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
9283         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
9284         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
9285         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
9286         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
9287         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
9288         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
9289         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
9290         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
9291         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
9292         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
9293         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
9294         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
9295         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
9296         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
9297         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
9298         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
9299         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
9300         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
9301         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
9302         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
9303         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
9304         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
9305         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
9306         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
9307         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
9308         * sysdeps/ieee754/s_lib_version.c: Likewise.
9309         * sysdeps/ieee754/s_matherr.c: Likewise.
9310         * sysdeps/ieee754/s_signgam.c: Likewise.
9311         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
9312         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
9313         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
9314         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
9315         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
9316         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
9317         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
9318         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
9319         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
9320         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
9321         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
9322         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
9323         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
9324         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
9325         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
9326         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
9327         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
9328         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
9329         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
9330         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
9331         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
9332
9333 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
9334
9335         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
9336         * sunrpc/rpc_main.c: Likewise.
9337         * sunrpc/rpc_svcout.c: Likewise.
9338
9339 2012-03-09  David S. Miller  <davem@davemloft.net>
9340
9341         * include/math_private.h: New file.
9342
9343 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
9344
9345         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
9346         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
9347         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
9348         from <bits/socket_type.h>.
9349         (enum __socket_type): Don't define here.
9350         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
9351         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
9352         bits/socket_type.h.
9353
9354         [BZ #13566]
9355         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
9356         checking __USE_GNU.
9357
9358         * Makerules ($(inst_includedir)/%.h): New rule.
9359         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
9360         (install-others): Remove variable setting.
9361         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
9362
9363 2012-03-08  Richard Henderson  <rth@twiddle.net>
9364
9365         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
9366         from macro to inline function; merge with the
9367         !__LIBC_INTERNAL_MATH_INLINES version.
9368         (__ieee754_sqrtf): Likewise.
9369
9370         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
9371         to inline function.
9372         (__rintf, __floor, __floorf): Likewise.
9373
9374         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
9375         macro to inline function.
9376         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
9377
9378         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
9379         not <math/math_private.h>.
9380
9381 2012-03-08  David S. Miller  <davem@davemloft.net>
9382
9383         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
9384         copyright year.
9385         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
9386
9387 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
9388
9389         * resolv/gai_misc.c (handle_requests): Fix struct timespec
9390         normalization.
9391         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
9392         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
9393
9394 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
9395
9396         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
9397         be defined individually, they must be defined as a block.  Define
9398         S for printing a string instead of hidint the different by using a
9399         macro for adding the 'l'.
9400         * stdio-common/tst-fphex-wide.c: Adjust.
9401
9402 2012-03-07  Marek Polacek  <polacek@redhat.com>
9403
9404         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
9405
9406 2012-03-08  Marek Polacek  <polacek@redhat.com>
9407
9408         [BZ #13806]
9409         * stdio-common/Makefile (tests): Add tst-fphex-wide.
9410         * stdio-common/tst-fphex.c: Define a few macros to make the
9411         test reusable.  Use them.
9412         * stdio-common/tst-fphex-wide.c: New file.
9413
9414 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
9415
9416         [BZ #6911]
9417         * manual/macros.texi (gnusystems): New macro.
9418         (nongnusystems): Likewise.
9419         (gnulinuxhurdsystems): Likewise.
9420         (gnuhurdsystems): Likewise..
9421         (gnulinuxsystems): Likewise.
9422         * manual/charset.texi: Use new macros or @theglibc{} to refer to
9423         variants of the GNU system, not "GNU system".
9424         * manual/conf.texi: Likewise.
9425         * manual/errno.texi: Likewise.  Update example of errno macro
9426         expansion.
9427         * manual/filesys.texi: Likewise.
9428         (getumask): Document as specific to GNU/Hurd.
9429         * manual/install.texi: Likewise.  Reword some references to
9430         GNU/Linux.
9431         * manual/intro.texi: Likewise.
9432         * manual/io.texi: Likewise.
9433         (File Name Portability): Detail which constraints are inapplicable
9434         to all GNU systems and which are only inapplicable to GNU/Hurd.
9435         * manual/job.texi: Likewise.
9436         * manual/llio.texi: Likewise.
9437         (O_NOCTTY): Document as present on GNU/Linux.
9438         * manual/maint.texi: Likewise.
9439         * manual/memory.texi: Likewise.
9440         * manual/pattern.texi: Likewise.
9441         * manual/pipe.texi: Likewise.
9442         * manual/process.texi: Likewise.
9443         * manual/resource.texi: Likewise.
9444         (RUSAGE_CHILDREN): Remove statement about specifying a particular
9445         child on GNU/Hurd.
9446         * manual/setjmp.texi: Likewise.
9447         * manual/signal.texi: Likewise.
9448         * manual/startup.texi: Likewise.
9449         * manual/stdio.texi: Likewise.
9450         * manual/terminal.texi: Likewise.
9451         (ONLCR): Document as POSIX.
9452         (OXTABS): Document availability on GNU/Linux as XTABS.
9453         (ONOEOT): Document availability separately from other bits.
9454         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
9455         * manual/time.texi: Likewise.
9456         * manual/users.texi: Likewise.
9457         * INSTALL: Regenerated.
9458         * sysdeps/gnu/errlist.c: Regenerated.
9459
9460         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
9461         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
9462         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
9463         puts.
9464         * configure: Regenerated.
9465
9466 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
9467
9468         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
9469         default includes instead of AC_HEADER_CHECK.
9470         * sysdeps/i386/configure: Regenerated.
9471
9472         [BZ #10716]
9473         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
9474         * math/s_cacoshf.c (__cacoshf): Likewise.
9475         * math/s_cacoshl.c (__cacoshl): Likewise.
9476         * math/s_casinh.c (__casinh): Set signs of result from argument.
9477         * math/s_casinhf.c (__casinhf): Likewise.
9478         * math/s_casinhl.c (__casinhl): Likewise.
9479         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
9480         (casinh_test): Add more tests.
9481         * sysdeps/i386/fpu/libm-test-ulps: Update.
9482         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9483
9484 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
9485
9486         * po/zh_TW.po: Update from translation team.
9487
9488         * login/Makefile (distribute): Remove variable.
9489         * catgets/Makefile: Likewise.
9490         * mach/Makefile: Likewise.
9491         * malloc/Makefile: Likewise.
9492         * misc/Makefile: Likewise.
9493         * iconv/Makefile: Likewise.
9494         * nscd/Makefile: Likewise.
9495         * hurd/Makefile: Likewise.
9496         * manual/Makefile: Likewise.
9497         * locale/Makefile: Likewise.
9498         * intl/Makefile: Likewise.
9499         * conform/Makefile: Likewise.
9500         * nss/Makefile: Likewise.
9501         * time/Makefile: Likewise.
9502         * soft-fp/Makefile: Likewise.
9503         * dirent/Makefile: Likewise.
9504         * gmon/Makefile: Likewise.
9505         * po/Makefile: Likewise.
9506         * rt/Makefile: Likewise.
9507         * socket/Makefile: Likewise.
9508         * math/Makefile: Likewise.
9509         * signal/Makefile: Likewise.
9510         * debug/Makefile: Likewise.
9511         * elf/Makefile: Likewise.
9512         * timezone/Makefile: Likewise.
9513         * stdlib/Makefile: Likewise.
9514         * iconvdata/Makefile: Likewise.
9515         * sunrpc/Makefile: Likewise.
9516         * io/Makefile: Likewise.
9517         * argp/Makefile: Likewise.
9518         * inet/Makefile: Likewise.
9519         * hesiod/Makefile: Likewise.
9520         * grp/Makefile: Likewise.
9521         * csu/Makefile: Likewise.
9522         * wctype/Makefile: Likewise.
9523         * crypt/Makefile: Likewise.
9524         * libio/Makefile: Likewise.
9525         * string/Makefile: Likewise.
9526         * nis/Makefile: Likewise.
9527         * resolv/Makefile: Likewise.
9528         * stdio-common/Makefile: Likewise.
9529         * wcsmbs/Makefile: Likewise.
9530         * dlfcn/Makefile: Likewise.
9531         * posix/Makefile: Likewise.
9532
9533         [BZ #6959]
9534         * timezone/Makefile: Don't install timezone files, just the programs
9535         and scripts.
9536
9537 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
9538
9539         * nss/databases.def: Add missing gshadow entry.
9540
9541         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
9542
9543 2012-03-06  Marek Polacek  <polacek@redhat.com>
9544
9545         [BZ #13726]
9546         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
9547         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
9548         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
9549         * stdio-common/tst-long-dbl-fphex.c: New file.
9550
9551 2012-03-06  David S. Miller  <davem@davemloft.net>
9552
9553         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
9554         (set_obp_int): New function.
9555         (get_obp_int): New function.
9556         (__get_clockfreq_via_dev_openprom): Likewise.
9557         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
9558         Avoid unused variable warnings on 'val' and use builtin_expect.
9559         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
9560         __builtin_expect.
9561         (INLINE_CLONE_SYSCALL): Likewise.
9562
9563 2012-03-05  David S. Miller  <davem@davemloft.net>
9564
9565         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9566
9567 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
9568
9569         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9570
9571         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
9572         only for |x| >= 40.
9573         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
9574
9575 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
9576
9577         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
9578         Replace gettimeofday with __vdso_gettimeofday.
9579
9580         * sysdeps/unix/sysv/linux/x86_64/init-first.c
9581         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
9582         __vdso_clock_gettime and __vdso_getcpu.
9583
9584         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
9585         time with __vdso_time.
9586
9587 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
9588
9589         * manual/lang.texi (size_t): Note types to which size_t may be
9590         equivalent with the GNU C Library, but do not describe when
9591         differences between them are significant.
9592
9593 2012-03-05  Andreas Jaeger  <aj@suse.de>
9594
9595         * sysdeps/i386/fpu/libm-test-ulps: Update.
9596
9597 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
9598
9599         [BZ #3976]
9600         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
9601         (__ieee754_pow): Save and restore rounding mode and use
9602         round-to-nearest for main computations.
9603         * math/libm-test.inc (pow_test_tonearest): New function.
9604         (pow_test_towardzero): Likewise.
9605         (pow_test_downward): Likewise.
9606         (pow_test_upward): Likewise.
9607         (main): Call the new functions.
9608         * sysdeps/i386/fpu/libm-test-ulps: Update.
9609         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9610
9611         [BZ #3976]
9612         * math/libm-test.inc (cosh_test_tonearest): New function.
9613         (cosh_test_towardzero): Likewise.
9614         (cosh_test_downward): Likewise.
9615         (cosh_test_upward): Likewise.
9616         (sinh_test_tonearest): Likewise.
9617         (sinh_test_towardzero): Likewise.
9618         (sinh_test_downward): Likewise.
9619         (sinh_test_upward): Likewise.
9620         (main): Call the new functions.
9621         * sysdeps/i386/fpu/libm-test-ulps: Update.
9622         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9623
9624 2012-03-05  Tom de Vries  <tom@codesourcery.com>
9625
9626         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
9627         default stack guard is set in last bytes.
9628         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
9629
9630 2012-03-05  Kees Cook  <keescook@chromium.org>
9631
9632         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
9633
9634         [BZ #13656]
9635         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
9636         possibly allocate from heap instead of stack.
9637         * stdio-common/bug-vfprintf-nargs.c: New file.
9638         * stdio-common/Makefile (tests): Add nargs overflow test.
9639
9640 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
9641
9642         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9643
9644 2012-03-03  Marek Polacek  <polacek@redhat.com>
9645
9646         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
9647         * math/math_private.h: Likewise.
9648         * stdlib/tst-strtod.c: Likewise.
9649         * sysdeps/i386/i486/bits/atomic.h: Likewise.
9650         * sysdeps/x86_64/bits/atomic.h: Likewise.
9651
9652 2012-03-02  David S. Miller  <davem@davemloft.net>
9653
9654         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
9655         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
9656         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
9657         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
9658         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
9659         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
9660         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
9661         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
9662
9663 2012-03-02  Roland McGrath  <roland@hack.frob.com>
9664
9665         [BZ #13792]
9666         * manual/examples/README: New file, says the example source files
9667         can be used under GPL>=2.
9668         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
9669         line containing just "*/".
9670         * manual/examples/add.c: Add copyright header (GPL>=2).
9671         * manual/examples/argp-ex1.c: Likewise.
9672         * manual/examples/argp-ex2.c: Likewise.
9673         * manual/examples/argp-ex3.c: Likewise.
9674         * manual/examples/argp-ex4.c: Likewise.
9675         * manual/examples/atexit.c: Likewise.
9676         * manual/examples/db.c: Likewise.
9677         * manual/examples/dir.c: Likewise.
9678         * manual/examples/dir2.c: Likewise.
9679         * manual/examples/execinfo.c: Likewise.
9680         * manual/examples/filecli.c: Likewise.
9681         * manual/examples/filesrv.c: Likewise.
9682         * manual/examples/fmtmsgexpl.c: Likewise.
9683         * manual/examples/genpass.c: Likewise.
9684         * manual/examples/inetcli.c: Likewise.
9685         * manual/examples/inetsrv.c: Likewise.
9686         * manual/examples/isockad.c: Likewise.
9687         * manual/examples/longopt.c: Likewise.
9688         * manual/examples/memopen.c: Likewise.
9689         * manual/examples/memstrm.c: Likewise.
9690         * manual/examples/mkfsock.c: Likewise.
9691         * manual/examples/mkisock.c: Likewise.
9692         * manual/examples/mygetpass.c: Likewise.
9693         * manual/examples/pipe.c: Likewise.
9694         * manual/examples/popen.c: Likewise.
9695         * manual/examples/rprintf.c: Likewise.
9696         * manual/examples/search.c: Likewise.
9697         * manual/examples/select.c: Likewise.
9698         * manual/examples/setjmp.c: Likewise.
9699         * manual/examples/sigh1.c: Likewise.
9700         * manual/examples/sigusr.c: Likewise.
9701         * manual/examples/stpcpy.c: Likewise.
9702         * manual/examples/strdupa.c: Likewise.
9703         * manual/examples/strftim.c: Likewise.
9704         * manual/examples/strncat.c: Likewise.
9705         * manual/examples/subopt.c: Likewise.
9706         * manual/examples/swapcontext.c: Likewise.
9707         * manual/examples/termios.c: Likewise.
9708         * manual/examples/testopt.c: Likewise.
9709         * manual/examples/testpass.c: Likewise.
9710         * manual/examples/timeval_subtract.c: Likewise.
9711
9712         [BZ #13792]
9713         * manual/time.texi (Elapsed Time): Move timeval_subtract example
9714         function to ...
9715         * manual/timeval_subtract.c.texi: ... here, new file.
9716
9717 2012-03-02  David S. Miller  <davem@davemloft.net>
9718
9719         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
9720
9721 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
9722
9723         [BZ #3976]
9724         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
9725         (__sin): Save and restore rounding mode and use round-to-nearest
9726         for all computations.
9727         (__cos): Save and restore rounding mode and use round-to-nearest
9728         for all computations.
9729         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
9730         <fenv.h>.
9731         (tan): Save and restore rounding mode and use round-to-nearest for
9732         all computations.
9733         * math/libm-test.inc (cos_test_tonearest): New function.
9734         (cos_test_towardzero): Likewise.
9735         (cos_test_downward): Likewise.
9736         (cos_test_upward): Likewise.
9737         (sin_test_tonearest): Likewise.
9738         (sin_test_towardzero): Likewise.
9739         (sin_test_downward): Likewise.
9740         (sin_test_upward): Likewise.
9741         (tan_test_tonearest): Likewise.
9742         (tan_test_towardzero): Likewise.
9743         (tan_test_downward): Likewise.
9744         (tan_test_upward): Likewise.
9745         (main): Call the new functions.
9746         * sysdeps/i386/fpu/libm-test-ulps: Update.
9747         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9748
9749         [BZ #10135]
9750         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
9751         small n, then large n, before computing and testing k+n.
9752         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
9753         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
9754         Likewise.
9755         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
9756         Likewise.
9757         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
9758         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
9759         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
9760         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
9761         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
9762         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
9763         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
9764         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
9765         * math/libm-test.inc (scalbn_test): Add more tests.
9766         (scalbln_test): Likewise.
9767
9768         * manual/filesys.texi (mode_t): Describe constraints on size and
9769         signedness, not exact equivalence to a particular type.
9770         (ino_t): Likewise.
9771         (ino64_t): Likewise.
9772         (dev_t): Likewise.
9773         (nlink_t): Likewise.
9774         (blkcnt_t): Likewise.
9775         (blkcnt64_t): Likewise.
9776         * manual/llio.texi (off_t): Likewise.
9777
9778         [BZ #3976]
9779         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
9780         (__ieee754_exp): Save and restore rounding mode and use
9781         round-to-nearest for all computations.
9782         * math/libm-test.inc (exp_test_tonearest): New function.
9783         (exp_test_towardzero): Likewise.
9784         (exp_test_downward): Likewise.
9785         (exp_test_upward): Likewise.
9786         (main): Call the new functions.
9787         * sysdeps/i386/fpu/libm-test-ulps: Update.
9788         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9789
9790 2012-03-01  Chris Demetriou  <cgd@google.com>
9791
9792         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
9793         have predictable order.
9794
9795 2012-03-01  David S. Miller  <davem@davemloft.net>
9796
9797         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
9798
9799         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
9800         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
9801         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
9802         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
9803
9804         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
9805         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
9806         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
9807         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
9808         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
9809         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
9810         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
9811         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
9812         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
9813
9814         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9815
9816         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
9817         * sysdeps/sparc/fpu/libm-test-ulps: to here.
9818         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
9819
9820         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
9821         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
9822         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
9823         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
9824         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
9825         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
9826         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
9827         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
9828         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
9829         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
9830         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
9831         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
9832         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
9833         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
9834         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
9835         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
9836         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
9837         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
9838         * sysdeps/sparc/elf/configure: Regenerated.
9839
9840 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
9841
9842         * configure.in (AS, LD): Require binutils 2.20 or later.
9843         * configure: Regenerated.
9844         * manual/install.texi (Tools for Compilation): Give binutils 2.20
9845         as required minimum version.
9846         * INSTALL: Regenerated.
9847
9848         [BZ #2541]
9849         [BZ #4108]
9850         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
9851         before squaring exponent.
9852         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
9853         bottom long double and 27 bits of top long double before squaring
9854         exponent.
9855         * math/libm-test.inc (erfc_test): Add more tests.
9856         * sysdeps/i386/fpu/libm-test-ulps: Update.
9857         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
9858         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9859
9860 2012-03-01  Kai Tietz  <ktietz@redhat.com>
9861
9862         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
9863         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
9864         containing bit-fields.
9865         * soft-fp/extended.h (_FP_UNION_E): Likewise.
9866         * soft-fp/single.h (_FP_UNION_S): Likewise.
9867         * soft-fp/double.h (_FP_UNION_D): Likewise.
9868
9869 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
9870
9871         [BZ #13786]
9872         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
9873         not include ../strcmp.S.
9874         [USE_AS_STRNCASECMP_L]: Likewise.
9875         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
9876         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
9877         * sysdeps/i386/i686/multiarch/strncase_l-c.c
9878         (__strncasecmp_l_ia32): Define as alias to
9879         __strncasecmp_l_nonascii.
9880
9881         [BZ #5794]
9882         * math/libm-test.inc (expm1_test): Add test for bug 5794.
9883         * sysdeps/i386/fpu/libm-test-ulps: Update.
9884         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9885
9886         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
9887         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9888
9889 2012-02-29  Jeff Law  <law@redhat.com>
9890
9891         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
9892         out of bounds read.
9893
9894 2012-02-29  Marek Polacek  <polacek@redhat.com>
9895
9896         [BZ #13706]
9897         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
9898         * elf/Makefile: Add rules to run tst-unused-dep.out.
9899
9900 2012-02-28  David S. Miller  <davem@davemloft.net>
9901
9902         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
9903         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
9904         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
9905         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
9906         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
9907         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
9908
9909 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
9910
9911         * math/libm-test.inc (llround_test): Move one test from
9912         lround_test.  Use TEST_f_L in moved test.
9913         (lround_test): Move misplaced test to llround_test.  Add testcase
9914         from bug 2561.
9915
9916 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
9917
9918         * sysdeps/x86_64/fpu/e_expf.S: New file.
9919         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
9920
9921 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
9922
9923         [BZ #13637]
9924         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
9925         of remain_len that may cause incomplete multi-byte character and
9926         false match.
9927         * posix/bug-regex33.c: New file.
9928         * posix/Makefile (tests): Add bug-regex33.
9929
9930 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
9931
9932         * manual/macros.texi: New file.
9933         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
9934         * manual/libc.texinfo: Include macros.texi.
9935         * manual/creatute.texi: Likewise.
9936         * manual/install.texi: Likewise.
9937         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
9938         @glibcadj{} in references to the GNU C Library.
9939         * manual/charset.texi: Likewise.
9940         * manual/conf.texi: Likewise.
9941         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
9942         when not using those macros.
9943         * manual/creature.texi: Likewise.
9944         * manual/crypt.texi: Likewise.
9945         * manual/errno.texi: Likewise.
9946         * manual/filesys.texi: Likewise.
9947         * manual/header.texi: Likewise.
9948         * manual/install.texi: Likewise.
9949         * manual/intro.texi: Likewise.
9950         * manual/io.texi: Likewise.
9951         * manual/job.texi: Likewise.
9952         * manual/lang.texi: Likewise.
9953         * manual/libc.texiinfo: Likewise.
9954         * manual/llio.texi: Likewise.
9955         * manual/locale.texi: Likewise.
9956         * manual/maint.texi: Likewise.
9957         * manual/math.texi: Likewise.
9958         * manual/memory.texi: Likewise.
9959         * manual/message.texi: Likewise.
9960         * manual/nss.texi: Likewise.
9961         * manual/pattern.texi: Likewise.
9962         * manual/process.texi: Likewise.
9963         * manual/resource.texi: Likewise.
9964         * manual/search.texi: Likewise.
9965         * manual/setjmp.texi: Likewise.
9966         * manual/signal.texi: Likewise.
9967         * manual/socket.texi: Likewise.
9968         * manual/startup.texi: Likewise.
9969         * manual/stdio.texi: Likewise.
9970         * manual/string.texi: Likewise.
9971         * manual/sysinfo.texi: Likewise.
9972         * manual/syslog.texi: Likewise.
9973         * manual/terminal.texi: Likewise.
9974         * manual/time.texi: Likewise.
9975         * manual/users.texi: Likewise.
9976         * INSTALL: Regenerated.
9977         * NOTES: Regenerated.
9978         * sysdeps/gnu/errlist.c: Regenerated.
9979
9980 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
9981
9982         * include/dirent.h: Include <dirstream.h> before
9983         <dirent/dirent.h>.
9984
9985 2012-02-28  David S. Miller  <davem@davemloft.net>
9986
9987         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
9988         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
9989         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
9990         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
9991
9992 2012-02-27  David S. Miller  <davem@davemloft.net>
9993
9994         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
9995         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
9996         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
9997         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
9998
9999         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
10000         frame pointer instead of stack pointer relative arg slot.
10001         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
10002         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
10003         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
10004
10005 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
10006
10007         [BZ #3992]
10008         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
10009
10010 2012-02-27  David S. Miller  <davem@davemloft.net>
10011
10012         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
10013         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
10014         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
10015         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
10016         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
10017         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
10018         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
10019         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
10020
10021 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
10022
10023         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
10024         later.  Allow versions 5-9.
10025         * configure: Regenerated.
10026         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
10027         required minimum version and 4.6 as recommended version.  Do not
10028         mention bugs in GCC 2.7 and 2.8.
10029         * INSTALL: Regenerated.
10030
10031 2012-02-27  David S. Miller  <davem@davemloft.net>
10032
10033         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
10034         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
10035         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
10036         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
10037         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
10038         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
10039         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
10040         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
10041
10042         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
10043         manipulate bits before adding and subtracting TWO112[sx].
10044         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
10045
10046 2012-02-27  Roland McGrath  <roland@hack.frob.com>
10047
10048         [BZ #13775]
10049         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
10050         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
10051         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
10052         being in POSIX, because they are in 1003.1-2008.
10053
10054         * rt/tst-aio.c: Include <fcntl.h>.
10055         * rt/tst-aio7.c: Likewise.
10056         * rt/tst-aio64.c: Likewise.
10057
10058         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
10059
10060 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
10061
10062         * manual/install.texi (--with-headers): Describe headers as
10063         interface headers, not private headers.
10064         (Specific advice for GNU/Linux systems): Describe use of headers
10065         from "make headers_install", not private headers from older
10066         kernels.
10067         * INSTALL: Regenerated.
10068         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
10069         Change to 2.6.19.
10070         * sysdeps/unix/sysv/linux/configure: Regenerated.
10071
10072         * manual/llio.texi (fclean): Remove documentation.
10073
10074         * manual/Makefile (libc-texi-generated): New variable.  Include
10075         version.texi.
10076         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
10077         $(libc-texi-generated), not duplicated list of files.
10078         (version.texi, stamp-version): New rules.
10079         (realclean): Remove $(libc-texi-generated), not individual files
10080         from that list.  Do not remove dir-add.texinfo.
10081         * manual/libc.texinfo: Comment out uses of edition numbers and
10082         references to printed manual.  Remove last-updated dates.
10083         (EDITION): Comment out.
10084         (ISBN): Likewise.
10085         (VERSION, UPDATED): Remove.
10086         (version.texi): Include.
10087
10088 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
10089
10090         * sysdeps/posix/spawni.c: Include <signal.h>.
10091         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
10092         * sysdeps/pthread/aio_fsync.c: Likewise.
10093
10094 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
10095
10096         * conform/Makefile (tests): Run only when not cross-compiling and
10097         when fast-check is not defined.
10098
10099         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
10100         * conform/data/limits.h-data: Fixes for POSIX2008.
10101         * conform/run-conformtest.sh: Run all tests.
10102         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
10103         headers.
10104         * include/bits/dlfcn.h: Likewise.
10105         * include/langinfo.h: Likewise.
10106         * include/monetary.h: Likewise.
10107         * include/sys/poll.h: Likewise.
10108
10109         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
10110         for __USE_GNU.
10111         * posix/spawn.h: Define __need_sigset_t.
10112         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
10113         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
10114         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
10115         to get sigevent_t only.
10116         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
10117         only for __USE_GNU.
10118         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
10119         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
10120         process_vm_writev only for __USE_GNU.
10121         * termios/termios.h: Declare tcgetsid also for POSIX2008.
10122
10123         * conform/Makefile: For now ignore errors from run-conformtest.
10124         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
10125         POSIX to avoid namespace pollution.  Don't prepend headers.
10126         * conform/data/aio.h-data: Fixes for POSIX testing.
10127         * conform/data/fcntl.h-data: Likewise.
10128         * conform/data/glob.h-data: Likewise.
10129         * conform/data/grp.h-data: Likewise.
10130         * conform/data/pthread.h-data: Likewise.
10131         * conform/data/pwd.h-data: Likewise.
10132         * conform/data/signal.h-data: Likewise.
10133         * conform/data/spawn.h-data: Likewise.
10134         * conform/data/stdio.h-data: Likewise.
10135         * conform/data/stdlib.h-data: Likewise.
10136         * conform/data/stropts.h-data: Likewise.
10137         * conform/data/sys/mman.h-data: Likewise.
10138         * conform/data/sys/stat.h-data: Likewise.
10139         * conform/data/sys/types.h-data: Likewise.
10140         * conform/data/sys/wait.h-data: Likewise.
10141         * conform/data/time.h-data: Likewise.
10142         * conform/data/unistd.h-data: Likewise.
10143         * conform/data/utime.h-data: Likewise.
10144
10145         * io/sys/stat.h: fchmod was always in POSIX.
10146         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
10147         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
10148         * rt/aio.h: Define __need_timespec before including <time.h>.
10149         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
10150         struct.  Add forward declaration of pthread_attr_t and use it in
10151         sigevent.
10152         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
10153         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
10154         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
10155         always remove CLK_TCK definition.
10156
10157 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
10158
10159         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
10160
10161 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
10162
10163         * conform/run-conformtest.sh: New file.
10164         * conform/Makefile: Run run-conformtest for tests.
10165         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
10166         support.
10167
10168         * conform/data/uchar.h-data: New file.
10169         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
10170         * conform/data/arpa/inet.h-data: Likewise.
10171         * conform/data/assert.h-data: Likewise.
10172         * conform/data/complex.h-data: Likewise.
10173         * conform/data/cpio.h-data: Likewise.
10174         * conform/data/ctype.h-data: Likewise.
10175         * conform/data/dirent.h-data: Likewise.
10176         * conform/data/dlfcn.h-data: Likewise.
10177         * conform/data/errno.h-data: Likewise.
10178         * conform/data/fcntl.h-data: Likewise.
10179         * conform/data/float.h-data: Likewise.
10180         * conform/data/fmtmsg.h-data: Likewise.
10181         * conform/data/fnmatch.h-data: Likewise.
10182         * conform/data/ftw.h-data: Likewise.
10183         * conform/data/glob.h-data: Likewise.
10184         * conform/data/grp.h-data: Likewise.
10185         * conform/data/iconv.h-data: Likewise.
10186         * conform/data/inttypes.h-data: Likewise.
10187         * conform/data/langinfo.h-data: Likewise.
10188         * conform/data/libgen.h-data: Likewise.
10189         * conform/data/limits.h-data: Likewise.
10190         * conform/data/locale.h-data: Likewise.
10191         * conform/data/math.h-data: Likewise.
10192         * conform/data/monetary.h-data: Likewise.
10193         * conform/data/mqueue.h-data: Likewise.
10194         * conform/data/ndbm.h-data: Likewise.
10195         * conform/data/net/if.h-data: Likewise.
10196         * conform/data/netdb.h-data: Likewise.
10197         * conform/data/netinet/in.h-data: Likewise.
10198         * conform/data/nl_types.h-data: Likewise.
10199         * conform/data/poll.h-data: Likewise.
10200         * conform/data/pthread.h-data: Likewise.
10201         * conform/data/pwd.h-data: Likewise.
10202         * conform/data/regex.h-data: Likewise.
10203         * conform/data/sched.h-data: Likewise.
10204         * conform/data/search.h-data: Likewise.
10205         * conform/data/semaphore.h-data: Likewise.
10206         * conform/data/setjmp.h-data: Likewise.
10207         * conform/data/signal.h-data: Likewise.
10208         * conform/data/spawn.h-data: Likewise.
10209         * conform/data/stdarg.h-data: Likewise.
10210         * conform/data/stdio.h-data: Likewise.
10211         * conform/data/stdlib.h-data: Likewise.
10212         * conform/data/string.h-data: Likewise.
10213         * conform/data/strings.h-data: Likewise.
10214         * conform/data/stropts.h-data: Likewise.
10215         * conform/data/sys/ipc.h-data: Likewise.
10216         * conform/data/sys/mman.h-data: Likewise.
10217         * conform/data/sys/msg.h-data: Likewise.
10218         * conform/data/sys/resource.h-data: Likewise.
10219         * conform/data/sys/select.h-data: Likewise.
10220         * conform/data/sys/sem.h-data: Likewise.
10221         * conform/data/sys/shm.h-data: Likewise.
10222         * conform/data/sys/socket.h-data: Likewise.
10223         * conform/data/sys/stat.h-data: Likewise.
10224         * conform/data/sys/statvfs.h-data: Likewise.
10225         * conform/data/sys/time.h-data: Likewise.
10226         * conform/data/sys/timeb.h-data: Likewise.
10227         * conform/data/sys/times.h-data: Likewise.
10228         * conform/data/sys/types.h-data: Likewise.
10229         * conform/data/sys/uio.h-data: Likewise.
10230         * conform/data/sys/un.h-data: Likewise.
10231         * conform/data/sys/utsname.h-data: Likewise.
10232         * conform/data/sys/wait.h-data: Likewise.
10233         * conform/data/syslog.h-data: Likewise.
10234         * conform/data/tar.h-data: Likewise.
10235         * conform/data/termios.h-data: Likewise.
10236         * conform/data/utime.h-data: Likewise.
10237         * conform/data/utmpx.h-data: Likewise.
10238         * conform/data/varargs.h-data: Likewise.
10239         * conform/data/wchar.h-data: Likewise.
10240         * conform/data/wctype.h-data: Likewise.
10241         * conform/data/wordexp.h-data: Likewise.
10242
10243         * include/stropts.h: New file.
10244         * include/uchar.h: New file.
10245         * include/aio.h: Changes to allow conformtest.pl to use the headers.
10246         * include/assert.h: Likewise.
10247         * include/ctype.h: Likewise.
10248         * include/dirent.h: Likewise.
10249         * include/dlfcn.h: Likewise.
10250         * include/fcntl.h: Likewise.
10251         * include/fnmatch.h: Likewise.
10252         * include/glob.h: Likewise.
10253         * include/grp.h: Likewise.
10254         * include/libio.h: Likewise.
10255         * include/locale.h: Likewise.
10256         * include/math.h: Likewise.
10257         * include/net/if.h: Likewise.
10258         * include/netdb.h: Likewise.
10259         * include/netinet/in.h: Likewise.
10260         * include/pthread.h: Likewise.
10261         * include/pwd.h: Likewise.
10262         * include/regex.h: Likewise.
10263         * include/sched.h: Likewise.
10264         * include/search.h: Likewise.
10265         * include/setjmp.h: Likewise.
10266         * include/signal.h: Likewise.
10267         * include/stdio.h: Likewise.
10268         * include/stdlib.h: Likewise.
10269         * include/string.h: Likewise.
10270         * include/sys/cdefs.h: Likewise.
10271         * include/sys/mman.h: Likewise.
10272         * include/sys/msg.h: Likewise.
10273         * include/sys/resource.h: Likewise.
10274         * include/sys/select.h: Likewise.
10275         * include/sys/socket.h: Likewise.
10276         * include/sys/stat.h: Likewise.
10277         * include/sys/statvfs.h: Likewise.
10278         * include/sys/time.h: Likewise.
10279         * include/sys/times.h: Likewise.
10280         * include/sys/uio.h: Likewise.
10281         * include/sys/utsname.h: Likewise.
10282         * include/sys/wait.h: Likewise.
10283         * include/termios.h: Likewise.
10284         * include/time.h: Likewise.
10285         * include/ulimit.h: Likewise.
10286         * include/unistd.h: Likewise.
10287         * include/utime.h: Likewise.
10288         * include/wchar.h: Likewise.
10289         * include/wctype.h: Likewise.
10290         * include/wordexp.h: Likewise.
10291
10292         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
10293
10294         * time/time.h: TIME_UTC must be a macro.
10295         Make timespec_get available for ISO C11 only as well.
10296
10297 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
10298
10299         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
10300         Reported by Peng Haitao <penght@cn.fujitsu.com>.
10301
10302 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
10303
10304         * configure.in: Use -o not -a in test for unsupported multi-arch.
10305
10306 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
10307
10308         * manual/texinfo.tex: Update to version 2012-01-19.16.
10309
10310 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
10311
10312         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
10313
10314 2012-02-24  Roland McGrath  <roland@hack.frob.com>
10315
10316         [BZ #13738]
10317         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
10318         * manual/fdl-1.3.texi: New file.
10319         * manual/fdl-1.1.texi: File removed.
10320
10321         [BZ #13738]
10322         * manual/libc.texinfo (FDL_VERSION): New @set.
10323         Use it for mention of FDL in cover text.
10324         (Documentation License): Use it in @include file name.
10325
10326 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
10327             Roland McGrath  <roland@hack.frob.com>
10328
10329         [BZ #5461]
10330         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
10331         not LONG_LONG_MAX and LONG_LONG_MIN.
10332         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
10333         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
10334         name.
10335         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
10336
10337 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
10338
10339         [BZ #2547]
10340         [BZ #11365]
10341         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
10342         manipulate bits before adding and subtracting TWO23[sx].
10343         * math/libm-test.inc (nearbyint_test): Add more tests.
10344
10345 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
10346
10347         [BZ #2548]
10348         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
10349         bits before adding and subtracting TWO23[sx].
10350         * math/libm-test.inc (rint_test): Add more tests.
10351         (rint_test_tonearest): Likewise.
10352         (rint_test_towardzero): Likewise.
10353         (rint_test_downward): Likewise.
10354         (rint_test_upward: Likewise.
10355
10356 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
10357
10358         [BZ #10110]
10359         * include/stdc-predef.h: New file.  Extracted from features.h.
10360         * include/features.h: Include stdc-predef.h.
10361         * Makefile (headers): Add stdc-predef.h.
10362         * CONFORMANCE (Compiler limitations): Update.
10363
10364 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
10365
10366         * manual/libc.texinfo (VERSION, UPDATED): Revert.
10367
10368 2012-02-21  David S. Miller  <davem@davemloft.net>
10369
10370         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
10371         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
10372
10373 2012-02-20  David S. Miller  <davem@davemloft.net>
10374
10375         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
10376         using a normal save/restore sequence, rather than allocating a
10377         dummy stack frame just to store a frame pointer and restore.
10378         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
10379
10380 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
10381
10382         * manual/install.texi: Fix stray word in line-wrapped comment.
10383
10384 2012-02-20  David S. Miller  <davem@davemloft.net>
10385
10386         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
10387         both binutils and gcc support GOTDATA.
10388
10389         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
10390         "rd %pc" in the PIC register setup sequences.
10391
10392         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
10393         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
10394         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
10395         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
10396         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
10397         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
10398         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
10399         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
10400         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
10401         (SYSCALL_ERROR_HANDLER): Likewise.
10402         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
10403         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
10404         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
10405         (SYSCALL_ERROR_HANDLER): Likewise.
10406
10407         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
10408         (HAVE_GCC_GOTDATA): New.
10409         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
10410         relocation support in both binutils and gcc.
10411         * sysdeps/sparc/elf/configure: Regenerate.
10412
10413         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
10414         * sysdeps/sparc/sparc32/elf/configure: Delete.
10415         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
10416         * sysdeps/sparc/sparc64/elf/configure: Delete.
10417         * sysdeps/sparc/elf/configure.in: New file.
10418         * sysdeps/sparc/elf/configure: Generate.
10419
10420         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
10421         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
10422         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
10423         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
10424         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
10425
10426 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
10427
10428         * manual/install.texi: Do not mention specific glibc version
10429         numbers.
10430         * manual/libc.texinfo (VERSION, UPDATED): Update.
10431         (@copying): Use @copyright{} and range of years.
10432
10433 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
10434
10435         [BZ #13695]
10436         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
10437         [crti.S not in sysdirs] (generated): Do not append.
10438         [crti.S not in sysdirs] (omit-deps): Likewise.
10439         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
10440         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
10441         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
10442         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
10443         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
10444         Likewise.
10445         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
10446         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
10447         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
10448         * csu/defs.awk: Remove file.
10449         * sysdeps/generic/initfini.c: Likewise.
10450         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
10451         variable.
10452         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
10453         Likewise.
10454
10455 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
10456
10457         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
10458         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
10459         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
10460         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
10461         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
10462         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
10463         <bits/epoll.h>.
10464         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
10465         (__EPOLL_PACKED): Define to empty if not defined by
10466         <bits/epoll.h>.
10467         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
10468         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10469         bits/epoll.h.
10470
10471 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
10472
10473         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
10474         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
10475         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
10476         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
10477         <bits/timerfd.h>.
10478         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
10479         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10480         bits/timerfd.h.
10481
10482 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
10483
10484         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
10485         in C locale.
10486         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
10487         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
10488         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
10489         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10490
10491 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
10492
10493         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
10494         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
10495
10496 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
10497
10498         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
10499         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
10500         defined.
10501         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
10502         Likewise.
10503         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
10504         entry for 2.16.
10505
10506 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
10507
10508         * math/w_acos.c: Use non-signaling floating-point comparisons.
10509         * math/w_acosf.c: Likewise.
10510         * math/w_acosh.c: Likewise.
10511         * math/w_acoshf.c: Likewise.
10512         * math/w_acoshl.c: Likewise.
10513         * math/w_acosl.c: Likewise.
10514         * math/w_asin.c: Likewise.
10515         * math/w_asinf.c: Likewise.
10516         * math/w_asinl.c: Likewise.
10517         * math/w_atanh.c: Likewise.
10518         * math/w_atanhf.c: Likewise.
10519         * math/w_atanhl.c: Likewise.
10520         * math/w_exp2.c: Likewise.
10521         * math/w_exp2f.c: Likewise.
10522         * math/w_exp2l.c: Likewise.
10523         * math/w_j0.c: Likewise.
10524         * math/w_j0f.c: Likewise.
10525         * math/w_j0l.c: Likewise.
10526         * math/w_j1.c: Likewise.
10527         * math/w_j1f.c: Likewise.
10528         * math/w_j1l.c: Likewise.
10529         * math/w_jn.c: Likewise.
10530         * math/w_jnf.c: Likewise.
10531         * math/w_log.c: Likewise.
10532         * math/w_log10.c: Likewise.
10533         * math/w_log10f.c: Likewise.
10534         * math/w_log10l.c: Likewise.
10535         * math/w_log2.c: Likewise.
10536         * math/w_log2f.c: Likewise.
10537         * math/w_log2l.c: Likewise.
10538         * math/w_logf.c: Likewise.
10539         * math/w_logl.c: Likewise.
10540         * math/w_sqrt.c: Likewise.
10541         * math/w_sqrtf.c: Likewise.
10542         * math/w_sqrtl.c: Likewise.
10543         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
10544         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
10545         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
10546         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
10547         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
10548
10549 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
10550
10551         [BZ #9739]
10552         * manual/string.texi (strnlen): Use correct parameter name in
10553         equivalent expression.
10554
10555 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
10556
10557         [BZ #11174]
10558         * manual/users.texi (seteuid): Consistently use neweuid for
10559         argument name.
10560
10561 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
10562
10563         [BZ #13704]
10564         * manual/nss.texi (Services in the NSS configuration): Correct
10565         list of services in example configuration file.
10566
10567 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
10568
10569         [BZ #11322]
10570         * manual/arith.texi: Remove statements about negative zero
10571         behaving identically to zero.
10572
10573 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
10574
10575         [BZ #5993]
10576         * manual/install.texi: Do not document upgrading from libc5.
10577
10578 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
10579
10580         [BZ #4596]
10581         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
10582
10583 2012-02-18  David S. Miller  <davem@davemloft.net>
10584
10585         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
10586         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
10587         %o7 across the call.
10588         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
10589         instead.
10590         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
10591         SETUP_PIC_REG_LEAF.
10592         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
10593         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
10594         * sysdeps/sparc/crtn.S: Likewise.
10595
10596 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
10597
10598         * aout/Makefile: Remove.
10599
10600 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
10601
10602         [BZ #13058]
10603         * manual/examples/argp-ex1.c (main): Format definition in GNU
10604         style.
10605         * manual/examples/argp-ex2.c (main): Likewise.
10606         * manual/examples/argp-ex3.c (main): Likewise.
10607         * manual/examples/argp-ex4.c (main): Likewise.
10608         * manual/examples/longopt.c (main): Use new-style prototype
10609         definition.
10610         * manual/examples/strncat.c (main): Specify return type and use
10611         (void) for arguments.
10612         * manual/examples/subopt.c (main): Use char **argv argument.
10613
10614 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
10615
10616         [BZ #5077]
10617         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
10618         rounding modes.
10619
10620 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
10621
10622         [BZ #6907]
10623         * manual/string.texi (strchr): Change when strchrnul is
10624         recommended.
10625
10626 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
10627
10628         [BZ #174]
10629         * manual/locale.texi (setlocale): Document LOCPATH.
10630
10631 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
10632
10633         [BZ #10210]
10634         * manual/process.texi (execle): Move @dots{} before last argument.
10635
10636 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
10637
10638         [BZ #12047]
10639         * manual/charset.texi (Generic Charset Conversion): Fix typo
10640         (LC_TYPE -> LC_CTYPE).
10641
10642 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
10643
10644         [BZ #5805]
10645         * manual/arith.texi (scalbn): Use @var{} on parameter names.
10646         (scalbnf): Likewise.
10647         (scalbnl): Likewise.
10648         (scalbln): Likewise.
10649         (scalblnf): Likewise.
10650         (scalblnl): Likewise.
10651         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
10652         (vwarnx): Likewise.
10653         (verr): Likewise.
10654         (verrx): Likewise.
10655         * manual/filesys.texi (telldir): Use braces around return type.
10656         * manual/llio.texi (mmap): Add space after comma.
10657         (mmap64): Likewise.
10658         * manual/math.texi (jn): Use @var{} on parameter names.
10659         (jnf): Likewise.
10660         (jnl): Likewise.
10661         (yn): Likewise.
10662         (ynf): Likewise.
10663         (ynl): Likewise.
10664         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
10665         line.
10666         * manual/resource.texi (ulimit): Use @dots{} instead of literal
10667         "...".
10668         (sched_get_priority_min): Remove semicolon on @deftypefun line.
10669         (sched_get_priority_max): Likewise.
10670         * manual/signal.texi (sigvec): Add space after comma.
10671         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
10672         names.
10673         (if_indextoname): Likewise.
10674         (if_freenameindex): Likewise.
10675         (sendto): Use ',' instead of '.' in prototype.
10676         * manual/startup.texi (syscall): Use @dots{} instead of literal
10677         "...".
10678         * manual/stdio.texi (__fpending): Separate initial words of
10679         paragraph from @deftypefun line.
10680         * manual/syslog.texi (syslog): Use @dots{} instead of literal
10681         "...".
10682         (vsyslog): Use @var{} on parameter names.
10683         * manual/terminal.texi (stty): Use @var{} on parameter names.
10684         * manual/users.texi (getutmp): Use @var{} on parameter names.
10685         (getutmpx): Likewise.
10686
10687 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
10688
10689         [BZ #6884]
10690         * manual/stdio.texi (fopen): Fix typos in description of
10691         ",ccs=STRING".
10692
10693 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
10694
10695         [BZ #4026]
10696         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
10697         get clock_id definition.
10698
10699 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
10700
10701         [BZ #4822]
10702         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
10703         (madvise): Cast every argument to void on its own.
10704
10705 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
10706
10707         [BZ #9902]
10708         * manual/startup.texi (Exit Status): Fix typo.
10709
10710 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
10711
10712         [BZ #10140]
10713         * manual/examples/argp-ex1.c: Include <stdlib.h>.
10714         * manual/examples/argp-ex2.c: Likewise.
10715         * manual/examples/argp-ex3.c: Likewise.
10716
10717 2012-02-16  Richard Henderson  <rth@redhat.com>
10718
10719         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
10720         * sysdeps/s390/s390-32/initfini.c: Remove.
10721         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
10722         * sysdeps/s390/s390-64/initfini.c: Remove.
10723
10724 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
10725
10726         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
10727         compiler output for sysdeps/generic/initfini.c.
10728         * sysdeps/sh/elf/initfini.c: Remove file.
10729
10730 2012-02-16  David S. Miller  <davem@davemloft.net>
10731
10732         [BZ #11494]
10733         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
10734
10735         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
10736         * sysdeps/sparc/crti.S: New file.
10737         * sysdeps/sparc/crtn.S: New file.
10738         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
10739         * sysdeps/sparc/sparc64/Makefile: Likewise.
10740
10741 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
10742
10743         [BZ #3335]
10744         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
10745
10746 2012-02-15  Roland McGrath  <roland@hack.frob.com>
10747
10748         [BZ #4822]
10749         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
10750
10751         * mach/devstream.c (cookie_io_functions_t): Macro removed.
10752         (write, read, close): Likewise.
10753         Patch by Aurelien Jarno <aurelien@aurel32.net>.
10754
10755 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
10756
10757         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
10758         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
10759         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
10760         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
10761         <bits/signalfd.h>.
10762         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
10763         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10764         bits/signalfd.h.
10765
10766 2012-02-14  Marek Polacek  <polacek@redhat.com>
10767
10768         * sysdeps/x86_64/crti.S: New file.
10769         * sysdeps/x86_64/crtn.S: New file.
10770         * sysdeps/x86_64/elf/initfini.c: Remove file.
10771
10772 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
10773
10774         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
10775         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
10776         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
10777         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
10778         <bits/inotify.h>.
10779         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
10780         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10781         bits/inotify.h.
10782
10783 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
10784
10785         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
10786         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
10787         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
10788         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
10789         <bits/eventfd.h>.
10790         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
10791         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10792         bits/eventfd.h.
10793
10794 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
10795
10796         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
10797         __feraiseexcept instead of feraiseexcept.
10798
10799         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
10800         nanosleep invocations.
10801         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
10802         strings, and add error checking for a nanosleep invocations.
10803
10804 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
10805
10806         Replace FSF snail mail address with URLs, as per GNU coding standards.
10807         Most of the snail mail addresses were wrong anyway, and omitting
10808         them makes the source code easier to maintain.  Almost all of the
10809         changes are to license notices and to locale LC_IDENTIFICATION
10810         addresses, except for this one:
10811         * manual/libc.texinfo: In "Published by", give the FSF's URL,
10812         not its snail mail address.
10813
10814 2012-02-09  Richard Henderson  <rth@twiddle.net>
10815
10816         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
10817         of kernel-features.h.
10818
10819         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
10820
10821 2012-02-08  Marek Polacek  <polacek@redhat.com>
10822
10823         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
10824         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
10825         * sysdeps/gnu/_G_config.h: Likewise.
10826         * sysdeps/generic/_G_config.h: Likewise.
10827
10828 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
10829
10830         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
10831         tests.
10832         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10833
10834         * sysdeps/powerpc/powerpc32/crti.S: New file.
10835         * sysdeps/powerpc/powerpc32/crtn.S: New file.
10836         * sysdeps/powerpc/powerpc64/crti.S: New file.
10837         * sysdeps/powerpc/powerpc64/crtn.S: New file.
10838
10839         * Makeconfig (have-initfini): Don't set.
10840         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
10841         * configure.in (nopic_initfini): Don't substitute.
10842         * config.h.in (HAVE_INITFINI): Don't #undef.
10843         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
10844         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
10845
10846 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
10847
10848         Support crti.S and crtn.S provided directly by architectures.
10849         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
10850         [crti.S in sysdirs] (omit-deps): Likewise.
10851         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
10852         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
10853         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
10854         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
10855         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
10856         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
10857         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
10858         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
10859         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
10860         compiler output for sysdeps/generic/initfini.c.
10861         * sysdeps/i386/elf/Makefile: Remove file.
10862         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
10863
10864 2012-02-07  Marek Polacek  <polacek@redhat.com>
10865
10866         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
10867         * sysdeps/gnu/_G_config.h: Likewise.
10868         * sysdeps/mach/hurd/_G_config.h: Likewise.
10869
10870 2012-02-07  Marek Polacek  <polacek@redhat.com>
10871
10872         * math/Makefile (tests): Add tst-CMPLX2.
10873         * math/tst-CMPLX2.c: New file.
10874
10875 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
10876
10877         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
10878
10879         * math/libm-test.inc (jn_test): Add missing L suffix.
10880
10881 2012-02-06  Marek Polacek  <polacek@redhat.com>
10882
10883         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
10884         * sysdeps/i386/fpu/e_powf.S: Likewise.
10885         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
10886         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
10887         * sysdeps/i386/fpu/e_acosh.S: Likewise.
10888         * sysdeps/i386/fpu/e_pow.S: Likewise.
10889         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
10890         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
10891         * sysdeps/i386/fpu/s_expm1.S: Likewise.
10892         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
10893         * sysdeps/i386/fpu/e_log2.S: Likewise.
10894         * sysdeps/i386/fpu/e_log2l.S: Likewise.
10895         * sysdeps/i386/fpu/e_scalb.S: Likewise.
10896         * sysdeps/i386/fpu/e_powl.S: Likewise.
10897         * sysdeps/i386/fpu/s_log1p.S: Likewise.
10898         * sysdeps/i386/fpu/e_log10f.S: Likewise.
10899         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
10900         * sysdeps/i386/fpu/e_logl.S: Likewise.
10901         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
10902         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
10903         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
10904         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
10905         * sysdeps/i386/fpu/e_log2f.S: Likewise.
10906         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
10907         * sysdeps/i386/fpu/e_log.S: Likewise.
10908         * sysdeps/i386/fpu/s_cexp.S: Likewise.
10909         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
10910         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
10911         * sysdeps/i386/fpu/e_logf.S: Likewise.
10912         * sysdeps/i386/fpu/e_log10l.S: Likewise.
10913         * sysdeps/i386/fpu/e_atanh.S: Likewise.
10914         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
10915         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
10916         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
10917         * sysdeps/i386/fpu/e_log10.S: Likewise.
10918         * sysdeps/i386/fpu/s_frexp.S: Likewise.
10919         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
10920         * sysdeps/i386/fpu/s_asinh.S: Likewise.
10921         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
10922         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
10923         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
10924         * sysdeps/i386/asm-syntax.h: Likewise.
10925         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
10926         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
10927         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
10928         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
10929         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
10930         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
10931         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
10932         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
10933         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
10934         * sysdeps/powerpc/sysdep.h: Likewise.
10935         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
10936         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
10937
10938 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
10939
10940         [BZ #411]
10941         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
10942
10943 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
10944
10945         * sysdeps/i386/sysdep.h: Include <features.h>.
10946         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
10947         version.
10948
10949 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
10950
10951         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
10952         Define.
10953         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
10954         LOAD_PIC_REG_STR.
10955
10956 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
10957
10958         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
10959         (SETUP_PIC_REG): Use GET_PC_THUNK.
10960         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
10961         macro.
10962
10963 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
10964
10965         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
10966         for non-PIC compilation.
10967         (SETUP_PIC_REG): Add .p2align directive.
10968         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
10969         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
10970         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
10971         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
10972         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
10973         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
10974         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
10975         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
10976         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
10977         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
10978         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
10979         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
10980         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
10981         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
10982         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
10983         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
10984         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
10985         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
10986         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
10987         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
10988         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
10989         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
10990         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
10991         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
10992         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
10993         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
10994         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
10995         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
10996         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
10997         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
10998         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
10999         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
11000         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
11001         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
11002         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
11003         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
11004         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
11005         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
11006         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
11007         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
11008         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
11009
11010 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
11011
11012         * math/tst-CMPLX.c: Include <stdio.h>.
11013
11014 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
11015
11016         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
11017         float.
11018         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
11019         * sysdeps/sparc/bits/mathdef.h: Likewise.
11020
11021 2012-01-31  Marek Polacek  <polacek@redhat.com>
11022
11023         * libio/libio.h: Don't define _PARAMS.
11024         * locale/programs/config.h: Don't define PARAMS.
11025         * stdlib/strtol_l.c: Likewise.
11026         (__strtol_l): Remove PARAMS from the prototype.
11027
11028 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
11029
11030         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
11031         names.  Just use the correct names.  Remove unnecessary wrapper
11032         functions.
11033         * malloc/arena.c: Likewise.
11034         * malloc/hooks.c: Likewise.
11035
11036         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
11037         ARENA_TEST says not to.  Simplify test for creation of a new arena.
11038         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
11039
11040 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
11041
11042         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
11043         into tail calls.
11044         (update_get_addr): New function.
11045         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
11046         GET_ADDR_MODULE parameter.
11047
11048 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
11049
11050         * crypt/cert.c: Remove __STDC__ conditionals.
11051         * crypt/crypt-entry.c: Likewise.
11052         * crypt/crypt_util.c: Likewise.
11053         * libio/filedoalloc.c: Likewise.
11054         * libio/fileops.c: Likewise.
11055         * libio/genops.c: Likewise.
11056         * libio/iofclose.c: Likewise.
11057         * libio/iofdopen.c: Likewise.
11058         * libio/iofopen.c: Likewise.
11059         * libio/iofopen64.c: Likewise.
11060         * libio/iogetdelim.c: Likewise.
11061         * libio/iopopen.c: Likewise.
11062         * libio/obprintf.c: Likewise.
11063         * libio/oldfileops.c: Likewise.
11064         * libio/oldiofclose.c: Likewise.
11065         * libio/oldiofdopen.c: Likewise.
11066         * libio/oldiofopen.c: Likewise.
11067         * libio/oldiopopen.c: Likewise.
11068         * libio/wfiledoalloc.c: Likewise.
11069         * libio/wgenops.c: Likewise.
11070         * locale/programs/xmalloc.c: Likewise.
11071         * misc/syslog.c: Likewise.
11072         * stdio-common/xbug.c: Likewise.
11073         * string/memchr.c: Likewise.
11074         * string/memcmp.c: Likewise.
11075         * string/memrchr.c: Likewise.
11076         * string/rawmemchr.c: Likewise.
11077         * sysdeps/posix/getcwd.c: Likewise.
11078         * time/strftime_l.c: Likewise.
11079
11080 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
11081
11082         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
11083         * config.make.in (config-cflags-sse2avx): Define.
11084         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
11085         Fix typo.
11086
11087 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
11088
11089         * scripts/config.guess: Update from upstream config git repository.
11090         * scripts/config.sub: Likewise.
11091
11092 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
11093
11094         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
11095         (EM_NUM): Update.
11096         (R_TILEPRO_*, R_TILEGX_*): New macros.
11097
11098         * scripts/firstversions.awk: Fix bug in version range handling.
11099
11100         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
11101
11102         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
11103
11104         * include/sys/epoll.h: New file.
11105         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
11106         libc_hidden_def.
11107
11108 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
11109
11110         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
11111         Avoid unnecessary __WORDSIZE == 64 test.
11112         (fmaxf): Use VEX format if possible.
11113         (fmax): Likewise.
11114         (fminf): Likewise.
11115         (fmin): Likewise.
11116
11117         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
11118         * math/math_private.h: Remove libc_fegetround* and
11119         libc_fesetround*.
11120         * sysdeps/i386/configure.in: Check for -msse2avx.
11121         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
11122         also if SSE2AVX is defined.
11123         Remove libc_fegetround* and libc_fesetround*.
11124         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
11125         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
11126         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
11127         of HAS_YMM_USABLE.
11128         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
11129         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
11130         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
11131         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
11132         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
11133
11134         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
11135
11136 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11137
11138         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
11139         size is not set.
11140         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
11141
11142 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
11143
11144         [BZ #13618]
11145         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
11146         relocation.
11147         * Makeconfig (libm): Define.
11148         * elf/Makefile: Add rules to build and run tst-relsort1.
11149         * elf/tst-relsort1.c: New file.
11150         * elf/tst-relsort1mod1.c: New file.
11151         * elf/tst-relsort1mod2.c: New file.
11152
11153 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
11154
11155         * math/s_ldexp.c: Remove __STDC__ conditionals.
11156         * math/s_ldexpf.c: Likewise.
11157         * math/s_ldexpl.c: Likewise.
11158         * math/s_nextafter.c: Likewise.
11159         * math/s_nexttowardf.c: Likewise.
11160         * math/s_significand.c: Likewise.
11161         * math/s_significandf.c: Likewise.
11162         * math/s_significandl.c: Likewise.
11163         * math/w_jnl.c: Likewise.
11164         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
11165         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
11166         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
11167         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
11168         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
11169         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
11170         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
11171         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
11172         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
11173         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
11174         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
11175         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
11176         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
11177         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
11178         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
11179         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
11180         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
11181         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
11182         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
11183         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
11184         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
11185         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
11186         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
11187         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
11188         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
11189         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
11190         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
11191         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
11192         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
11193         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
11194         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
11195         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
11196         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
11197         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
11198         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
11199         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
11200         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
11201         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
11202         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
11203         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
11204         * sysdeps/ieee754/k_standard.c: Likewise.
11205         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11206         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
11207         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
11208         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
11209         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
11210         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
11211         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
11212         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
11213         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
11214         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
11215         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
11216         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
11217         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
11218         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
11219         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
11220         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
11221         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
11222         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
11223         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
11224         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
11225         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
11226         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
11227         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
11228         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
11229         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
11230         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
11231         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
11232         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11233         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
11234         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
11235         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
11236         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
11237         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
11238         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
11239         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
11240         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
11241         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
11242         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
11243         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
11244         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
11245         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
11246         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
11247         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
11248         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
11249         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
11250         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
11251         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
11252         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
11253         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
11254         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
11255         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
11256         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
11257         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
11258         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
11259         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
11260         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
11261         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
11262         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
11263         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
11264         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
11265         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
11266         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
11267         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
11268         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
11269         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
11270         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
11271         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
11272         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
11273         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
11274         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
11275         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
11276         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
11277         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
11278         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
11279         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
11280         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
11281         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
11282         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
11283         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
11284         * sysdeps/ieee754/s_matherr.c: Likewise.
11285         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
11286         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
11287         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
11288         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
11289
11290 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
11291
11292         * crypt/md5.h: Remove __STDC__ conditionals.
11293         * libio/libioP.h: Likewise.
11294         * locale/programs/config.h: Likewise.
11295         * sysdeps/generic/sysdep.h: Likewise.
11296         * sysdeps/i386/asm-syntax.h: Likewise.
11297         * sysdeps/s390/asm-syntax.h: Likewise.
11298         * sysdeps/unix/sysdep.h: Likewise.
11299         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
11300         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
11301
11302 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
11303
11304         * libio/libio.h: Remove __STDC__ conditionals.
11305         * malloc/obstack.h: Likewise.
11306         * math/complex.h: Likewise.
11307         * math/math.h: Likewise.
11308         * sysdeps/generic/_G_config.h: Likewise.
11309         * sysdeps/gnu/_G_config.h: Likewise.
11310         * sysdeps/mach/hurd/_G_config.h: Likewise.
11311         * sysdeps/powerpc/bits/mathdef.h: Likewise.
11312         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
11313         * sysdeps/sparc/bits/mathdef.h: Likewise.
11314
11315 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
11316
11317         [BZ #13583]
11318         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
11319         Clean up HAS_* macros.
11320         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
11321         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
11322         possible.
11323         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
11324         HAS_AVX.
11325         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
11326         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
11327         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
11328         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
11329         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
11330
11331 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
11332
11333         * elf/tst-unique3.cc (gets): Remove declaration.
11334         * elf/tst-unique3lib.cc (gets): Likewise.
11335         * elf/tst-unique3lib2.cc (gets): Likewise.
11336         * elf/tst-unique4.cc (gets): Likewise.
11337
11338 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
11339
11340         * include/stdio.h: Add C++ protection.  Add gets declarations and
11341         definitions.
11342         * debug/tst-chk1.c: Don't declare gets here.
11343         * stdio-common/tst-gets.c: Likewise.
11344
11345 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
11346
11347         * posix/glob: Remove directory.
11348
11349 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
11350
11351         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
11352
11353 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
11354
11355         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
11356         of the non-standard EPFNOSUPPORT.
11357
11358 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11359
11360         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
11361         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
11362         ANYWHERE set to 1 only on KERN_NO_SPACE error.
11363
11364 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
11365
11366         * wcsmbs/uchar.h: Test __STDC_VERSION__.
11367
11368 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
11369
11370         * nscd/aicache.c (addhstaiX): Do not cache negative results of
11371         transient errors.
11372         * nscd/grpcache.c (cache_addgr): Likewise.
11373         * nscd/hstcache.c (cache_addhst): Likewise.
11374         * nscd/initgrcache.c (addinitgroupsX): Likewise.
11375         * nscd/pwdcache.c (cache_addpw): Likewise.
11376         * nscd/servicescache.c (cache_addserv): Likewise.
11377
11378 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
11379
11380         * malloc/malloc.c: Various cleanups.
11381         * malloc/hooks.c: Likewise.
11382
11383         * stdlib/Makefile (tests): Add bug-fmtmsg1.
11384         * stdlib/bug-fmtmsg1.c: New file.
11385
11386         * stdlib/fmtmsg.c (init): Add missing unlock.
11387         Patch by Peng Haitao <penght@cn.fujitsu.com>.
11388
11389 2012-01-12  Marek Polacek  <polacek@redhat.com>
11390
11391         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
11392         and _GNU_SOURCE.
11393
11394 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
11395
11396         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
11397         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
11398         macro to ensure uniqueness of label name.
11399         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
11400         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
11401
11402 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
11403
11404         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
11405
11406         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
11407         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
11408         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
11409         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
11410
11411 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
11412
11413         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
11414
11415         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
11416         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
11417         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
11418
11419         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
11420
11421         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
11422         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
11423         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
11424         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
11425
11426         * math/bits/math-finite.h: Add ldexp support.
11427
11428 2012-01-10  Marek Polacek  <polacek@redhat.com>
11429
11430         * locale/programs/localedef.h (show_archive_content): Add noreturn
11431         attribute.
11432
11433 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
11434
11435         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
11436
11437 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
11438
11439         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
11440
11441         * io/Makefile (headers): Add bits/poll2.h.
11442
11443 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
11444
11445         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
11446         typo #include statement.
11447
11448 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
11449
11450         * include/sys/cdefs.h: Define __attribute_alloc_size.
11451         * catgets/gencat.c: Add alloc_size attribute and apply consistently
11452         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
11453         * elf/pldd.c: Likewise.
11454         * iconv/iconv_charmap.c: Likewise.
11455         * iconv/iconvconfig.c: Likewise.
11456         * iconv/strtab.c: Likewise.
11457         * locale/programs/locale.c: Likewise.
11458         * locale/programs/localedef.h: Likewise.
11459         * locale/programs/simple-hash.c: Likewise.
11460         * nscd/nscd.h: Likewise.
11461         * nss/makedb.c: Likewise.
11462         * sysdeps/generic/ldconfig.h: Likewise.
11463         * locale/programs/localedef.c: Remove xmalloc prototype.
11464         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
11465
11466 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
11467
11468         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
11469         appropriate.
11470
11471 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
11472
11473         * math/Makefile (tests): Add tst-CMPLX.
11474         * math/tst-CMPLX.c: New file.
11475
11476         * math/complex.h (CMPLXL): Fix typo.
11477
11478         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
11479         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
11480         GLIBC_2.16.
11481         * debug/tst-chk1.c: Add poll and ppoll tests.
11482         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
11483         * include/sys/poll.h: Add hidden proto for ppoll.
11484         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
11485         * sysdeps/mach/hurd/ppoll.c: Likewise.
11486         * io/ppoll.c: Likewise.
11487         * debug/poll_chk.c: New file.
11488         * debug/ppoll_chk.c: New file.
11489         * include/bits/poll2.h: New file.
11490         * io/bits/poll2.h: New file.
11491
11492         [BZ #1350]
11493         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
11494
11495         * configure.in: static is always set to yes.  Remove.
11496         * config.make.in: Don't set build-static.
11497         * Makeconfig: Remove use of build-static.
11498         * dlfcn/Makefile: Likewise.
11499         * elf/Makefile: Likewise.
11500         * math/Makefile: Likewise.
11501         * misc/Makefile: Likewise.
11502         * nptl/Makefile: Likewise.
11503         * sysdeps/mach/hurd/Makefile: Likewise.
11504
11505         * configure.in: PWD_P is not used anymore.
11506         * config.make.in: Remove PWD_P entry.
11507
11508         * configure.in: Remove last remnants of RANLIB.
11509         No need to check for signed size_t anymore.
11510         Don't set libc_commonpagesize and libc_relro_required here for Alpha
11511         and IA-64.
11512         Remove __builtin_expect test because we require at least gcc 3.4.
11513         * aclocal.m4: Likewise.
11514
11515         * wcsmbs/mbrtoc16.c: Implement using towc function.
11516         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
11517         * wcsmbs/wcsmbsload.c: Likewise.
11518         * iconv/gconv_simple.c: Likewise.
11519         * iconv/gconv_int.h: Likewise.
11520         * iconv/gconv_builtin.h: Likewise.
11521         * iconv/iconv_prog.c: Remove CHAR16 handling.
11522
11523         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
11524
11525         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
11526
11527         * configure.in: Remove --with-elf and --enable-bounded options.
11528         Dont set base_machine for ia64.  More non-ELF conditions removed.
11529         Remove testing and setting of leading underscore information.
11530         * config.make.in (build-bounded): Set to no.
11531         * config.h.in: Remove NO_UNDERSCORES entry.
11532         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
11533         them.
11534         * csu/start.c: Remove !NO_UNDERSCORE code.
11535         * locale/localeinfo.h: Likewise.
11536         * sysdeps/generic/machine-gmon.h: Likewise.
11537         * sysdeps/generic/sysdep.h: Likewise.
11538         * sysdeps/i386/sysdep.h: Likewise.
11539         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
11540         * sysdeps/mach/sysdep.h: Likewise.
11541         * sysdeps/s390/s390-32/sysdep.h: Likewise.
11542         * sysdeps/s390/s390-64/sysdep.h: Likewise.
11543         * sysdeps/sh/sysdep.h: Likewise.
11544         * sysdeps/sparc/sparc32/alloca.S: Likewise.
11545         * sysdeps/unix/i386/sysdep.S: Likewise.
11546         * sysdeps/unix/sparc/start.c: Likewise.
11547         * sysdeps/unix/sparc/sysdep.S: Likewise.
11548         * sysdeps/unix/sparc/sysdep.h: Likewise.
11549         * sysdeps/unix/start.c: Likewise.
11550         * sysdeps/unix/x86_64/sysdep.S: Likewise.
11551         * sysdeps/x86_64/sysdep.h: Likewise.
11552
11553 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
11554
11555         [BZ #13553]
11556         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
11557         for non-gcc.
11558         * argp/argp-fmtstream.h: Use const instead __const.
11559         * argp/argp.h: Likewise.
11560         * assert/assert.h: Likewise.
11561         * bits/fenv.h: Likewise.
11562         * bits/sched.h: Likewise.
11563         * bits/sigset.h: Likewise.
11564         * bits/sigthread.h: Likewise.
11565         * catgets/nl_types.h: Likewise.
11566         * conform/data/pthread.h-data: Likewise.
11567         * crypt/crypt-private.h: Likewise.
11568         * crypt/crypt.h: Likewise.
11569         * crypt/crypt_util.c: Likewise.
11570         * ctype/ctype.h: Likewise.
11571         * debug/execinfo.h: Likewise.
11572         * debug/mbsnrtowcs_chk.c: Likewise.
11573         * debug/mbsrtowcs_chk.c: Likewise.
11574         * debug/wcsnrtombs_chk.c: Likewise.
11575         * debug/wcsrtombs_chk.c: Likewise.
11576         * debug/wcstombs_chk.c: Likewise.
11577         * dirent/dirent.h: Likewise.
11578         * dlfcn/dlfcn.h: Likewise.
11579         * elf/neededtest4.c: Likewise.
11580         * grp/grp.h: Likewise.
11581         * gshadow/gshadow.h: Likewise.
11582         * iconv/gconv.h: Likewise.
11583         * iconv/gconv_int.h: Likewise.
11584         * iconv/gconv_simple.c: Likewise.
11585         * iconv/iconv.h: Likewise.
11586         * iconv/loop.c: Likewise.
11587         * iconv/skeleton.c: Likewise.
11588         * include/aio.h: Likewise.
11589         * include/aliases.h: Likewise.
11590         * include/argz.h: Likewise.
11591         * include/arpa/inet.h: Likewise.
11592         * include/assert.h: Likewise.
11593         * include/dirent.h: Likewise.
11594         * include/dlfcn.h: Likewise.
11595         * include/execinfo.h: Likewise.
11596         * include/fcntl.h: Likewise.
11597         * include/fenv.h: Likewise.
11598         * include/glob.h: Likewise.
11599         * include/grp.h: Likewise.
11600         * include/libintl.h: Likewise.
11601         * include/mntent.h: Likewise.
11602         * include/netdb.h: Likewise.
11603         * include/pwd.h: Likewise.
11604         * include/rpc/netdb.h: Likewise.
11605         * include/sched.h: Likewise.
11606         * include/search.h: Likewise.
11607         * include/shadow.h: Likewise.
11608         * include/signal.h: Likewise.
11609         * include/stdio.h: Likewise.
11610         * include/stdlib.h: Likewise.
11611         * include/string.h: Likewise.
11612         * include/sys/socket.h: Likewise.
11613         * include/sys/stat.h: Likewise.
11614         * include/sys/statfs.h: Likewise.
11615         * include/sys/statvfs.h: Likewise.
11616         * include/sys/syslog.h: Likewise.
11617         * include/sys/time.h: Likewise.
11618         * include/sys/uio.h: Likewise.
11619         * include/time.h: Likewise.
11620         * include/unistd.h: Likewise.
11621         * include/utmp.h: Likewise.
11622         * include/wchar.h: Likewise.
11623         * include/wctype.h: Likewise.
11624         * inet/aliases.h: Likewise.
11625         * inet/arpa/inet.h: Likewise.
11626         * inet/netinet/ether.h: Likewise.
11627         * inet/netinet/in.h: Likewise.
11628         * intl/libintl.h: Likewise.
11629         * io/bits/fcntl2.h: Likewise.
11630         * io/fcntl.h: Likewise.
11631         * io/ftw.h: Likewise.
11632         * io/sys/poll.h: Likewise.
11633         * io/sys/stat.h: Likewise.
11634         * io/sys/statfs.h: Likewise.
11635         * io/sys/statvfs.h: Likewise.
11636         * io/utime.h: Likewise.
11637         * libio/bits/stdio.h: Likewise.
11638         * libio/bits/stdio2.h: Likewise.
11639         * libio/libio.h: Likewise.
11640         * libio/libioP.h: Likewise.
11641         * libio/stdio.h: Likewise.
11642         * locale/lc-ctype.c: Likewise.
11643         * locale/locale.h: Likewise.
11644         * login/utmp.h: Likewise.
11645         * malloc/arena.c: Likewise.
11646         * malloc/malloc.c: Likewise.
11647         * malloc/malloc.h: Likewise.
11648         * malloc/mcheck.c: Likewise.
11649         * malloc/mtrace.c: Likewise.
11650         * math/bits/mathcalls.h: Likewise.
11651         * math/fenv.h: Likewise.
11652         * math/math_private.h: Likewise.
11653         * misc/bits/error.h: Likewise.
11654         * misc/bits/syslog.h: Likewise.
11655         * misc/err.h: Likewise.
11656         * misc/error.h: Likewise.
11657         * misc/fstab.h: Likewise.
11658         * misc/mntent.h: Likewise.
11659         * misc/regexp.h: Likewise.
11660         * misc/search.h: Likewise.
11661         * misc/sgtty.h: Likewise.
11662         * misc/sys/mman.h: Likewise.
11663         * misc/sys/syslog.h: Likewise.
11664         * misc/sys/uio.h: Likewise.
11665         * misc/sys/xattr.h: Likewise.
11666         * misc/ttyent.h: Likewise.
11667         * nis/rpcsvc/ypclnt.h: Likewise.
11668         * nss/nss.h: Likewise.
11669         * posix/bits/unistd.h: Likewise.
11670         * posix/fnmatch.h: Likewise.
11671         * posix/glob.h: Likewise.
11672         * posix/sched.h: Likewise.
11673         * posix/spawn.h: Likewise.
11674         * posix/sys/wait.h: Likewise.
11675         * posix/unistd.h: Likewise.
11676         * posix/wordexp.h: Likewise.
11677         * pwd/pwd.h: Likewise.
11678         * resolv/netdb.h: Likewise.
11679         * resource/sys/resource.h: Likewise.
11680         * rt/aio.h: Likewise.
11681         * rt/bits/mqueue2.h: Likewise.
11682         * rt/mqueue.h: Likewise.
11683         * shadow/shadow.h: Likewise.
11684         * signal/signal.h: Likewise.
11685         * socket/send.c: Likewise.
11686         * socket/sendto.c: Likewise.
11687         * socket/sys/socket.h: Likewise.
11688         * stdio-common/printf.h: Likewise.
11689         * stdlib/bits/stdlib.h: Likewise.
11690         * stdlib/fmtmsg.h: Likewise.
11691         * stdlib/monetary.h: Likewise.
11692         * stdlib/stdlib.h: Likewise.
11693         * stdlib/ucontext.h: Likewise.
11694         * streams/stropts.h: Likewise.
11695         * string/argz.h: Likewise.
11696         * string/bits/string2.h: Likewise.
11697         * string/string.h: Likewise.
11698         * string/strings.h: Likewise.
11699         * sunrpc/rpc/auth.h: Likewise.
11700         * sunrpc/rpc/auth_des.h: Likewise.
11701         * sunrpc/rpc/clnt.h: Likewise.
11702         * sunrpc/rpc/netdb.h: Likewise.
11703         * sunrpc/rpc/pmap_clnt.h: Likewise.
11704         * sunrpc/rpc/xdr.h: Likewise.
11705         * sysdeps/generic/inttypes.h: Likewise.
11706         * sysdeps/generic/net/if.h: Likewise.
11707         * sysdeps/generic/sys/swap.h: Likewise.
11708         * sysdeps/gnu/net/if.h: Likewise.
11709         * sysdeps/gnu/utmpx.h: Likewise.
11710         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
11711         * sysdeps/i386/i486/bits/string.h: Likewise.
11712         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
11713         * sysdeps/s390/bits/string.h: Likewise.
11714         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
11715         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
11716         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
11717         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
11718         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
11719         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
11720         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
11721         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
11722         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
11723         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
11724         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
11725         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
11726         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
11727         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
11728         * sysdeps/unix/sysv/linux/readv.c: Likewise.
11729         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
11730         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
11731         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
11732         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
11733         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
11734         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
11735         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
11736         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
11737         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
11738         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
11739         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
11740         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
11741         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
11742         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
11743         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
11744         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
11745         * sysvipc/sys/ipc.h: Likewise.
11746         * sysvipc/sys/msg.h: Likewise.
11747         * sysvipc/sys/sem.h: Likewise.
11748         * sysvipc/sys/shm.h: Likewise.
11749         * termios/termios.h: Likewise.
11750         * time/sys/time.h: Likewise.
11751         * time/time.h: Likewise.
11752         * wcsmbs/bits/wchar2.h: Likewise.
11753         * wcsmbs/uchar.h: Likewise.
11754         * wcsmbs/wchar.h: Likewise.
11755         * wctype/wctype.h: Likewise.
11756
11757         [BZ #13551]
11758         * Makeconfig: Remove all but ELF support including AIX support.
11759         * Makerules: Likewise.
11760         * config.h.in: Likewise.
11761         * config.make.in: Likewise.
11762         * configure: Likewise.
11763         * configure.in: Likewise.
11764         * csu/Makefile: Likewise.
11765         * csu/version.c: Likewise.
11766         * debug/Makefile: Likewise.
11767         * dlfcn/Makefile: Likewise.
11768         * elf/Makefile: Likewise.
11769         * extra-lib.mk: Likewise.
11770         * iconv/Makefile: Likewise.
11771         * include/libc-symbols.h: Likewise.
11772         * include/shlib-compat.h: Likewise.
11773         * resolv/Makefile: Likewise.
11774         * resolv/res_libc.c: Likewise.
11775         * rt/Makefile: Likewise.
11776         * sysdeps/i386/asm-syntax.h: Likewise.
11777         * sysdeps/i386/sysdep.h: Likewise.
11778         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
11779         * sysdeps/mach/sysdep.h: Likewise.
11780         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
11781         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
11782         * sysdeps/s390/asm-syntax.h: Likewise.
11783         * sysdeps/s390/s390-32/sysdep.h: Likewise.
11784         * sysdeps/s390/s390-64/sysdep.h: Likewise.
11785         * sysdeps/sh/sysdep.h: Likewise.
11786         * sysdeps/unix/sparc/sysdep.h: Likewise.
11787         * sysdeps/wordsize-32/divdi3.c: Likewise.
11788         * sysdeps/x86_64/sysdep.h: Likewise.
11789
11790         * argp/Versions: Remove _argp_unlock_xxx.
11791
11792         [BZ #13559]
11793         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
11794         * abilist/libBrokenLocale.abilist: Likewise.
11795         * abilist/libanl.abilist: Likewise.
11796         * abilist/libc.abilist: Likewise.
11797         * abilist/libcrypt.abilist: Likewise.
11798         * abilist/libdl.abilist: Likewise.
11799         * abilist/libm.abilist: Likewise.
11800         * abilist/libnsl.abilist: Likewise.
11801         * abilist/libpthread.abilist: Likewise.
11802         * abilist/libresolv.abilist: Likewise.
11803         * abilist/librt.abilist: Likewise.
11804         * abilist/libthread_db.abilist: Likewise.
11805         * abilist/libutil.abilist: Likewise.
11806         * abilist/libnss_db.abilist: New file.
11807
11808         * scripts/abilist.awk: Add support for indirect functions.
11809
11810         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
11811
11812         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
11813
11814         * shlib-versions: Remove entries for ports architectures.
11815
11816         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
11817         files in ports.
11818         * elf/stackguard-macros.h: Remove support for IA-64.
11819         * elf/tst-auditmod1.c: Likewise.
11820         * sysdeps/generic/ldsodefs.h: Likewise.
11821
11822         * sysdeps/unix/sysv/linux/configure.in: Ports should define
11823         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
11824         configure files.
11825
11826         [BZ #13552]
11827         * configure.in: Remove --enable-omitfp support.
11828         * FAQ.in: Adjust.
11829         * config.make.in: Likewise.
11830         * Makeconfig: Likewise.
11831         * manual/install.texi: Likewise.
11832
11833         In case anyone cares, the IA-64 architecture could move to ports.
11834         * sysdeps/ia64/*: Removed.
11835         * sysdeps/unix/sysv/linux/ia64/*: Removed.
11836         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
11837
11838         [BZ #13555]
11839         * configure.in: Remove entries for unsupported architectures.
11840
11841         [BZ #13533]
11842         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
11843         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
11844         routines.
11845         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
11846         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
11847         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
11848         fall back to using wcrtomb.
11849         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
11850         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
11851         renaming.
11852         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
11853         * wcsmbs/tst-c16c32-1.c: New file.
11854
11855         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
11856         local variable.
11857
11858         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
11859
11860         * elf/tst-unique3.cc: Add explicit declaration of gets.
11861         * elf/tst-unique3lib.cc: Likewise.
11862         * elf/tst-unique3lib2.cc: Likewise.
11863         * elf/tst-unique4.cc: Likewise.
11864
11865         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
11866
11867 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
11868
11869         [BZ #13566]
11870         * assert/assert.h (static_assert): Don't define for C++.
11871         * libio/stdio.h (gets): Do declare for C++ <= C++11.
11872         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
11873
11874 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
11875
11876         * iconv/loop.c (single loop): Fix assertion in storing of
11877         remaining bytes.
11878
11879         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
11880
11881 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
11882
11883         * posix/getconf.c: Update copyright year.
11884         * nss/getent.c: Likewise.
11885         * nss/makedb.c: Likewise.
11886         * iconv/iconvconfig.c: Likewise.
11887         * iconv/iconv_prog.c: Likewise.
11888         * elf/ldconfig.c: Likewise.
11889         * elf/pldd.c: Likewise.
11890         * elf/sotruss.ksh: Likewise.
11891         * catgets/gencat.c: Likewise.
11892         * csu/version.c: Likewise.
11893         * elf/ldd.bash.in: Likewise.
11894         * elf/sprof.c (print_version): Likewise.
11895         * locale/programs/locale.c: Likewise.
11896         * locale/programs/localedef.c: Likewise.
11897         * login/programs/pt_chown.c: Likewise.
11898         * nscd/nscd.c (print_version): Likewise.
11899         * debug/xtrace.sh: Likewise.
11900         * malloc/memusage.sh: Likewise.
11901         * malloc/mtrace.pl: Likewise.
11902         * debug/catchsegv.sh: Likewise.
11903
11904 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
11905
11906         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
11907         pure attribute.
11908
11909 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
11910
11911         [BZ #13533]
11912         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
11913         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
11914         transformations.
11915         * iconv/gconv_int.h: Likewise.
11916         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
11917         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
11918         from libc for GLIBC_2.16.
11919         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
11920         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
11921         * wcsmbs/uchar.h: Really define mbstate_t.
11922         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
11923         * wcsmbs/c16rtomb.c: New file.
11924         * wcsmbs/mbrtoc16.c: New file.
11925         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
11926         for C/POSIX locale.
11927         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
11928         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
11929
11930         * wcsmbs/wchar.h: Add missing __restrict.
11931
11932 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
11933
11934         [BZ #13532]
11935         * time/Makefile (routines): Add timespec_get.
11936         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
11937         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
11938         timespec for ISO C11.
11939         * time/timespec_get.c: New file.
11940         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
11941         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
11942
11943         [BZ #13531]
11944         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
11945         * stdlib/stdlib.h: Declare aligned_alloc.
11946         * Versions.def: Add GLIBC_2.16 for libc.
11947         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
11948
11949         [BZ 13527]
11950         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
11951         ISO C11.
11952
11953         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
11954         code.
11955
11956         [BZ #13528]
11957         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
11958
11959         [BZ #13529]
11960         * assert/assert.h (static_assert): Define.
11961
11962         * version.h: Update for 2.16 development version.
11963
11964         [BZ #13526]
11965         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
11966         _ISOC11_SOURCE.
11967
11968         * version.h (RELEASE): Bump for 2.15 release.
11969         * include/features.h (__GLIBC_MINOR__): Bump to 15.
11970
11971         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
11972         Patch by Marek Polacek <mpolacek@redhat.com>.
11973
11974         * bits/byteswap.h: Protect long long constants with __extension__.
11975         * sysdeps/i386/bits/byteswap.h: Likewise.
11976         * sysdeps/ia64/bits/byteswap.h: Likewise.
11977         * sysdeps/s390/bits/byteswap.h: Likewise.
11978         * sysdeps/x86_64/bits/byteswap.h: Likewise.
11979
11980 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11981
11982         [BZ #13540]
11983         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
11984         destination buffer.
11985         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
11986
11987 2011-12-23  Marek Polacek  <polacek@redhat.com>
11988
11989         * elf/dl-addr.c (determine_info): Add inline keyword.
11990         * elf/tst-auditmod4b.c (check_avx): Likewise.
11991         * elf/tst-auditmod6b.c (check_avx): Likewise.
11992         * elf/tst-auditmod6c.c (check_avx): Likewise.
11993         * elf/tst-auditmod7b.c (check_avx): Likewise.
11994
11995 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
11996
11997         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
11998         !__SSE_MATH__.
11999
12000 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12001
12002         [BZ #13540]
12003         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
12004         processing for last bytes.
12005
12006 2011-08-06  Bruno Haible  <bruno@clisp.org>
12007
12008         [BZ #13061]
12009         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
12010         U+0385, not to U+1FEE.
12011
12012         [BZ #13062]
12013         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
12014         entry for U+00A5 U+0301.
12015
12016 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
12017
12018         [BZ #13166]
12019         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
12020         buffer for the output is too small.
12021
12022         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
12023         optimization.
12024
12025         [BZ #13185]
12026         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
12027         SSE flags if possible.
12028
12029 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12030
12031         [BZ #13540]
12032         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
12033         processing for last bytes.
12034
12035 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
12036
12037         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
12038         (syscall-list-default-options, syscall-list-default-condition)
12039         (syscall-list-includes): Define.
12040         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
12041         list of ABIs and options and #if conditions for each ABI.  Do not
12042         handle common syscalls between ABIs specially.
12043         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
12044         Remove.
12045         (syscall-list-variants, syscall-list-32bit-options)
12046         (syscall-list-32bit-condition, syscall-list-64bit-options)
12047         (syscall-list-64bit-condition): Define.
12048         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
12049         (syscall-list-variants, syscall-list-32bit-options)
12050         (syscall-list-32bit-condition, syscall-list-64bit-options)
12051         (syscall-list-64bit-condition): Define.
12052         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
12053         Remove.
12054         (syscall-list-variants, syscall-list-32bit-options)
12055         (syscall-list-32bit-condition, syscall-list-64bit-options)
12056         (syscall-list-64bit-condition): Define.
12057         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
12058         Remove.
12059         (syscall-list-variants, syscall-list-32bit-options)
12060         (syscall-list-32bit-condition, syscall-list-64bit-options)
12061         (syscall-list-64bit-condition): Define.
12062
12063 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
12064
12065         * locale/iso-639.def: Add brx entry.
12066
12067         [BZ #13328]
12068         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
12069         Proposed by Mariusz_Cukr <marcukr@op.pl>.
12070
12071         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
12072         __feraiseexcept_renamed.
12073
12074 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
12075
12076         [BZ #13538]
12077         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
12078         EPOLLET with unsigned values.
12079         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
12080         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
12081
12082         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
12083         to large cancellation.
12084         * math/s_cacoshf.c: Likewise.
12085         * math/s_cacoshl.c: Likewise.
12086
12087 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
12088
12089         [BZ #13305]
12090         [BZ #12786]
12091         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
12092         * math/s_cacoshf.c: Likewise.
12093         * math/s_cacoshl.c: Likewise.
12094
12095 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
12096
12097         [BZ #13439]
12098         * iconv/gconv.h: Define __GCONV_SWAP.
12099         * iconvdata/unicode.c: The swap bit must be stored in __flags.
12100         * iconvdata/utf-16.c: Likewise.
12101         * iconvdata/utf-32.c: Likewise.
12102
12103 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
12104
12105         [BZ #13524]
12106         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
12107         numerator after shifting it by one limb.
12108
12109 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
12110
12111         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
12112         under [__USE_EXTERN_INLINES].
12113
12114 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
12115
12116         [BZ #13446]
12117         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
12118
12119 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12120
12121         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
12122         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
12123         optimized code.
12124         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
12125         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
12126         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
12127         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
12128         for strncasecmp/strncasecmp_l compilation.
12129         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
12130         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
12131
12132 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
12133
12134         [BZ #13484]
12135         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
12136         of __asm__.
12137
12138 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
12139
12140         [BZ #13506]
12141         * time/tzfile.c (__tzfile_read): Check values from file header.
12142
12143 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
12144
12145         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
12146         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
12147         * powerpc/powerpc32/dl-start.S: Likewise.
12148         * powerpc/powerpc32/elf/start.S: Likewise.
12149         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
12150         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
12151         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
12152         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
12153         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
12154         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
12155         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
12156         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
12157         * powerpc/powerpc32/fpu/s_round.S: Likewise.
12158         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
12159         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
12160         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
12161         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
12162         * powerpc/powerpc32/memset.S: Likewise.
12163         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
12164         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
12165         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
12166         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
12167         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
12168         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
12169         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
12170         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
12171         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
12172         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
12173         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
12174         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
12175         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
12176
12177 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12178
12179         * math/libm-test.inc: Added more nearbyint tests.
12180         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
12181         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
12182         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
12183         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
12184
12185 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
12186
12187         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
12188         FD_CLOEXEC.
12189
12190 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12191
12192         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
12193         Add wcscpy-ssse3 wcscpy-c.
12194         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
12195         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
12196         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
12197         * sysdeps/x86_64/wcschr.S: New file.
12198         * sysdeps/x86_64/wcsrchr.S: New file.
12199         * string/test-strcmp.c: Remove checking of wcscmp function for
12200         wrong alignments.
12201         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
12202         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
12203         wcsrchr-sse2 wcsrchr-c.
12204         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
12205         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
12206         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
12207         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
12208         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
12209         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
12210         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
12211         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
12212         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
12213         * wcsmbc/wcschr.c (WCSCHR): New macro.
12214
12215 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12216
12217         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
12218         * wcsmbs/test-wcsrchr.c: New file.
12219         * string/test-strrchr.c: Add wcsrchr support.
12220         (WIDE): New macro.
12221         * wcsmbs/test-wcscpy.c: New file.
12222         * string/test-strcpy.c: Add wcscpy support.
12223         (WIDE): New macro.
12224
12225 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
12226
12227         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
12228         the inner loop.
12229
12230 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
12231
12232         [BZ #13472]
12233         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
12234
12235 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
12236
12237         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
12238         Minor optimizations.
12239
12240         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
12241         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
12242         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
12243
12244 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
12245
12246         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
12247         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
12248         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
12249         for gcc to avoid warnings.
12250         * inet/Makefile (tests): Add tst-checks.
12251         * inet/tst-checks.c: New file.
12252
12253         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
12254         warning.
12255
12256         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
12257         __wmemcmp_sse2.
12258
12259         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
12260         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
12261
12262         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
12263
12264 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
12265
12266         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
12267         problem.
12268
12269         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
12270
12271 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
12272
12273         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
12274         conditional on GCC version.
12275         (__arch_compare_and_exchange_val_8_acq)
12276         (__arch_compare_and_exchange_val_16_acq)
12277         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
12278         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
12279         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
12280
12281 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
12282
12283         * sysdeps/sh/backtrace.c: New file.
12284
12285 2011-12-02  Andreas Schwab  <schwab@redhat.com>
12286
12287         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
12288         parenthesis.
12289
12290 2011-12-01  Andreas Schwab  <schwab@redhat.com>
12291
12292         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
12293         falling back to utime.
12294
12295 2011-11-30  Andreas Schwab  <schwab@redhat.com>
12296
12297         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
12298         expectations for float.
12299
12300 2011-11-29  Andreas Schwab  <schwab@redhat.com>
12301
12302         * locale/weight.h (findidx): Add parameter len.
12303         * locale/weightwc.h (findidx): Likewise.
12304         * posix/fnmatch_loop.c (FCT): Adjust caller.
12305         * posix/regcomp.c (build_equiv_class): Likewise.
12306         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
12307         * posix/regexec.c (check_node_accept_bytes): Likewise.
12308         * string/strcoll_l.c (STRCOLL): Likewise.
12309         * string/strxfrm_l.c (STRXFRM): Likewise.
12310
12311 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
12312
12313         * Makefile.in: Remove CVSOPT handling.
12314         * configure.in: Remove use of AC_REVISION.
12315         * iconvdata/Makefile (distribute): No need to filter out CVS.
12316         * scripts/list-sources.sh: Remove CVS, subversion and monotone
12317         handling.
12318
12319 2011-11-16  Andreas Schwab  <schwab@redhat.com>
12320
12321         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
12322         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
12323         [USE_AS_STRNCASECMP_L]: Likewise.
12324         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
12325         NO_TLS_DIRECT_SEG_REFS.
12326         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
12327         Fix argument offsets for non-PIC.
12328         [USE_AS_STRNCASECMP_L]: Likewise.
12329         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
12330         NO_TLS_DIRECT_SEG_REFS.
12331
12332 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
12333
12334         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
12335         O_CLOEXEC.
12336         * locale/loadlocale.c (_nl_load_locale): Likewise.
12337
12338 2011-11-15  Andreas Schwab  <schwab@redhat.com>
12339
12340         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
12341         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
12342         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
12343         (SYSCALL_GETTIME): Set errno on error.
12344
12345         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
12346         count references to noai6ai_cached.
12347
12348 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
12349
12350         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
12351
12352         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
12353         FD_CLOEXEC for /proc/self/maps.
12354
12355         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
12356         FD_CLOEXEC for /proc/meminfo.
12357
12358         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
12359         gai.conf.
12360
12361         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
12362         FD_CLOEXEC for given file.
12363
12364         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
12365
12366         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
12367         FD_CLOEXEC for /etc/hosts.
12368         (_gethtent): Likewise.
12369
12370         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
12371
12372         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
12373         cancellation and set FD_CLOEXEC for /etc/netgroup.
12374
12375         * nss/nss_files/files-key.c (search): Don't allow cancellation when
12376         reading /etc/publickey.
12377
12378         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
12379         allow cancellation when reading /etc/group.
12380
12381         * nss/nss_files/files-alias.c (internal_setent): Don't allow
12382         cancellation.
12383         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
12384
12385         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
12386         when using data file.
12387
12388         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
12389
12390         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
12391         (write_nis_obj): Use "c" and "e" in fopen.
12392
12393         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
12394
12395         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
12396
12397         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
12398
12399         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
12400
12401         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
12402         locale.alias.
12403
12404         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
12405
12406         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
12407
12408         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
12409
12410         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
12411         file parsing and set FD_CLOEXEC.
12412
12413 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
12414
12415         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
12416
12417 2011-11-14  Andreas Schwab  <schwab@redhat.com>
12418
12419         * malloc/arena.c (arena_get2): Don't call reused_arena when
12420         _int_new_arena failed.
12421
12422 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
12423
12424         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
12425         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
12426         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
12427         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
12428         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
12429         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
12430         to compile strcasecmp and strncasecmp.
12431         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
12432         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
12433
12434         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
12435
12436 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
12437
12438         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
12439         locale-defines.sym to gen-as-const-headers.
12440         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
12441         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
12442         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
12443         to compile strcasecmp and strncasecmp.
12444         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
12445         strcasecmp_l and strncasecmp_l.
12446         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
12447         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
12448         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
12449         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
12450         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
12451         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
12452         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
12453         * sysdeps/i386/i686/multiarch/strncase.S: New file.
12454         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
12455         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
12456         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
12457
12458 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
12459
12460         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
12461         result of SYSDEP_GETTIME_CPU to retval.
12462         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
12463         parameter list to macro.  Remove trailing semicolon.  Adjust users.
12464
12465         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
12466         variable.
12467
12468         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
12469         mantissa words.
12470         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
12471
12472         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
12473         from unused variable.
12474
12475         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
12476         DWARF definitions.
12477         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
12478         for assembling.
12479
12480         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
12481         over namespaces.
12482
12483         * sunrpc/rpc_prot.c (rejected): Fix case value.
12484
12485         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
12486         unsigned long long int to avoid warnings in shift.
12487
12488         * posix/regex_internal.c (re_string_reconstruct): Actually use result
12489         of use of trans.
12490         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
12491         variable tmp.
12492
12493         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
12494         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
12495         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
12496
12497         * nis/nis_table.c (nis_list): Use variable of correct type for
12498         result of __follow_path call.
12499
12500 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12501
12502         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
12503         of math functions ceil, trunc, floor, round, and sqrt, when
12504         avaliable on the platform.
12505         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
12506         name clash.
12507         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
12508         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
12509         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
12510
12511 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
12512
12513         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
12514         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
12515
12516 2011-11-11  Roland McGrath  <roland@hack.frob.com>
12517
12518         * include/unistd.h: Fix __readlink return type.
12519         Reported by Chris Metcalf <cmetcalf@tilera.com>.
12520
12521 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
12522
12523         * stdlib/ucontext.h: Undo last change for makecontext.
12524
12525 2011-11-11  Andreas Schwab  <schwab@redhat.com>
12526
12527         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
12528
12529         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
12530         * setjmp/setjmp.h: Mark functions as non-leaf.
12531         * setjmp/bits/setjmp2.h: Likewise.
12532         * stdlib/ucontext.h: Likewise.
12533
12534 2011-11-10  Andreas Schwab  <schwab@redhat.com>
12535
12536         * malloc/arena.c (_int_new_arena): Don't increment narenas.
12537         (reused_arena): Don't check arena limit.
12538         (arena_get2): Atomically check arena limit.
12539
12540 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
12541
12542         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
12543         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
12544
12545         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
12546         instructions.
12547
12548 2011-11-07  Andreas Schwab  <schwab@redhat.com>
12549
12550         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
12551         handler when locking.
12552
12553         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
12554         Fix size of allocated buffer.
12555
12556 2011-11-04  Andreas Schwab  <schwab@redhat.com>
12557
12558         [BZ #10103]
12559         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
12560         declarations for long double functions.
12561         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
12562
12563         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
12564
12565 2011-11-03  Andreas Schwab  <schwab@redhat.com>
12566
12567         * nscd/nscd.c (main): Don't start AVC thread until credentials are
12568         installed.
12569
12570         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
12571         is disabled.
12572
12573 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12574
12575         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
12576
12577 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
12578
12579         * include/alloca.h (stackinfo_alloca_round): Define.
12580         (extend_alloca): Use it.
12581         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
12582         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
12583         here.
12584
12585         * scripts/check-local-headers.sh: Ignore libaudit.h.
12586
12587         * nscd/Makefile (extra-objs): Make recursively expanded.
12588
12589 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
12590
12591         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
12592         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
12593
12594         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
12595         * posix/tst-rfc3484-2.c: Likewise.
12596         * posix/tst-rfc3484-3.c: Likewise.
12597
12598         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
12599         process_vm_writev.
12600         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
12601         process_vm_writev.
12602         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
12603         process_vm_writev from libc using GLIBC_2.15 version.
12604
12605         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
12606
12607 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
12608
12609         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
12610         stack usage.
12611
12612 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
12613
12614         [BZ #13367]
12615         * nss/getent.c (initgroups_keys): Show error message in case no group
12616         names are given.
12617
12618         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
12619         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
12620         __bump_nl_timestamp.
12621         * nscd/connections (nscd_init): When host database is served open
12622         netlink socket and request notification about configuration changes.
12623         (main_loop_poll): Track netlink file descriptor and bump timestamp
12624         in case data becomes available.
12625         (main_loop_epoll): Likewise.
12626         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
12627         (database_pers_head): Add extra_data fileds.
12628         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
12629         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
12630         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
12631         Adjust caller.
12632         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
12633         in6ai data, call __free_in6ai.
12634         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
12635         Add -DHAVE_NETLINK.
12636         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
12637         interface information.  Reuse previous data if netlink timestamp
12638         is not changed.
12639         (__bump_nl_timestamp): New function.
12640         (__free_in6ai): New function.
12641
12642 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
12643
12644         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
12645         close_not_cancel_no_status here.
12646         (__check_pf): Reorganize code a bit to not call close twice if OOM.
12647
12648 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
12649
12650         [BZ #13276]
12651         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
12652         return value.
12653
12654         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
12655         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
12656         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
12657
12658 2011-07-03  Andreas Jaeger  <aj@suse.de>
12659
12660         [BZ #10709]
12661         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
12662         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
12663         * math/libm-test.inc (sin_test): Add test case.
12664
12665 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
12666
12667         [BZ #13337]
12668         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
12669         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
12670
12671         * elf/chroot_canon.c (chroot_canon): Cleanups.
12672
12673         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
12674
12675         [BZ #13335]
12676         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
12677         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
12678
12679         * string/test-strchr.c: Make usable for strchrnul testing.
12680         * string/test-strchrnul.c: New file.
12681         * string/Makefile (strop-tests): Add strchrnul.
12682
12683         * po/it.po: Update from translation team.
12684         * po/es.po: Likewise.
12685
12686 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
12687
12688         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
12689         the three constants needed as parameters.  Drop the others.
12690         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
12691         __m128i_strloadu_tolower.
12692         Create and initialize variable zero and use it in all the places
12693         where _mm_setzero_si128 was used.
12694
12695         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
12696         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
12697         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
12698         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
12699         anymore.
12700         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
12701         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
12702         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
12703         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
12704         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
12705         __mpranred, __mptan.
12706         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
12707         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
12708         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
12709         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
12710         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
12711         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
12712         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
12713         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
12714         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
12715
12716 2011-10-28  Andreas Schwab  <schwab@redhat.com>
12717
12718         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
12719         redefine if SHARED.
12720         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
12721
12722         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
12723         wide char related routines to wcsmbs subdir.
12724
12725 2011-10-27  Andreas Schwab  <schwab@redhat.com>
12726
12727         [BZ #13344]
12728         * misc/sys/cdefs.h (__THROWNL): Define.
12729         * posix/unistd.h: Use __THREADNL instead of __THREAD
12730         for memory synchronization functions.
12731
12732 2011-10-26  Roland McGrath  <roland@hack.frob.com>
12733
12734         [BZ #13349]
12735         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
12736         doesn't exist.
12737         * manual/stdio.texi (Obstack Streams): Node removed.
12738
12739 2011-10-26  Andreas Schwab  <schwab@redhat.com>
12740
12741         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
12742         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
12743         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
12744
12745         * math/math_private.h (math_force_eval): Allow non-addressable
12746         arguments.
12747         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
12748
12749 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
12750
12751         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
12752         file is not needed.
12753
12754         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
12755         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
12756         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
12757         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
12758         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
12759         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
12760         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
12761         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
12762         Add AVX variants.
12763         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
12764         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
12765         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
12766         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
12767         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
12768         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
12769         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
12770         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
12771         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
12772         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
12773         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
12774         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
12775         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
12776         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
12777         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
12778         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
12779         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
12780         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
12781         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
12782
12783         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
12784         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
12785
12786         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
12787         place.  Use VEX encoding when compiling for AVX.
12788
12789 2011-10-25  Andreas Schwab  <schwab@redhat.com>
12790
12791         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
12792         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
12793
12794         * string/test-strchr.c (do_test): Don't generate NUL bytes.
12795
12796 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
12797
12798         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
12799         useless if() expression.
12800         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
12801         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
12802         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
12803         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
12804         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
12805         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
12806         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
12807         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
12808         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
12809         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12810         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
12811         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
12812         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
12813         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
12814         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
12815         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
12816         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
12817         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
12818         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
12819
12820         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
12821
12822 2011-10-25  Andreas Schwab  <schwab@redhat.com>
12823
12824         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
12825         condition.
12826         * elf/dl-fini.c (_dl_sort_fini): Likewise.
12827
12828 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
12829
12830         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
12831         .text section.  Avoid duplicate constants.
12832         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
12833         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
12834         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
12835         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
12836         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
12837         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
12838         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
12839         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
12840         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
12841         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
12842         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
12843         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
12844         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
12845         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
12846         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
12847         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
12848         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
12849         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
12850         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
12851         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
12852         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
12853         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
12854         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
12855         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
12856         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
12857         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
12858         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
12859         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
12860         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
12861         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
12862         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
12863         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
12864         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
12865         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
12866         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
12867         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
12868         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
12869         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
12870         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
12871         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
12872         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
12873         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
12874         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
12875         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
12876         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
12877
12878 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
12879
12880         * sysdeps/x86_64/dla.h: Move to ...
12881         * sysdeps/x86_64/fpu/dla.h: ...here.
12882         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
12883         situations.  Use __builtin_fma only for gcc 4.6 and up.
12884
12885         * config.make.in: Add have-mfma4 entry.
12886         * configure.in: Substitute libc_cv_cc_fma4.
12887         * math/Makefile (dbl-only-routines): Add sincostab.
12888         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
12889         Use __sincostab not sincos.
12890         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
12891         name is a macro.
12892         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
12893         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
12894         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
12895         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
12896         using __copysign.
12897         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
12898         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
12899         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
12900         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
12901         and __inv.
12902         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
12903         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
12904         __copysign.
12905         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
12906         define aliases when function name is a macro.
12907         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
12908         sysdeps/ieee754/dbl-64/sincos.tbl.
12909         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
12910         fma4-enabled routines.
12911         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
12912         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
12913         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
12914         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
12915         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
12916         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
12917         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
12918         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
12919         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
12920         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
12921         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
12922         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
12923         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
12924         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
12925         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
12926         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
12927         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
12928         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
12929         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
12930         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
12931         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
12932         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
12933         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
12934         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
12935         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
12936         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
12937         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
12938         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
12939         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
12940         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
12941
12942         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
12943         rename.
12944         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
12945         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
12946         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
12947         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
12948         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
12949         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
12950         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
12951         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
12952
12953 2011-10-24  Andreas Schwab  <schwab@redhat.com>
12954
12955         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
12956
12957 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
12958
12959         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
12960
12961         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
12962         prediction.
12963         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
12964
12965         * string/strnlen.c: Don't define STRNLEN, reverse logic.
12966         Remove unused variable magic_bits.
12967         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
12968
12969         * string/strnlen.c: Define and use STRNLEN macro.
12970         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
12971         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
12972         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
12973         * wcsmbs/wcslen.c: Define and use WCSLEN.
12974         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
12975         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
12976         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
12977         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
12978         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
12979         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
12980         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
12981
12982 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12983
12984         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
12985         strnlen-sse2-no-bsf.
12986         Rename strlen-no-bsf to strlen-sse2-no-bsf.
12987         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
12988         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
12989         Add strnlen support.
12990         (USE_AS_STRNLEN): New macro.
12991         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
12992         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
12993         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
12994         * sysdeps/x86_64/wcslen.S: New file.
12995
12996 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
12997
12998         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
12999         XMM-moves are used for copying on small sizes.
13000
13001 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13002
13003         * wcsmbs/Makefile (strop-tests): Add wcschr.
13004         * wcsmbs/test-wcschr.c: New file.
13005         * string/test-strchr.c: Update.
13006         Add wcschr support.
13007         (WIDE): New macro.
13008
13009 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13010
13011         * wcsmbs/Makefile (strop-tests): Add wcslen.
13012         * wcsmbs/test-wcslen.c: New file.
13013         * string/test-strlen.c: Update.
13014         Add wcslen support.
13015         (WIDE): New macro.
13016
13017 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
13018
13019         * po/it.po: Update from translation team.
13020
13021 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13022
13023         * sysdeps/x86_64/wcscmp.S: Update.
13024         Fix wrong comparison semantics.
13025         wcscmp shall use signed comparison not unsigned.
13026         Don't use substraction to avoid overflow bug.
13027         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
13028         * wcsmbc/wcscmp.c: Likewise.
13029         * string/test-strcmp.c: Likewise.
13030         Add new tests to check cases with negative values.
13031
13032 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
13033
13034         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
13035         * sysdeps/x86_64/dla.h: ...here.  New file.
13036         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
13037         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13038         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13039         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13040         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13041         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
13042         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
13043         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
13044         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13045
13046 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
13047
13048         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
13049         __ynl_finite aliases.
13050
13051 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
13052
13053         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
13054
13055         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
13056         define DLA_FMA.
13057         [DLA_FMA] (EMULV): Use DLA_FMA.
13058         [DLA_FMA] (MUL12): Use EMULV.
13059         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
13060         that are not needed.
13061         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13062         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13063         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13064         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13065         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
13066         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
13067         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13068
13069 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
13070
13071         * math/s_nan.c: Undef __nan.
13072         * math/s_nanf.c: Undef __nanf.
13073         * math/s_nanl.c: Undef __nanl.
13074         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
13075         "math_private.h".
13076
13077 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
13078
13079         * math/s_catan.c: Add branch predictions.
13080         * math/s_catanf.c: Likewise.
13081         * math/s_catanh.c: Likewise.
13082         * math/s_catanhf.c: Likewise.
13083         * math/s_catanhl.c: Likewise.
13084         * math/s_catanl.c: Likewise.
13085         * math/s_cexp.c: Likewise.
13086         * math/s_cexpf.c: Likewise.
13087         * math/s_cexpl.c: Likewise.
13088         * math/s_clog.c: Likewise.
13089         * math/s_clog10.c: Likewise.
13090         * math/s_clog10f.c: Likewise.
13091         * math/s_clog10l.c: Likewise.
13092         * math/s_clogf.c: Likewise.
13093         * math/s_clogl.c: Likewise.
13094         * math/s_csqrt.c: Likewise.
13095         * math/s_csqrtf.c: Likewise.
13096         * math/s_csqrtl.c: Likewise.
13097         * math/s_ctanf.c: Likewise.
13098         * math/s_ctanh.c: Likewise.
13099         * math/s_ctanhf.c: Likewise.
13100         * math/s_ctanhl.c: Likewise.
13101         * math/s_ctanl.c: Likewise.
13102
13103         * math/math_private.h: Define __nan, __nanf, __nanl.
13104         * math/s_cacosh.c: Include <math_private.h>.
13105         * math/s_cacoshl.c: Likewise.
13106         * math/s_casinh.c: Likewise.
13107         * math/s_casinhf.c: Likewise.
13108         * math/s_casinhl.c: Likewise.
13109         * math/s_ccos.c: Rely entire on ccosh.
13110         * math/s_ccosf.c: Rely entire on ccoshf.
13111         * math/s_ccosl.c: Rely entirely on ccoshl.
13112         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
13113         Remove tests for FE_INVALID.
13114         * math/s_ccoshf.c: Likewise.
13115         * math/s_ccoshl.c: Likewise.
13116         * math/s_csin.c: Likewise.
13117         * math/s_csinf.c: Likewise.
13118         * math/s_csinh.c Likewise.
13119         * math/s_csinhf.c: Likewise.
13120         * math/s_csinhl.c: Likewise.
13121         * math/s_csinl.c: Likewise.
13122         * math/s_ctan.c: Likewise.
13123         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
13124         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
13125         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
13126
13127 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
13128
13129         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
13130         compilation problems.
13131
13132         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
13133         __builtin_expect.
13134
13135 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
13136
13137         * sysdeps/i386/configure.in: Test for -mfma4 option.
13138         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
13139         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
13140         COMMON_CPUID_INDEX_80000001.
13141         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
13142         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
13143         use it if FMA3 is not supported.
13144         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
13145
13146         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
13147         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
13148
13149 2011-10-20  Andreas Schwab  <schwab@redhat.com>
13150
13151         [BZ #12892]
13152         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
13153         it would create a cycle with a link time dependency.
13154
13155 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
13156
13157         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
13158         instruction.
13159         * string/Makefile (strop-tests): Add rawmemchr.
13160         * string/test-rawmemchr.c: New file.
13161
13162         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
13163         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
13164         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
13165         when compiling str{,n}casecmp and when AVX is available.  Hook up
13166         new optimized code in initializers.
13167
13168 2011-10-19  Andreas Schwab  <schwab@redhat.com>
13169
13170         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
13171         __feraiseexcept instead of feraiseexcept.
13172
13173 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
13174
13175         * math/math_private.h: Define defaults for libc_fetestexcept and
13176         libc_feupdateenv.
13177         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
13178         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
13179         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
13180         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
13181         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
13182         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
13183         libc_fetestexcept and libc_feupdateenv.
13184
13185         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
13186         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
13187         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
13188         * sysdeps/x86_64/fpu/math_private.h: Define special version of
13189         libc_feholdexcept_setround.
13190
13191         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
13192         Add s_nearbyint-c and s_nearbyintf-c.
13193         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
13194         nearbyintf inlines.
13195         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
13196         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
13197         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
13198         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
13199
13200         * math/math_private.h: Define defaults for libc_fegetround,
13201         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
13202         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
13203         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
13204         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
13205         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
13206         standard functions.
13207         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
13208         Remove comments and hacks for old compiler versions.
13209         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
13210         libc_fegetround, libc_fesetround, libc_feholdexcept, and
13211         libc_feholdexceptl.
13212
13213 2011-10-18  Andreas Schwab  <schwab@redhat.com>
13214
13215         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
13216         (__feraiseexcept_renamed): Add __NTH.
13217         (feraiseexcept): Add __NTH.  Rename local variables to fix
13218         namespace violations.
13219
13220 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
13221
13222         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
13223
13224         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
13225
13226         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
13227         recently added interfaces.
13228         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
13229
13230         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
13231         about macro parameter expansion.
13232
13233         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
13234         __NO_MATH_INLINES is defined.  Cleanups.
13235
13236         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
13237         and __floorf is target has SSE4.1.
13238         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
13239         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
13240         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
13241         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
13242
13243         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
13244         name.
13245         (floorf): Likewise.
13246
13247         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
13248
13249 2011-10-17  Andreas Schwab  <schwab@redhat.com>
13250
13251         * misc/sys/cdefs.h: Fix last change.
13252
13253         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
13254         database lookup.
13255
13256 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
13257
13258         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
13259
13260         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
13261         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
13262         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
13263         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
13264         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
13265         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
13266         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
13267         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
13268         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
13269         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
13270         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
13271         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
13272         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
13273         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
13274         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
13275         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
13276         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
13277         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
13278         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
13279         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
13280         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
13281         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
13282
13283         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
13284         ceil, ceilf, floor, floorf.
13285
13286         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
13287         Perform IRELATIVE relocations last.
13288
13289         * elf/do-rel.h: Add another parameter nrelative, replacing the
13290         local variable with the same name.  Change name of the function
13291         to end in Rel or Rela (uppercase).
13292         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
13293         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
13294         elf_dynamic_do_##reloc function.
13295
13296 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
13297
13298         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
13299         is sufficient, at least on modern CPUs.
13300
13301         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
13302
13303         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
13304         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
13305
13306         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
13307         __expl_finite.
13308         * math/bits/math-finite.h: Add entries for exp.
13309         * math/e_expl.c: Add __*_finite alias.
13310         * sysdeps/i386/fpu/e_exp.S: Likewise.
13311         * sysdeps/i386/fpu/e_expf.S: Likewise.
13312         * sysdeps/i386/fpu/e_expl.c: Likewise.
13313         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
13314         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
13315         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
13316         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
13317         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
13318         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
13319         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
13320
13321         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
13322         is sufficient, at least on modern CPUs.
13323
13324         * ctype/ctype-info.c (__ctype_init): Define.
13325         * include/ctype.h (__ctype_init): Declare.
13326         (__ctype_b_loc): The variable is always initialized.
13327         (__ctype_toupper_loc): Likewise.
13328         (__ctype_tolower_loc): Likewise.
13329         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
13330         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
13331
13332 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
13333
13334         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
13335
13336         * configure.in: Also look in $cxxmachine/include for C++ system
13337         headers.
13338
13339 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13340
13341         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
13342         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
13343         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
13344         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
13345         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
13346         (USE_AS_WMEMCMP): New macro.
13347         Fixing indents.
13348         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
13349         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
13350         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
13351         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
13352         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
13353         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
13354         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
13355         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
13356         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
13357         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
13358         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
13359         (USE_AS_WMEMCMP): New macro.
13360         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
13361         * sysdeps/string/test-memcmp.c: Update.
13362         Fix simple_wmemcmp.
13363         Add new tests.
13364         * wcsmbs/wmemcmp.c: Update.
13365         (WMEMCMP): New macro.
13366         Fix overflow bug.
13367
13368 2011-10-12  Andreas Jaeger  <aj@suse.de>
13369
13370         [BZ #13268]
13371         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
13372
13373 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
13374
13375         * libio/iofwide.c (do_length): Avoid warning.
13376
13377         * ctype/ctype.h (__isctype_f): Add missing __THROW.
13378
13379 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
13380
13381         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
13382
13383         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
13384         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
13385         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
13386         * sysdeps/i386/i686/fpu/e_log.S: New file.
13387         * sysdeps/i386/i686/fpu/e_logf.S: New file.
13388         * sysdeps/i386/i686/fpu/e_logl.S: New file.
13389
13390         * ctype/ctype.h: Add support for inlined isXXX functions when
13391         compiling C++ code.
13392
13393 2011-10-14  Andreas Schwab  <schwab@redhat.com>
13394
13395         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
13396
13397         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
13398
13399 2011-10-13  Roland McGrath  <roland@hack.frob.com>
13400
13401         [BZ #13291]
13402         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
13403
13404 2011-10-13  Andreas Schwab  <schwab@redhat.com>
13405
13406         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
13407         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
13408         feraiseexcept.
13409
13410         * sysdeps/x86_64/memrchr.S: Check for zero size.
13411
13412         * string/stratcliff.c: Add memrchr tests.
13413
13414 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13415
13416         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
13417         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
13418         rawmemchr-sse2 rawmemchr-sse2-bsf.
13419         * sysdeps/i386/i686/multiarch/memchr.S: New file.
13420         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
13421         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
13422         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
13423         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
13424         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
13425         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
13426         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
13427         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
13428         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
13429         * string/memrchr.c (MEMRCHR): New macro.
13430
13431 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
13432
13433         Add integration with gcc's -ffinite-math-only and optimize wrapper
13434         functions in libm.
13435         * Versions.def: Define GLIBC_2.15 version for libm.
13436         * math/Makefile (headers): Add bits/math-finite.h.
13437         * math/bits/math-finite.h: New file.
13438         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
13439         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
13440         * math/e_acoshl.c: Add __*_finite alias.
13441         * math/e_acosl.c: Likewise.
13442         * math/e_asinl.c: Likewise.
13443         * math/e_atan2l.c: Likewise.
13444         * math/e_atanhl.c: Likewise.
13445         * math/e_coshl.c: Likewise.
13446         * math/e_exp10.c: Likewise.
13447         * math/e_exp10f.c: Likewise.
13448         * math/e_exp10l.c: Likewise.
13449         * math/e_exp2l.c: Likewise.
13450         * math/e_fmodl.c: Likewise.
13451         * math/e_gammal_r.c: Likewise.
13452         * math/e_hypotl.c: Likewise.
13453         * math/e_j0l.c: Likewise.
13454         * math/e_j1l.c: Likewise.
13455         * math/e_jnl.c: Likewise.
13456         * math/e_lgammal_r.c: Likewise.
13457         * math/e_log10l.c: Likewise.
13458         * math/e_log2l.c: Likewise.
13459         * math/e_logl.c: Likewise.
13460         * math/e_powl.c: Likewise.
13461         * math/e_sinhl.c: Likewise.
13462         * math/e_sqrtl.c: Likewise.
13463         * math/e_scalb.c: Completely rewritten and optimized.
13464         * math/e_scalbf.c: Likewise.
13465         * math/e_scalbl.c: Likewise.
13466         * math/w_acos.c: Likewise.
13467         * math/w_acosf.c: Likewise.
13468         * math/w_acosl.c: Likewise.
13469         * math/w_acosh.c: Likewise.
13470         * math/w_acoshf.c: Likewise.
13471         * math/w_acoshl.c: Likewise.
13472         * math/w_asin.c: Likewise.
13473         * math/w_asinf.c: Likewise.
13474         * math/w_asinl.c: Likewise.
13475         * math/w_atan2.c: Likewise.
13476         * math/w_atan2f.c: Likewise.
13477         * math/w_atan2l.c: Likewise.
13478         * math/w_atanh.c: Likewise.
13479         * math/w_atanhf.c: Likewise.
13480         * math/w_atanhl.c: Likewise.
13481         * math/w_exp10.c: Likewise.
13482         * math/w_exp10f.c: Likewise.
13483         * math/w_exp10l.c: Likewise.
13484         * math/w_fmod.c: Likewise.
13485         * math/w_fmodf.c: Likewise.
13486         * math/w_fmodl.c: Likewise.
13487         * math/w_j0.c: Likewise.
13488         * math/w_j0f.c: Likewise.
13489         * math/w_j0l.c: Likewise.
13490         * math/w_j1.c: Likewise.
13491         * math/w_j1f.c: Likewise.
13492         * math/w_j1l.c: Likewise.
13493         * math/w_jn.c: Likewise.
13494         * math/w_jnf.c: Likewise.
13495         * math/w_log.c: Likewise.
13496         * math/w_logf.c: Likewise.
13497         * math/w_logl.c: Likewise.
13498         * math/w_log10.c: Likewise.
13499         * math/w_log10f.c: Likewise.
13500         * math/w_log10l.c: Likewise.
13501         * math/w_log2.c: Likewise.
13502         * math/w_log2f.c: Likewise.
13503         * math/w_log2l.c: Likewise.
13504         * math/w_pow.c: Likewise.
13505         * math/w_powf.c: Likewise.
13506         * math/w_powl.c: Likewise.
13507         * math/w_remainder.c: Likewise.
13508         * math/w_remainderf.c: Likewise.
13509         * math/w_remainderl.c: Likewise.
13510         * math/w_scalb.c: Likewise.
13511         * math/w_scalbf.c: Likewise.
13512         * math/w_scalbl.c: Likewise.
13513         * math/w_sqrt.c: Likewise.
13514         * math/w_sqrtf.c: Likewise.
13515         * math/w_sqrtl.c: Likewise.
13516         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
13517         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
13518         used.
13519         * math/math_private.h: Declare __kernel_standard_f.
13520         * math/w_cosh.c: Remove cruft and optimize a bit.
13521         * math/w_coshf.c: Likewise.
13522         * math/w_coshl.c: Likewise.
13523         * math/w_exp2.c: Likewise.
13524         * math/w_exp2f.c: Likewise.
13525         * math/w_exp2l.c: Likewise.
13526         * math/w_hypot.c: Likewise.
13527         * math/w_hypotf.c: Likewise.
13528         * math/w_hypotl.c: Likewise.
13529         * math/w_lgamma.c: Likewise.
13530         * math/w_lgamma_r.c: Likewise.
13531         * math/w_lgammaf.c: Likewise.
13532         * math/w_lgammaf_r.c: Likewise.
13533         * math/w_lgammal.c: Likewise.
13534         * math/w_lgammal_r.c: Likewise.
13535         * math/w_sinh.c: Likewise.
13536         * math/w_sinhf.c: Likewise.
13537         * math/w_sinhl.c: Likewise.
13538         * math/w_tgamma.c: Likewise.
13539         * math/w_tgammaf.c: Likewise.
13540         * math/w_tgammal.c: Likewise.
13541         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
13542         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
13543         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
13544         Minor optimizations.  Pretty printing.  Remove cruft.
13545         * sysdeps/i386/fpu/e_acosf.S: Likewise.
13546         * sysdeps/i386/fpu/e_acosh.S: Likewise.
13547         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
13548         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
13549         * sysdeps/i386/fpu/e_acosl.c: Likewise.
13550         * sysdeps/i386/fpu/e_asin.S: Likewise.
13551         * sysdeps/i386/fpu/e_asinf.S: Likewise.
13552         * sysdeps/i386/fpu/e_atan2.S: Likewise.
13553         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
13554         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
13555         * sysdeps/i386/fpu/e_atanh.S: Likewise.
13556         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
13557         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
13558         * sysdeps/i386/fpu/e_exp10.S: Likewise.
13559         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
13560         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
13561         * sysdeps/i386/fpu/e_exp2.S: Likewise.
13562         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
13563         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
13564         * sysdeps/i386/fpu/e_fmod.S: Likewise.
13565         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
13566         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
13567         * sysdeps/i386/fpu/e_hypot.S: Likewise.
13568         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
13569         * sysdeps/i386/fpu/e_log.S: Likewise.
13570         * sysdeps/i386/fpu/e_log10.S: Likewise.
13571         * sysdeps/i386/fpu/e_log10f.S: Likewise.
13572         * sysdeps/i386/fpu/e_log10l.S: Likewise.
13573         * sysdeps/i386/fpu/e_log2.S: Likewise.
13574         * sysdeps/i386/fpu/e_log2f.S: Likewise.
13575         * sysdeps/i386/fpu/e_log2l.S: Likewise.
13576         * sysdeps/i386/fpu/e_logf.S: Likewise.
13577         * sysdeps/i386/fpu/e_logl.S: Likewise.
13578         * sysdeps/i386/fpu/e_pow.S: Likewise.
13579         * sysdeps/i386/fpu/e_powf.S: Likewise.
13580         * sysdeps/i386/fpu/e_powl.S: Likewise.
13581         * sysdeps/i386/fpu/e_remainder.S: Likewise.
13582         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
13583         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
13584         * sysdeps/i386/fpu/e_scalb.S: Likewise.
13585         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
13586         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
13587         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
13588         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
13589         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
13590         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
13591         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
13592         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13593         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
13594         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
13595         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
13596         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
13597         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
13598         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
13599         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
13600         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
13601         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
13602         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13603         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
13604         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
13605         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13606         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
13607         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
13608         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
13609         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
13610         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
13611         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
13612         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
13613         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
13614         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
13615         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
13616         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
13617         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
13618         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
13619         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
13620         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
13621         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
13622         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
13623         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
13624         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
13625         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
13626         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
13627         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
13628         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
13629         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
13630         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
13631         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
13632         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
13633         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
13634         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
13635         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
13636         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
13637         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
13638         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
13639         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
13640         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
13641         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
13642         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
13643         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
13644         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
13645         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
13646         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
13647         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
13648         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
13649         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
13650         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
13651         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
13652         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
13653         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
13654         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
13655         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
13656         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
13657         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
13658         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
13659         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
13660         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
13661         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
13662         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
13663         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
13664         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
13665         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
13666         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
13667         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
13668         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
13669         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
13670         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
13671         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
13672         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
13673         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
13674         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
13675         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
13676         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
13677         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
13678         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
13679         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
13680         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
13681         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
13682         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
13683         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
13684         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
13685         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
13686         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
13687         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
13688         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
13689         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
13690         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
13691         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
13692         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
13693         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
13694         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
13695         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
13696         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
13697         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
13698         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
13699         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
13700         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
13701         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
13702         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
13703         (__isnanf): Likewise.
13704         (__isinf_ns): Likewise.
13705         (__isinf_nsf): Likewise.
13706         (__finite): Likewise.
13707         (__finitef): Likewise.
13708         (__ieee754_sqrt): Define as macro.
13709         (__ieee754_sqrtf): Define as macro.
13710         (__ieee754_sqrtl): Define as macro.
13711         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
13712         inlined copy.
13713         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
13714         __FINITE_MATH_ONLY__ consistent.
13715         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
13716
13717 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
13718
13719         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
13720         of rawmemchr.
13721
13722         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
13723
13724 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
13725
13726         * po/ja.po: Update from translation team.
13727
13728 2011-10-08  Roland McGrath  <roland@hack.frob.com>
13729
13730         * locale/programs/locarchive.c (prepare_address_space): New function.
13731         (create_archive, enlarge_archive, open_archive): Use it.
13732
13733         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
13734         inside [SHARED], where it is used.
13735
13736         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
13737
13738         * nss/getent.c (netgroup_keys): Remove unused variable.
13739         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
13740
13741 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
13742
13743         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
13744         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
13745         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
13746         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
13747         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
13748         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
13749         * math/Makefile (libm-calls): Add s_isinf_ns.
13750         * math/divtc3.c: Use __isinf_nsl instead of isinf.
13751         * math/multc3.c: Likewise.
13752         * math/s_casin.c: Likewise.
13753         * math/s_casinf.c: Likewise.
13754         * math/s_casinl.c: Likewise.
13755         * math/s_ccos.c: Likewise.
13756         * math/s_ccosf.c: Likewise.
13757         * math/s_ccosl.c: Likewise.
13758         * math/s_ctan.c: Likewise.
13759         * math/s_ctanf.c: Likewise.
13760         * math/s_ctanh.c: Likewise.
13761         * math/s_ctanhf.c: Likewise.
13762         * math/s_ctanhl.c: Likewise.
13763         * math/s_ctanl.c: Likewise.
13764         * math/w_fmod.c: Likewise.
13765         * math/w_fmodf.c: Likewise.
13766         * math/w_fmodl.c: Likewise.
13767         * math/w_remainder.c: Likewise.
13768         * math/w_remainderf.c: Likewise.
13769         * math/w_remainderl.c: Likewise.
13770         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
13771         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
13772         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
13773         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
13774         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
13775         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
13776         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
13777         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
13778
13779         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
13780         of the number.
13781         * stdio-common/printf_fphex.c: Likewise.
13782         * stdio-common/printf_size.c: Likewise.
13783
13784         * math/e_exp10.c: Include math_private.h using <...> not "...".
13785         * math/e_exp10f.c: Likewise.
13786         * math/e_exp10l.c: Likewise.
13787         * math/e_exp2l.c: Likewise.
13788         * math/e_j0l.c: Likewise.
13789         * math/e_j1l.c: Likewise.
13790         * math/e_jnl.c: Likewise.
13791         * math/e_lgammal_r.c: Likewise.
13792         * math/e_rem_pio2l.c: Likewise.
13793         * math/e_scalb.c: Likewise.
13794         * math/e_scalbf.c: Likewise.
13795         * math/e_scalbl.c: Likewise.
13796         * math/k_cosl.c: Likewise.
13797         * math/k_sinl.c: Likewise.
13798         * math/k_tanl.c: Likewise.
13799         * math/s_cacoshf.c: Likewise.
13800         * math/s_catan.c: Likewise.
13801         * math/s_catanf.c: Likewise.
13802         * math/s_catanh.c: Likewise.
13803         * math/s_catanhf.c: Likewise.
13804         * math/s_catanhl.c: Likewise.
13805         * math/s_catanl.c: Likewise.
13806         * math/s_ccosh.c: Likewise.
13807         * math/s_ccoshf.c: Likewise.
13808         * math/s_ccoshl.c: Likewise.
13809         * math/s_cexp.c: Likewise.
13810         * math/s_cexpf.c: Likewise.
13811         * math/s_cexpl.c: Likewise.
13812         * math/s_clog.c: Likewise.
13813         * math/s_clog10.c: Likewise.
13814         * math/s_clog10f.c: Likewise.
13815         * math/s_clog10l.c: Likewise.
13816         * math/s_clogf.c: Likewise.
13817         * math/s_clogl.c: Likewise.
13818         * math/s_csin.c: Likewise.
13819         * math/s_csinf.c: Likewise.
13820         * math/s_csinh.c: Likewise.
13821         * math/s_csinhf.c: Likewise.
13822         * math/s_csinhl.c: Likewise.
13823         * math/s_csinl.c: Likewise.
13824         * math/s_csqrt.c: Likewise.
13825         * math/s_csqrtf.c: Likewise.
13826         * math/s_csqrtl.c: Likewise.
13827         * math/s_ctan.c: Likewise.
13828         * math/s_ctanf.c: Likewise.
13829         * math/s_ctanh.c: Likewise.
13830         * math/s_ctanhf.c: Likewise.
13831         * math/s_ctanhl.c: Likewise.
13832         * math/s_ctanl.c: Likewise.
13833         * math/s_ldexp.c: Likewise.
13834         * math/s_ldexpf.c: Likewise.
13835         * math/s_ldexpl.c: Likewise.
13836         * math/s_significand.c: Likewise.
13837         * math/s_significandf.c: Likewise.
13838         * math/s_significandl.c: Likewise.
13839         * math/w_acos.c: Likewise.
13840         * math/w_acosf.c: Likewise.
13841         * math/w_acosh.c: Likewise.
13842         * math/w_acoshf.c: Likewise.
13843         * math/w_acoshl.c: Likewise.
13844         * math/w_acosl.c: Likewise.
13845         * math/w_asin.c: Likewise.
13846         * math/w_asinf.c: Likewise.
13847         * math/w_asinl.c: Likewise.
13848         * math/w_atan2.c: Likewise.
13849         * math/w_atan2f.c: Likewise.
13850         * math/w_atan2l.c: Likewise.
13851         * math/w_atanh.c: Likewise.
13852         * math/w_atanhf.c: Likewise.
13853         * math/w_atanhl.c: Likewise.
13854         * math/w_cosh.c: Likewise.
13855         * math/w_coshf.c: Likewise.
13856         * math/w_coshl.c: Likewise.
13857         * math/w_dremf.c: Likewise.
13858         * math/w_exp10.c: Likewise.
13859         * math/w_exp10f.c: Likewise.
13860         * math/w_exp10l.c: Likewise.
13861         * math/w_exp2.c: Likewise.
13862         * math/w_exp2f.c: Likewise.
13863         * math/w_fmod.c: Likewise.
13864         * math/w_fmodf.c: Likewise.
13865         * math/w_fmodl.c: Likewise.
13866         * math/w_hypot.c: Likewise.
13867         * math/w_hypotf.c: Likewise.
13868         * math/w_hypotl.c: Likewise.
13869         * math/w_j0.c: Likewise.
13870         * math/w_j0f.c: Likewise.
13871         * math/w_j0l.c: Likewise.
13872         * math/w_j1.c: Likewise.
13873         * math/w_j1f.c: Likewise.
13874         * math/w_j1l.c: Likewise.
13875         * math/w_jn.c: Likewise.
13876         * math/w_jnf.c: Likewise.
13877         * math/w_jnl.c: Likewise.
13878         * math/w_lgamma.c: Likewise.
13879         * math/w_lgamma_r.c: Likewise.
13880         * math/w_lgammaf.c: Likewise.
13881         * math/w_lgammaf_r.c: Likewise.
13882         * math/w_lgammal.c: Likewise.
13883         * math/w_lgammal_r.c: Likewise.
13884         * math/w_log.c: Likewise.
13885         * math/w_log10.c: Likewise.
13886         * math/w_log10f.c: Likewise.
13887         * math/w_log10l.c: Likewise.
13888         * math/w_log2.c: Likewise.
13889         * math/w_log2f.c: Likewise.
13890         * math/w_log2l.c: Likewise.
13891         * math/w_logf.c: Likewise.
13892         * math/w_logl.c: Likewise.
13893         * math/w_pow.c: Likewise.
13894         * math/w_powf.c: Likewise.
13895         * math/w_powl.c: Likewise.
13896         * math/w_remainder.c: Likewise.
13897         * math/w_remainderf.c: Likewise.
13898         * math/w_remainderl.c: Likewise.
13899         * math/w_scalb.c: Likewise.
13900         * math/w_scalbf.c: Likewise.
13901         * math/w_scalbl.c: Likewise.
13902         * math/w_sinh.c: Likewise.
13903         * math/w_sinhf.c: Likewise.
13904         * math/w_sinhl.c: Likewise.
13905         * math/w_sqrt.c: Likewise.
13906         * math/w_sqrtf.c: Likewise.
13907         * math/w_sqrtl.c: Likewise.
13908         * math/w_tgamma.c: Likewise.
13909         * math/w_tgammaf.c: Likewise.
13910         * math/w_tgammal.c: Likewise.
13911
13912         * po/ja.po: Update from translation team.
13913
13914 2011-09-29  Andreas Jaeger  <aj@suse.de>
13915
13916         [BZ #13179]
13917         * sunrpc/netname.c (netname2host): Fix logic.
13918
13919         [BZ #6779]
13920         [BZ #6783]
13921         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
13922         correctly.
13923         * math/w_remainder.c (__remainder): Likewise.
13924         * math/w_remainderf.c (__remainderf): Likewise.
13925         * math/libm-test.inc (remainder_test): Add test cases.
13926
13927 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13928
13929         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
13930         sdiv_qrnnd.
13931
13932 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
13933
13934         * string/test-memcmp.c: Avoid unncessary #defines.
13935         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
13936
13937 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13938
13939         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
13940         Use new sse2 version for core i3 - i7 as it's faster
13941         than sse42 version.
13942         (bit_Prefer_PMINUB_for_stringop): New.
13943         * sysdeps/x86_64/rawmemchr.S: Update.
13944         Replace with faster SSE2 version.
13945         * sysdeps/x86_64/memrchr.S: New file.
13946         * sysdeps/x86_64/memchr.S: Update.
13947         Replace with faster SSE2 version.
13948
13949 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
13950
13951         * elf/dl-load.c (lose): Add cast to avoid warning.
13952
13953 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
13954
13955         * po/ca.po: Update from translation team.
13956
13957         * inet/getnetgrent_r.c: Hook up nscd.
13958         * nscd/Makefile (routines): Add nscd_netgroup.
13959         (nscd-modules): Add netgroupcache.
13960         (CFLAGS-netgroupcache.c): Define.
13961         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
13962         (cache_search): Add const to second parameter.
13963         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
13964         INNETGR.
13965         (dbs): Add netgrdb entry.
13966         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
13967         (verify_persistent_db): Handle netgrdb.
13968         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
13969         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
13970         GETFDNETGR.
13971         (netgroup_response_header): Define.
13972         (innetgroup_response_header): Define.
13973         (datahead): Add netgroup_response_header and innetgroup_response_header
13974         elements.
13975         * nscd/nscd.conf: Add entries for netgroup cache.
13976         * nscd/nscd.h (dbtype): Add netgrdb.
13977         (_PATH_NSCD_NETGROUP_DB): Define.
13978         (netgroup_iov_disabled): Declare.
13979         (xmalloc, xcalloc, xrealloc): Move declarations here.
13980         (cache_search): Adjust prototype.
13981         Add netgroup-related prototypes.
13982         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
13983         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
13984         (__nscd_innetgr): Declare.
13985         * nscd/selinux.c (perms): Use access_vector_t as element type and
13986         add netgroup-related initializers.
13987         * nscd/netgroupcache.c: New file.
13988         * nscd/nscd_netgroup.c: New file.
13989         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
13990         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
13991         For four parameters use innetgr.
13992         * nss/nss_files/files-init.c: Add definition and callback for netgr.
13993         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
13994         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
13995         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
13996
13997         * nscd/connections.c (register_traced_file): Don't register file
13998         for disabled databases.
13999
14000 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
14001
14002         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
14003
14004         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
14005         from tree and freeing node.
14006
14007 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
14008
14009         * nss/nsswitch.c (__nss_database_lookup): Handle
14010         nss_parse_service_list out of memory case.
14011
14012 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
14013
14014         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
14015         out of memory case.
14016
14017 2011-10-04  Andreas Schwab  <schwab@redhat.com>
14018
14019         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
14020         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
14021         pass it down.
14022         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
14023         elf_machine_rela, elf_machine_lazy_rel.
14024         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
14025         (ELF_DYNAMIC_DO_REL): Likewise.
14026         (ELF_DYNAMIC_DO_RELA): Likewise.
14027         (ELF_DYNAMIC_RELOCATE): Likewise.
14028         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
14029         to ELF_DYNAMIC_DO_REL.
14030         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
14031         (dl_main): In trace mode always set __RTLD_NOIFUNC.
14032         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
14033         elf_machine_rela.
14034         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
14035         skip_ifunc, don't call ifunc function if non-zero.
14036         (elf_machine_rela): Likewise.
14037         (elf_machine_lazy_rel): Likewise.
14038         (elf_machine_lazy_rela): Likewise.
14039         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
14040         (elf_machine_lazy_rel): Likewise.
14041         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
14042         Likewise.
14043         (elf_machine_lazy_rel): Likewise.
14044         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
14045         Likewise.
14046         (elf_machine_lazy_rel): Likewise.
14047         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
14048         (elf_machine_lazy_rel): Likewise.
14049         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
14050         (elf_machine_lazy_rel): Likewise.
14051         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
14052         (elf_machine_lazy_rel): Likewise.
14053         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
14054         (elf_machine_lazy_rel): Likewise.
14055         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
14056         (elf_machine_lazy_rel): Likewise.
14057         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
14058         (elf_machine_lazy_rel): Likewise.
14059
14060 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
14061
14062         * nss/nss_files/files-init.c (_nss_files_init): Use static
14063         initialization for all the *_traced_file variables.
14064
14065 2011-09-28  Andreas Schwab  <schwab@redhat.com>
14066
14067         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
14068
14069 2011-09-27  Roland McGrath  <roland@hack.frob.com>
14070
14071         [BZ #13226]
14072         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
14073
14074 2011-09-27  Andreas Schwab  <schwab@redhat.com>
14075
14076         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
14077         Reread the line before reparsing it.
14078
14079 2011-09-26  Andreas Schwab  <schwab@redhat.com>
14080
14081         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
14082
14083 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
14084             Maxim Kuvyrkov  <maxim@codesourcery.com>
14085             Joseph Myers  <joseph@codesourcery.com>
14086
14087         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
14088         if needed for __stack_chk_guard.
14089
14090 2011-09-19  Roland McGrath  <roland@hack.frob.com>
14091
14092         * sysdeps/posix/spawni.c (script_execute): Always define it.
14093         It will be optimized away if unused.
14094         (maybe_script_execute): New function.
14095         (__spawni): Call it.
14096
14097         * Makerules: Don't include tls.make.
14098         (config-tls): Always set to thread.
14099         * tls.make.c: File removed.
14100
14101 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
14102
14103         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
14104         * config.make.in (CPPFLAGS-config): New substituted variable.
14105
14106 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
14107
14108         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
14109
14110         [BZ #13192]
14111         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
14112         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
14113
14114 2011-09-15  Roland McGrath  <roland@hack.frob.com>
14115
14116         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
14117         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
14118         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
14119         (CALL_FAIL): Likewise.
14120         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
14121         (CALL_FAIL): Macro removed.
14122         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
14123
14124 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
14125
14126         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
14127         for __FINITE_MATH_ONLY__ == 1.
14128
14129 2011-09-15  Andreas Schwab  <schwab@redhat.com>
14130
14131         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
14132         __ieee754_sqrt instead of sqrt.
14133         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
14134         __ieee754_sqrtf instead of sqrtf.
14135         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
14136         __floorf instead of floorf.
14137         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
14138         __floorf, __truncf instead of floorf, truncf.
14139
14140 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
14141
14142         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
14143
14144         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
14145         __extern_always_inline.
14146         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
14147         32-bit.
14148
14149 2011-09-14  Andreas Schwab  <schwab@redhat.com>
14150
14151         * elf/rtld.c (dl_main): Also relocate in dependency order when
14152         doing symbol dependency testing.
14153
14154 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
14155
14156         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
14157         Always define `refsym'.
14158
14159 2011-09-13  Andreas Schwab  <schwab@redhat.com>
14160
14161         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
14162         (__FD_ELT): Renamed from __FDELT.
14163         * misc/bits/select2.h (__FD_ELT): Likewise.
14164         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
14165         __FD_MASK instead of __FDELT, __FDMASK.
14166         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
14167         Likewise.
14168         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
14169         Likewise.
14170
14171         * elf/Makefile (gen-ldd): Fix pattern.
14172
14173         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
14174         (init_tls): Likewise.
14175
14176 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
14177
14178         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
14179
14180 2011-09-12  Andreas Schwab  <schwab@redhat.com>
14181
14182         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
14183         `struct cmsghdr *' instead of `void *'.
14184         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
14185         Likewise.
14186
14187 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
14188
14189         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
14190         if non-absolute.
14191         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
14192         ldd_rewrite_script.
14193
14194 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
14195
14196         * configure.in: Remove --with-tls option.
14197         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
14198         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
14199         out in case it is missing.
14200         * sysdeps/ia64/elf/configure.in: Likewise.
14201         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
14202         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
14203         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
14204         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
14205         * sysdeps/sh/elf/configure.in: Likewise.
14206         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
14207         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
14208         * sysdeps/x86_64/elf/configure.in: Likewise.
14209         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
14210         * sysdeps/mach/hurd/tls.h: Likewise.
14211
14212         [BZ #13067]
14213         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
14214
14215         [BZ #13090]
14216         * configure.in: Fix use of AC_INIT.
14217
14218         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
14219
14220 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
14221
14222         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
14223         __set_errno.
14224         * malloc/hooks.c: Likewise.
14225
14226         [BZ #11929]
14227         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
14228         variables statically.
14229         (narenas): Initialize.
14230         (list_lock): Initialize.
14231         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
14232         initializtion of main_arena and list_lock.  Small cleanups.
14233         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
14234         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
14235         Add initializers to main_arena and mp_.
14236         (malloc_state): Remove pagesize member.  Change all users to use
14237         GLRO(dl_pagesize).
14238
14239         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
14240         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
14241         is always initialized.
14242
14243         * malloc/malloc.c: Removed unused configurations and dead code.
14244         * malloc/arena.c: Likewise.
14245         * malloc/hooks.c: Likewise.
14246         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
14247
14248         * include/tls.h: Removed.  USE___THREAD must always be defined.
14249         * bits/libc-tsd.h: Don't handle !USE___THREAD.
14250         * elf/dl-libc.c: Likewise.
14251         * elf/dl-tsd.c: Likewise.
14252         * include/errno.h: Likewise.
14253         * include/netdb.h: Likewise.
14254         * include/resolv.h: Likewise.
14255         * inet/herrno-loc.c: Likewise.
14256         * inet/herrno.c: Likewise.
14257         * malloc/arena.c: Likewise.
14258         * malloc/hooks.c: Likewise.
14259         * malloc/malloc.c: Likewise.
14260         * resolv/res-state.c: Likewise.
14261         * resolv/res_libc.c: Likewise.
14262         * sysdeps/i386/dl-machine.h: Likewise.
14263         * sysdeps/ia64/dl-machine.h: Likewise.
14264         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
14265         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
14266         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
14267         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
14268         * sysdeps/sh/dl-machine.h: Likewise.
14269         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
14270         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
14271         * sysdeps/unix/i386/sysdep.S: Likewise.
14272         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
14273         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
14274         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
14275         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
14276         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
14277         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
14278         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
14279         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
14280         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
14281         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
14282         * sysdeps/unix/x86_64/sysdep.S: Likewise.
14283         * sysdeps/x86_64/dl-machine.h: Likewise.
14284         * tls.make.c: Likewise.
14285
14286         * configure.in: Remove --with-__thread option.  Make tests for
14287         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
14288         tls_model attribute fail if no support is available.  Remove
14289         USE_IN_LIBIO.
14290         * Makeconfig: Adjust for dropped configure option.  All features are
14291         now mandatory.
14292         * Makerules: Likewise.
14293         * Versions.def: Likewise.
14294         * argp/argp-fmtstream.c: Likewise.
14295         * argp/argp-fmtstream.h: Likewise.
14296         * argp/argp-help.c: Likewise.
14297         * assert/assert.c: Likewise.
14298         * config.h.in: Likewise.
14299         * config.make.in: Likewise.
14300         * configure: Likewise.
14301         * configure.in: Likewise.
14302         * csu/Versions: Likewise.
14303         * csu/init.c: Likewise.
14304         * elf/tst-audit2.c: Likewise.
14305         * elf/tst-tls10.c: Likewise.
14306         * elf/tst-tls10.h: Likewise.
14307         * elf/tst-tls11.c: Likewise.
14308         * elf/tst-tls12.c: Likewise.
14309         * elf/tst-tls14.c: Likewise.
14310         * elf/tst-tlsmod11.c: Likewise.
14311         * elf/tst-tlsmod12.c: Likewise.
14312         * elf/tst-tlsmod13.c: Likewise.
14313         * elf/tst-tlsmod13a.c: Likewise.
14314         * elf/tst-tlsmod14a.c: Likewise.
14315         * elf/tst-tlsmod15b.c: Likewise.
14316         * elf/tst-tlsmod16a.c: Likewise.
14317         * elf/tst-tlsmod16b.c: Likewise.
14318         * elf/tst-tlsmod7.c: Likewise.
14319         * elf/tst-tlsmod8.c: Likewise.
14320         * elf/tst-tlsmod9.c: Likewise.
14321         * gmon/gmon.c: Likewise.
14322         * grp/fgetgrent_r.c: Likewise.
14323         * grp/putgrent.c: Likewise.
14324         * hurd/fopenport.c: Likewise.
14325         * include/libc-symbols.h: Likewise.
14326         * include/tls.h: Likewise.
14327         * intl/gettextP.h: Likewise.
14328         * intl/loadinfo.h: Likewise.
14329         * locale/global-locale.c: Likewise.
14330         * locale/localeinfo.h: Likewise.
14331         * mach/devstream.c: Likewise.
14332         * malloc/arena.c: Likewise.
14333         * malloc/set-freeres.c: Likewise.
14334         * misc/err.c: Likewise.
14335         * misc/getttyent.c: Likewise.
14336         * misc/mntent_r.c: Likewise.
14337         * posix/getopt.c: Likewise.
14338         * posix/wordexp.c: Likewise.
14339         * pwd/fgetpwent_r.c: Likewise.
14340         * resolv/Versions: Likewise.
14341         * resolv/res_hconf.c: Likewise.
14342         * shadow/fgetspent_r.c: Likewise.
14343         * shadow/putspent.c: Likewise.
14344         * stdio-common/printf_fphex.c: Likewise.
14345         * stdio-common/tmpfile.c: Likewise.
14346         * stdlib/abort.c: Likewise.
14347         * stdlib/fmtmsg.c: Likewise.
14348         * sunrpc/auth_unix.c: Likewise.
14349         * sunrpc/clnt_perr.c: Likewise.
14350         * sunrpc/clnt_tcp.c: Likewise.
14351         * sunrpc/clnt_udp.c: Likewise.
14352         * sunrpc/clnt_unix.c: Likewise.
14353         * sunrpc/openchild.c: Likewise.
14354         * sunrpc/svc_simple.c: Likewise.
14355         * sunrpc/svc_tcp.c: Likewise.
14356         * sunrpc/svc_udp.c: Likewise.
14357         * sunrpc/svc_unix.c: Likewise.
14358         * sunrpc/xdr.c: Likewise.
14359         * sunrpc/xdr_array.c: Likewise.
14360         * sunrpc/xdr_rec.c: Likewise.
14361         * sunrpc/xdr_ref.c: Likewise.
14362         * sunrpc/xdr_stdio.c: Likewise.
14363
14364 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
14365
14366         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
14367
14368 2011-07-03  Andreas Jaeger  <aj@suse.de>
14369
14370         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
14371         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
14372         regenerate with gen-libm-tests.pl.
14373
14374 2010-05-12  Petr Baudis  <pasky@suse.cz>
14375
14376         [BZ #11589]
14377         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
14378         around j0() zero points by switching to j1().
14379         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
14380         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
14381         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
14382         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
14383
14384 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
14385
14386         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
14387         instead of 0.
14388         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
14389         instead of 0.                              .
14390         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
14391         Patch in part by Pavel Roskin <proski@gnu.org>.
14392
14393         [BZ #13138]
14394         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
14395         realloc.
14396         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
14397         Free memory block if necessary.
14398
14399         [BZ #12847]
14400         * libio/genops.c (INTDEF): For string streams the _lock pointer can
14401         be NULL.  Don't lock in this case.
14402
14403 2011-09-09  Roland McGrath  <roland@hack.frob.com>
14404
14405         * elf/elf.h (ELFOSABI_GNU): New macro.
14406         (ELFOSABI_LINUX): Define to that.
14407
14408 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
14409
14410         * string/strncat.c (strncat): Undef the symbol in case it has been
14411         defined in bits/string.h.
14412
14413 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
14414
14415         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
14416
14417         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
14418         link map.
14419
14420 2011-08-17  Andreas Jaeger  <aj@suse.de>
14421
14422         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
14423
14424 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
14425             Ian Lance Taylor  <iant@google.com>
14426
14427         * math/libm-test.inc (lround_test): New testcase.
14428         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
14429
14430 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
14431
14432         * Makefile: Remove support for automatic cvs check-ins.
14433         * Makerules: Likewise.
14434         * config.make.in: Likewise.
14435         * configure.in: Likewise.
14436         * intl/Makefile: Likewise.
14437         * locale/Makefile: Likewise.
14438         * po/Makefile: Likewise.
14439         * posix/Makefile: Likewise.
14440         * sysdeps/gnu/Makefile: Likewise.
14441         * sysdeps/mach/hurd/Makefile: Likewise.
14442         * sysdeps/sparc/sparc32/Makefile: Likewise.
14443
14444         [BZ #13118]
14445         * posix/Makefile (bug-regex32-ENV): Define.
14446         Patch by John Stanley <jpsinthemix@verizon.net>.
14447
14448         * misc/Makefile (headers): Add bits/select2.h.
14449         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
14450         * misc/bits/select2.h: New file.
14451         * include/bits/select2.h: New file.
14452         * debug/Makefile (routines): Add fdelt_chk.
14453         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
14454         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
14455         FD_ISSET.
14456         * debug/fdelt_chk.c: New file.
14457
14458         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
14459         * wcsmbs/test-wmemcmp.c: Likewise.
14460         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
14461         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
14462
14463 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14464
14465         * string/Makefile (strop-tests): Add memcmp.
14466         * string/test-wmemcmp.c: New file.
14467         * string/test-memcmp.c: Add wmemcmp support.
14468
14469 2011-09-08  Roland McGrath  <roland@hack.frob.com>
14470
14471         [BZ #13153]
14472         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
14473         2011-07-19 change.
14474
14475         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
14476         garbage value in a __mach_port_mod_refs call in the cases of the
14477         task-self and thread-self ports.
14478
14479 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14480
14481         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
14482
14483 2011-09-08  Andreas Schwab  <schwab@redhat.com>
14484
14485         * elf/dl-load.c (lose): Check for non-null L.
14486
14487 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
14488
14489         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
14490
14491         * elf/dl-libc.c (dlerror_run): Pass back error code from
14492         dl_catch_error.
14493
14494         [BZ #13123]
14495         * elf/dl-load.c (lose): Free l_origin if it is valid.
14496
14497         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
14498         names.
14499         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
14500         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
14501         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
14502         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
14503         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
14504         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
14505
14506 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14507
14508         * sysdeps/powerpc/fpu/e_hypot.c: New file.
14509         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
14510         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
14511         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
14512         * sysdeps/powerpc/fpu/k_cosf.c: New file.
14513         * sysdeps/powerpc/fpu/k_sinf.c: New file.
14514         * sysdeps/powerpc/fpu/s_cosf.c: New file.
14515         * sysdeps/powerpc/fpu/s_sinf.c: New file.
14516         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
14517         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
14518
14519 2011-08-15  Alan Modra  <amodra@gmail.com>
14520
14521         [BZ #13092]
14522         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
14523         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
14524         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
14525         ppc_mcount to static-only-routines.
14526         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
14527         __mcount_internal.
14528         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
14529         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
14530
14531 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
14532
14533         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
14534         for finite and infinity parameters.
14535
14536 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
14537
14538         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
14539         and add nop instructions for throughput optimization.
14540         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
14541
14542 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
14543
14544         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
14545         aligned copy for power7 with vector-scalar instructions.
14546         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
14547
14548 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
14549
14550         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
14551         AVX check.
14552
14553 2011-09-07  Andreas Schwab  <schwab@redhat.com>
14554
14555         [BZ #13144]
14556         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
14557         last change.
14558
14559 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
14560
14561         * sysdeps/unix/sysv/linux/x86_64/init-first.c
14562         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
14563         syscall wrapper around clock_gettime in __vdso_clock_gettime.
14564         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
14565         clock_gettime.
14566
14567 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
14568
14569         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
14570         Forgot to demangle the pointer.
14571
14572         * sysdeps/i386/sysdep.h: Define atom_text_section.
14573         * sysdeps/x86_64/sysdep.h: Likewise.
14574         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
14575         section with atom_text_section.
14576         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
14577         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
14578         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
14579         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
14580         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
14581
14582         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
14583         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
14584         already be defined.  Change to take two parameters and don't assign
14585         result to variable.  Adjust all users.
14586         Define INTERNAL_GETTIME if not already defined.
14587         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
14588         call.
14589         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
14590         HAVE_CLOCK_GETTIME_VSYSCALL.
14591         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
14592
14593         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
14594         gettimeofday vsyscall, just use time.
14595
14596 2011-09-06  Andreas Schwab  <schwab@redhat.com>
14597
14598         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
14599         <errno.h>.
14600
14601 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
14602
14603         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
14604         syscall on x86-64.
14605         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
14606         syscall.
14607         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
14608         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
14609         syscall if possible.
14610
14611 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
14612
14613         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
14614         e_ident.  Don't pass to find_mapsXX.
14615         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
14616
14617 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
14618
14619         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
14620         strchr-sse2-no-bsf strrchr-sse2-no-bsf
14621         * sysdeps/x86_64/multiarch/strchr.S: Update.
14622         Check bit_slow_BSF bit.
14623         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
14624         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
14625         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
14626
14627 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
14628
14629         [BZ #13134]
14630         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
14631         before glibc 2.15.
14632         (tryshell): Define.
14633         (__spawni): Change last parameter to be flag.  Test
14634         SPAWN_XFLAGS_USE_PATH flag to use path or not.
14635         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
14636         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
14637         * posix/spawni.c: Likewise.
14638         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
14639         * posix/spawnp.c: Likewise.  Change normal version to use
14640         SPAWN_XFLAGS_USE_PATH.
14641         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
14642         SPAWN_XFLAGS_TRY_SHELL.
14643
14644         [BZ #13150]
14645         * posix/glob.h: Remove gcc 1.x support.
14646
14647         [BZ #13068]
14648         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
14649
14650 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
14651
14652         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
14653         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
14654         strrchr-sse2-bsf
14655         * sysdeps/i386/i686/multiarch/strchr.S: New file.
14656         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
14657         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
14658         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
14659         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
14660         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
14661
14662 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14663
14664         * sysdeps/x86_64/wcscmp.S: New file.
14665
14666         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
14667         wcscmp-c wcscmp-sse2
14668         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
14669         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
14670         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
14671         * wcsmbs/wcscmp.c: Allow renaming.
14672
14673 2011-09-05  David S. Miller  <davem@davemloft.net>
14674
14675         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
14676         stack slot, rather than the struct return pointer slot.
14677         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
14678         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
14679         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
14680         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
14681
14682 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
14683
14684         * po/ja.po: Update from translation team.
14685
14686         [BZ #13144]
14687         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
14688         kernel in 64-bit binaries.
14689
14690 2011-09-01  David S. Miller  <davem@davemloft.net>
14691
14692         * elf/elf.h (HWCAP_SPARC_*): Move to..
14693         * sysdeps/sparc/sysdep.h: this new file and add new values.
14694         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
14695         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
14696         _DL_HWCAP_COUNT to 24.
14697         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
14698         entries.
14699         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
14700         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
14701         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
14702         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
14703         instead of magic constants.
14704         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
14705
14706 2011-08-31  David S. Miller  <davem@davemloft.net>
14707
14708         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
14709         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
14710         Reimplement to do errno handling inline.
14711         (SYSCALL_ERROR_HANDLER): New macro.
14712         (__SYSCALL_STRING): Do not do errno handling in asm.
14713         (__CLONE_SYSCALL_STRING): Delete.
14714         (__INTERNAL_SYSCALL_STRING): Delete.
14715         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
14716         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
14717         (PSEUDO): Reimplement to do errno handling inline.
14718         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
14719         (SYSCALL_ERROR_HANDLER): New macro.
14720         (__SYSCALL_STRING): Do not do errno handling in asm.
14721         (__CLONE_SYSCALL_STRING): Delete.
14722         (__INTERNAL_SYSCALL_STRING): Delete.
14723         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
14724         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
14725         i386.
14726         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
14727         (inline_syscall*): Add 'err' argument.
14728         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
14729         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
14730         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
14731         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
14732
14733         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
14734         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
14735
14736 2011-08-30  Andreas Schwab  <schwab@redhat.com>
14737
14738         * elf/rtld.c (dl_main): Relocate objects in dependency order.
14739
14740 2011-08-29  Jiri Olsa <jolsa@redhat.com>
14741
14742         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
14743         directive.
14744
14745 2011-08-24  David S. Miller  <davem@davemloft.net>
14746
14747         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
14748
14749 2011-08-24  Andreas Schwab  <schwab@redhat.com>
14750
14751         * elf/Makefile: Add rules to build and run unload8 test.
14752         * elf/unload8.c: New file.
14753         * elf/unload8mod1.c: New file.
14754         * elf/unload8mod1x.c: New file.
14755         * elf/unload8mod2.c: New file.
14756         * elf/unload8mod3.c: New file.
14757
14758         * elf/dl-close.c (_dl_close_worker): Reset private search list if
14759         it wasn't used.
14760
14761 2011-08-23  David S. Miller  <davem@davemloft.net>
14762
14763         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
14764         subtract stack bias.
14765         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
14766         %sp not %fp in calculations.
14767         (_JMPBUF_UNWINDS_ADJ): Likewise.
14768
14769         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
14770         (aio_suspend): Call it to force an exception region around the
14771         AIO_MISC_WAIT() invocation.
14772
14773 2011-08-23  Andreas Schwab  <schwab@redhat.com>
14774
14775         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
14776         backslash.
14777
14778 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
14779
14780         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
14781         protection macro.
14782         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
14783         and <dl-machine.h>.
14784         (Elf64_FuncDesc): Remove.
14785
14786 2011-08-22  David S. Miller  <davem@davemloft.net>
14787
14788         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
14789         sigaltstack check, add missing cfi directives.
14790         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
14791         missing cfi directives, and sigaltstack handling.
14792
14793 2011-08-16  Andreas Schwab  <schwab@redhat.com>
14794
14795         [BZ #11724]
14796         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
14797         object is seen twice.
14798         * elf/dl-fini.c (_dl_sort_fini): Likewise.
14799
14800         * elf/Makefile (distribute): Add tst-initorder2.c.
14801         (tests): Add tst-initorder2.
14802         (modules-names): Add tst-initorder2a tst-initorder2b
14803         tst-initorder2c tst-initorder2d.  Add rules to build them.
14804         ($(objpfx)tst-initorder2.out): New rule.
14805         * elf/tst-initorder2.c: New file.
14806         * elf/tst-initorder2.exp: New file.
14807
14808 2011-08-22  Andreas Schwab  <schwab@redhat.com>
14809
14810         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
14811
14812         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
14813         dependencies back to end of function.
14814
14815         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
14816         $(elfobjdir)/ld.so.
14817
14818 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
14819
14820         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
14821         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
14822         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
14823         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
14824         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
14825         of __vdso_gettimeofday.
14826         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
14827         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
14828         attribute_hidden.
14829         (_libc_vdso_platform_setup): Remove initialization of
14830         __vdso_gettimeofday and __vdso_time.
14831
14832 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
14833
14834         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
14835         and fgetc_unlocked.
14836         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
14837         getc_unlocked.
14838
14839         * elf/dl-open.c (add_to_global): Report additions to the global scope
14840         for LD_DEBUG=scopes.
14841         (dl_open_worker): Also print scope of newly loaded dependencies.
14842         (_dl_show_scope): Indicate if there is no scope.
14843
14844         [BZ #13114]
14845         * stdio-common/Makefile (tests): Add bug24.
14846         * stdio-common/bug24.c: New file.
14847
14848 2011-08-19  Andreas Jaeger  <aj@suse.de>
14849
14850         [BZ #13114]
14851         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
14852         non-existant file when using close-on-exec mode.
14853
14854 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
14855
14856         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
14857         the very first instruction.
14858
14859         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
14860         the CFI state in the end.
14861         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
14862         inclusion of dl-trampoline.h.
14863         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
14864
14865 2011-08-19  Andreas Schwab  <schwab@redhat.com>
14866
14867         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
14868         expectations for long double.
14869
14870         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
14871         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
14872
14873 2011-08-14  David S. Miller  <davem@davemloft.net>
14874
14875         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
14876         artificual limit depends upon the system page size.
14877
14878 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
14879
14880         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
14881         * resolv/Makefile: Define CFLAGS-libresolv.
14882
14883 2011-08-17  Andreas Schwab  <schwab@redhat.com>
14884
14885         * nss/makedb.c (compute_tables): Make variables used in nested
14886         function static.
14887
14888 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
14889
14890         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
14891         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
14892         if buffer was too small.
14893
14894         * elf/pldd.c (main): Attach to all threads in the process.
14895         Rewrite /proc handling to use *at functions.
14896
14897 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
14898
14899         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
14900         specifies first scope to show.
14901         (dl_open_worker): Update callers.  Move printing scope of new
14902         object to before the relocation.
14903         * elf/rtld.c (dl_main): Update _dl_show_scope call.
14904         * sysdeps/generic/ldsodefs.h: Update declaration.
14905
14906         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
14907         string for the scope number.
14908
14909 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
14910
14911         * nscd/servicescache.c (cache_addserv): Make sure written is always
14912         initialized.
14913
14914 2011-08-14  Roland McGrath  <roland@hack.frob.com>
14915
14916         * sysdeps/i386/i486/bits/atomic.h
14917         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
14918         statement expression, so as to suppress "set but not used" warning.
14919         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
14920
14921         * string/strncat.c (STRNCAT): Use prototype definition.
14922
14923         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
14924         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
14925         -Iprograms here.
14926         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
14927         (localedef-modules): Add localedef.
14928         (locale-modules): Add locale.
14929
14930         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
14931         * elf/rtld.c (dl_main): Invert order of assignment in last change,
14932         to avoid a warning.
14933
14934 2011-08-14  David S. Miller  <davem@davemloft.net>
14935
14936         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
14937         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
14938
14939 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
14940
14941         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
14942         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
14943         * elf/rtld.c (dl_main): Set l_name of vDSO.
14944         Call _dl_show_scope when DL_DEBUG_SCOPES.
14945         (process_dl_debug): Recognize scopes flag and also set it for all.
14946         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
14947         Declare _dl_show_scope.
14948
14949         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
14950         (do_dlopen): Pass caller_dlopen to dl_open.
14951         (__libc_dlopen_mode): Initialize caller_dlopen.
14952
14953         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
14954         of libc.  Make tolower call locale-independent.  Optimize a bit by
14955         using isdigit instead of isalnum.
14956         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
14957
14958 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
14959
14960         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
14961         was a dependency or dynamically loaded.
14962
14963 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
14964
14965         * intl/l10nflist.c: Allow architecture-specific pop function.
14966         * sysdeps/x86_64/l10nflist.c: New file.
14967
14968         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
14969         classification.
14970
14971 2011-08-10  Andreas Schwab  <schwab@redhat.com>
14972
14973         * include/dirent.h: Add libc_hidden_proto for scandirat and
14974         scandirat64.  Don't declare __scandirat64.
14975         * dirent/scandirat.c: Add libc_hidden_def.
14976         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
14977         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
14978
14979 2011-08-10  David S. Miller  <davem@davemloft.net>
14980
14981         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
14982         enum.
14983         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
14984         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
14985         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
14986
14987 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
14988
14989         * Versions.def [libc]: Add GLIBC_2.15.
14990         * dirent/Makefile (routines): Add scandirat and scandirat64.
14991         * dirent/Versions [libc]: Export scandirat and scandirat64 for
14992         GLIBC_2.15.
14993         * dirent/dirent.h: Declare scandirat and scandirat64.
14994         * dirent/scandirat.c: New file.
14995         * dirent/scandirat64.c: New file.
14996         * sysdeps/wordsize-64/scandirat.c: New file.
14997         * sysdeps/wordsize-64/scandirat64.c: New file.
14998         * dirent/opendir.c: Define opendirat.
14999         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
15000         using scandirat.
15001         * dirent/scandir64.c: Adjust for scandir.c change.
15002         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
15003         __scandirat64, and __scandir_cancel_handler.
15004         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
15005         additional parameter and use openat instead of open (outside of ld.so).
15006         Add new __opendir as wrapper around __opendirat.
15007         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
15008         here without requiring old scandirat implementation.
15009
15010 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
15011
15012         * dirent/scandir.c (cancel_handler): Renamed to
15013         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
15014         defined.  Adjust users.
15015         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
15016         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
15017
15018 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
15019
15020         * string/test-string.h (IMPL): Use __STRING to expand name and then
15021         stringify it.
15022
15023         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
15024         of cleanups.
15025
15026 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15027
15028         * string/Makefile: Update.
15029         (strop-tests): Append strncat.
15030         * string/test-wcscmp.c: New file.
15031         New comprehensive test for wcscmp.
15032         * string/test-strcmp.c: Update.
15033         (WIDE): New define.
15034
15035 2011-07-22  Andreas Schwab  <schwab@redhat.com>
15036
15037         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
15038         line.
15039
15040 2011-07-26  Andreas Schwab  <schwab@redhat.com>
15041
15042         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
15043         encoding to ACE if AI_IDN.
15044
15045 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
15046
15047         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
15048         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
15049
15050 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15051
15052         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
15053         Fix overflow bug in strncat.
15054         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
15055
15056         * string/test-strncat.c: Update.
15057         Add new tests for checking overflow bugs.
15058
15059 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15060
15061         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15062         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
15063         * sysdeps/i386/i686/multiarch/strcat.S: New file.
15064         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
15065         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
15066         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
15067         * sysdeps/i386/i686/multiarch/strncat.S: New file.
15068         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
15069         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
15070
15071         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
15072         (USE_AS_STRCAT): Define.
15073         Add strcat and strncat support.
15074         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
15075
15076 2011-07-25  Andreas Schwab  <schwab@redhat.com>
15077
15078         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
15079         __n bigger than INT_MAX+1.
15080         (__strncmp_g): Likewise.
15081
15082 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
15083
15084         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
15085         * libio/stido.h: Likewise.
15086
15087         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
15088         (AF_NFC): Define.
15089         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
15090         (AF_NFC): Define.
15091
15092         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
15093         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
15094         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
15095         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
15096         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
15097
15098         [BZ #13021]
15099         * scripts/test-installation.pl: Don't expect libnss_test1 to be
15100         installed.
15101
15102         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
15103         typo.
15104         (_dl_x86_64_save_sse): Likewise.
15105
15106 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
15107
15108         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
15109         OSXSAVE.
15110         (_dl_x86_64_save_sse): Likewise.
15111
15112         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
15113
15114         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
15115
15116 2011-07-21  Andreas Schwab  <schwab@redhat.com>
15117
15118         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
15119         change.
15120         (_dl_x86_64_save_sse): Use correct AVX check.
15121
15122 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15123
15124         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
15125         bug in strncpy/strncat.
15126         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
15127
15128 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
15129
15130         * string/tester.c (test_strcat): Add tests for different alignments
15131         of source and destination.
15132         (test_strncat): Likewise.
15133
15134 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
15135
15136         [BZ #12852]
15137         * posix/glob.c (glob): Check passed in values before using them in
15138         expressions to avoid some overflows.
15139         (glob_in_dir): Likewise.
15140
15141         [BZ #13007]
15142         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
15143         check for AVX enablement so that we don't crash with old kernels and
15144         new hardware.
15145         * elf/tst-audit4.c: Add same checks here.
15146         * elf/tst-audit6.c: Likewise.
15147
15148         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
15149
15150 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
15151
15152         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
15153
15154 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
15155
15156         * po/cs.po: Update from translation team.
15157         * po/bg.po: Likewise.
15158
15159 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
15160
15161         * misc/sys/cdefs.h: Add support for const attribute.
15162         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
15163         to gnu_dev_{major,minor,makedev} functions.
15164
15165 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
15166
15167         * intl/dcigettext.c (get_output_charset): Add missing bracket.
15168
15169 2011-07-20  Andreas Schwab  <schwab@redhat.com>
15170
15171         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
15172         strlen results.
15173
15174 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15175
15176         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
15177         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
15178         register in order to avoid conflicts with the soft frame pointer
15179         being held in r11 when necessary.
15180         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
15181         (INTERNAL_VSYSCALL_NCS): Likewise.
15182
15183 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
15184
15185         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
15186         * elf/dl-fini.c (_dl_fini): Adjust caller.
15187         * elf/dl-close.c (_dl_close_worker): Likewise.
15188         * sysdeps/generic/ldsodefs.h: Adjust declaration.
15189
15190 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
15191
15192         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
15193         "aux_cache->nlibs < 0".
15194
15195         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
15196         in the reload-count case.
15197
15198 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15199
15200         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
15201         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
15202         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
15203         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
15204         * sysdeps/x86_64/multiarch/strcat.S: New file.
15205         * sysdeps/x86_64/multiarch/strncat.S: New file.
15206         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
15207         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
15208         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
15209         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
15210         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
15211         (USE_AS_STRCAT): Define.
15212         Add strcat and strncat support.
15213         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
15214         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
15215         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
15216         * string/strncat.c: Update.
15217         (USE_AS_STRNCAT): Define.
15218         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
15219         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
15220         and i7.
15221         * sysdeps/x86_64/multiarch/init-arch.h
15222         (bit_Prefer_PMINUB_for_stringop): New.
15223         (index_Prefer_PMINUB_for_stringop): Likewise.
15224         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
15225         bit_Prefer_PMINUB_for_stringop.
15226
15227 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
15228
15229         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
15230         buffer64.
15231         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
15232         of casting of buffer.
15233         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
15234         buffer32 and buffer64.
15235         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
15236         writes instead of casting of buffer.
15237         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
15238         buffer32.
15239         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
15240         casting of buffer.
15241
15242 2011-07-19  Andreas Schwab  <schwab@redhat.com>
15243
15244         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
15245
15246 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
15247
15248         * nscd/nscd.c (termination_handler): Don't do anything for a database
15249         if it has not yet been initialized.
15250
15251 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
15252
15253         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
15254
15255 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
15256
15257         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
15258
15259 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
15260
15261         * po/nl.po: Update from translation team.
15262         * po/sv.po: Likewise.
15263
15264 2011-07-16  Roland McGrath  <roland@hack.frob.com>
15265
15266         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
15267         now disallowed by GCC.
15268
15269         * configure.in (use-default-link): Default to yes if a test -shared
15270         link meets our qualifications.
15271         * configure: Regenerated.
15272
15273         * config.make.in (output-format): New variable.
15274         * configure.in: Check for ld --print-output-format support.
15275         * configure: Regenerated.
15276         * Makerules ($(common-objpfx)format.lds)
15277         [$(output-format) != unknown]: Just use $(output-format),
15278         instead of the linker-script munging.
15279
15280 2011-07-14  Roland McGrath  <roland@hack.frob.com>
15281
15282         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
15283         of $(common-objpfx)shlib.lds.
15284         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
15285
15286         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
15287         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
15288
15289         * configure.in (-z relro check): Adjust test code to add a large
15290         writable data section after it.
15291         * configure: Regenerated.
15292
15293 2011-07-11  Roland McGrath  <roland@hack.frob.com>
15294
15295         * configure.in (-z relro check): Fix test code to make the variable
15296         truly const.
15297         * configure: Regenerated.
15298
15299 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
15300
15301         * nscd/nscd.h (struct traced_file): Define.
15302         (struct database_dyn): Remove inotify_descr, reset_res, and filename
15303         elements.  Add traced_files.
15304         (inotify_fd): Declare.
15305         (register_traced_file): Declare.
15306         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
15307         (inotify_fd): Export.
15308         (resolv_conf_descr): Remove.
15309         (nscd_init): Move inotify descriptor creation to main.
15310         Don't register files for notification here.
15311         (register_traced_file): New function.
15312         (invalidate_cache): Don't use reset_res to determine whether to call
15313         res_init, go through the list of registered files.
15314         (main_loop_poll): The inotify descriptors are now stored in the
15315         structures for the traced files.
15316         (main_loop_epoll): Likewise
15317         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
15318         to __nss_disable_nscd.
15319         * nscd/cache.c (prune_cache): There is no single inotify descriptor
15320         for a database anymore.  Check the records for all the registered
15321         files instead.
15322         * nss/Makefile (libnss_files-routines): Add files-init.
15323         (libnss_db-routines): Add db-init.
15324         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
15325         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
15326         * nss/nss_db/db-init.c: New file.
15327         * nss/nss_files/files-init.c: New file.
15328         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
15329         __nss_lookup_function.
15330         (__nss_lookup_function): Call nss_load_library.
15331         (nss_load_all_libraries): New function.
15332         (__nss_disable_nscd): Take parameter with callback function for files
15333         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
15334         used for the cached services.
15335         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
15336         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
15337         options for features to all the files in nscd.
15338
15339         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
15340
15341 2011-07-10  Roland McGrath  <roland@hack.frob.com>
15342
15343         * csu/elf-init.c (__libc_csu_init): Comment typo.
15344
15345 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
15346
15347         * po/pl.po: Update from translation team.
15348         * po/ja.po: Likewise.
15349         * po/ru.po: Likewise.
15350         * po/ko.po: Likewise.
15351         * po/fr.po: Likewise.
15352
15353 2011-07-09  Roland McGrath  <roland@hack.frob.com>
15354
15355         * configure.in (.ctors/.dtors header and trailer check):
15356         Use an empirical test on a built program.
15357         * configure: Regenerated.
15358
15359         * configure.in (-z relro check): Use an empirical test on a built DSO.
15360         Detect, but do not require, on ia64.
15361         * configure: Regenerated.
15362
15363         * configure.in (READELF): Find it with AC_CHECK_TOOL.
15364         Update tests that use readelf to use $READELF instead.
15365         * configure: Regenerated.
15366
15367 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
15368
15369         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
15370         if the result is not used.
15371
15372 2011-07-05  Andreas Jaeger  <aj@suse.de>
15373
15374         [BZ#9696]
15375         * stdlib/tst-strtod.c: Add testcase.
15376
15377 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
15378
15379         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
15380         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
15381         The latter has a higher limit.  Take additional parameter to pass to
15382         the new function.
15383         (__pathconf): Pass file to __statfs_link_max.
15384         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
15385         __statfs_link_max.
15386         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
15387         __statfs_link_max.
15388
15389         [BZ #12868]
15390         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
15391         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
15392         Handle Lustre.
15393         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
15394         (__statfs_filesize_max): Likewise.
15395         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
15396
15397 2011-07-05  Andreas Jaeger  <aj@suse.de>
15398
15399         * resolv/res_comp.c (dn_skipname): Remove unused variable.
15400
15401 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
15402
15403         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
15404         `status' variable.
15405         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
15406         Likewise.
15407
15408 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
15409
15410         * Makefile (strop-tests): Add strncat.
15411         * string/test-strncat.c: New file.
15412
15413 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
15414
15415         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
15416
15417 2011-06-21  Andreas Jaeger  <aj@suse.de>
15418
15419         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
15420         Copy rule from iconvdata/Makefile.
15421
15422 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
15423
15424         [BZ #12922]
15425         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
15426         but no long options are defined, just return 'W'.
15427
15428 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
15429
15430         [BZ #9696]
15431         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
15432
15433 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
15434
15435         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
15436         netgroups to read.
15437         (innetgr): Likewise.
15438
15439 2011-07-05  Roland McGrath  <roland@hack.frob.com>
15440
15441         * config.make.in (install_root): Default to $(DESTDIR).
15442
15443 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
15444
15445         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
15446
15447 2011-07-02  Roland McGrath  <roland@hack.frob.com>
15448
15449         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
15450
15451         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
15452         containing directory rather than embedding absolute directory names.
15453
15454         * scripts/check-local-headers.sh: Rewritten using awk.
15455         Match by word, not by line.  Print error messages for matches.
15456         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
15457
15458         * Makerules [shlib-lds-flags empty]:
15459         ($(common-objpfx)libc_pic.opts): New target.
15460         ($(common-objpfx)libc_pic.os.clean): New target.
15461         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
15462
15463         * config.make.in (OBJCOPY): New variable.
15464         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
15465         * configure: Regenerated.
15466
15467         * config.make.in (use-default-link): New variable.
15468         * configure.in (use_default_link): Grok --with-default-link to set it.
15469         * configure: Regenerated.
15470         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
15471         (shlib-lds, shlib-lds-flags): Define to empty.
15472
15473         * Makerules (shlib-lds): New variable.
15474         (shlib-lds-flags): New variable.
15475         (build-shlib, build-moduile, build-module-asneeded): Use it.
15476         ($(common-objpfx)libc.so): Use $(shlib-lds).
15477         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
15478         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
15479
15480         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
15481         DT_FLAGS/DT_FLAGS_1 with zero flags.
15482
15483         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
15484         linker script munging.
15485
15486 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
15487
15488         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
15489         as 128-bit value.
15490         * crypt/sha512.c (sha512_process_block): Perform total addition using
15491         128-bit if possible.
15492         (__sha512_finish_ctx): Likewise.
15493         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
15494         as 64-bit value.
15495         * crypt/sha256.c (SWAP64): Define.
15496         (sha256_process_block): Perform total addition using 64-bit if
15497         possible.
15498         (__sha256_finish_ctx): Likewise.
15499
15500 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
15501
15502         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
15503         * nscd/initgrcache.c (addinitgroupsX): Likewise.
15504         * nscd/hstcache.c (cache_addhst): Likewise.
15505         * nscd/grpcache.c (cache_addgr): Likewise.
15506         * nscd/aicache.c (addhstaiX): Likewise
15507         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
15508
15509 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
15510
15511         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
15512         * nscd/initgrcache.c (addinitgroupsX): Likewise.
15513         * nscd/hstcache.c (cache_addhst): Likewise.
15514         * nscd/grpcache.c (cache_addgr): Likewise.
15515         * nscd/aicache.c (addhstaiX): Likewise
15516
15517 2011-07-01  Andreas Schwab  <schwab@redhat.com>
15518
15519         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
15520         domain only when needed.
15521
15522 2011-06-30  Andreas Schwab  <schwab@redhat.com>
15523
15524         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
15525         is always restored.
15526
15527 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
15528
15529         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
15530         are re-adding the entry.
15531         * nscd/servicescache.c (cache_addserv): Likewise.
15532
15533 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
15534
15535         * sysdeps/generic/dl-irel.h: fix protection against multiple
15536         inclusions.
15537         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
15538
15539 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
15540
15541         [BZ #12935]
15542         * malloc/memusage.sh: Fix quoting in message.
15543         * debug/xtrace.sh: Likewise.
15544
15545         * configure.in: Remove support for --experimental-malloc option, make
15546         it the default.
15547         * config.make.in: Likewise.
15548         * malloc/Makefile: Likewise.
15549
15550 2011-06-27  Andreas Schwab  <schwab@redhat.com>
15551
15552         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
15553         two-byte characters.
15554
15555 2011-06-27  Roland McGrath  <roland@hack.frob.com>
15556
15557         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
15558         AC_CACHE_CHECK invocation.
15559         * configure: Regenerated.
15560
15561         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
15562
15563 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
15564
15565         [BZ #12350]
15566         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
15567         bit from old_res_options.
15568
15569         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
15570
15571         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
15572         value type for setfct.
15573
15574 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
15575
15576         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
15577         __gettimeofday instead of gettimeofday.
15578
15579 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
15580
15581         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
15582
15583 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
15584
15585         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
15586
15587         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
15588         info.
15589
15590 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
15591
15592         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
15593         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
15594         strcpy-sse2-unaligned strncpy-sse2-unaligned
15595         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
15596         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
15597         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
15598         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
15599         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
15600         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
15601         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
15602         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
15603         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
15604         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
15605         (STRCPY): Support SSE2 and SSSE3 versions.
15606
15607 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
15608
15609         [BZ #12874]
15610         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
15611         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
15612         kernels which artificially limit size of requests.
15613
15614 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
15615
15616         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15617         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
15618         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
15619         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
15620         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
15621         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
15622         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
15623         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
15624         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
15625         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
15626         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
15627         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
15628         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
15629         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
15630         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
15631         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
15632         Enable unaligned load optimization for Intel Core i3, i5 and i7
15633         processors.
15634         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
15635         Define.
15636         (index_Fast_Unaligned_Load): Define.
15637         (HAS_FAST_UNALIGNED_LOAD): Define.
15638
15639 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
15640
15641         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
15642
15643 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
15644
15645         [BZ #12907]
15646         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
15647         until it is clear that the information is realy needed.
15648         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
15649
15650 2011-06-22  Andreas Schwab  <schwab@redhat.com>
15651
15652         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
15653
15654 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
15655
15656         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
15657         /sys/devices/system/cpu/online if it is usable.
15658
15659         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
15660         reading the information from the /proc filesystem to once a second.
15661
15662 2011-06-21  Andreas Jaeger  <aj@suse.de>
15663
15664         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
15665         NULL after inclusion of kernel headers.
15666
15667 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
15668
15669         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
15670         calls to internal_setent.
15671
15672         [BZ #12885]
15673         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
15674         addresses using gethostbyname4_r ignore IPv4 addresses.
15675
15676         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
15677         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
15678
15679         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
15680
15681 2011-06-20  David S. Miller  <davem@davemloft.net>
15682
15683         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
15684         inclusions.
15685         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
15686
15687         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
15688         (elf_irel): Use it.
15689         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
15690         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
15691         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
15692         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
15693         * sysdeps/x86_64/dl-irel.h: Likewise.
15694
15695         * elf/dl-runtime.c: Use elf_ifunc_invoke.
15696         * elf/dl-sym.c: Likewise.
15697
15698 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
15699
15700         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
15701         need to dereference resplen2.
15702
15703 2011-06-14  Andreas Schwab  <schwab@redhat.com>
15704
15705         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
15706
15707 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
15708
15709         * Makeconfig: Define vardbdir and inst_vardbdir.
15710         * nss/Makefile: Add rules to install db-Makefile.
15711
15712         * nss/nss_db/db-XXX.c: Cleanup.
15713
15714         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
15715         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
15716         GLIBC_PRIVATE.
15717         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
15718         * nss/makedb.c: Implement -g option to specify that value strings
15719         are generated and should not be added to table iterated over for
15720         get*ent calls.
15721         * nss/nss_db/db-initgroups.c: New file.
15722
15723         * nss/getent.c: Add support for initgroups lookups through getgrouplist
15724         interface.
15725
15726         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
15727         (internal_getgrouplist): Adjust to name change.
15728         Update use_initgroups_entry if this is not the first call.
15729         * nss/databases.def: Add initgroups entry.
15730
15731         * nss/makedb.c (compute_tables): Check result of multiple hash table
15732         sizes to minimize maximum chain length.
15733
15734 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
15735
15736         * Versions.def: Add entry for libnss_db.
15737         * shlib-versions: Likewise.
15738         * nss/Makefile: Add rules to build libnss_db.
15739         * nss/Versions: Add libnss_db information.  Organize libnss_files
15740         entries better.
15741         * nss/db-Makefile: Add gshadow support.  Change rules for the new
15742         makedb progra.  Some minor improvements to generate smaller files.
15743         * nss/nss_db/nss_db.h: Move NSS database header data structures to
15744         here from...
15745         * nss/makedb.c: ...here.
15746         Improve database format to be smaller and require less memory at
15747         runtime.
15748         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
15749         db anymore.
15750         * nss/nss_db/db-netgrp.c: Likewise.
15751         * nss/nss_db/db-open.c: Likewise.
15752         * nss/nss_files/flies-XXX.x: Adjust comments.
15753         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
15754         * nss/nss_files/files-grp.c: Likewise.
15755         * nss/nss_files/files-hosts.c: Likewise.
15756         * nss/nss_files/files-network.c: Likewise.
15757         * nss/nss_files/files-proto.c: Likewise.
15758         * nss/nss_files/files-pwd.c: Likewise.
15759         * nss/nss_files/files-rpc.c: Likewise.
15760         * nss/nss_files/files-service.c: Likewise.
15761         * nss/nss_files/files-sgrp.c: Likewise.
15762         * nss/nss_files/files-spwd.c: Likewise.
15763         * nss/nss_db/db-alias.c: Removed.
15764         * nss/nss_db/dummy-db.h: Removed.
15765
15766 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
15767
15768         * nss/makedb.c: Rewritten to not use database library.
15769         * nss/Makefile: Update to build new makedb program.
15770
15771 2011-06-14  Andreas Jaeger  <aj@suse.de>
15772
15773         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
15774         memset declaration.
15775
15776 2011-06-10  Andreas Schwab  <schwab@redhat.com>
15777
15778         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
15779         tmpbuf.
15780
15781 2011-06-10  Roland McGrath  <roland@hack.frob.com>
15782
15783         * Makerules (shlib.lds): Fail if the linker script comes out empty.
15784         * elf/Makefile ($(objpfx)ld.so): Likewise.
15785
15786         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
15787         Don't list ld.so twice in dependencies.
15788
15789         * posix/bug-regex31.c: Include <stdlib.h>.
15790
15791         * nscd/hstcache.c (cache_addhst): Remove unused variable.
15792
15793         * nis/nss_compat/compat-spwd.c
15794         (getspent_next_nss_netgr): Remove unused variable.
15795         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
15796
15797         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
15798         nonmembers" output to use the right array.
15799
15800         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
15801
15802         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
15803
15804         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
15805         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
15806         * catgets/gencat.c (read_input_file): Likewise.
15807         * locale/programs/locarchive.c (enlarge_archive): Likewise.
15808
15809         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
15810         variable definition inside #if's controlling its use.
15811
15812         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
15813
15814         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
15815
15816         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
15817
15818         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
15819         unreachable code.
15820
15821         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
15822
15823         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
15824         * configure: Regenerated.
15825
15826         * Makerules: Revert last change.
15827         * elf/Makefile: Likewise.
15828
15829 2011-06-09  Roland McGrath  <roland@hack.frob.com>
15830
15831         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
15832         * elf/Makefile ($(objpfx)librtld.os): Likewise.
15833         (reloc-link): Likewise.
15834
15835 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
15836
15837         * elf/Makefile: Add rules to build pldd.
15838         * elf/pldd.c: New file.
15839         * elf/pldd-xx.c: New file.
15840
15841 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
15842
15843         * version.h: Update for 2.15 development version.
15844
15845 2011-06-07  David S. Miller  <davem@davemloft.net>
15846
15847         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
15848         ifuncs.
15849         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
15850         elf_machine_lazy_rel): Likewise.
15851         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
15852         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
15853         elf_machine_lazy_rel): Likewise.
15854         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
15855         dl_hwcap via passed in argument.
15856         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
15857         Likewise.
15858
15859 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15860
15861         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
15862
15863 2011-06-06  Roland McGrath  <roland@hack.frob.com>
15864
15865         [BZ #12849]
15866         * manual/fdl-1.1.texi: New file, verbatim from:
15867         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
15868         * manual/lgpl-2.1.texi: New file, verbatim from:
15869         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
15870         * manual/Makefile (licenses): New variable, list those new file names.
15871         (texis): Use it.
15872         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
15873
15874         * manual/fdl.texi: File removed.
15875         * manual/lesser.texi: File removed.
15876         * manual/libc.texinfo (Copying, Documentation License):
15877         Use new @include file names, put @appendix directive before @include.
15878
15879 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
15880
15881         [BZ #12841]
15882         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
15883         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
15884         (mq_open): Add __NTH.
15885
15886 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
15887
15888         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
15889         Assume Intel Core i3/i5/i7 processor if AVX is available.
15890
15891 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
15892
15893         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
15894         typo.
15895
15896 2011-05-31  Andreas Schwab  <schwab@redhat.com>
15897
15898         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
15899         memory.  Use alloca_account.  Fix memory leak when retrying.
15900
15901 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
15902
15903         * version.h (RELEASE): Bump for 2.14 release.
15904         * include/features.h (__GLIBC_MINOR__): Bump to 14.
15905
15906         * config.make.in (RANLIB): Remove entry.
15907
15908 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
15909
15910         * po/Makefile (po-sed-cmd): Add ksh to extensions.
15911         (libc.pot): Work around missing support for .ksh extension in xgettext.
15912
15913         [BZ #12684]
15914         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
15915         if both request failed.
15916         (send_dg): In case of server errors clear resplen or *resplen2.
15917
15918         [BZ #12454]
15919         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
15920         when there are multiple maps.
15921         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
15922         (_dl_fini): Remove test here.
15923
15924         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
15925
15926 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
15927
15928         [BZ #12350]
15929         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
15930         bit from old_res_options.
15931         (gaih_inet): Likewise.
15932
15933         [BZ #11099]
15934         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
15935         as signed.
15936
15937         * resolv/res_init.c (res_setoptions): Make the code more compact.
15938
15939         [BZ #11558]
15940         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
15941         set RES_USEVC.
15942
15943         [BZ #11634]
15944         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
15945
15946         * malloc/malloc.h: Mark malloc hook variables as deprecated.
15947
15948         [BZ #11781]
15949         * malloc/malloc.h: Declare malloc hook variables as volatile.
15950
15951         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
15952         in last patch.
15953
15954         [BZ #11799]
15955         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
15956         raise in the comment.
15957         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
15958         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
15959         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
15960
15961 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
15962
15963         [BZ #12811]
15964         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
15965         grow the buffers more if it already has to be sufficient.
15966         (build_wcs_upper_buffer): Likewise.
15967         * posix/regexec.c (check_matching): Likewise.
15968         (clean_state_log_if_needed): Likewise.
15969         (extend_buffers): Don't enlarge buffers beyond size of the input
15970         buffer.
15971         Patches mostly by Emil Wojak <emil@wojak.eu>.
15972         * posix/bug-regex32.c: New file.
15973         * posix/Makefile (tests): Add bug-regex32.
15974
15975         * locale/findlocale.c (_nl_find_locale): Return right away if
15976         _nl_explode_name failed.
15977         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
15978
15979         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
15980
15981         * debug/xtrace.sh: Unify messages.
15982         * malloc/memusage.sh: Likewise.
15983
15984         [BZ #12813]
15985         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
15986         time symbol from vDSO.  Substitute with vsyscall if not available.
15987         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
15988         __vdso_time.
15989
15990         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
15991         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
15992         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
15993         Add sendmmsg and internal_sendmmsg.
15994         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
15995         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
15996         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
15997
15998         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
15999         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
16000         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
16001
16002 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
16003
16004         [BZ #12813]
16005         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
16006         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
16007         available.
16008         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
16009         __vdso_getcpu.
16010
16011         [BZ #12814]
16012         * iconvdata/Makefile (tests): Add bug-iconv9.
16013         * iconvdata/bug-iconv9.c: New file.
16014
16015 2011-05-27  Andreas Schwab  <schwab@redhat.com>
16016
16017         [BZ #12814]
16018         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
16019
16020 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
16021
16022         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
16023         (struct user_regs_struct): Change intcs field back to cs.
16024
16025 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
16026
16027         * po/ja.po: Update from translation team.
16028
16029 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
16030
16031         [BZ #12795]
16032         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
16033         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
16034
16035 2011-05-20  Andreas Schwab  <schwab@redhat.com>
16036
16037         * stdlib/longlong.h: Update from GCC.
16038
16039 2011-05-23  Andreas Schwab  <schwab@redhat.com>
16040
16041         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
16042         parameter name.
16043         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
16044         Add parameter name.
16045         (__sysconf): Pass it down.
16046
16047 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
16048
16049         [BZ #12671]
16050         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
16051         some situations.
16052         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
16053         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
16054         add in in __libc_use_alloca calls.  Adjust callers.
16055         (glob): Use malloc in some situations.
16056
16057         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
16058         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
16059         pltexit.
16060
16061 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
16062
16063         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
16064         and CLOCK_BOOTTIME_ALARM.
16065
16066         [BZ #12782]
16067         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
16068         is returned.
16069
16070         * string/_strerror.c (__strerror_r): Print negative errors as signed
16071         numbers.
16072
16073         [BZ #12777]
16074         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
16075         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
16076         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
16077
16078         * configure.in: Fix typo in redirection and correct removal of test
16079         files in two cases.
16080
16081         [BZ #12788]
16082         * locale/setlocale.c (new_composite_name): Fix test to check for
16083         identical name of all categories.
16084
16085         [BZ #12792]
16086         * libio/filedoalloc.c (local_isatty): New function.
16087         (_IO_file_doallocate): Use local_isatty.
16088         * stdio-common/perror.c (perror): In case a new stream is used
16089         forward the stream error.
16090         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
16091         error flag.
16092
16093 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
16094
16095         [BZ #11869]
16096         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
16097         alloca.
16098         * include/alloca.h (extend_alloca_account): Define.
16099
16100         [BZ #11857]
16101         * posix/regex.h: Fix comments with documentation of user-accessible
16102         fields after compilation and describe correct free'ing of pattern
16103         after re_compile_pattern.
16104         Patch by Reuben Thomas <rrt@sc3d.org>.
16105
16106 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
16107
16108         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
16109         and -mno-altivec to prevent the compiler from using Altivec and/or
16110         VSX instructions when the corresponding registers are not available.
16111
16112 2011-05-19  Andreas Schwab  <schwab@redhat.com>
16113
16114         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
16115
16116 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
16117
16118         * libio/freopen.c (freopen): Use __dup2, not dup2.
16119         * libio/freopen64.c (freopen64): Likewise.
16120
16121 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
16122
16123         [BZ #12775]
16124         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
16125         * math/Makefile (tests): Add test-powl.
16126         (CFLAGS-test-powl.c): Define.
16127         * math/test-powl.c: New file.
16128
16129 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
16130
16131         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
16132
16133 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
16134
16135         [BZ #11837]
16136         * iconvdata/gb18030.c: Update to GB18020-2005.
16137
16138 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
16139
16140         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
16141         RE_SYNTAX_POSIX_AWK): Update to match recent development.
16142         Patch by Aharon Robbins <arnold@skeeve.com>.
16143
16144         [BZ #11892]
16145         * stdlib/putenv.c (putenv): Don't always create copy of the variable
16146         on the stack.
16147
16148         [BZ #11895]
16149         * misc/pselect.c (__pselect): Handle timeout value errors hidden
16150         through underflows.
16151
16152         [BZ #12766]
16153         * misc/error.c (error_at_line): Ensure file_name and old_file_name
16154         point to strings before performing equality test for error_one_per_line
16155         mode.
16156
16157         [BZ #11697]
16158         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
16159
16160         [BZ #11820]
16161         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
16162         (struct user_fpregs_struct): Avoid __uint*_t types.
16163
16164         [BZ #6420]
16165         * malloc/mtrace.c (tr_where): Add additional parameter to point to
16166         symbol info.  Use it instead of calling _dl_addr locally.
16167         (lock_and_info): New function.
16168         (tr_freehook): Call lock_and_info and pass symbol info as additional
16169         parameter to tr_where.
16170         (tr_mallochook): Likewise.
16171         (tr_reallochook): Likewise.
16172         (tr_memalignhook): Likewise.
16173
16174         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
16175         used and couldn't be at all thread-safe.
16176
16177 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
16178
16179         * libio/freopen.c (freopen): Don't close old file descriptor
16180         before the new one is opened.  Instead dup the new file descriptor
16181         to the old one after the new stream is created.
16182         * libio/freopen64.c (freopen64): Likewise.
16183         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
16184         * libio/fileops.c (_IO_new_file_close_it): Handle new
16185         _IO_FLAGS2_NOCLOSE flag.
16186         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
16187         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
16188         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
16189         _IO_FLAGS2_NOCLOSE flag.
16190         * include/unistd.h: Add hidden_proto for dup3.
16191         Define __have_dup3.
16192         * io/dup3.c: Define hidden symbol.
16193         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
16194
16195         [BZ #7101]
16196         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
16197         when an incomplete long option is used.
16198         * posix/tst-getopt_long1.c: New file.
16199         * posix/Makefile (tests): Add tst-getopt_long1.
16200
16201         [BZ #10138]
16202         * scripts/config.guess: Update from autoconf-2.68.
16203         * scripts/config.sub: Likewise.
16204
16205         [BZ #10157]
16206         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
16207         tests into ...
16208         (has_cpuclock): ...this.  New function.
16209         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
16210         macro here based on has_cpuclock code.
16211
16212         [BZ #10149]
16213         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
16214         First byte (not low byte) is now always NUL.
16215         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
16216
16217         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
16218         Use non-cancelable interfaces.
16219
16220         [BZ #9809]
16221         * locale/iso-639.def: Add entry for Sorani.
16222
16223         [BZ #11901]
16224         * include/stdlib.h: Move include protection to the right place.
16225         Define abort_msg_s.  Declare __abort_msg with it.
16226         * stdlib/abort.c (__abort_msg): Adjust type.
16227         * assert/assert.c (__assert_fail_base): New function.  Majority
16228         of code from __assert_fail.  Allocate memory for __abort_msg with
16229         mmap.
16230         (__assert_fail): Now call __assert_fail_base.
16231         * assert/assert-perr.c: Remove bulk of implementation.  Use
16232         __assert_fail_base.
16233         * include/assert.hL Declare __assert_fail_base.
16234         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
16235         mmap.
16236         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
16237
16238 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
16239
16240         [BZ #11952]
16241         [BZ #12453]
16242         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
16243         until all modules are registered in the DTV.
16244         * elf/Makefile: Add rules to build and run tst-tls19.
16245         * elf/tst-tls19.c: New file.
16246         * elf/tst-tls19mod1.c: New file.
16247         * elf/tst-tls19mod2.c: New file.
16248         * elf/tst-tls19mod3.c: New file.
16249         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
16250
16251         [BZ #12083]
16252         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
16253         correctly.
16254
16255         [BZ #12601]
16256         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
16257         two-byte sequence errors.
16258         * iconvdata/Makefile (tests): Add bug-iconv8.
16259         * iconvdata/bug-iconv8.c: New file.
16260
16261         [BZ #12626]
16262         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
16263         buf2 definition.
16264
16265         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
16266
16267         [BZ #12432]
16268         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
16269         (dummy_getcfa): New function.
16270         (init): Get _Unwind_GetCFA address, use dummy if not found.
16271         (backtrace_helper): In recursion check, also check whether CFA changes.
16272         (__backtrace): Completely initialize arg.
16273
16274         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
16275         storing incomplete byte sequence in state object.  Avoid testing for
16276         guaranteed too small input if we know there is enough data available.
16277
16278 2011-05-11  Andreas Schwab  <schwab@redhat.com>
16279
16280         * Makeconfig (+link-pie): Indent.
16281         * Rules (binaries-pie): Define if $(have-fpie) and
16282         $(build-shared).
16283         (binaries-shared): Also filter out $(binaries-pie).
16284         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
16285         * nscd/Makefile (others-pie): Add nscd.
16286         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
16287         ($(objpfx)nscd): Remove command override.
16288         * login/Makefile (others-pie): Add pt_chown.
16289         ($(objpfx)pt_chown): Remove command override.
16290         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
16291         remove command overrides.
16292
16293 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
16294
16295         * libio/tst_putwc.c: Fix error messages.
16296
16297         [BZ #12724]
16298         * libio/fileops.c (_IO_new_file_close_it): Always flush when
16299         currently writing and seek to current position when not.
16300         * libio/Makefile (tests): Add bug-fclose1.
16301         * libio/bug-fclose1.c: New file.
16302
16303 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
16304
16305         [BZ #12511]
16306         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
16307         don't set DF_1_NODELETE here.
16308         (do_lookup_x): When entering new entry test for copy relocation
16309         and if necessary set DF_1_NODELETE flag.
16310         * elf/tst-unique4.cc: New file.
16311         * elf/tst-unique4.h: New file.
16312         * elf/tst-unique4lib.cc: New file.
16313         * elf/Makefile: Add rules to build and run tst-unique4.
16314         Patch by Piotr Bury <pbury@goahead.com>.
16315
16316 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
16317
16318         [BZ #12052]
16319         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
16320
16321         [BZ #12625]
16322         * misc/mntent_r.c (addmntent): Flush the stream after the output
16323
16324         [BZ #12393]
16325         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
16326         (is_trusted_path_normalize): Skip initial colon.  Append slash
16327         to empty buffer.  Duplicate is_trusted_path code but allow
16328         constructed patch to be prefix.
16329         (is_dst): Allow $ORIGIN followed by /.
16330         (_dl_dst_substitute): Correct clearing of check_for_trusted.
16331         Correct testing of result of is_trusted_path_normalize
16332         (decompose_rpath): Fix warning.
16333
16334 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
16335
16336         [BZ #11257]
16337         * grp/initgroups.c (internal_getgrouplist): When we found the service
16338         list through the initgroups entry in nsswitch.conf do not always
16339         continue on a successful lookup.  Don't always use the
16340         __nss_group_database value if it is set.
16341         * nss/nsswitch.conf (initgroups): Change action for successful db
16342         lookup to continue for compatibility.
16343
16344 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
16345
16346         [BZ #11532]
16347         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
16348         and CP774 modules.
16349         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
16350         and CP774 modules.
16351         * iconvdata/tst-tables.sh: Likewise.
16352         * iconvdata/cp770.c: New file.
16353         * iconvdata/cp771.c: New file.
16354         * iconvdata/cp772.c: New file.
16355         * iconvdata/cp773.c: New file.
16356         * iconvdata/cp774.c: New file.
16357         * iconvdata/testdata/CP770: New file.
16358         * iconvdata/testdata/CP770..UTF8: New file.
16359         * iconvdata/testdata/CP771: New file.
16360         * iconvdata/testdata/CP771..UTF8: New file.
16361         * iconvdata/testdata/CP772: New file.
16362         * iconvdata/testdata/CP772..UTF8: New file.
16363         * iconvdata/testdata/CP773: New file.
16364         * iconvdata/testdata/CP773..UTF8: New file.
16365         * iconvdata/testdata/CP774: New file.
16366         * iconvdata/testdata/CP774..UTF8: New file.
16367
16368         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
16369         END CHARMAP line.
16370         * iconvdata/gen-8bit-gap.sh: Likewise.
16371         * iconvdata/gen-8bit.sh: Likewise.
16372
16373         * locale/iso-639.def: Add ary entry.
16374
16375         [BZ #11258]
16376         * locale/C-translit.h.in: Add U20A1 transliteration.
16377
16378         [BZ #12178]
16379         * locale/iso-639.def: Add wae entry.
16380         Patch by Kevin Bortis <bortis@translate-wae.ch>.
16381
16382         [BZ #12545]
16383         * locale/programs/localedef.c (construct_output_path): Use ssize_t
16384         for n.
16385
16386         [BZ #12711]
16387         * locale/C-translit.h.in: Add entry for U20B9.
16388         Patch by pravin.d.s@gmail.com.
16389
16390 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
16391
16392         [BZ #12713]
16393         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
16394         ENAMETOOLONG use generic getcwd.
16395         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
16396         in rtld.  Use *stat64.
16397         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
16398         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
16399         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
16400         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
16401         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
16402         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
16403         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
16404         __fstatat64 macros.
16405         * include/dirent.h: Add libc_hidden_proto for rewinddir.
16406         * dirent/rewinddir.c: Add libc_hidden_def.
16407         * sysdeps/mach/hurd/rewinddir.c: Likewise.
16408         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
16409
16410         * include/dirent.h (__alloc_dir): Add flags parameter.
16411         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
16412         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
16413         __alloc_dir.
16414         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
16415         from fdopendir if O_CLOEXEC is already set.
16416
16417 2011-03-15  Alan Modra  <amodra@gmail.com>
16418
16419         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
16420         l_tls_firstbyte_offset non-zero.  Save padding offset in
16421         l_tls_firstbyte_offset for later use.
16422         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
16423         freeing static tls block.
16424
16425 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
16426
16427         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
16428         where #ifdef was intended.  The intent is to prevent ARG_MAX from
16429         being defined by the kernel headers.
16430
16431 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
16432
16433         [BZ #12734]
16434         * resolv/resolv.h: Define RES_NOTLDQUERY.
16435         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
16436         no-tld-query and set RES_NOTLDQUERY.
16437         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
16438         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
16439         modern BIND to search name as TLD unless forbidden.
16440
16441 2011-05-07  Petr Baudis  <pasky@suse.cz>
16442             Ulrich Drepper  <drepper@gmail.com>
16443
16444         [BZ #12393]
16445         * elf/dl-load.c (fillin_rpath): Move trusted path check...
16446         (is_trusted_path): ...to here.
16447         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
16448         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
16449         using is_trusted_path_normalize() in setuid scripts.
16450
16451 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
16452
16453         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
16454         __BEGIN/__END_DECLS.
16455
16456 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
16457
16458         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
16459         NSS_STATUS_NOTFOUND if no record was found.
16460
16461 2011-05-05  Andreas Schwab  <schwab@redhat.com>
16462
16463         * sunrpc/Makefile (headers): Add rpc/netdb.h.
16464         (headers-not-in-tirpc): Remove rpc/netdb.h
16465         * resolv/netdb.h: Revert last change.
16466
16467 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
16468
16469         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
16470         circular dependency between libgcc.a and libc.a.
16471
16472 2011-05-05  Andreas Schwab  <schwab@redhat.com>
16473
16474         * resolv/netdb.h: Don't include <rpc/netdb.h>.
16475         * nis/Makefile: Don't install rpcsvc/*.
16476         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
16477         instead of <rpc/types.h>.
16478         (MAXHOSTNAMELEN): Define.
16479
16480 2011-05-03  Andreas Schwab  <schwab@redhat.com>
16481
16482         * elf/ldconfig.c (add_dir): Don't crash on empty path.
16483
16484 2011-04-28  Maciej Babinski  <mbabinski@google.com>
16485
16486         [BZ #12714]
16487         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
16488         gethostbyname4_r when IPv6 results are possible.
16489
16490 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
16491
16492         [BZ #12723]
16493         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
16494         _PC_PIPE_BUF handling.
16495
16496 2011-04-30  Bruno Haible  <bruno@clisp.org>
16497
16498         [BZ #12717]
16499         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
16500         * resolv/netdb.h (getnameinfo): Change type of flags parameter
16501         to 'int'.
16502         * inet/getnameinfo.c (getnameinfo): Likewise.
16503
16504 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
16505
16506         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
16507         to groups setting in database lookup.
16508         * nss/nsswitch.conf: Add initgroups entry.
16509
16510 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
16511
16512         [BZ #12685]
16513         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
16514         mode string.
16515         Patch by Eric Blake <eblake@redhat.com>.
16516
16517 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
16518
16519         * sunrpc/Makefile (need-export-routines): Add svc_run.
16520         (routines): Remove svc_run.
16521         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
16522         * sunrpc/clnt_perr.c (clnt_perrno): Export.
16523         * sunrpc/svc_run.c (svc_run): Likewise.
16524         * sunrpc/svc_udp.c (svcudp_create): Likewise.
16525
16526 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
16527
16528         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
16529         problem in reallocation in last patch.
16530
16531 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
16532
16533         * sunrpc/Makefile: Move inclusion of Rules.
16534
16535 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
16536
16537         * nss/nss_files/files-initgroups.c: New file.
16538         * nss/Makefile (libnss_files-routines): Add files-initgroups.
16539         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
16540         _nss_files_initgroups_dyn.
16541
16542 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
16543
16544         * elf/elf.h (R_ARM_IRELATIVE): Define.
16545
16546 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
16547
16548         * po/ru.po: Update from translation team.
16549
16550 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
16551
16552         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
16553         dependencies.
16554
16555 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
16556
16557         [BZ #12653]
16558         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
16559         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
16560         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
16561         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
16562         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
16563
16564 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
16565
16566         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
16567         differing bytes.
16568         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
16569         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
16570         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
16571
16572 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
16573
16574         [BZ #12420]
16575         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
16576         storing it.
16577         * stdlib/bug-getcontext.c: New file.
16578         * stdlib/Makefile: Add rules to build and run bug-getcontext.
16579
16580 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16581
16582         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
16583         instructions into .machine "z9-109".
16584         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
16585         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
16586
16587 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16588
16589         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
16590         between environment variables and auxiliary vector.
16591
16592 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
16593
16594         * Makefile: Add rules to build linkobj/libc.so.
16595         * include/libc-symbols.h: Define libc_hidden_nolink.
16596         * include/rpc/auth.h: Mark functions which are to be hidden.
16597         * include/rpc/auth_des.h: Likewise.
16598         * include/rpc/auth_unix.h: Likewise.
16599         * include/rpc/clnt.h: Likewise.
16600         * include/rpc/des_crypt.h: Likewise.
16601         * include/rpc/key_prot.h: Likewise.
16602         * include/rpc/pmap_clnt.h: Likewise.
16603         * include/rpc/pmap_prot.h: Likewise.
16604         * include/rpc/pmap_rmt.h: Likewise.
16605         * include/rpc/rpc_msg.h: Likewise.
16606         * include/rpc/svc.h: Likewise.
16607         * include/rpc/svc_auth.h: Likewise.
16608         * include/rpc/xdr.h: Likewise.
16609         * nis/Makefile: Link all DSOs against linkobj/libc.so.
16610         * nss/Makefile: Likewise.
16611         * sunrpc/Makefile: Don't install headers.  Build library with normal
16612         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
16613         * sunrpc/auth_des.c: Hide exported symbols by default, export some
16614         for the compat linking library.  Remove use of INTDEF/INTUSE.
16615         * sunrpc/auth_none.c: Likewise.
16616         * sunrpc/auth_unix.c: Likewise.
16617         * sunrpc/authdes_prot.c: Likewise.
16618         * sunrpc/authuxprot.c: Likewise.
16619         * sunrpc/clnt_gen.c: Likewise.
16620         * sunrpc/clnt_perr.c: Likewise.
16621         * sunrpc/clnt_raw.c: Likewise.
16622         * sunrpc/clnt_simp.c: Likewise.
16623         * sunrpc/clnt_tcp.c: Likewise.
16624         * sunrpc/clnt_udp.c: Likewise.
16625         * sunrpc/clnt_unix.c: Likewise.
16626         * sunrpc/des_crypt.c: Likewise.
16627         * sunrpc/des_soft.c: Likewise.
16628         * sunrpc/get_myaddr.c: Likewise.
16629         * sunrpc/key_call.c: Likewise.
16630         * sunrpc/key_prot.c: Likewise.
16631         * sunrpc/netname.c: Likewise.
16632         * sunrpc/pm_getmaps.c: Likewise.
16633         * sunrpc/pm_getport.c: Likewise.
16634         * sunrpc/pmap_clnt.c: Likewise.
16635         * sunrpc/pmap_prot.c: Likewise.
16636         * sunrpc/pmap_prot2.c: Likewise.
16637         * sunrpc/pmap_rmt.c: Likewise.
16638         * sunrpc/publickey.c: Likewise.
16639         * sunrpc/rpc_cmsg.c: Likewise.
16640         * sunrpc/rpc_common.c: Likewise.
16641         * sunrpc/rpc_dtable.c: Likewise.
16642         * sunrpc/rpc_prot.c: Likewise.
16643         * sunrpc/rpc_thread.c: Likewise.
16644         * sunrpc/rtime.c: Likewise.
16645         * sunrpc/svc.c: Likewise.
16646         * sunrpc/svc_auth.c: Likewise.
16647         * sunrpc/svc_authux.c: Likewise.
16648         * sunrpc/svc_raw.c: Likewise.
16649         * sunrpc/svc_run.c: Likewise.
16650         * sunrpc/svc_simple.c: Likewise.
16651         * sunrpc/svc_tcp.c: Likewise.
16652         * sunrpc/svc_udp.c: Likewise.
16653         * sunrpc/svc_unix.c: Likewise.
16654         * sunrpc/svcauth_des.c: Likewise.
16655         * sunrpc/xcrypt.c: Likewise.
16656         * sunrpc/xdr.c: Likewise.
16657         * sunrpc/xdr_array.c: Likewise.
16658         * sunrpc/xdr_float.c: Likewise.
16659         * sunrpc/xdr_intXX_t.c: Likewise.
16660         * sunrpc/xdr_mem.c: Likewise.
16661         * sunrpc/xdr_rec.c: Likewise.
16662         * sunrpc/xdr_ref.c: Likewise.
16663         * sunrpc/xdr_sizeof.c: Likewise.
16664         * sunrpc/xdr_stdio.c: Likewise.
16665
16666 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
16667
16668         [BZ #12650]
16669         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
16670         * sysdeps/ia64/dl-tls.h: Likewise.
16671         * sysdeps/powerpc/dl-tls.h: Likewise.
16672         * sysdeps/s390/dl-tls.h: Likewise.
16673         * sysdeps/sh/dl-tls.h: Likewise.
16674         * sysdeps/sparc/dl-tls.h: Likewise.
16675         * sysdeps/x86_64/dl-tls.h: Likewise.
16676         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
16677
16678 2011-03-14  Andreas Schwab  <schwab@redhat.com>
16679
16680         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
16681         rpath element also skip the following colon.
16682         (expand_dynamic_string_token): Add is_path parameter and pass
16683         down to DL_DST_REQUIRED and _dl_dst_substitute.
16684         (decompose_rpath): Call expand_dynamic_string_token with
16685         non-zero is_path.  Ignore empty rpaths.
16686         (_dl_map_object_from_fd): Call expand_dynamic_string_token
16687         with zero is_path.
16688
16689 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
16690
16691         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
16692         Make cancelable.
16693
16694 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
16695
16696         [BZ #12655]
16697         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
16698         Patch by Filipe David Manana <fdmanana@apache.org>.
16699
16700 2011-04-07  Andreas Schwab  <schwab@redhat.com>
16701
16702         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
16703         Maintain aligned stack.
16704         (CHECK_RSP): Remove unused macro.
16705
16706 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
16707
16708         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
16709         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
16710
16711 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
16712
16713         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
16714
16715         * include/features.h: Mention __USE_XOPEN2K8 in comment.
16716
16717 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
16718
16719         [BZ #12518]
16720         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
16721         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
16722         * sysdeps/x86_64/memmove.c: New file.
16723         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
16724         (memcpy): Renamed to ...
16725         (__new_memcpy): This.
16726         (memcpy): Provide GLIBC_2_14 memcpy.
16727         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
16728         (memcpy): Provide GLIBC_2_2_5 memcpy.
16729
16730 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
16731
16732         [BZ #12631]
16733         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
16734
16735 2011-03-30  Andreas Schwab  <schwab@redhat.com>
16736
16737         * misc/syncfs.c: New file.
16738         * misc/Makefile (routines): Add syncfs.
16739         * posix/unistd.h: Declare syncfs.
16740         * sysdeps/unix/syscalls.list: Add syncfs.
16741
16742 2011-04-01  Andreas Schwab  <schwab@redhat.com>
16743
16744         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
16745         open_by_handle_at.
16746         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
16747         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
16748         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
16749         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
16750         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
16751         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
16752         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
16753
16754 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
16755
16756         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
16757         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
16758         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
16759         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
16760         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
16761         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
16762         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
16763
16764         * io/Makefile: Compile fallocate.c, fallocate64.c, and
16765         sync_file_range.c with -fexceptions.
16766         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
16767         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
16768         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
16769         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
16770         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
16771         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
16772         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
16773         sync_file_range as cancellation point
16774         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
16775         now a wrapper around __call_sync_file_range with cancellation handling.
16776         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
16777         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
16778         function name to __call_sync_file_range.
16779         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
16780         Add call_sync_file_range.
16781
16782 2011-04-01  Andreas Schwab  <schwab@redhat.com>
16783
16784         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
16785         bits/timex.h.
16786
16787 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
16788
16789         * iconv/iconv.h: Fix typo in comment.
16790         * io/fcntl.h: Likewise.
16791         * libio/stdio.h: Likewise.
16792         * posix/spawn.h: Likewise.
16793         * posix/unistd.h: Likewise.
16794         * stdlib/stdlib.h: Likewise.
16795         * time/time.h: Likewise.
16796         * wcsmbs/wchar.h: Likewise.
16797
16798         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
16799         open_by_handle): Add.
16800         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
16801         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
16802         Augment a few comments.
16803         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
16804         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
16805         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
16806         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
16807         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
16808         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
16809         open_by_handle.
16810
16811         * io/fcntl.h (AT_EMPTY_PATH): Define.
16812
16813 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
16814
16815         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
16816         * sysdeps/unix/sysv/linux/bits/time.h: New file.
16817         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
16818         to...
16819         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
16820         * Versions.def: Add GLIBC_2.14.
16821         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
16822         Export.
16823
16824 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
16825
16826         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
16827         round counter.
16828         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
16829
16830 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
16831
16832         [BZ #12597]
16833         * string/test-strncmp.c (do_page_test): New function.
16834         (check2): Likewise.
16835         (test_main): Call check2.
16836         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
16837
16838 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
16839
16840         [BZ #12587]
16841         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
16842         Handle cache information in CPU leaf 4.
16843         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
16844
16845 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
16846
16847         [BZ #12583]
16848         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
16849         character representation.
16850         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
16851
16852 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
16853
16854         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
16855         END(__isnan) to END(__isnanf) to match function entry point/label
16856         EALIGN(__isnanf,...).
16857
16858 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
16859
16860         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
16861
16862 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
16863
16864         [BZ #12510]
16865         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
16866         copy from the symbol referenced in the relocation to initialize the
16867         used variable.
16868         Patch by Piotr Bury <pbury@goahead.com>.
16869         * elf/Makefile: Add rules to build and tst-unique3.
16870         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
16871         * elf/tst-unique3.cc: New file.
16872         * elf/tst-unique3.h: New file.
16873         * elf/tst-unique3lib.cc: New file.
16874         * elf/tst-unique3lib2.cc: New file.
16875
16876         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
16877
16878 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
16879
16880         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
16881         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
16882         to _start.
16883
16884 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
16885
16886         * elf/dl-load.c (_dl_map_object): If we are looking for the first
16887         to-be-loaded object along a path to loader is ld.so.
16888
16889 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
16890             Ulrich Drepper  <drepper@gmail.com>
16891
16892         * sysdeps/x86_64/memset.S: After aligning destination, code
16893         branches to different locations depending on the value of
16894         misalignment, when multiarch is enabled. Fix this.
16895
16896 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
16897
16898         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
16899         Set _x86_64_preferred_memory_instruction for AMD processsors.
16900         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16901         Set bit_Prefer_SSE_for_memop for AMD processors.
16902
16903 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
16904
16905         * libio/fmemopen.c (fmemopen): Optimize a bit.
16906
16907 2011-03-03  Andreas Schwab  <schwab@redhat.com>
16908
16909         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
16910
16911 2011-03-03  Roland McGrath  <roland@redhat.com>
16912
16913         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
16914
16915 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
16916
16917         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
16918         __bzero_ultra1 instead of __memset_ultra1.
16919
16920 2011-02-23  Andreas Schwab  <schwab@redhat.com>
16921             Ulrich Drepper  <drepper@gmail.com>
16922
16923         [BZ #12509]
16924         * include/link.h (struct link_map): Add l_orig_initfini.
16925         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
16926         returning unsuccessfully.
16927         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
16928         close of a file loaded at startup, restore the original l_initfini
16929         list.
16930         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
16931         list, store the pointer.
16932         * elf/Makefile ($(objpfx)noload-mem): New rule.
16933         (noload-ENV): Define.
16934         (tests): Add $(objpfx)noload-mem.
16935         * elf/noload.c: Include <memcheck.h>.
16936         (main): Call mtrace.  Close all opened handles.
16937
16938 2011-02-17  Andreas Schwab  <schwab@redhat.com>
16939
16940         [BZ #12454]
16941         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
16942         dependencies are missing.
16943
16944 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16945
16946         Fix __if_freereq crash: Unlike the generic version which uses free,
16947         Hurd needs munmap.
16948         * sysdeps/mach/hurd/ifreq.h: New file.
16949
16950 2011-01-27  Petr Baudis  <pasky@suse.cz>
16951             Ulrich Drepper  <drepper@gmail.com>
16952
16953         [BZ 12445]#
16954         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
16955         to extend_alloca().
16956         * stdio-common/bug23.c: New file.
16957         * stdio-common/Makefile (tests): Add bug23.
16958
16959 2010-09-28  Andreas Schwab  <schwab@redhat.com>
16960             Ulrich Drepper  <drepper@gmail.com>
16961
16962         [BZ #12489]
16963         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
16964         before performing relro protection.  At old place add assertion
16965         to make sure nothing changed.
16966
16967 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
16968             Glauber de Oliveira Costa  <glommer@gmail.com>
16969
16970         * elf/elf.h: Add new ARM TLS relocs.
16971
16972 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
16973
16974         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
16975         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
16976         cast from r3.
16977         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
16978         'tests' variable.
16979         * sysdeps/wordsize-64/tst-writev.c: New file.
16980
16981 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
16982
16983         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
16984         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
16985         insns in _dl_start to prevent a TOC reference before relocs are
16986         resolved.
16987
16988 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
16989
16990         [BZ #12469]
16991         * Makeconfig: Remove RANLIB definition.
16992         * Makerules: Don't use RANLIB.
16993         * aclocal.m4: Remove ranlib test.
16994         * configure.in: No need to check for ranlib.
16995         * elf/rtld-Rules: Don't use RANLIB.
16996
16997 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16998
16999         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
17000         protection macro.
17001         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
17002         inclusion protection macro.
17003
17004         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
17005         SIGRTMIN and SIGRTMAX and print information in that case only when
17006         SIGRTMIN is defined.
17007
17008 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
17009
17010         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
17011         arginfo fn returning -1.
17012
17013         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
17014         and thousands string is zero terminated.
17015
17016 2011-02-03  Andreas Schwab  <schwab@redhat.com>
17017
17018         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
17019         sysdeps/unix/sysv/linux/bits/socket.h.
17020
17021 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17022
17023         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
17024         (__CPU_COUNT): Remove old macros.
17025         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
17026         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
17027         (__CPU_ALLOC, __CPU_FREE): Add macros.
17028         (__sched_cpualloc, __sched_cpufree): Add declarations.
17029
17030 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
17031
17032         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
17033         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
17034         * nscd/aicache.c (addhstaiX): Return timeout of added value.
17035         (readdhstai): Return value of addhstaiX call.
17036         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
17037         (addgrbyX): Return value returned by cache_addgr.
17038         (readdgrbyname): Return value returned by addgrbyX.
17039         (readdgrbygid): Likewise.
17040         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
17041         (addpwbyX): Return value returned by cache_addpw.
17042         (readdpwbyname): Return value returned by addhstbyX.
17043         (readdpwbyuid): Likewise.
17044         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
17045         (addservbyX): Return value returned by cache_addserv.
17046         (readdservbyname): Return value returned by addservbyX:
17047         (readdservbyport): Likewise.
17048         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
17049         (addhstbyX): Return value returned by cache_addhst.
17050         (readdhstbyname): Return value returned by addhstbyX.
17051         (readdhstbyaddr): Likewise.
17052         (readdhstbynamev6): Likewise.
17053         (readdhstbyaddrv6): Likewise.
17054         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
17055         (readdinitgroups): Return value returned by addinitgroupsX.
17056         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
17057         (prune_cache): Keep track of timeout value of re-added entries.
17058         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
17059         * nscd/nscd.h: Adjust prototypes of readd* functions.
17060
17061 2011-02-04  Roland McGrath  <roland@redhat.com>
17062
17063         * nis/nis_server.c (nis_servstate): Use the right name for 0.
17064         (nis_stats): Likewise.
17065         * nis/nis_modify.c (nis_modify): Likewise.
17066         * nis/nis_remove.c (nis_remove): Likewise.
17067         * nis/nis_add.c (nis_add): Likewise.
17068
17069         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
17070
17071         * posix/fnmatch_loop.c: Add some consts.
17072
17073         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
17074
17075 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
17076
17077         [BZ #12460]
17078         * config.make.in (config-cflags-novzeroupper): Define.
17079         * configure.in: Substitute libc_cv_cc_novzeroupper.
17080         * elf/Makefile (AVX-CFLAGS): Define.
17081         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
17082         (CFLAGS-tst-auditmod4a.c): Likewise.
17083         (CFLAGS-tst-auditmod4b.c): Likewise.
17084         (CFLAGS-tst-auditmod6b.c): Likewise.
17085         (CFLAGS-tst-auditmod6c.c): Likewise.
17086         (CFLAGS-tst-auditmod7b.c): Likewise.
17087         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
17088
17089 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
17090
17091         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
17092         function to the callback.
17093         Patch partly by Jiri Olsa <jolsa@redhat.com>.
17094
17095 2011-02-02  Andreas Schwab  <schwab@redhat.com>
17096
17097         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
17098         of errno.
17099
17100 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
17101
17102         [BZ #11724]
17103         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
17104         of constructors.
17105         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
17106         of destructors.
17107         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
17108
17109         [BZ #11724]
17110         * elf/Makefile: Add rules to build and run new test.
17111         * elf/tst-initorder.c: New file.
17112         * elf/tst-initorder.exp: New file.
17113         * elf/tst-initordera1.c: New file.
17114         * elf/tst-initordera2.c: New file.
17115         * elf/tst-initordera3.c: New file.
17116         * elf/tst-initordera4.c: New file.
17117         * elf/tst-initorderb1.c: New file.
17118         * elf/tst-initorderb2.c: New file.
17119         * elf/tst-order-a1.c: New file.
17120         * elf/tst-order-a2.c: New file.
17121         * elf/tst-order-a3.c: New file.
17122         * elf/tst-order-a4.c: New file.
17123         * elf/tst-order-b1.c: New file.
17124         * elf/tst-order-b2.c: New file.
17125         * elf/tst-order-main.c: New file.
17126         New test case by George Gensure <werkt0@gmail.com>.
17127
17128 2010-10-01  Andreas Schwab  <schwab@redhat.com>
17129
17130         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
17131         decoding ACE if AI_CANONIDN.
17132
17133 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
17134
17135         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
17136
17137 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
17138
17139         * version.h (RELEASE): Bump for 2.13 release.
17140         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
17141
17142         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
17143
17144         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
17145         MADV_NOHUGEPAGE.
17146         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
17147         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
17148         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
17149         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
17150         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
17151         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
17152
17153         * posix/getconf.c: Update copyright year.
17154         * catgets/gencat.c: Likewise.
17155         * csu/version.c: Likewise.
17156         * debug/catchsegv.sh: Likewise.
17157         * debug/xtrace.sh: Likewise.
17158         * elf/ldconfig.c: Likewise.
17159         * elf/ldd.bash.in: Likewise.
17160         * elf/sprof.c (print_version): Likewise.
17161         * iconv/iconv_prog.c: Likewise.
17162         * iconv/iconvconfig.c: Likewise.
17163         * locale/programs/locale.c: Likewise.
17164         * locale/programs/localedef.c: Likewise.
17165         * malloc/memusage.sh: Likewise.
17166         * malloc/mtrace.pl: Likewise.
17167         * nscd/nscd.c (print_version): Likewise.
17168         * nss/getent.c: Likewise.
17169
17170         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
17171         PF_CAIF, and PF_ALG.
17172         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
17173
17174 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
17175
17176         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
17177         (modules-names): Use them.
17178         (ifunc-test-modules, ifunc-pie-tests): Define.
17179         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
17180         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
17181         (test-extras): Likewise.
17182         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
17183         $(compile-command.c).
17184         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
17185         (all-built-dso): Define.
17186         (check-textrel.out, check-execstack.out): Depend on it.
17187
17188         * configure.in: Don't override --enable-multi-arch.
17189
17190 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
17191
17192         [BZ #6812]
17193         * nscd/hstcache.c (tryagain): Define.
17194         (cache_addhst): Return tryagain not notfound for temporary errors.
17195         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
17196         failed.
17197
17198 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
17199
17200         [BZ #10563]
17201         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
17202         to make the syscall.
17203         * sysdeps/unix/sysv/linux/setgroups.c: New file.
17204
17205         [BZ #12378]
17206         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
17207         and fall back to matching as normal character if the string ends before
17208         the matching ']' is found.  This is what POSIX requires.
17209         * posix/testfnm.c: Adjust test result.
17210         * posix/globtest.sh: Adjust test result.  Add new test.
17211         * posix/tst-fnmatch.input: Likewise.
17212         * posix/tst-fnmatch2.c: Add new test.
17213
17214 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
17215
17216         * elf/Makefile (check-execstack): Revert last change.  Depend on
17217         check-execstack.h.
17218         (check-execstack.h): New target.
17219         (generated): Add check-execstack.h.
17220         * elf/check-execstack.c: Include "check-execstack.h".
17221         (main): Revert last change.
17222         (handle_file): Return zero if GNU_STACK is absent and
17223         DEFAULT_STACK_PERMS doesn't include PF_X.
17224
17225 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
17226
17227         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
17228         in child fails because the descriptor is already closed.
17229         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
17230         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
17231         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
17232
17233         [BZ #12397]
17234         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
17235         syscall.
17236
17237         [BZ #10484]
17238         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
17239         temporary buffer used to handle multi lookups locally.
17240         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
17241
17242 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
17243
17244         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
17245         loader is ld.so.
17246
17247 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
17248
17249         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
17250         alignment for SSE2.
17251
17252 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
17253
17254         [BZ #12394]
17255         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
17256         characters.  When rounding increased number of integer digits recompute
17257         number of groups.
17258         * stdio-common/tst-grouping.c: New file.
17259         * stdio-common/Makefile: Add rules to build and run tst-grouping.
17260
17261 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
17262
17263         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
17264         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
17265
17266         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
17267         void.
17268         * bits/select.h: Likewise.
17269
17270 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
17271
17272         * po/ja.po: Update from translation team.
17273
17274 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
17275
17276         [BZ #11155]
17277         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
17278         implementation just like for lxstat, fxstatat, et al.
17279
17280 2010-12-27  Jim Meyering  <meyering@redhat.com>
17281
17282         [BZ #12348]
17283         * posix/regexec.c (build_trtable): Return failure indication upon
17284         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
17285
17286 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
17287
17288         [BZ #12201]
17289         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
17290         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
17291         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
17292         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
17293
17294         [BZ #12207]
17295         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
17296
17297         [BZ #12204]
17298         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
17299         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
17300
17301 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
17302
17303         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
17304         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
17305         script has SORT_BY_INIT_PRIORITY.
17306         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
17307         NO_CTORS_DTORS_SECTIONS is defined.
17308         * elf/soinit.c: Likewise.
17309         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
17310         NO_CTORS_DTORS_SECTIONS is defined.
17311         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
17312         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
17313         * sysdeps/sh/init-first.c: Likewise.
17314         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
17315
17316 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
17317
17318         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
17319         always use the slow path.
17320
17321 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
17322
17323         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
17324         similar rule which adds the sysdep directories to the header search in
17325         order to pick up the correct platform stackinfo.h.
17326         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
17327         perform test if it is, otherwise return successfully without testing.
17328         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
17329         DEFAULT_STACK_PERMS define in stackinfo.h.
17330         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
17331         defined in stackinfo.h.
17332         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
17333         DEFAULT_STACK_PERMS defined in stackinfo.h.
17334         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
17335         * sysdeps/ia64/stackinfo.h: Likewise.
17336         * sysdeps/s390/stackinfo.h: Likewise.
17337         * sysdeps/sh/stackinfo.h: Likewise.
17338         * sysdeps/sparc/stackinfo.h: Likewise.
17339         * sysdeps/x86_64/stackinfo.h: Likewise.
17340         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
17341         PF_X for powerpc64.  Retain PF_X for powerpc32.
17342
17343 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
17344
17345         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
17346         accurately.
17347         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
17348         GETDENTS_64BIT_ALIGNED.
17349
17350 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
17351
17352         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
17353
17354 2010-12-10  Andreas Schwab  <schwab@redhat.com>
17355
17356         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
17357         _GNU_SOURCE.
17358
17359         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
17360         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
17361         Remove __restrict.
17362         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
17363         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
17364
17365 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
17366
17367         [BZ #11655]
17368         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
17369         are initialized.
17370
17371 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
17372
17373         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
17374
17375 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
17376
17377         * po/it.po: Update from translation team.
17378
17379 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
17380
17381         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
17382         unused codes.
17383
17384 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
17385
17386         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
17387
17388 2010-11-24  Andreas Schwab  <schwab@redhat.com>
17389
17390         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
17391         specially.
17392         (gaih_getanswer_slice): Likewise.
17393
17394 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
17395
17396         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
17397
17398 2010-05-31  Petr Baudis  <pasky@suse.cz>
17399
17400         [BZ #11149]
17401         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
17402         silently even in the chroot mode.
17403
17404 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
17405
17406         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
17407         last patch a bit.  Pretty printing
17408
17409 2010-05-31  Petr Baudis <pasky@suse.cz>
17410
17411         [BZ #10085]
17412         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
17413         initialization of skip_initgroups_dyn.
17414
17415 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
17416
17417         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
17418         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
17419
17420 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
17421
17422         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
17423
17424 2010-11-11  Andreas Schwab  <schwab@redhat.com>
17425
17426         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
17427         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
17428         (tst-fnmatch-ENV): Set MALLOC_TRACE.
17429         ($(objpfx)tst-fnmatch-mem): New rule.
17430         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
17431         * posix/tst-fnmatch.c (main): Call mtrace.
17432
17433 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
17434
17435         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17436         Support Intel processor model 6 and model 0x2c.
17437
17438 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
17439
17440         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
17441           signed comparison.
17442
17443 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
17444
17445         [BZ #12205]
17446         * string/test-strncasecmp.c (check_result): New function.
17447         (do_one_test): Use it.
17448         (check1): New function.
17449         (test_main): Use it.
17450         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
17451         Support strcasecmp and strncasecmp.
17452
17453 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
17454
17455         [BZ #12194]
17456         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
17457         * sysdeps/x86_64/bits/byteswap.h: Likewise.
17458
17459 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
17460
17461         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
17462         IFUNC support.
17463         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17464         memset-x86-64.
17465         * sysdeps/x86_64/multiarch/bzero.S: New file.
17466         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
17467         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
17468         * sysdeps/x86_64/multiarch/memset.S: New file.
17469         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
17470         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17471         Set bit_Prefer_SSE_for_memop for Intel processors.
17472         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
17473         Define.
17474         (index_Prefer_SSE_for_memop): Define.
17475         (HAS_PREFER_SSE_FOR_MEMOP): Define.
17476
17477 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
17478
17479         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
17480         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
17481
17482 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
17483
17484         [BZ #12191]
17485         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
17486         (__x86_64_raw_data_cache_size_half): Likewise.
17487         (__x86_64_raw_shared_cache_size): Likewise.
17488         (__x86_64_raw_shared_cache_size_half): Likewise.
17489
17490         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
17491         (__x86_64_raw_data_cache_size_half): Likewise.
17492         (__x86_64_raw_shared_cache_size): Likewise.
17493         (__x86_64_raw_shared_cache_size_half): Likewise.
17494         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
17495         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
17496         and __x86_64_raw_shared_cache_size_half.  Round
17497         __x86_64_data_cache_size_half, __x86_64_data_cache_size
17498         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
17499         to multiple of 256 bytes.
17500
17501 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
17502
17503         [BZ #12167]
17504         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
17505         of inacessible symlinks.  Verify result of symlink before returning it.
17506         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
17507         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
17508
17509 2010-10-28  Erich Ritz  <erichritz@gmail.com>
17510
17511         * math/math.h (isinf): Fix typo in comment.
17512
17513 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
17514
17515         * po/da.po: Update from translation team.
17516
17517 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
17518
17519         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
17520         is added to the list.
17521
17522 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17523             Ulrich Drepper  <drepper@gmail.com>
17524
17525         * elf/dl-object.c (_dl_new_object): Don't append the new object to
17526         the global list here.  Move code to...
17527         (_dl_add_to_namespace_list): ...here.  New function.
17528         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
17529         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
17530         * elf/dl-load.c (lose): Don't remove the element from the list.
17531         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
17532         (_dl_map_object): Likewise.
17533
17534 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
17535
17536         [BZ #12159]
17537         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
17538         into all bytes of SSE register.
17539         Patch by Richard Li <richardpku@gmail.com>.
17540
17541 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
17542
17543         [BZ #12140]
17544         * malloc/malloc.c (_int_free): Fill correct number of bytes when
17545         perturbing.
17546
17547 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
17548
17549         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
17550         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
17551         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
17552         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
17553         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
17554         submachine.
17555         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
17556
17557 2010-10-22  Andreas Schwab  <schwab@redhat.com>
17558
17559         * include/dlfcn.h (__RTLD_SECURE): Define.
17560         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
17561         mode & __RTLD_SECURE instead.
17562         (open_path): Rename preloaded parameter to secure.
17563         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
17564         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
17565         * elf/dl-deps.c (openaux): Likewise.
17566         * elf/rtld.c (struct map_args): Remove is_preloaded.
17567         (map_doit): Don't use it.
17568         (dl_main): Likewise.
17569         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
17570         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
17571
17572 2010-09-09  Andreas Schwab  <schwab@redhat.com>
17573
17574         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
17575         (sysd-rules-targets): Remove duplicates.
17576         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
17577         rtld-%.$o dependency.
17578
17579 2010-10-18  Andreas Schwab  <schwab@redhat.com>
17580
17581         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
17582         _dl_map_object do it.
17583
17584 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
17585
17586         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
17587         fast fma builtins, define the macros in the C99 standard.
17588         (FP_FAST_FMAF): Likewise.
17589         (FP_FAST_FMAL): Likewise.
17590         * sysdeps/x86_64/bits/mathdef.h: Likewise.
17591
17592         * bits/mathdef.h: Update copyright year.
17593         * sysdeps/powerpc/bits/mathdef.h: Likewise.
17594
17595 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
17596
17597         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
17598         builtins, define the macros in the C99 standard.
17599         (FP_FAST_FMAF): Likewise.
17600         (FP_FAST_FMAL): Likewise.
17601         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
17602         multiply/add.
17603         (FP_FAST_FMAF): Likewise.
17604
17605 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
17606
17607         [BZ #3268]
17608         * math/libm-test.inc (fma_test): Some new testcases.
17609         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
17610         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
17611         y and infinite z.  Do multiplication by C already in long double.
17612         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
17613         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
17614         y and infinite z.  Do bitwise or of inexact bit into u.d.
17615         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
17616         * sysdeps/i386/fpu/s_fmaf.S: Removed.
17617         * sysdeps/i386/fpu/s_fma.S: Removed.
17618         * sysdeps/i386/fpu/s_fmal.S: Removed.
17619
17620 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
17621
17622         [BZ #3268]
17623         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
17624         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
17625         computation is not scheduled after fetestexcept.  Fix value
17626         of minimum denormal long double.
17627
17628 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
17629
17630         [BZ #3268]
17631         * math/libm-test.inc (fma_test): Add some more tests.
17632         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
17633         correctly.
17634
17635 2010-10-15  Andreas Schwab  <schwab@redhat.com>
17636
17637         * scripts/data/localplt-s390-linux-gnu.data: New file.
17638         * scripts/data/localplt-s390x-linux-gnu.data: New file.
17639
17640 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
17641
17642         [BZ #3268]
17643         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
17644         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
17645         instead of dbl-64.
17646         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
17647         inlines.
17648         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
17649         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
17650         if one of x and y is very large and the other is subnormal.
17651         * sysdeps/s390/fpu/s_fmaf.c: New file.
17652         * sysdeps/s390/fpu/s_fma.c: New file.
17653         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
17654         * sysdeps/powerpc/fpu/s_fma.S: New file.
17655         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
17656         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
17657         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
17658
17659 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
17660
17661         [BZ #3268]
17662         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
17663         fma tests.
17664         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
17665         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
17666         * sysdeps/i386/i686/multiarch/s_fma.c: Include
17667         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
17668         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
17669         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
17670         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
17671
17672 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
17673
17674         [BZ #12078]
17675         * posix/regcomp.c (parse_branch): One more memory leak plugged.
17676         * posix/bug-regex31.input: Add test case.
17677
17678 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
17679
17680         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
17681         * posix/bug-regex31.input: New file.
17682
17683         [BZ #12078]
17684         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
17685         (parse_sub_exp): Fix last change, use postorder.
17686
17687         * posix/bug-regex31.c: New file.
17688         * posix/Makefile: Add rules to build and run bug-regex31.
17689
17690         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
17691
17692         [BZ #12078]
17693         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
17694
17695         [BZ #12108]
17696         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
17697         to have entries in sys_siglist.
17698
17699         [BZ #12093]
17700         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
17701         be NULL.
17702
17703 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
17704
17705         [BZ #3268]
17706         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
17707         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
17708         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
17709         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
17710         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
17711         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
17712         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
17713         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
17714         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
17715         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
17716         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
17717         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
17718         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
17719         * math/ftestexcept.c (fetestexcept): Likewise.
17720         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
17721         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
17722         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
17723         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
17724         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
17725         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
17726         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
17727
17728 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
17729
17730         [BZ #12107]
17731         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
17732         newline.
17733
17734 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
17735
17736         * string/bug-strstr1.c: New file.
17737         * string/Makefile: Add rules to build and run bug-strstr1.
17738
17739 2010-10-05  Eric Blake  <eblake@redhat.com>
17740
17741         [BZ #12092]
17742         * string/str-two-way.h (two_way_long_needle): Always clear memory
17743         when skipping input due to the shift table.
17744
17745 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
17746
17747         [BZ #12005]
17748         * malloc/mcheck.c: Handle large requests.
17749
17750         [BZ #12077]
17751         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
17752         for strncmp and strncasecmp.
17753         * string/stratcliff.c: Add tests for strcmp and strncmp.
17754         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
17755
17756 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
17757
17758         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
17759         __set_fpscr.
17760
17761 2010-09-30  Andreas Jaeger  <aj@suse.de>
17762
17763         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
17764         (CGROUP_SUPER_MAGIC): Define.
17765         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
17766         Handle btrfs and cgroup file systems.
17767         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
17768         Likewise.
17769
17770 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
17771
17772         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
17773         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
17774
17775 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17776
17777         [BZ #12067]
17778         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
17779         trying to locate the ELF header.
17780
17781 2010-09-27  Andreas Schwab  <schwab@redhat.com>
17782
17783         [BZ #11611]
17784         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
17785         Mask out sign-bit copies when constructing f_fsid.
17786
17787 2010-09-24  Petr Baudis <pasky@suse.cz>
17788
17789         * debug/stack_chk_fail_local.c: Add missing licence exception.
17790         * debug/warning-nop.c: Likewise.
17791
17792 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
17793
17794         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
17795         implementing getdents64 using getdents syscall, set d_type if
17796         __ASSUME_GETDENTS32_D_TYPE.
17797
17798 2010-09-16  Andreas Schwab  <schwab@redhat.com>
17799
17800         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
17801         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
17802
17803 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
17804
17805         [BZ #12037]
17806         * posix/unistd.h: Undo change of feature selection for ftruncate from
17807         2010-01-11.
17808
17809 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
17810
17811         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
17812         detection.
17813
17814 2010-09-20  Andreas Schwab  <schwab@redhat.com>
17815
17816         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
17817         fanotify_mark.
17818         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
17819
17820 2010-09-14  Andreas Schwab  <schwab@redhat.com>
17821
17822         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
17823         variables after CHECK_SP call.
17824         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
17825
17826 2010-09-13  Andreas Schwab  <schwab@redhat.com>
17827             Ulrich Drepper  <drepper@redhat.com>
17828
17829         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
17830         re-relocationg ld.so.
17831         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
17832         _dl_init_paths call.
17833         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
17834         here anymore.
17835
17836 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
17837
17838         * resolv/res_init.c (__res_vinit): Count the default server we added.
17839
17840 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
17841             Ulrich Drepper  <drepper@redhat.com>
17842
17843         [BZ #11968]
17844         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
17845         (____longjmp_chk): Use %ebx for saving value across system call.
17846         Add unwind info.
17847
17848 2010-09-06  Andreas Schwab  <schwab@redhat.com>
17849
17850         * manual/Makefile: Don't mix pattern rules with normal rules.
17851
17852 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
17853
17854         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
17855         operation.
17856         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
17857         * libio/iofopncook.c (_IO_cookie_init): Likewise.
17858         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
17859         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
17860         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
17861         Likewise.
17862
17863 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
17864
17865         [BZ #11979]
17866         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
17867         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
17868
17869 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
17870
17871         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
17872         * sysdeps/x86_64/addmul_1.S: Likewise.
17873         * sysdeps/x86_64/lshift.S: Likewise.
17874         * sysdeps/x86_64/mul_1.S: Likewise.
17875         * sysdeps/x86_64/rshift.S: Likewise.
17876         * sysdeps/x86_64/sub_n.S: Likewise.
17877         * sysdeps/x86_64/submul_1.S: Likewise.
17878
17879 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17880
17881         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
17882         Define __sched_param instead of SCHED_* and sched_param when
17883         <bits/sched.h> is included with __need_schedparam defined.
17884         * bits/sched.h [__need_schedparam]
17885         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
17886         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
17887         (__defined_schedparam): Define to 1.
17888         (__sched_param): New structure, identical to sched_param.
17889         (__need_schedparam): Undefine.
17890
17891 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
17892
17893         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
17894         (epoll_create1): Declare.
17895
17896         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
17897
17898 2010-08-31  Andreas Schwab  <schwab@redhat.com>
17899
17900         [BZ #7066]
17901         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
17902         shifting retval into place.
17903
17904 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
17905
17906         * nis/rpcsvc/nis.h: Update copyright notice.
17907         * nis/rpcsvc/nis.x: Likewise.
17908         * nis/rpcsvc/nis_callback.h: Likewise.
17909         * nis/rpcsvc/nis_callback.x: Likewise.
17910         * nis/rpcsvc/nis_object.x: Likewise.
17911         * nis/rpcsvc/nis_tags.h: Likewise.
17912         * nis/rpcsvc/yp.h: Likewise.
17913         * nis/rpcsvc/yp.x: Likewise.
17914         * nis/rpcsvc/ypupd.h: Likewise.
17915         * nis/yp_xdr.c: Likewise.
17916         * nis/ypupdate_xdr.c: Likewise.
17917
17918         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
17919         mainly the body of pmap_getport.  Add parameters to specify timeouts.
17920         (pmap_getport): Use __libc_rpc_getport.
17921         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
17922         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
17923         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
17924
17925 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
17926
17927         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
17928         fanotify_mark.
17929
17930 2010-08-27  Roland McGrath  <roland@redhat.com>
17931
17932         * sysdeps/i386/i686/multiarch/Makefile
17933         (CFLAGS-varshift.c): New variable.
17934
17935 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
17936
17937         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
17938         * sysdeps/i386/i686/multiarch/varshift.c: New file.
17939
17940         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
17941
17942         * sysdeps/x86_64/strlen.S: Minimal code improvement.
17943
17944 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
17945
17946         * sysdeps/x86_64/strlen.S: Unroll the loop.
17947         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17948         strlen-sse2 strlen-sse2-bsf.
17949         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
17950         __strlen_no_bsf if bit_Slow_BSF is set.
17951         (__strlen_sse42): Removed.
17952         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
17953         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
17954
17955 2010-08-25  Roland McGrath  <roland@redhat.com>
17956
17957         * sysdeps/x86_64/multiarch/varshift.S: File removed.
17958         * sysdeps/x86_64/multiarch/varshift.c: New file.
17959         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
17960         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
17961         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
17962         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
17963
17964 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
17965
17966         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17967         strlen-sse2 strlen-sse2-bsf.
17968         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
17969         __strlen_sse2_bsf if bit_Slow_BSF is unset.
17970         (__strlen_sse2): Removed.
17971         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
17972         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
17973         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
17974         bit_Slow_BSF for Atom.
17975         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
17976         (index_Slow_BSF): Define.
17977         (HAS_SLOW_BSF): Define.
17978
17979 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
17980
17981         [BZ #10851]
17982         * resolv/res_init.c (__res_vinit): When no server address at all
17983         is given default to loopback.
17984
17985 2010-08-24  Roland McGrath  <roland@redhat.com>
17986
17987         * configure.in: Remove config-name.h generation.
17988         * configure: Regenerated.
17989         * config-name.in: File removed.
17990         * scripts/config-uname.sh: New file.
17991         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
17992         ($(objdir)config-name.h): New target.
17993
17994         * sunrpc/rpc_parse.h: Avoid nested comment.
17995
17996 2010-08-24  Richard Henderson  <rth@redhat.com>
17997             Ulrich Drepper  <drepper@redhat.com>
17998             H.J. Lu  <hongjiu.lu@intel.com>
17999
18000         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
18001         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
18002         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
18003         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
18004         _mm_alignr_epi8 with _mm_loadu_si128.
18005         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
18006         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
18007         (__m128i_shift_right): Removed.
18008         * sysdeps/i386/i686/multiarch/varshift.h: New file.
18009         * sysdeps/i386/i686/multiarch/varshift.S: New file.
18010         * sysdeps/x86_64/multiarch/varshift.h: New file.
18011         * sysdeps/x86_64/multiarch/varshift.S: New file.
18012
18013 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
18014
18015         * configure.in: Move assembler checks to before sysdep dir checking.
18016
18017 2010-08-20  Petr Baudis  <pasky@suse.cz>
18018
18019         * LICENSES: Sync the sunrpc license.
18020
18021 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
18022
18023         * sunrpc/auth_des.c: Update copyright notice once again.
18024         * sunrpc/auth_none.c: Likewise.
18025         * sunrpc/auth_unix.c: Likewise.
18026         * sunrpc/authdes_prot.c: Likewise.
18027         * sunrpc/authuxprot.c: Likewise.
18028         * sunrpc/bindrsvprt.c: Likewise.
18029         * sunrpc/clnt_gen.c: Likewise.
18030         * sunrpc/clnt_perr.c: Likewise.
18031         * sunrpc/clnt_raw.c: Likewise.
18032         * sunrpc/clnt_simp.c: Likewise.
18033         * sunrpc/clnt_tcp.c: Likewise.
18034         * sunrpc/clnt_udp.c: Likewise.
18035         * sunrpc/clnt_unix.c: Likewise.
18036         * sunrpc/des_crypt.c: Likewise.
18037         * sunrpc/des_soft.c: Likewise.
18038         * sunrpc/get_myaddr.c: Likewise.
18039         * sunrpc/getrpcport.c: Likewise.
18040         * sunrpc/key_call.c: Likewise.
18041         * sunrpc/key_prot.c: Likewise.
18042         * sunrpc/openchild.c: Likewise.
18043         * sunrpc/pm_getmaps.c: Likewise.
18044         * sunrpc/pm_getport.c: Likewise.
18045         * sunrpc/pmap_clnt.c: Likewise.
18046         * sunrpc/pmap_prot.c: Likewise.
18047         * sunrpc/pmap_prot2.c: Likewise.
18048         * sunrpc/pmap_rmt.c: Likewise.
18049         * sunrpc/rpc/auth.h: Likewise.
18050         * sunrpc/rpc/auth_unix.h: Likewise.
18051         * sunrpc/rpc/clnt.h: Likewise.
18052         * sunrpc/rpc/des_crypt.h: Likewise.
18053         * sunrpc/rpc/key_prot.h: Likewise.
18054         * sunrpc/rpc/netdb.h: Likewise.
18055         * sunrpc/rpc/pmap_clnt.h: Likewise.
18056         * sunrpc/rpc/pmap_prot.h: Likewise.
18057         * sunrpc/rpc/pmap_rmt.h: Likewise.
18058         * sunrpc/rpc/rpc.h: Likewise.
18059         * sunrpc/rpc/rpc_des.h: Likewise.
18060         * sunrpc/rpc/rpc_msg.h: Likewise.
18061         * sunrpc/rpc/svc.h: Likewise.
18062         * sunrpc/rpc/svc_auth.h: Likewise.
18063         * sunrpc/rpc/types.h: Likewise.
18064         * sunrpc/rpc/xdr.h: Likewise.
18065         * sunrpc/rpc_clntout.c: Likewise.
18066         * sunrpc/rpc_cmsg.c: Likewise.
18067         * sunrpc/rpc_common.c: Likewise.
18068         * sunrpc/rpc_cout.c: Likewise.
18069         * sunrpc/rpc_dtable.c: Likewise.
18070         * sunrpc/rpc_hout.c: Likewise.
18071         * sunrpc/rpc_main.c: Likewise.
18072         * sunrpc/rpc_parse.c: Likewise.
18073         * sunrpc/rpc_parse.h: Likewise.
18074         * sunrpc/rpc_prot.c: Likewise.
18075         * sunrpc/rpc_sample.c: Likewise.
18076         * sunrpc/rpc_scan.c: Likewise.
18077         * sunrpc/rpc_scan.h: Likewise.
18078         * sunrpc/rpc_svcout.c: Likewise.
18079         * sunrpc/rpc_tblout.c: Likewise.
18080         * sunrpc/rpc_util.c: Likewise.
18081         * sunrpc/rpc_util.h: Likewise.
18082         * sunrpc/rpcinfo.c: Likewise.
18083         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
18084         * sunrpc/rpcsvc/key_prot.x: Likewise.
18085         * sunrpc/rpcsvc/klm_prot.x: Likewise.
18086         * sunrpc/rpcsvc/mount.x: Likewise.
18087         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
18088         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
18089         * sunrpc/rpcsvc/rex.x: Likewise.
18090         * sunrpc/rpcsvc/rstat.x: Likewise.
18091         * sunrpc/rpcsvc/rusers.x: Likewise.
18092         * sunrpc/rpcsvc/sm_inter.x: Likewise.
18093         * sunrpc/rpcsvc/spray.x: Likewise.
18094         * sunrpc/rpcsvc/yppasswd.x: Likewise.
18095         * sunrpc/rtime.c: Likewise.
18096         * sunrpc/svc.c: Likewise.
18097         * sunrpc/svc_auth.c: Likewise.
18098         * sunrpc/svc_authux.c: Likewise.
18099         * sunrpc/svc_raw.c: Likewise.
18100         * sunrpc/svc_run.c: Likewise.
18101         * sunrpc/svc_simple.c: Likewise.
18102         * sunrpc/svc_tcp.c: Likewise.
18103         * sunrpc/svc_udp.c: Likewise.
18104         * sunrpc/svc_unix.c: Likewise.
18105         * sunrpc/svcauth_des.c: Likewise.
18106         * sunrpc/xcrypt.c: Likewise.
18107         * sunrpc/xdr.c: Likewise.
18108         * sunrpc/xdr_array.c: Likewise.
18109         * sunrpc/xdr_float.c: Likewise.
18110         * sunrpc/xdr_mem.c: Likewise.
18111         * sunrpc/xdr_rec.c: Likewise.
18112         * sunrpc/xdr_ref.c: Likewise.
18113         * sunrpc/xdr_sizeof.c: Likewise.
18114         * sunrpc/xdr_stdio.c: Likewise.
18115
18116         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
18117         handling.
18118
18119 2010-08-19  Andreas Schwab  <schwab@redhat.com>
18120
18121         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
18122
18123 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
18124
18125         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
18126         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
18127         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
18128         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
18129         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
18130         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
18131         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
18132         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
18133         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
18134         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
18135         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
18136         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
18137         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
18138         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
18139
18140 2010-07-26  Anton Blanchard  <anton@samba.org>
18141
18142         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
18143         * malloc/arena.c (heap_trim): Likewise.
18144
18145 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
18146
18147         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
18148         here.  Not...
18149         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
18150         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
18151
18152 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
18153
18154         * sysdeps/i386/elf/Makefile: New file.
18155
18156 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
18157
18158         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
18159         from fanotify_init.
18160         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
18161         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
18162
18163 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
18164
18165         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
18166         of strncasecmp_l.
18167         * sysdeps/multiarch/strcmp.S: Likewise.
18168
18169 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
18170
18171         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
18172         strncase_l-nonascii.
18173         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
18174         Add strncase_l-ssse3.
18175         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
18176         * sysdeps/x86_64/strcmp.S: Likewise.
18177         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
18178         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
18179         * sysdeps/x86_64/strncase.S: New file.
18180         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
18181         * sysdeps/x86_64/strncase_l.S: New file.
18182         * string/Makefile (strop-tests): Add strncasecmp.
18183         * string/test-strncasecmp.c: New file.
18184
18185         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
18186         warning.
18187
18188         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
18189         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
18190
18191 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
18192
18193         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
18194
18195 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
18196
18197         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
18198         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
18199         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
18200
18201 2010-05-01  Alan Modra  <amodra@gmail.com>
18202
18203         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
18204         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
18205         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
18206         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
18207         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
18208         tidying.  Don't tail-call __sigjmp_save for static lib.
18209         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
18210         save location.
18211         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
18212         (CALL_MCOUNT): Add eh info, and nop after bl.
18213         (TAIL_CALL_SYSCALL_ERROR): New macro.
18214         (PSEUDO_RET): Use it.
18215         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
18216         Correct save location of integer regs and cr.
18217         (_dl_profile_resolve): Correct cr save location.  Delete nops
18218         after bl when SHARED.  Reduce cfi size a little by better
18219         placement of cfi directives.
18220         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
18221         make a stack frame.  Instead use parm save area as a temp.
18222         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
18223         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
18224         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
18225         Don't make a stack frame for parent, use parm save area.
18226         Increase child stack frame to 112 bytes.  Don't save unused reg,
18227         and adjust reg usage.  Set up cfi on error recovery and
18228         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
18229         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
18230         (__makecontext): Add dummy nop after jump to exit.
18231         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
18232         Use correct parm save area and cr save, reduce stack frame.
18233         Correct cfi for possible PSEUDO_RET frame setup.
18234         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
18235         Branch to local label emitted by PSEUDO_RET rather than
18236         __syscall_error.
18237
18238 2010-08-12  Andreas Schwab  <schwab@redhat.com>
18239
18240         [BZ #11904]
18241         * locale/programs/locale.c (print_assignment): New function.
18242         (show_locale_vars): Use it.
18243
18244 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
18245
18246         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
18247         field.
18248         (struct statfs64): Likewise.
18249         (_STATFS_F_FLAGS): Define.
18250         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
18251         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
18252         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
18253         (ST_VALID): Define locally.
18254         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
18255         __statvfs_getflags, use the provided value.
18256         * sysdeps/unix/sysv/linux/kernel-features.h: Define
18257         __ASSUME_STATFS_F_FLAGS.
18258
18259         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
18260
18261         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
18262         Add sys/fanotify.h.
18263         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
18264         fanotify_mask for GLIBC_2.13.
18265         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
18266         fanotify_init and fanotify_mark.
18267         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
18268         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
18269
18270         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
18271         Add prlimit.
18272         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
18273         prlimit64 for GLIBC_2.13.
18274         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
18275         prlimit64.
18276         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
18277         syscall.
18278         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
18279         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
18280         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
18281         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
18282         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
18283         add prlimit alias.
18284         * sysdeps/unix/sysv/linux/prlimit.c: New file.
18285
18286         [BZ #11903]
18287         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
18288         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
18289
18290         * nss/Makefile: Add rules to build and run tst-nss-test1.
18291         * shlib-versions: Add entry for libnss_test1.
18292         * nss/nss_test1.c: New file.
18293         * nss/tst-nss-test1.c: New file.
18294
18295         * nss/nsswitch.c (__nss_database_custom): Define new variable.
18296         (__nss_configure_lookup): Set appropriate entry in
18297         __nss_configure_lookup to true.
18298         * nss/nsswitch.h: Define enum with indeces of databases in
18299         databases and __nss_database_custom arrays.  Declare
18300         __nss_database_custom.
18301         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
18302         to avoid using nscd when custom rules are installed.
18303         * nss/getXXbyYY_r.c: Likewise.
18304         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
18305
18306         * nss/nss_files/files-parse.c: Whitespace fixes.
18307
18308 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
18309
18310         [BZ #11883]
18311         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
18312         * posix/fnmatch_loop.c: Likewise.
18313
18314 2010-07-17  Andi Kleen  <ak@linux.intel.com>
18315
18316         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
18317         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
18318         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
18319         * Versions.def [GLIBC_2.13]: Add.
18320
18321 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
18322
18323         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
18324         Also fail if tpwd after pwuid call is NULL.
18325
18326 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18327
18328         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
18329         when converting to ms.
18330
18331 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18332
18333         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
18334         EOPNOTSUPP errors with ENOTTY.
18335         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
18336         EOPNOTSUPP errors with ENOTTY.
18337
18338 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
18339
18340         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
18341         Add strcasecmp_l-ssse3.
18342         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
18343         strcasecmp.
18344         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
18345         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
18346         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
18347
18348 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
18349
18350         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
18351
18352         * string/Makefile (strop-tests): Add strcasecmp.
18353         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
18354         strcasecmp_l-nonascii.
18355         (gen-as-const-headers): Add locale-defines.sym.
18356         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
18357         * sysdeps/x86_64/strcasecmp.S: New file.
18358         * sysdeps/x86_64/strcasecmp_l.S: New file.
18359         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
18360         * sysdeps/x86_64/locale-defines.sym: New file.
18361         * string/test-strcasecmp.c: New file.
18362
18363         * string/test-strcasestr.c: Test both ends of the range of characters.
18364         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
18365
18366 2010-07-29  Roland McGrath  <roland@redhat.com>
18367
18368         [BZ #11856]
18369         * manual/locale.texi (Yes-or-No Questions): Fix example code.
18370
18371 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
18372
18373         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
18374         for ld.so.
18375
18376 2010-07-27  Andreas Schwab  <schwab@redhat.com>
18377
18378         * manual/memory.texi (Malloc Tunable Parameters): Document
18379         M_PERTURB.
18380
18381 2010-07-26  Roland McGrath  <roland@redhat.com>
18382
18383         [BZ #11840]
18384         * configure.in (-fgnu89-inline check): Set and substitute
18385         gnu89_inline, not libc_cv_gnu89_inline.
18386         * configure: Regenerated.
18387         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
18388
18389 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
18390
18391         * string/test-strnlen.c: New file.
18392         * string/Makefile (strop-tests): Add strnlen.
18393         * string/tester.c (test_strnlen): Add a few more test cases.
18394         * string/tst-strlen.c: Better error reporting.
18395
18396         * sysdeps/x86_64/strnlen.S: New file.
18397
18398 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
18399
18400         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
18401         lower-latency instructions.
18402
18403 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
18404
18405         * string/test-strcasestr.c: New file.
18406         * string/test-strstr.c: New file.
18407         * string/Makefile (strop-tests): Add strstr and strcasestr.
18408         * string/str-two-way.h: Don't undefine MAX.
18409         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
18410
18411 2010-07-21  Andreas Schwab  <schwab@redhat.com>
18412
18413         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
18414         strcasestr-nonascii.
18415         (CFLAGS-strcasestr-nonascii.c): Define.
18416         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
18417         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
18418         Remove unused attribute.
18419
18420 2010-07-20  Roland McGrath  <roland@redhat.com>
18421
18422         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
18423         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
18424         ld.so.cache was broken.  With it, there is no way to disable dsocaps
18425         like LD_HWCAP_MASK can disable hwcaps.
18426
18427 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
18428
18429         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
18430
18431 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
18432
18433         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
18434         call in strcasestr.
18435         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
18436         __strcasestr_sse42_nonascii.
18437         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
18438         strcasestr-nonascii.c.
18439         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
18440
18441 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
18442
18443         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
18444         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
18445         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
18446         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
18447
18448 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
18449
18450         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
18451         fcntl.
18452
18453 2010-07-06  Andreas Schwab  <schwab@redhat.com>
18454
18455         [BZ #11577]
18456         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
18457         dl_signal_cerror.
18458
18459 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
18460
18461         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
18462         _PC_PIPE_BUF using F_GETPIPE_SZ.
18463
18464 2010-07-05  Roland McGrath  <roland@redhat.com>
18465
18466         * manual/arith.texi (Rounding Functions): Fix rint description
18467         implicit in round description.
18468
18469 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
18470
18471         * elf/Makefile: Fix linking for a few tests to make recent linker
18472         happy.
18473
18474 2010-06-30  Andreas Schwab  <schwab@redhat.com>
18475
18476         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
18477         $(common-objpfx)libc_nonshared.a.
18478
18479 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
18480
18481         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
18482         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
18483         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
18484         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
18485         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
18486         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
18487         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
18488         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
18489         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
18490         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
18491         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
18492         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
18493         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
18494         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
18495         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
18496         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
18497         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
18498         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
18499         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
18500         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
18501         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
18502         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
18503         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
18504         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
18505         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
18506         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
18507         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
18508         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
18509         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
18510         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
18511         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
18512         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
18513         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
18514         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
18515         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
18516         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
18517         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
18518         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
18519         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
18520         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
18521         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
18522         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
18523         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
18524         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
18525         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
18526         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
18527         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
18528         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
18529
18530 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
18531
18532         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
18533         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
18534         * string/memmove.c (memmove): Renamed to ...
18535         (MEMMOVE): ...this.  Default to memmove.
18536         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
18537         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
18538         (END_CHK): Define.
18539         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18540         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
18541         mempcpy-ssse3-back memmove-ssse3-back.
18542         * sysdeps/x86_64/multiarch/bcopy.S: New file .
18543         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
18544         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
18545         * sysdeps/x86_64/multiarch/memcpy.S: New file.
18546         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
18547         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
18548         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
18549         * sysdeps/x86_64/multiarch/memmove.c: New file.
18550         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
18551         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
18552         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
18553         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
18554         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
18555         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
18556         Define.
18557         (index_Fast_Copy_Backward): Define.
18558         (HAS_ARCH_FEATURE): Define.
18559         (HAS_FAST_REP_STRING): Define.
18560         (HAS_FAST_COPY_BACKWARD): Define.
18561
18562 2010-06-21  Andreas Schwab  <schwab@redhat.com>
18563
18564         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
18565         Restore proper fallback handling.
18566
18567 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
18568
18569         [BZ #11701]
18570         * posix/group_member.c (__group_member): Correct checking loop.
18571
18572         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
18573         OOM in getpwuid_r correctly.  Return error number when the caller
18574         should return, otherwise -1.
18575         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
18576         call returning > 0 value.
18577         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
18578
18579 2010-06-07  Andreas Schwab  <schwab@redhat.com>
18580
18581         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
18582         libc_nonshared.a from targets in modules-names.
18583
18584 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
18585
18586         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
18587         requires it.
18588
18589 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
18590
18591         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
18592         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
18593         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
18594         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
18595
18596 2010-06-02  Andreas Schwab  <schwab@redhat.com>
18597
18598         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
18599
18600 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
18601
18602         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
18603         and F_GETPIPE_SZ.
18604         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
18605         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
18606         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
18607         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
18608         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
18609         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
18610
18611 2010-06-14  Roland McGrath  <roland@redhat.com>
18612
18613         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
18614
18615 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
18616
18617         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
18618         __REDIRECT followed by __THROW.
18619         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
18620         * posix/getopt.h (getopt): Likewise.
18621
18622 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
18623
18624         * hurd/lookup-at.c (__file_name_lookup_at): Accept
18625         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
18626         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
18627         in AT_FLAGS.
18628         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
18629         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
18630
18631 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
18632
18633         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
18634
18635 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
18636
18637         [BZ #11640]
18638         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18639         Properly check family and model.
18640
18641 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
18642
18643         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
18644
18645 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
18646
18647         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
18648
18649 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
18650
18651         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
18652         symbol reference.
18653
18654 2010-05-19  Andreas Schwab  <schwab@redhat.com>
18655
18656         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
18657         symbol reference.
18658
18659 2010-05-21  Andreas Schwab  <schwab@redhat.com>
18660
18661         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
18662         and internal_recvmmsg.
18663         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
18664         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
18665         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
18666         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
18667
18668         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
18669         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
18670         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
18671
18672 2010-05-20  Andreas Schwab  <schwab@redhat.com>
18673
18674         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
18675
18676 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
18677
18678         POWER7 optimizations.
18679         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
18680         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
18681
18682 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
18683
18684         * version.h: Update for 2.13 development version.
18685
18686 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
18687
18688         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
18689         exceptions.  Return 0.
18690
18691 2010-05-07  Roland McGrath  <roland@redhat.com>
18692
18693         * elf/ldconfig.c (main): Add a const.
18694
18695 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
18696
18697         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
18698         (args_options): Add no-idn option.
18699         (ahosts_keys_int): Add idn_flags to ai_flags.
18700         (parse_option): Handle 'i' option to clear idn_flags.
18701
18702         * malloc/malloc.c (_int_free): Possible race in the most recently
18703         added check.  Only act on the data if no current modification
18704         happened.
18705
18706 See ChangeLog.17 for earlier changes.