Fix strtod rounding (bug 3479).
[platform/upstream/glibc.git] / ChangeLog
1 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
2
3         [BZ #3479]
4         * stdlib/strtod_l.c (NDIG): Remove.
5         (HEXNDIG): Likewise.
6         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
7         smallest representable value.
8         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
9         lie within an exact representation of 1/2 ulp of the result.
10         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
11         unconditionally.
12         (TENS_P9_IDX): Define unconditionally.
13         (TENS_P9_SIZE): Likewise.
14         (TENS_P10_IDX): Likewise.
15         (TENS_P10_SIZE): Likewise.
16         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
17         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
18         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
19         entries for 10^2^13 and 10^2^14.
20         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
21         (TENS_P13_IDX): Define.
22         (TENS_P13_SIZE): Likewise.
23         (TENS_P14_IDX): Likewise.
24         (TENS_P14_SIZE): Likewise.
25         (_fpioconst_pow10): Change array size to
26         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
27         unconditional.
28         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
29         1024]: Add entries for 10^2^13 and 10^2^14.
30         [LAST_POW10 > _LAST_POW10]: Remove #error.
31         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
32         (_fpioconst_pow10): Change array size to
33         FPIOCONST_POW10_ARRAY_SIZE.
34         * stdlib/gen-fpioconst.c: New file.
35         * stdlib/gen-tst-strtod-round.c: Likewise.
36         * stdlib/tst-strtod-round-data: Likewise.
37         * stdlib/tst-strtod-round.c: Likewise.
38         * stdlib/Makefile (tests): Add tst-strtod-round.
39
40         [BZ #14459]
41         * stdlib/strtod_l.c: Include <stdint.h>.
42         (NDEBUG): Do not define.
43         (round_and_return): Change EXPONENT parameter to type intmax_t.
44         Rearrange calculations to avoid internal overflow possibilities.
45         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
46         Rearrange calculations to avoid internal overflow possibilities.
47         Assert that number fits inside MPNSIZE limbs.
48         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
49         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
50         calculations and add assertions to avoid internal overflow
51         possibilities.  Add casts to avoid signed/unsigned operations.
52         * stdlib/tst-strtod-overflow.c: New file.
53         * stdlib/Makefile (tests): Add tst-strtod-overflow.
54
55 2012-08-25  Marek Polacek  <polacek@redhat.com>
56
57         * time/time.h: Fix some typos in comments.
58
59 2012-08-23  Roland McGrath  <roland@hack.frob.com>
60
61         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
62         * posix/tst-rfc3484-2.c: Likewise.
63         * posix/tst-rfc3484-3.c: Likewise.
64
65 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
66
67         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
68         (EF_ARM_ABI_FLOAT_HARD): Likewise.
69
70 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
71
72         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
73         #include of fxstatat64.c.
74
75 2012-08-22  Roland McGrath  <roland@hack.frob.com>
76
77         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
78         * shadow/getspent_r.c: Likewise.
79         * shadow/getspnam.c: Likewise.
80         * shadow/getspnam_r.c: Likewise.
81         * gshadow/getsgent.c: Likewise.
82         * gshadow/getsgent_r.c: Likewise.
83         * gshadow/getsgnam.c: Likewise.
84         * gshadow/getsgnam_r.c: Likewise.
85         * inet/getnetbyad.c: Likewise.
86         * inet/getnetbyad_r.c: Likewise.
87         * inet/getnetbynm.c: Likewise.
88         * inet/getnetbynm_r.c: Likewise.
89         * inet/getnetent.c: Likewise.
90         * inet/getnetent_r.c: Likewise.
91         * inet/getproto.c: Likewise.
92         * inet/getproto_r.c: Likewise.
93         * inet/getprtent.c: Likewise.
94         * inet/getprtent_r.c: Likewise.
95         * inet/getprtname.c: Likewise.
96         * inet/getprtname_r.c: Likewise.
97         * inet/getrpcbyname.c: Likewise.
98         * inet/getrpcbyname_r.c: Likewise.
99         * inet/getrpcbynumber.c: Likewise.
100         * inet/getrpcbynumber_r.c: Likewise.
101         * inet/getrpcent.c: Likewise.
102         * inet/getrpcent_r.c: Likewise.
103         * inet/getaliasent.c: Likewise.
104         * inet/getaliasent_r.c: Likewise.
105         * inet/getaliasname.c: Likewise.
106         * inet/getaliasname_r.c: Likewise.
107         * nscd/getgrgid_r.c: Likewise.
108         * nscd/getgrnam_r.c: Likewise.
109         * nscd/gethstbyad_r.c: Likewise.
110         * nscd/gethstbynm3_r.c: Likewise.
111         * nscd/getpwnam_r.c: Likewise.
112         * nscd/getpwuid_r.c: Likewise.
113         * nscd/getsrvbynm_r.c: Likewise.
114         * nscd/getsrvbypt_r.c: Likewise.
115         * nscd/gai.c: Likewise.
116
117         * configure.in (build_nscd): New substituted variable, set
118         by --disable-build-nscd and defaults to $use_nscd.
119         * configure: Regenerated.
120         * config.make.in (build-nscd): New substituted variable.
121         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
122         Change conditional to require [$(build-nscd) = yes] as well.
123         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
124
125         [BZ# 13696]
126         * configure.in (use_nscd): New substituted variable, set by
127         --disable-nscd.  If enabled, define USE_NSCD.
128         * configure: Regenerated.
129         * config.h.in: Add USE_NSCD.
130         * config.make.in (use-nscd): New substituted variable.
131         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
132         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
133         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
134         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
135         (CFLAGS-getgrnam_r.c): Likewise.
136         (CFLAGS-initgroups.c): Likewise.
137         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
138         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
139         Variables removed.
140         * inet/getnetgrent_r.c
141         (nscd_setnetgrent): New function, broken out of ...
142         (setnetgrent): ... here.  Call it.
143         (innetgr): Conditionalize nscd bits on [USE_NSCD].
144         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
145         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
146         * nscd/Makefile (routines, aux): Move definitions after include of
147         Makeconfig.  Conditionalize on [$(use-nscd) != no].
148         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
149         Conditionalize on [USE_NSCD].
150         (is_nscd, nscd_init_cb): Likewise.
151         (nss_load_library): Conditionalize init callback on [USE_NSCD].
152         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
153         * nss/nss_db/db-init.c: Likewise.
154         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
155         [USE_NSCD].
156         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
157         (make_request): Use it.
158         (cache_valid_p): New function.
159         (__check_pf): Use it.
160         * NEWS: Add item for --disable-nscd.
161
162 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
163
164         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
165         to support sed >= 4.2.1-20-ga9bf076.
166         * configure: Regenerated.
167
168 2012-08-22  Roland McGrath  <roland@hack.frob.com>
169
170         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
171         Conditionalize whole body on [IREL].
172
173 2012-08-22  Jeff Law <law@redhat.com>
174
175         [BZ #14505]
176         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
177         if the family is PF_UNSPEC.
178
179 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
180
181         * Makerules (lib-version): Rename from V.
182         (install-lib-nosubdir): Change V to lib-version.
183
184 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
185
186         [BZ #14252]
187         * powerpc32/power6/wcschr.c: New file.
188         * powerpc32/power6/wcscpy.c: New file.
189         * powerpc32/power6/wcsrchr.c: New file.
190         * powerpc64/power6/wcschr.c: New file.
191         * powerpc64/power6/wcscpy.c: New file.
192         * powerpc64/power6/wcsrchr.c: New file.
193
194 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
195
196         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
197         (two_way_short_needle): Use it.
198         * string/strstr.c (AVAILABLE1_USES_J): Define.
199         * string/strcasestr.c: Likewise.
200
201         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
202         array references.
203         * string/strcasestr.c (TOLOWER): Make side-effect safe.
204
205         [BZ #11607]
206         * NEWS: Add an entry.
207         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
208         define their defaults.
209         (two_way_short_needle): Detect end-of-string on-the-fly.
210         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
211         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
212         * string/bug-strcasestr1.c: New test.
213         * string/Makefile: Run it.
214
215 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
216
217         [BZ #11607]
218         * string/str-two-way.h (two_way_short_needle): Optimize matching of
219         the first character.
220
221 2012-08-21  Roland McGrath  <roland@hack.frob.com>
222
223         * csu/elf-init.c (__libc_csu_irel): Function removed.
224         * csu/libc-start.c (apply_irel): New function.
225         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
226
227 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
228
229         * sysdeps/unix/sysv/linux/kernel-features.h
230         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
231         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
232         <kernel-features.h>.
233         [__NR_fadvise64_64]: Make code unconditional.
234         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
235         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
236         !__NR_fadvise64_64)]: Likewise.
237         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
238         !__NR_fadvise64_64))]: Likewise.
239         [__NR_fadvise64]: Make code unconditional.
240         [!__NR_fadvise64]: Remove conditional code.
241         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
242         <kernel-features.h>.
243         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
244         unconditional.
245         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
246         conditional code.
247         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
248         not include <kernel-features.h>.
249         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
250         unconditional.
251         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
252         conditional code.
253         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
254         include <kernel-features.h>.
255         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
256         unconditional.
257         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
258         conditional code.
259
260 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
261
262         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
263         slight instruction rearrangements per scrollpipe analysis.
264         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
265
266 2012-08-20  Roland McGrath  <roland@hack.frob.com>
267
268         * manual/syslog.texi (syslog; vsyslog, closelog):
269         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
270         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
271
272         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
273         DSOCAPS to match condition on defining it.
274
275 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
276
277         * sysdeps/unix/sysv/linux/kernel-features.h
278         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
279         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
280         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
281         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
282         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
283         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
284         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
285         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
286         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
287         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
288
289         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
290         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
291
292         * sysdeps/unix/sysv/linux/kernel-features.h
293         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
294         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
295         unconditional.
296         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
297         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
298         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
299         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
300         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
301         Make code unconditional.
302         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
303         (__mmap64) [!__NR_mmap2]: Likewise.
304         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
305         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
306         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
307         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
308         [__NR_mmap2]: Make code unconditional.
309         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
310         (__mmap64) [!__NR_mmap2]: Likewise.
311
312 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
313
314         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
315
316 2012-08-18  Andreas Jaeger  <aj@suse.de>
317
318         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
319
320 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
321
322         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
323         * include/unistd.h (__have_sock_cloexec): Likewise.
324         (__have_pipe2): Likewise.
325         (__have_dup3): Likewise.
326
327 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
328
329         [BZ #9685]
330         * include/unistd.h (__have_pipe2): Change define into an extern int.
331         (__have_dup3): Likewise.
332         * socket/have_sock_cloexec.c: Include fcntl.h.
333         (__have_pipe2): New variable.
334         (__have_dup3): Likewise.
335
336 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
337
338         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
339
340 2012-08-17  Marek Polacek  <polacek@redhat.com>
341
342         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
343         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
344
345 2012-08-17  Roland McGrath  <roland@hack.frob.com>
346
347         * configure.in: Add AC_SUBST for sysheaders.
348         * configure: Regenerated.
349         * config.make.in (sysheaders): New substituted variable.
350
351         * sysdeps/unix/mkfifo.c: Moved ...
352         * sysdeps/posix/mkfifo.c: ... here.
353         * sysdeps/unix/mkfifoat.c: Moved ...
354         * sysdeps/posix/mkfifoat.c: ... here.
355
356         * sysdeps/unix/utime.c: Moved ...
357         * sysdeps/posix/utime.c: ... here.
358
359         * sysdeps/unix/time.c: Moved ...
360         * sysdeps/posix/time.c: ... here.
361         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
362         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
363
364         * sysdeps/unix/nice.c: Moved ...
365         * sysdeps/posix/nice.c: ... here.
366
367         * sysdeps/unix/alarm.c: Moved ...
368         * sysdeps/posix/alarm.c: ... here.
369
370         * intl/Makefile ($(codeset_mo)): Depend on the input file.
371
372 2012-08-17  Jeff Law <law@redhat.com>
373
374         * intl/Makefile (codeset_mo): New variable.
375         ($(codeset_mo)): New target.
376         (tst-codeset.out): Depend on that.  Remove explicit rule.
377         (tst-gettext3.out, tst-gettext5.out): Likewise.
378         (LOCPATH-ENV, tst-codeset-ENV): New variables.
379         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
380         * intl/tst-codeset.sh: Remove.
381         * intl/tst-gettext3.sh: Likewise.
382         * intl/tst-gettext5.sh: Likewise.
383
384 2012-08-17  Roland McGrath  <roland@hack.frob.com>
385
386         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
387         * sysdeps/unix/syscalls.list: ... here.
388
389         * sysdeps/posix/getaddrinfo.c
390         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
391         (gaiconf_init, gaiconf_reload): Use them.
392         [!_STATBUF_ST_NSEC]
393         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
394         Define using time_t rather than struct timespec.
395
396         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
397         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
398         Macros removed.
399         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
400         [!NO_THREADS].
401         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
402         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
403         Likewise.
404
405         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
406         __libc_cleanup_push argument.
407
408         * bits/param.h: New file.
409         * misc/sys/param.h: New file.
410         * include/sys/param.h: New file.
411         * misc/Makefile (headers): Add bits/param.h.
412         * sysdeps/generic/sys/param.h: File removed.
413         * sysdeps/unix/sysv/linux/bits/param.h: New file.
414         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
415         * sysdeps/mach/hurd/bits/param.h: New file.
416         * sysdeps/mach/hurd/sys/param.h: New file.
417
418         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
419         last change.
420
421         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
422         [_IO_MTSAFE_IO].
423         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
424         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
425         New macros.
426
427         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
428         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
429         rather than -D_IO_MTSAFE_IO conditionally.
430         * stdio-common/Makefile (CPPFLAGS): Likewise.
431         * wcsmbs/Makefile (CPPFLAGS): Likewise.
432         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
433         Use $(libio-mtsafe).
434         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
435         of -D_IO_MTSAFE_IO.
436         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
437         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
438         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
439         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
440         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
441         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
442         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
443         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
444         (CFLAGS-fread_u_chk.c): Likewise.
445         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
446         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
447         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
448         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
449         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
450         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
451         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
452         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
453         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
454
455         * libio/Makefile: Test [$(libc-reentrant) = yes]
456         instead of [$(filter %REENTRANT, $(defines)) nonempty].
457
458         * Makeconfig
459         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
460         * sysdeps/pthread/configure: File removed.
461         * sysdeps/pthread/Makeconfig: New file.
462         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
463         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
464
465 2012-08-16  Gary Benson  <gbenson@redhat.com>
466
467         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
468         unmapping the first object in a namespace.
469
470 2012-08-16  Roland McGrath  <roland@hack.frob.com>
471
472         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
473         (__internal_setnetgrent): ... this.  Add internal_function to
474         definition.  Add libc_hidden_def.
475         (setnetgrent): Update caller.
476         (internal_endnetgrent): Renamed to ...
477         (__internal_endnetgrent): ... this.  Add internal_function to
478         definition.  Add libc_hidden_def.
479         (endnetgrent): Update caller.
480         (internal_getnetgrent_r): Renamed to ...
481         (__internal_getnetgrent_r): ... this.  Add internal_function to
482         definition.  Add libc_hidden_def.
483         (__getnetgrent_r): Update caller.
484         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
485
486 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
487
488         * stdlib/longlong.h: Update from GCC.
489
490 2012-08-16  Roland McGrath  <roland@hack.frob.com>
491
492         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
493         on _QL, which is set by umul_ppmm but never used.
494         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
495         variables, which are set by GMP macros but never used.
496         * stdio-common/_itowa.c (_itowa): Likewise.
497         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
498         * stdlib/mod_1.c (mpn_mod_1): Likewise.
499
500 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
501
502         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
503         struct La_sh_regs is not constant.
504         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
505         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
506         and struct La_sparc64_regs are not constant.
507
508 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
509
510         * sysdeps/unix/sysv/linux/kernel-features.h
511         (__ASSUME_POSIX_TIMERS): Remove.
512         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
513         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
514         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
515         Make code unconditional.
516         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
517         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
518         Make code unconditional.
519         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
520         * sysdeps/unix/sysv/linux/clock_nanosleep.c
521         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
522         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
523         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
524         Make code unconditional.
525         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
526         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
527         (__libc_missing_posix_timers): Remove.
528
529 2012-08-15  Roland McGrath  <roland@hack.frob.com>
530
531         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
532         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
533
534         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
535
536         * elf/dl-sym.c: Include <stdlib.h>.
537
538         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
539         constants, which avoids warnings in 32-bit builds.
540
541         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
542         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
543
544         * misc/lseek.c: File moved to ...
545         * io/lseek.c: ... here.
546
547         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
548
549         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
550         shifting LEN more than 31 bits at once.
551
552 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
553
554         [BZ #14195]
555         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
556         segmentation fault for a case of two empty input strings.
557         * string/test-strncasecmp.c (check1): Renamed to...
558         (bz12205): ...this.
559         (bz14195): Add new testcase for two empty input strings and N > 0.
560         (test_main): Call new testcase, adapt for renamed function.
561
562 2012-08-15  Andreas Jaeger  <aj@suse.de>
563
564         [BZ #14090]
565         * crypt/md5test2.c: New test, based on test supplied by Serge
566         Belyshev <belyshev@depni.sinp.msu.ru>.
567         * crypt/Makefile (xtests): Add md5test-giant..
568         * crypt/Makefile ($(objpfx)md5test-giant): Add.
569
570 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
571
572         [BZ #14090]
573         * crypt/md5.c (md5_process_block): Don't assume the buffer
574         length is less than 2**32.
575         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
576         length is less than 2**64.
577
578 2012-08-15  Roland McGrath  <roland@hack.frob.com>
579
580         * string/str-two-way.h: Include <sys/param.h>.
581         (MAX): Macro removed.
582
583         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
584         Move #define and #undef of memmove to just before and after
585         including <string.h>.
586
587         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
588         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
589         and after including <string.h>.  Move declarations of
590         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
591         to before #include "string/memmove.c".
592
593         * include/dirent.h: Declare __getdirentries.
594
595         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
596         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
597
598 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
599
600         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
601         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
602         * sysdeps/i386/configure: Regenerated.
603         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
604         STABS_CURRENT_FILE, and STABS_FUN.
605         (END): Remove call to STABS_FUN_END.
606         (STABS_CURRENT_FILE1): Delete.
607         (STABS_CURRENT_FILE): Likewise.
608         (STABS_FUN): Likewise.
609         (STABS_FUN_END): Likewise.
610         (STABS_FUN2): Likewise.
611         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
612         * sysdeps/x86_64/configure: Regenerated.
613
614 2012-08-14  Roland McGrath  <roland@hack.frob.com>
615
616         * elf/dl-open.c: Include <atomic.h>.
617         * elf/dl-lookup.c: Likewise.
618
619 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
620
621         * sysdeps/unix/sysv/linux/kernel-features.h
622         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
623         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
624         unconditionally.
625         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
626         unconditionally.
627         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
628         condition on __ASSUME_CLONE_THREAD_FLAGS.
629
630 2012-08-14  Andreas Jaeger  <aj@suse.de>
631
632         * sysdeps/i386/fpu/libm-test-ulps: Update.
633
634 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
635
636         * include/atomic.h (atomic_exchange_and_add): Split into ...
637         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
638         New atomic macros.
639
640 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
641
642         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
643
644 2012-08-13  Jeff Law <law@redhat.com>
645
646         * manual/stdio.texi (snprintf): Clarify handling of the trailing
647         null byte in the output string.
648
649 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
650
651         * sysdeps/unix/sysv/linux/kernel-features.h
652         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
653         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
654         (__ASSUME_ARG_MAX_STACK_BASED): Define.
655         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
656         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
657         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
658         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
659
660 2012-08-09  Jeff Law <law@redhat.com>
661
662         [BZ #13939]
663         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
664         When avoid_arena is set, don't retry in the that arena.  Pick the
665         next one, whatever it might be.
666         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
667         (arena_lock): Pass in new parameter to arena_get2.
668         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
669         arena_get2.
670         (__libc_malloc): Unify retrying after main arena failure with
671         __libc_memalign version.
672         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
673
674 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
675
676         [BZ #14166]
677         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
678         to __redirect_strstr.
679         (__strstr_sse42): Use typeof __redirect_strstr.
680         (__strstr_ia32): Likewise.
681         (__libc_strstr): New prototype.
682         (strstr): Renamed to ...
683         (__libc_strstr): This.
684         (strstr): New strong alias of __libc_strstr.
685         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
686         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
687         __redirect_time.
688         Include <time.h>.
689         (__libc_time): New prototype.
690         (time_ifunc): Replace time with __libc_time.
691         (time): New strong alias and hidden definition of __libc_time.
692         (__GI_time): Remove strong alias.
693         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
694         Include <stddef.h>.
695         (memmove): Redefined to __redirect_memmove.
696         (__memmove_sse2): Use typeof __redirect_memmove.
697         (__memmove_ssse3): Likewise.
698         (__memmove_ssse3_back): Likewise.
699         (__libc_memmove): New prototype.
700         (memmove): Renamed to ...
701         (__libc_memmove): This.
702         (memmove): New strong alias of __libc_memmove.
703
704 2012-08-08  Mark Salter  <msalter@redhat.com>
705
706         * elf/elf.h
707         (R_MN10300_TLS_GD): Define.
708         (R_MN10300_TLS_LD): Likewise.
709         (R_MN10300_TLS_LDO): Likewise.
710         (R_MN10300_TLS_GOTIE): Likewise.
711         (R_MN10300_TLS_IE): Likewise.
712         (R_MN10300_TLS_LE): Likewise.
713         (R_MN10300_TLS_DTPMOD): Likewise.
714         (R_MN10300_TLS_DTPOFF): Likewise.
715         (R_MN10300_TLS_TPOFF): Likewise.
716         (R_MN10300_SYM_DIFF): Likewise.
717         (R_MN10300_ALIGN): Likewise.
718         (R_MN10300_NUM): Update.
719
720 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
721
722         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
723         Remove.
724
725 2012-08-08  Roland McGrath  <roland@hack.frob.com>
726
727         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
728
729         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
730         sysdeps/unix -> sysdeps/posix move.
731         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
732
733 2012-08-07      Allan McRae     <allan@archlinux.org>
734
735         [BZ #14303]
736         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
737         (SUNOS_CPP): Likewise.
738         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
739         not found.
740         (open_input): Call CPP using execvp.
741
742 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
743
744         * sysdeps/unix/sysv/linux/kernel-features.h
745         (__ASSUME_PROT_GROWSUPDOWN): Remove.
746         (__ASSUME_NO_CLONE_DETACHED): Likewise.
747         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
748         (__ASSUME_WAITID_SYSCALL): Likewise.
749         * sysdeps/unix/sysv/linux/dl-execstack.c
750         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
751         code unconditional.
752         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
753         conditional code.
754         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
755         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
756         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
757         code.
758         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
759         unconditional.
760         [__ASSUME_WAITID_SYSCALL]: Likewise.
761         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
762
763 2012-08-07  Roland McGrath  <roland@hack.frob.com>
764
765         * sysdeps/unix/closedir.c: Renamed to ...
766         * sysdeps/posix/closedir.c: ... here.
767         * sysdeps/unix/dirfd.c: Renamed to ...
768         * sysdeps/posix/dirfd.c: ... here.
769         * sysdeps/unix/dirstream.h: Renamed to ...
770         * sysdeps/posix/dirstream.h: ... here.
771         * sysdeps/unix/fdopendir.c: Renamed to ...
772         * sysdeps/posix/fdopendir.c: ... here.
773         * sysdeps/unix/opendir.c: Renamed to ...
774         * sysdeps/posix/opendir.c: ... here.
775         * sysdeps/unix/readdir.c: Renamed to ...
776         * sysdeps/posix/readdir.c: ... here.
777         * sysdeps/unix/readdir_r.c: Renamed to ...
778         * sysdeps/posix/readdir_r.c: ... here.
779         * sysdeps/unix/rewinddir.c: Renamed to ...
780         * sysdeps/posix/rewinddir.c: ... here.
781         * sysdeps/unix/seekdir.c: Renamed to ...
782         * sysdeps/posix/seekdir.c: ... here.
783         * sysdeps/unix/telldir.c: Renamed to ...
784         * sysdeps/posix/telldir.c: ... here.
785         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
786         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
787         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
788         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
789
790         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
791         * bits/fcntl.h: ... here.
792
793         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
794         not 0.
795         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
796         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
797         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
798         (struct flock): Move l_start, l_len to the beginning.
799         Use __pid_t for l_pid.
800         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
801         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
802         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
803         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
804         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
805         [__USE_LARGEFILE64] (struct flock64): New type.
806         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
807
808         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
809         * bits/dirent.h: ... here.
810
811         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
812         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
813
814 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
815
816         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
817         Change from 2.6.0 to 2.6.16.
818         * sysdeps/unix/sysv/linux/configure: Regenerated.
819         * sysdeps/unix/sysv/linux/kernel-features.h
820         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
821         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
822         version.
823         (__ASSUME_UTIMES): Likewise.
824         (__ASSUME_CLONE_STOPPED): Remove.
825         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
826         architectures, not kernel version.
827         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
828         (__ASSUME_NO_CLONE_DETACHED): Likewise.
829         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
830         (__ASSUME_WAITID_SYSCALL): Likewise.
831         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
832         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
833         * README: State 2.6.16 as minimum Linux kernel version.  Do not
834         refer to older versions.
835
836 2012-08-06  Roland McGrath  <roland@hack.frob.com>
837
838         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
839         Define alphasort64 as an alias.
840         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
841         Define versionsort64 as an alias.
842         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
843         Define scandir64 as an alias.
844         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
845         Define scandirat64 as an alias.
846         * dirent/alphasort64.c (alphasort64):
847         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
848         * dirent/versionsort64.c: Likewise.
849         * dirent/scandir64.c: Likewise.
850         * dirent/scandirat64.c: Likewise.
851         * sysdeps/wordsize-64/alphasort.c: File removed.
852         * sysdeps/wordsize-64/alphasort64.c: File removed.
853         * sysdeps/wordsize-64/scandir.c: File removed.
854         * sysdeps/wordsize-64/scandir64.c: File removed.
855         * sysdeps/wordsize-64/scandirat.c: File removed.
856         * sysdeps/wordsize-64/scandirat64.c: File removed.
857         * sysdeps/wordsize-64/versionsort.c: File removed.
858         * sysdeps/wordsize-64/versionsort64.c: File removed.
859         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
860         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
861         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
862         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
863         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
864         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
865         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
866         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
867
868         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
869         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
870         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
871         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
872         [defined __arch64__ || defined __sparcv9]
873         (__INO_T_MATCHES_INO64_T): New macro.
874         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
875         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
876         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
877         * sysdeps/unix/sysv/linux/bits/dirent.h
878         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
879         (_DIRENT_MATCHES_DIRENT64): New macro.
880
881         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
882         Define lockf64 as an alias.
883         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
884         Define fseeko64 as an alias.
885         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
886         Define ftello64 as an alias.
887         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
888         Define _IO_fgetpos64 and fgetpos64 as aliases.
889         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
890         Define _IO_fsetpos64 and fsetpos64 as aliases.
891         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
892         Conditionalize body on this.
893         * libio/fseeko64.c: Likewise.
894         * libio/ftello64.c: Likewise.
895         * libio/iofgetpos64.c: Likewise.
896         * libio/iofsetpos64.c: Likewise.
897         * sysdeps/wordsize-64/lockf.c: File removed.
898         * sysdeps/wordsize-64/lockf64.c: File removed.
899         * sysdeps/wordsize-64/fseeko.c: File removed.
900         * sysdeps/wordsize-64/fseeko64.c: File removed.
901         * sysdeps/wordsize-64/ftello.c: File removed.
902         * sysdeps/wordsize-64/ftello64.c: File removed.
903         * sysdeps/wordsize-64/iofgetpos.c: File removed.
904         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
905         * sysdeps/wordsize-64/iofsetpos.c: File removed.
906         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
907         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
908         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
909         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
910         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
911         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
912         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
913         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
914         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
915         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
916         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
917
918         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
919         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
920         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
921         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
922         [defined __arch64__ || defined __sparcv9]
923         (__OFF_T_MATCHES_OFF64_T): New macro.
924         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
925         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
926         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
927         (__OFF_T_MATCHES_OFF64_T): New macro.
928
929 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
930
931         * stdlib/secure-getenv.c (__secure_getenv): Replace
932         GLIBC_2_16 with GLIBC_2_17.
933
934 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
935
936         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
937         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
938
939 2012-08-03  David S. Miller  <davem@davemloft.net>
940
941         * sysdeps/sparc/fpu/libm-test-ulps: Update.
942
943 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
944
945         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
946         Remove.
947         (__ASSUME_CORRECT_SI_PID): Likewise.
948         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
949         (__ASSUME_TMPFS_NAME): Likewise.
950         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
951         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
952         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
953         (HAVE_AUX_SECURE): Make definition unconditional.
954         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
955         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
956
957 2012-08-03  Roland McGrath  <roland@hack.frob.com>
958
959         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
960         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
961         * sysdeps/mach/hurd/eloop-threshold.h: New file.
962         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
963         __eloop_threshold instead of SYMLOOP_MAX.
964
965         * sysdeps/generic/eloop-threshold.h: New file.
966         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
967         of MAXSYMLINKS.
968         * elf/chroot_canon.c (chroot_canon): Likewise.
969
970 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
971
972         [BZ #13717]
973         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
974         Change to 2.6.0 everywhere.
975         * sysdeps/unix/sysv/linux/configure: Regenerated.
976         * sysdeps/unix/sysv/linux/kernel-features.h
977         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
978         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
979         kernel versions.
980         (__ASSUME_POSIX_TIMERS): Define unconditionally.
981         (__ASSUME_FUTEX_REQUEUE): Remove.
982         (__ASSUME_STATFS64): Define unconditionally.
983         (__ASSUME_AT_SECURE): Likewise.
984         (__ASSUME_CORRECT_SI_PID): Likewise.
985         (__ASSUME_TGKILL): Define without depending on kernel version for
986         i386.
987         (__ASSUME_UTIMES): Likewise.
988         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
989         kernel version.
990         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
991         (__ASSUME_TMPFS_NAME): Likewise.
992         * README: Update reference to Linux kernel versions.
993
994 2012-08-02  Marek Polacek  <polacek@redhat.com>
995
996         [BZ# 14150]
997         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
998         libc_cv_asm_type_prefix with %.
999         * configure: Regenerated.
1000         * include/libc-symbols.h: Remove comment about
1001         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
1002         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
1003         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
1004         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
1005         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
1006         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
1007         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
1008         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
1009         * elf/tst-unique2mod1.c: Likewise.
1010         * elf/tst-unique1mod2.c: Likewise.
1011         * elf/tst-unique1mod1.c: Likewise.
1012         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
1013         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
1014         Replace ASM_TYPE_DIRECTIVE with .type.
1015         * sysdeps/s390/s390-64/sysdep.h: Likewise.
1016         * sysdeps/i386/sysdep.h: Likewise.
1017         * sysdeps/x86_64/sysdep.h: Likewise.
1018         * sysdeps/sh/sysdep.h: Likewise.
1019         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
1020         Do not define ASM_TYPE_DIRECTIVE.
1021         * sysdeps/powerpc/sysdep.h: Likewise.
1022         * sysdeps/powerpc/powerpc32/sysdep.h:
1023         Replace ASM_TYPE_DIRECTIVE with .type.
1024         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
1025         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
1026         * sysdeps/i386/fpu/e_powf.S: Likewise.
1027         * sysdeps/i386/fpu/e_expl.S: Likewise.
1028         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
1029         * sysdeps/i386/fpu/e_acosh.S: Likewise.
1030         * sysdeps/i386/fpu/e_pow.S: Likewise.
1031         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
1032         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
1033         * sysdeps/i386/fpu/s_expm1.S: Likewise.
1034         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
1035         * sysdeps/i386/fpu/e_log2.S: Likewise.
1036         * sysdeps/i386/fpu/e_log2l.S: Likewise.
1037         * sysdeps/i386/fpu/e_scalb.S: Likewise.
1038         * sysdeps/i386/fpu/e_powl.S: Likewise.
1039         * sysdeps/i386/fpu/e_log10f.S: Likewise.
1040         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
1041         * sysdeps/i386/fpu/e_logl.S: Likewise.
1042         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
1043         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
1044         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
1045         * sysdeps/i386/fpu/e_log2f.S: Likewise.
1046         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
1047         * sysdeps/i386/fpu/e_log.S: Likewise.
1048         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
1049         * sysdeps/i386/fpu/e_logf.S: Likewise.
1050         * sysdeps/i386/fpu/e_log10l.S: Likewise.
1051         * sysdeps/i386/fpu/e_atanh.S: Likewise.
1052         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
1053         * sysdeps/i386/fpu/e_log10.S: Likewise.
1054         * sysdeps/i386/fpu/s_frexp.S: Likewise.
1055         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
1056         * sysdeps/i386/fpu/s_asinh.S: Likewise.
1057         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
1058         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
1059         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
1060         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
1061         * sysdeps/i386/i686/strtok.S: Likewise.
1062         * sysdeps/i386/i386-mcount.S: Likewise.
1063         * sysdeps/i386/strtok.S: Likewise.
1064         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
1065         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
1066         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
1067         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
1068         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
1069         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
1070         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
1071         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
1072         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
1073         * sysdeps/x86_64/_mcount.S: Likewise.
1074         * sysdeps/x86_64/strtok.S: Likewise.
1075         * sysdeps/sh/_mcount.S: Likewise.
1076
1077 2012-08-01  Roland McGrath  <roland@hack.frob.com>
1078
1079         * libio/iofopen.c: Include <fcntl.h>.
1080         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
1081         (_IO_fopen64, fopen64): Define as aliases.
1082         * libio/iofopen64.c: Include <fcntl.h>.
1083         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
1084         Conditionalize body on this.
1085         * sysdeps/wordsize-64/iofopen.c: File removed.
1086         * sysdeps/wordsize-64/iofopen64.c: File removed.
1087
1088 2012-08-01  Marek Polacek  <polacek@redhat.com>
1089
1090         * libc/Makeconfig: Use elf in place of binfmt-subdir.
1091         Use dlfcn directly instead of a variable.
1092         (binfmt-subdir): Do not define.
1093         (dlfcn): Likewise.
1094
1095 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
1096
1097         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
1098         Remove all definitions.
1099         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
1100         <kernel-features.h>.
1101         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
1102         (miss_F_GETOWN_EX): Remove all definitions.
1103         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
1104         macro definition.
1105         [!__ASSUME_FCNTL64]: Remove conditional code.
1106         [__ASSUME_FCNTL64]: Make code unconditional.
1107         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
1108         <kernel-features.h>.
1109         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
1110         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
1111         (lockf64) [__NR_fcntl64]: Make code unconditional.
1112         (lockf64) [__ASSUME_FCNTL64]: Likewise.
1113
1114         * sysdeps/unix/sysv/linux/kernel-features.h
1115         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
1116         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
1117         Make code unconditional.
1118         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
1119         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
1120         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
1121         [__NR_vfork]: Make code unconditional.
1122         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
1123         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
1124         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
1125         [__NR_vfork]: Make code unconditional.
1126         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
1127         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
1128
1129 2012-08-01  Roland McGrath  <roland@hack.frob.com>
1130
1131         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
1132         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
1133
1134         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
1135         Define mkstemp64 as an alias.
1136         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
1137         Define mkstemps64 as an alias.
1138         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
1139         Define mkostemp64 as an alias.
1140         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
1141         Define mkostemps64 as an alias.
1142         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
1143         Conditionalize body on this.
1144         * misc/mkostemp64.c: Likewise.
1145         * misc/mkostemps64.c: Likewise.
1146         * misc/mkstemps64.c: Likewise.
1147         * sysdeps/wordsize-64/mkstemp64.c: File removed.
1148         * sysdeps/wordsize-64/mkostemp64.c: File removed.
1149         * sysdeps/wordsize-64/mkostemp.c: File removed.
1150         * sysdeps/wordsize-64/mkstemp.c: File removed.
1151         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
1152         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
1153         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
1154         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
1155
1156         [BZ #14138]
1157         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
1158         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
1159         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
1160         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
1161
1162         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
1163         compat_symbol macros from <shlib-compat.h> rather than the underlying
1164         default_symbol_version and symbol_version macros, so that DEFAULT
1165         lines in shlib-versions are respected.
1166         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
1167
1168 2012-08-01  Florian Weimer  <fweimer@redhat.com>
1169
1170         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
1171         Declare with warn_unused_result.
1172         (setgid, setregid, setegid, setresgid): Likewise.
1173         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
1174         Likewise.
1175         * WUR-REPORT: Remove set*id functions.
1176
1177 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
1178
1179         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
1180
1181 2012-07-31  Roland McGrath  <roland@hack.frob.com>
1182
1183         * include/sys/socket.h (__libc_accept, __libc_accept4):
1184         Add attribute_hidden.
1185         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
1186
1187         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
1188         use of PTR_MANGLE.
1189         * inet/getnetgrent_r.c (setup): Likewise.
1190
1191         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
1192
1193 2012-07-31  David S. Miller  <davem@davemloft.net>
1194
1195         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1196
1197 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
1198
1199         [BZ #13629]
1200         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
1201         value between 1.0 and 2.0 and smaller part has absolute value less
1202         than 1.0.
1203         * math/s_clog10.c (__clog10): Likewise.
1204         * math/s_clog10f.c (__clog10f): Likewise.
1205         * math/s_clog10l.c (__clog10l): Likewise.
1206         * math/s_clogf.c (__clogf): Likewise.
1207         * math/s_clogl.c (__clogl): Likewise.
1208         * math/libm-test.inc (clog_test): Add more tests.
1209         (clog10_test): Likewise.
1210         * sysdeps/i386/fpu/libm-test-ulps: Update.
1211         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1212
1213 2012-07-31  Florian Weimer  <fweimer@redhat.com>
1214
1215         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
1216         Exit with zero in case no suitable GID is found, and write a
1217         message to standard error.
1218
1219 2012-07-30  Roland McGrath  <roland@hack.frob.com>
1220
1221         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
1222         rather than to 1.
1223         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
1224         (MAXPATHLEN): Removed.
1225         (NOGROUP, NODEV): New macros.
1226         (setbit, clrbit, isset, isclr): New macros.
1227         (howmany, roundup, powerof2): New macros.
1228         (DEV_BSIZE): New macro.
1229
1230         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
1231         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
1232
1233         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
1234         definition on [!__NO_LONG_DOUBLE_MATH].
1235
1236         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
1237         PTR_MANGLE and PTR_DEMANGLE.
1238
1239         * socket/accept4.c (accept4): Rename to __libc_accept4.
1240         Define accept4 as a weak alias.
1241
1242         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
1243         on [_DIRENT_HAVE_D_TYPE].
1244         * io/ftw.c (ftw_dir): Likewise.
1245
1246         * io/xmknod.c (__xmknod): Don't check PATH for being null.
1247
1248         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
1249
1250         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
1251         Use the BSD numbers rather than the arbitrary ones we had.
1252         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
1253         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
1254         (SIGXCPU, SIGXFSZ): New macros.
1255         (_NSIG): Now 32.
1256
1257         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
1258         initializer on [_LIBC_REENTRANT].
1259
1260         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
1261         definitions inside [_POSIX_MAPPED_FILES].
1262
1263         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
1264
1265         * dirent/opendir.c: Include <fcntl.h>.
1266
1267         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
1268         (__libc_getspecific): Likewise.
1269         (__libc_key_create): Likewise.
1270
1271         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
1272         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
1273         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
1274         (tmpfile64): Define as alias.
1275         * sysdeps/wordsize-64/tmpfile.c: File removed.
1276         * sysdeps/wordsize-64/tmpfile64.c: File removed.
1277         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
1278         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
1279
1280         * stdio-common/vfscanf.c: Include <stdbool.h>.
1281         * nss/makedb.c: Likewise.
1282         * stdio-common/_i18n_number.h: Likewise.
1283         * argp/argp-help.c: Likewise.
1284         * posix/wordexp.c: Likewise.
1285         * sysdeps/posix/spawni.c: Likewise.
1286         * nss/nss_files/files-initgroups.c: Likewise.
1287         * stdio-common/reg-modifier.c: Include <stdlib.h>.
1288         * nss/nss_files/files-initgroups.c: Likewise.
1289         * nss/nss_db/db-netgrp.c: Likewise.
1290         * nss/nss_db/db-initgroups.c: Likewise.
1291         * io/fchmodat.c: Include <sys/stat.h>.
1292
1293         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
1294         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
1295
1296         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
1297         [HAVE_MMAP].
1298
1299         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
1300         Add multiple inclusion protection.
1301
1302 2012-07-27  David S. Miller  <davem@davemloft.net>
1303
1304         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1305
1306 2012-07-27  Gary Benson  <gbenson@redhat.com>
1307
1308         [BZ #14298]
1309         * elf/rtld.c: Include <stap-probe.h>.
1310         (dl_main): Added static probes "init_start" and "init_complete".
1311         * elf/dl-load.c: Include <stap-probe.h>.
1312         (lose): Take new parameter "nsid".
1313         Added static probe "map_failed".
1314         (_dl_map_object_from_fd): Pass namespace id to lose.
1315         Added static probe "map_start".
1316         (open_verify): Pass namespace id to lose.
1317         * elf/dl-open.c: Include <stap-probe.h>.
1318         (dl_open_worker) Added static probes "map_complete", "reloc_start"
1319         and "reloc_complete".
1320         * elf/dl-close.c: Include <stap-probe.h>.
1321         (_dl_close_worker): Added static probes "unmap_start" and
1322         "unmap_complete".
1323         * elf/rtld-debugger-interface.txt: New file documenting the above.
1324
1325 2012-07-26  Roland McGrath  <roland@hack.frob.com>
1326
1327         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
1328         rather than a string variable.
1329         * sunrpc/rpc_main.c (h_output): Likewise.
1330         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
1331
1332 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
1333
1334         * inet/check_native.c: New file.
1335
1336 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
1337
1338         [BZ #13629]
1339         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
1340         if larger part has absolute value 1.0.
1341         * math/s_clog10.c (__clog10): Likewise.
1342         * math/s_clog10f.c (__clog10f): Likewise.
1343         * math/s_clog10l.c (__clog10l): Likewise.
1344         * math/s_clogf.c (__clogf): Likewise.
1345         * math/s_clogl.c (__clogl): Likewise.
1346         * math/libm-test.inc (clog_test): Add more tests.
1347         (clog10_test): Likewise.
1348         * sysdeps/i386/fpu/libm-test-ulps: Update.
1349         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1350
1351         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
1352         (pltexit): Likewise.
1353         (La_regs): Likewise.
1354         (La_retval): Likewise.
1355         (int_retval): Likewise.
1356         Update #error for removed macros to refer only to definitions in
1357         tst-audit.h.
1358         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
1359         macro.
1360         (pltexit): Likewise.
1361         (La_regs): Likewise.
1362         (La_retval): Likewise.
1363         (int_retval): Likewise.
1364         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
1365         macro.
1366         (pltexit): Likewise.
1367         (La_regs): Likewise.
1368         (La_retval): Likewise.
1369         (int_retval): Likewise.
1370         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
1371         macro.
1372         (pltexit): Likewise.
1373         (La_regs): Likewise.
1374         (La_retval): Likewise.
1375         (int_retval): Likewise.
1376         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
1377         macro.
1378         (pltexit): Likewise.
1379         (La_regs): Likewise.
1380         (La_retval): Likewise.
1381         (int_retval): Likewise.
1382         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
1383         macro.
1384         (pltexit): Likewise.
1385         (La_regs): Likewise.
1386         (La_retval): Likewise.
1387         (int_retval): Likewise.
1388         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
1389         macro.
1390         (pltexit): Likewise.
1391         (La_regs): Likewise.
1392         (La_retval): Likewise.
1393         (int_retval): Likewise.
1394         * sysdeps/generic/tst-audit.h: Update comment to refer only to
1395         macro definitions in tst-audit.h.
1396         * sysdeps/i386/tst-audit.h: New file.
1397         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
1398         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
1399         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
1400         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
1401         * sysdeps/sh/tst-audit.h: Likewise.
1402         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
1403         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
1404         * sysdeps/x86_64/tst-audit.h: Likewise.
1405
1406 2012-07-26  Andreas Jaeger  <aj@suse.de>
1407
1408         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
1409         ptrace.
1410
1411         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
1412         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
1413         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
1414         PTRACE_O_MASK.
1415         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
1416         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
1417         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
1418
1419         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
1420         value.
1421
1422         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
1423         _sigsys.
1424         (si_call_addr, si_syscall, si_arch): Define new macro.
1425         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
1426         _sigsys.
1427         (si_call_addr, si_syscall, si_arch): Define new marcro.
1428         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
1429         _sigsys.
1430         (si_call_addr, si_syscall, si_arch): Define new macro.
1431         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
1432         _sigsys.
1433         (si_call_addr, si_syscall, si_arch): Define new macro.
1434
1435 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
1436
1437         [BZ #13717]
1438         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
1439         Change to 2.4.21 where previously 2.4.1.
1440         * sysdeps/unix/sysv/linux/configure: Regenerated.
1441         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
1442         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
1443         Linux kernel version.
1444         (__ASSUME_STD_AUXV): Remove.
1445         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
1446         kernel version.
1447         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
1448         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
1449         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
1450         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
1451         (__ASSUME_NETLINK_SUPPORT): Likewise.
1452         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
1453         (__no_netlink_support): Remove conditional definition.
1454         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
1455         Remove.
1456         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
1457         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
1458         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
1459         (if_nameindex_ioctl): Remove.
1460         (if_nameindex_netlink): Do not handle __no_netlink_support.
1461         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
1462         code.
1463         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
1464         Remove conditional code.
1465         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
1466         code.
1467         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
1468         unconditional.
1469         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
1470         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
1471         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
1472         Remove.
1473         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
1474         [!__ASSUME_STD_AUXV]: Remove conditional code.
1475         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
1476         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
1477         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
1478         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
1479         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
1480         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
1481         code.
1482         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
1483         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
1484         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
1485         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
1486         conditional code.
1487         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
1488         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
1489         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
1490         code.
1491         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
1492         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
1493         conditional code.
1494         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
1495         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
1496         code unconditional.
1497         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
1498         conditional code.
1499         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
1500         unconditional.
1501         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
1502         conditional code.
1503         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
1504         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
1505         unconditional.
1506         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
1507         conditional code.
1508         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
1509         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
1510         code unconditional.
1511         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
1512         conditional code.
1513         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
1514         unconditional.
1515         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
1516         conditional code.
1517         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
1518         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
1519         code unconditional.
1520         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
1521         conditional code.
1522         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
1523         unconditional.
1524         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
1525         conditional code.
1526
1527 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
1528
1529         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
1530         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
1531         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
1532         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
1533         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
1534         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
1535         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
1536         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
1537         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
1538         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
1539         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
1540         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
1541         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
1542         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
1543         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
1544         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
1545         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
1546         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
1547         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
1548         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
1549         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
1550         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
1551         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
1552
1553 2012-07-25  Florian Weimer  <fweimer@redhat.com>
1554
1555         * Versions.def: Add GLIBC_2.17.
1556         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
1557         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
1558         Introduce __libc_secure_getenv.
1559         * stdlib/Versions (2.17): Add secure_getenv
1560         (GLIBC_PRIVATE): Add __libc_secure_getenv.
1561         * stdlib/secure-getenv.c: Rename __secure_getenv to
1562         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
1563         symbol __secure_getenv for GLIBC_2.0.
1564         * stdlib/tst-secure-getenv.c: New.
1565         * stdlib/Makefile (tests): Add testcase.
1566         * manual/startup.texi (Environment Access): Document
1567         secure_getenv.
1568         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
1569         __libc_secure_getenv.
1570         * inet/ruserpass.c (ruserpass): Likewise.
1571         * malloc/mtrace.c (mtrace): Likewise.
1572         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
1573         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
1574         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
1575         * sysdeps/posix/tempname.c: Likewise.  Evaluate
1576         HAVE_SECURE_GETENV.
1577         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
1578         __secure_getenv to __libc_secure_getenv.
1579         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
1580         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
1581         Likewise.
1582         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
1583         Likewise.
1584         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
1585         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
1586         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
1587         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
1588         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
1589         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
1590         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
1591
1592 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
1593
1594         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
1595         (struct La_i86_retval): Likewise.
1596         (struct La_x86_64_regs): Likewise.
1597         (struct La_x86_64_retval): Likewise.
1598         (struct La_x32_regs): Likewise.
1599         (struct La_x32_retval): Likewise.
1600         (struct La_ppc32_regs): Likewise.
1601         (struct La_ppc32_retval): Likewise.
1602         (struct La_ppc64_regs): Likewise.
1603         (struct La_ppc64_retval): Likewise.
1604         (struct La_sh_regs): Likewise.
1605         (struct La_sh_retval): Likewise.
1606         (struct La_s390_32_regs): Likewise.
1607         (struct La_s390_32_retval): Likewise.
1608         (struct La_s390_64_regs): Likewise.
1609         (struct La_s390_64_retval): Likewise.
1610         (struct La_sparc32_regs): Likewise.
1611         (struct La_sparc32_retval): Likewise.
1612         (struct La_sparc64_regs): Likewise.
1613         (struct La_sparc64_retval): Likewise.
1614         (struct audit_ifaces): Remove architecture-specific pltenter and
1615         pltexit members.
1616         * sysdeps/i386/ldsodefs.h: New file.
1617         * sysdeps/powerpc/ldsodefs.h: Likewise.
1618         * sysdeps/s390/ldsodefs.h: Likewise.
1619         * sysdeps/sh/ldsodefs.h: Likewise.
1620         * sysdeps/sparc/ldsodefs.h: Likewise.
1621         * sysdeps/x86_64/ldsodefs.h: Likewise.
1622
1623 2012-07-25  Marek Polacek  <polacek@redhat.com>
1624
1625         [BZ #6808]
1626         * math/libm-test.inc (yn_test): Add another test.
1627         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
1628         to ERANGE when the result is +-Inf.
1629         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
1630         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
1631         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
1632         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
1633
1634 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
1635
1636         * conform/data/time.h-data (NULL): Use macro-constant.  Require
1637         equal to 0.
1638         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
1639         clock_t.
1640         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
1641
1642 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
1643
1644         * configure.in <sysdeps resolving>: Correct printing
1645         Implies_before.
1646         * configure: Regenerate.
1647
1648 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
1649
1650         * math/w_ilogb.c: Include <limits.h>.
1651         * math/w_ilogbl.c: Likewise.
1652
1653 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
1654
1655         * manual/lang.texi (__va_copy): Document primarily as ISO C99
1656         va_copy.  Document allowing for unavailable va_copy only as
1657         pre-C99 compatibility.
1658         * manual/string.texi (Copying and Concatenation): Use va_copy
1659         instead of __va_copy in concat example.
1660
1661 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
1662
1663         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
1664         (__sendto): Use create_address_port.  Initialize APORT and deallocate
1665         it if not null.
1666
1667         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
1668         with O_NOLINK passed to __file_name_lookup.
1669
1670         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
1671         with O_NOLINK passed to __file_name_lookup.
1672
1673         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
1674         negative N or less than NGIDS.
1675
1676         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
1677         type to string_t.  Set ERANGE as errno and return it if NAME is not big
1678         enough.  Use memcpy instead of strncpy.
1679
1680 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
1681
1682         * elf/Makefile (check-data): Remove.
1683         (localplt.data): New vpath directive.
1684         ($(objpfx)check-localplt.out): Use localplt.data from vpath
1685         instead of $(check-data).
1686         * scripts/data/localplt-generic.data: Move to ...
1687         * sysdeps/generic/localplt.data: ... here.
1688         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
1689         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
1690         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
1691         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
1692         ... here.
1693         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
1694         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
1695         ... here.
1696         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
1697         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
1698         ... here.
1699         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
1700         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
1701         ... here.
1702         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
1703         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
1704         ... here.
1705         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
1706         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
1707         ... here.
1708
1709 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1710
1711         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
1712         PPC32 and PPC64 files.
1713         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
1714         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
1715
1716 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1717
1718         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
1719         __makecontext_ret to ...
1720         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
1721         ... here and call exit if uc_link is NULL.  New file.
1722         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
1723         __makecontext_ret.S.
1724         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
1725         __makecontext_ret to ...
1726         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
1727         ... here and call exit if uc_link is NULL.  New file.
1728         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
1729         __makecontext_ret.S.
1730
1731 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1732
1733         * elf/elf.h (R_390_IRELATIVE): New definition.
1734         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
1735         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
1736         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
1737         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
1738         (elf_machine_lazy_rel): Likewise.
1739         * sysdeps/s390/dl-irel.h: New file.
1740         * sysdeps/s390/s390-64/memcpy.S: New asm code.
1741         * sysdeps/s390/s390-64/memset.S: New asm code.
1742         * sysdeps/s390/s390-64/memcmp.S: New asm code.
1743         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
1744         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
1745         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
1746         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
1747         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
1748         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
1749         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
1750         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
1751         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
1752         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
1753         * sysdeps/s390/s390-32/memcpy.S: New asm code.
1754         * sysdeps/s390/s390-32/memset.S: New asm code.
1755         * sysdeps/s390/s390-32/memcmp.S: New asm code.
1756
1757 2012-07-17  Marek Polacek  <polacek@redhat.com>
1758
1759         [BZ #14349]
1760         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
1761         * sysdeps/s390/s390-64/configure.in: Likewise.
1762         * sysdeps/sparc/configure.in: Likewise.
1763         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
1764         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
1765         * sysdeps/i386/configure.in: Likewise.
1766         * sysdeps/x86_64/configure.in: Likewise.
1767         * sysdeps/sh/configure.in: Likewise.
1768         * sysdeps/s390/s390-32/configure: Regenerated.
1769         * sysdeps/s390/s390-64/configure: Likewise.
1770         * sysdeps/x86_64/configure: Likewise.
1771         * sysdeps/sh/configure: Likewise.
1772         * sysdeps/powerpc/powerpc64/configure: Likewise.
1773         * sysdeps/powerpc/powerpc32/configure: Likewise.
1774         * sysdeps/sparc/configure: Likwise.
1775         * sysdeps/i386/configure: Likewise.
1776
1777         * elf/dl-open.c: Comment fixes.
1778
1779 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
1780
1781         * Makefile [CXX] (check-data): Remove.
1782         [CXX] (c++-types.data): New vpath directive.
1783         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
1784         vpath.  Do not allow for C++ type data being missing.
1785         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
1786         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
1787         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
1788         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
1789         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
1790         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
1791         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
1792         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
1793         ... here.
1794         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
1795         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
1796         ... here.
1797         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
1798         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
1799         ... here.
1800         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
1801         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
1802         ... here.
1803         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
1804         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
1805         ... here.
1806         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
1807         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
1808         ... here.
1809         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
1810         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
1811         ... here.
1812         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
1813         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
1814
1815         * elf/tls-macros.h (TLS_LE): Move architecture-specific
1816         definitions to architecture-specific files.
1817         (TLS_IE): Likewise.
1818         (TLS_LD): Likewise.
1819         (TLS_GD): Likewise.
1820         * sysdeps/i386/tls-macros.h: New file.
1821         * sysdeps/powerpc/tls-macros.h: Likewise.
1822         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
1823         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
1824         * sysdeps/sh/tls-macros.h: Likewise.
1825         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
1826         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
1827         * sysdeps/x86_64/tls-macros.h: Likewise.
1828
1829 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
1830
1831         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
1832         zero value for regular exit case.
1833
1834         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
1835         (__start_context): Preserve zero value for regular exit case.
1836
1837 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
1838             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1839
1840         * manual/setjmp.texi (setcontext): Clarify normal process
1841         termination when uc_link is the null pointer.
1842         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
1843         exit call.
1844
1845 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
1846
1847         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
1848         preprocessor.  Test for each exception mask separately.
1849
1850 2012-07-16  Andreas Jaeger  <aj@suse.de>
1851
1852         * po/ru.po: Update from translation team.
1853
1854 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
1855
1856         * conform/data/string.h-data (NULL): Use macro-constant.  Require
1857         equal to 0.
1858         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
1859         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
1860         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
1861         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
1862         [ISO || ISO99 || ISO11] (*_t): Do not allow.
1863
1864 2012-07-13  Andreas Jaeger  <aj@suse.de>
1865
1866         * po/fr.po: Update from translation team.
1867
1868 2012-07-12  Marek Polacek  <polacek@redhat.com>
1869
1870         [BZ #14173]
1871         * math/libm-test.inc (yn_test): Add test for BZ #14173.
1872         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
1873         loop condition.
1874
1875 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
1876
1877         [BZ #13717]
1878         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
1879         Change to 2.4.1 where previously 2.4.0.
1880         * sysdeps/unix/sysv/linux/configure: Regenerated.
1881         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
1882         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
1883         version.
1884         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
1885         (__ASSUME_AT_CLKTCK): Remove.
1886         (__ASSUME_AT_PAGESIZE): Likewise.
1887         (__ASSUME_AT_XID): Likewise.
1888         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
1889         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
1890         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
1891         unconditionally.
1892         (HAVE_AUX_PAGESIZE): Likewise.
1893         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
1894         [__ASSUME_AT_CLKTCK]: Make code unconditional.
1895         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
1896
1897 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
1898
1899         [BZ #14307]
1900         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
1901         the temporary buffer used to invoke __gethostbyname2_r,
1902         __gethostbyaddr_r and gethostbyname4_r to make room for struct
1903         host_data / struct gaih_addrtuple.
1904         * resolv/nss_dns/dns-host.c (global scope): Move definition of
1905         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
1906         header file nss/nsswitch.h.
1907         * nss/nsswitch.h (global scope): Add definition of implementation
1908         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
1909         resolv/nss_dns/dns-host.c).
1910
1911 2012-07-11  Andreas Jaeger  <aj@suse.de>
1912
1913         * po/fr.po: Update from translation team.
1914
1915         * po/sv.po: Update from translation team
1916         * po/fr.po: Another update from translation team.
1917
1918 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1919
1920         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
1921         for subnormals or multiply small sinh result by itself.
1922         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
1923         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1924
1925 2012-07-11  David S. Miller  <davem@davemloft.net>
1926
1927         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1928
1929 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
1930
1931         [BZ #14347]
1932         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
1933         (INTERNAL_MARK): Shift it here.
1934
1935 2012-07-10  Marek Polacek  <polacek@redhat.com>
1936
1937         [BZ #14151]
1938         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
1939         libc_cv_asm_global_directive with .globl.
1940         * configure: Regenerated.
1941         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
1942         with .globl.
1943         * sysdeps/i386/configure: Regenerated.
1944         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
1945         with .globl.
1946         * sysdeps/x86_64/configure: Regenerated.
1947         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
1948         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
1949         * elf/tst-unique2mod2.c: Likewise.
1950         * elf/tst-unique2mod1.c: Likewise.
1951         * elf/tst-unique1mod2.c: Likewise.
1952         * elf/tst-unique1mod1.c: Likewise.
1953         * sysdeps/s390/s390-32/sysdep.h: Likewise.
1954         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
1955         * sysdeps/s390/s390-64/sysdep.h: Likewise.
1956         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
1957         * sysdeps/mach/sysdep.h: Likewise.
1958         * sysdeps/i386/sysdep.h: Likewise.
1959         * sysdeps/i386/i386-mcount.S: Likewise.
1960         * sysdeps/x86_64/_mcount.S: Likewise.
1961         * sysdeps/x86_64/sysdep.h: Likewise.
1962         * sysdeps/sh/_mcount.S: Likewise.
1963         * sysdeps/sh/sysdep.h: Likewise.
1964         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
1965         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
1966         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
1967         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
1968         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
1969         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
1970         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
1971         * locale/localeinfo.h: Likewise.
1972         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
1973         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
1974
1975 2012-07-09  Roland McGrath  <roland@hack.frob.com>
1976
1977         [BZ #14336]
1978         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
1979         system".
1980         * manual/message.texi (The Uniforum approach): Likewise.
1981         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
1982         (glibc iconv Implementation): Likewise.
1983
1984 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
1985
1986         [BZ #14337]
1987         * math/s_clog.c (__clog): Avoid scaling a value down where that
1988         could result in underflow.
1989         * math/s_clog10.c (__clog10): Likewise.
1990         * math/s_clog10f.c (__clog10f): Likewise.
1991         * math/s_clog10l.c (__clog10l): Likewise.
1992         * math/s_clogf.c (__clogf): Likewise.
1993         * math/s_clogl.c (__clogl): Likewise.
1994         * math/libm-test.inc (clog_test): Add more tests.
1995         (clog10_test): Likewise.
1996         * sysdeps/i386/fpu/libm-test-ulps: Update.
1997         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1998
1999 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
2000
2001         [BZ #14283]
2002         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
2003         by 7 not 8 to examine high bit of fractional part.
2004
2005         [BZ #14042]
2006         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
2007         for call to __mcount_internal.
2008         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
2009         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
2010         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
2011
2012 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
2013
2014         [BZ #14154]
2015         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
2016         approximation for values within 0x1p-13f of an odd multiple of
2017         pi/4.
2018         * math/libm-test.inc (tan_test): Do not allow spurious underflow
2019         exception.  Add more tests.
2020         * sysdeps/i386/fpu/libm-test-ulps: Update.
2021
2022         [BZ #6778]
2023         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
2024         inputs and return -1 for them.  Do not check for +Inf in case not
2025         reachable for +Inf.
2026         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
2027         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
2028         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
2029         and return -1 for them.  Do not check for +Inf in case not
2030         reachable for +Inf.
2031         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
2032         define.
2033         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
2034         and return -1 for them.  Do not check for +Inf in case not
2035         reachable for +Inf.
2036         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
2037         spurious underflow.
2038         * sysdeps/i386/fpu/libm-test-ulps: Update.
2039         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2040
2041 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
2042
2043         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
2044
2045 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
2046
2047         [BZ #14157]
2048         [BZ #14331]
2049         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
2050         could result in spurious underflow.  Scale down values above
2051         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
2052         * math/s_csqrtf.c (__csqrtf): Likewise.
2053         * math/s_csqrtl.c (__csqrtl): Likewise.
2054         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
2055         spurious underflow.
2056         * sysdeps/i386/fpu/libm-test-ulps: Update.
2057         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2058
2059 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
2060
2061         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
2062         xopen-msg.sed.
2063         * catgets/xopen-msg.awk: New file.
2064         * catgets/xopen-msg.sed: Removed.
2065
2066         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
2067         po2text.sed.
2068         * intl/po2test.awk: New file.
2069         * intl/po2test.sed: Removed.
2070
2071 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
2072
2073         [BZ #14328]
2074         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
2075         or multiply small sinh result by itself.
2076         * math/s_ctanf.c (__ctanf): Likewise.
2077         * math/s_ctanh.c (__ctanh): Likewise.
2078         * math/s_ctanhf.c (__ctanhf): Likewise.
2079         * math/s_ctanhl.c (__ctanhl): Likewise.
2080         * math/s_ctanl.c (__ctanl): Likewise.
2081         * math/libm-test.inc (ctan_test_tonearest): New function.
2082         (ctan_test_towardzero): Likewise.
2083         (ctan_test_downward): Likewise.
2084         (ctan_test_upward): Likewise.
2085         (ctanh_test_tonearest): Likewise.
2086         (ctanh_test_towardzero): Likewise.
2087         (ctanh_test_downward): Likewise.
2088         (ctanh_test_upward): Likewise.
2089         (main): Call these new functions.
2090         * sysdeps/i386/fpu/libm-test-ulps: Update.
2091         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2092
2093 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
2094
2095         * .gitignore: Delete /ports entry.
2096
2097 2012-07-03  Andreas Jaeger  <aj@suse.de>
2098
2099         * po/bg.po: Update from translation team.
2100         * po/cs.po: Likewise.
2101         * po/de.po: Likewise.
2102         * po/hr.po: Likewise.
2103         * po/nl.pl: Likewise.
2104         * po/pl.po: Likewise.
2105         * po/vi.po: Likewise.
2106
2107 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
2108
2109         * Makeconfig [!+link] (+link-before-libc): New variable.
2110         [!+link] (+link-after-libc): Likewise.
2111         [!+link] (+link-tests): Likewise.
2112         [!+link] (+link): Define in terms of $(+link-before-libc) and
2113         $(+link-after-libc).
2114         [!+link-static] (+link-static-before-libc): New variable.
2115         [!+link-static] (+link-static-after-libc): Likewise.
2116         [!+link-static] (+link-static-tests): Likewise.
2117         [!+link-static] (+link-static): Define in terms of
2118         $(+link-static-before-libc) and $(+link-static-after-libc).
2119         [build-shared] (link-libc-before-gnulib): New variable.
2120         [build-shared] (link-libc-tests): Likewise.
2121         [build-shared] (link-libc): Define in terms of
2122         $(link-libc-before-gnulib).
2123         [!build-shared] (link-libc-tests): New variable.
2124         (link-libc-static-tests): New variable.
2125         [!gnulib] (gnulib-arch): New variable.
2126         [!gnulib] (gnulib-tests): Likewise.
2127         [!gnulib] (static-gnulib-arch): Likewise.
2128         [!gnulib] (static-gnulib-tests): Likewise.
2129         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
2130         Define with "=" instead of ":=".
2131         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
2132         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
2133         * Rules (binaries-all-notests): New variable.
2134         (binaries-all-tests): Likewise.
2135         (binaries-static-notests): Likewise.
2136         (binaries-static-tests): Likewise.
2137         (binaries-all): Define using $(binaries-all-notests) and
2138         $(binaries-all-tests).
2139         (binaries-static): Define using $(binaries-static-notests) and
2140         $(binaries-static-tests).
2141         (binaries-shared-tests): New variable.
2142         (binaries-shared-notests): Likewise.
2143         (binaries-shared): Remove variable.
2144         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
2145         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
2146         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
2147         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
2148         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
2149         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
2150         * elf/Makefile (sln-modules): New variable.
2151         (extra-objs): Add $(sln-modules:=.o).
2152         (ldconfig-modules): Add static-stubs.
2153         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
2154         * elf/static-stubs.c: New file.
2155
2156         [BZ #14283]
2157         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
2158         by 7 not 8 to examine high bit of fractional part.  Use volatile
2159         variables when splitting into final array of floats if
2160         __FLT_EVAL_METHOD__ != 0.
2161         * math/libm-test.inc (cos_test): Add another test.
2162         (sin_test): Likewise.
2163         * sysdeps/i386/fpu/libm-test-ulps: Update.
2164
2165         [BZ #14273]
2166         * math/libm-test.inc (cosh_test): Add more tests.
2167
2168         * version.h (RELEASE): Set to "development".
2169         (VERSION): Set to "2.16.90".
2170
2171 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
2172
2173         * NEWS: Update copyright. Remove last-updated date.
2174         Mention math library bug fixes and timezone data changes.
2175         * README: Mention GNU/Hurd, x32, and HPPA support status.
2176
2177 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
2178
2179         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
2180
2181 2012-06-27  Andreas Jaeger  <aj@suse.de>
2182
2183         * manual/contrib.texi (Contributors): Add Samuel Thibault.
2184
2185 2012-06-25  Andreas Jaeger  <aj@suse.de>
2186
2187         * sysdeps/s390/fpu/libm-test-ulps: Update.
2188
2189 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
2190             Thomas Schwinge  <thomas@codesourcery.com>
2191
2192         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
2193         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
2194         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
2195         fanotify_mark.
2196
2197 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
2198
2199         * sysdeps/mach/start.c: Remove file.
2200         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
2201         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
2202         * sysdeps/sh/init-first.c: Likewise.
2203
2204         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
2205         registers for frame unwinding purposes, add CFI directives.
2206         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
2207         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
2208         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
2209         Likewise.
2210
2211         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
2212         __fortify_fail returning.
2213         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
2214
2215         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
2216         sysdeps/sh/____longjmp_chk.S.
2217         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
2218         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
2219         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
2220         (gen-as-const-headers): Append sigaltstack-offsets.sym.
2221
2222         * sysdeps/sh/abort-instr.h: New file.
2223         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
2224         process in case exit returns.
2225
2226         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
2227         initialize the GOT register before use.
2228
2229         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
2230         calculation of ARGC > 4.
2231
2232         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
2233         meaningful names to some local labels.
2234
2235 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
2236             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2237
2238         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
2239         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
2240         (__arch_compare_and_exchange_val_16_acq): Likewise.
2241         (__arch_compare_and_exchange_val_32_acq): Likewise.
2242         (atomic_exchange_and_add): Fix gUSA sequence.
2243         (atomic_add): Likewise.
2244         (atomic_add_negative): Likewise.
2245         (atomic_add_zero): Likewise.
2246         (atomic_bit_test_set): Likewise.
2247
2248 2012-06-22  Andreas Schwab  <schwab@redhat.com>
2249
2250         [BZ #13579]
2251         * include/link.h (struct link_map): Add l_free_initfini.
2252         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
2253         l_initfini.
2254         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
2255         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
2256         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
2257         set.
2258
2259 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
2260
2261         * configure.in: Use AC_LANG_SOURCE.
2262         * configure: Regenerate.
2263
2264 2012-06-22  Roland McGrath  <roland@hack.frob.com>
2265
2266         * configure.in (libc_cv_localstatedir): New substituted variable.
2267         * configure: Regenerated.
2268         * config.make.in (localstatedir): New variable, substituted from
2269         libc_cv_localstatedir.
2270         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
2271         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
2272         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
2273         * sysdeps/gnu/configure: Regenerated.
2274
2275 2012-06-21  Jeff Law  <law@redhat.com>
2276
2277         [BZ #14277]
2278         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
2279         free.  Simplify list management for _LIBC case.
2280
2281 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
2282
2283         [BZ #14273]
2284         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
2285         Clear sign bit of 64-bit integer value before comparing against
2286         overflow value.
2287
2288         * sysdeps/mach/configure: Regenerated.
2289
2290 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
2291
2292         [BZ #14278]
2293         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
2294
2295 2012-06-21  Jeff Law  <law@redhat.com>
2296
2297         [BZ #13882]
2298         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
2299         uint16_t for elements in the "seen" array to avoid char overflows.
2300         * elf/dl-fini.c (_dl_sort_fini): Likewise.
2301         * elf/dl-open.c (dl_open_worker): Likewise.
2302
2303 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
2304
2305         * scripts/list-sources.sh: Scan PORTS for translations.
2306         * po/libc.pot: Regenerated.
2307
2308 2012-06-21  Andreas Jaeger  <aj@suse.de>
2309
2310         [BZ #12194]
2311         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
2312         warning.
2313         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
2314         * bits/byteswap-16.h (__bswap_16): Likewise.
2315         * bits/byteswap.h (__bswap_constant_16): Likewise.
2316
2317 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
2318
2319         [BZ #14117]
2320         * sysdeps/i386/fpu_control.h: Removed.
2321         * sysdeps/x86_64/fpu_control.h: Moved to ...
2322         * sysdeps/x86/fpu_control.h: Here.
2323
2324         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
2325         (_FPU_SETCW): Likewise.
2326
2327 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
2328
2329         [BZ #14117]
2330         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
2331         * sysdeps/x86/fpu/bits/mathinline.h: This.
2332         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
2333
2334         [BZ #14050]
2335         [BZ #14117]
2336         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
2337         functions if __x86_64__ is defined.
2338
2339 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
2340
2341         * string/endian.h: Add !__ASSEMBLER__ condition for including
2342         conversion interfaces.
2343
2344 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
2345
2346         [BZ #14241]
2347         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
2348         of ABS(x) in calculating zero to negative powers other than odd
2349         integers.
2350         * math/libm-test.inc (pow_test): Add more tests.
2351
2352 2012-06-15  Andreas Jaeger  <aj@suse.de>
2353
2354         * manual/contrib.texi (Contributors): Update entry of Liubov
2355         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
2356         Machado Filho.
2357
2358 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
2359
2360         * string/string.h: Add __wur to GNU version of strerror_r.
2361
2362 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
2363
2364         [BZ #14229]
2365         * string/Makefile (tests): Add tst-strtok_r.
2366         * string/tst-strtok_r.c: New file.
2367         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
2368         RAX_LP/RDX_LP on SAVE_PTR.
2369
2370 2012-06-14  Roland McGrath  <roland@hack.frob.com>
2371
2372         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
2373
2374 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
2375
2376         * libm_test.inc (csqrt_test): Allow more spurious underflow
2377         exceptions.
2378         (j0_test): Likewise.
2379         (j1_test): Likewise.
2380         (y0_test): Likewise.
2381         (y1_test): Likewise.
2382
2383 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
2384
2385         * po/Makefile (libc.pot): Use UTF-8 charset.
2386
2387 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
2388
2389         [BZ #14210]
2390         Suppress sign-conversion warning from FD_SET.
2391         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
2392         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
2393         not unsigned long int.
2394         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
2395
2396 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
2397
2398         [BZ #14050]
2399         [BZ #14117]
2400         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
2401         __extern_always_inline instead of __extern_inline.
2402         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
2403         (__signbit): Likewise.
2404         (__signbitl): Support C++ namespace.
2405         (lrintf): New inline function.
2406         (lrint): Likewise.
2407         (llrintf): Likewise.
2408         (llrint): Likewise.
2409         (fmaxf): Likewise.
2410         (fmax): Likewise.
2411         (fminf): Likewise.
2412         (fmin): Likewise.
2413         (rint): Likewise.
2414         (rintf): Likewise.
2415         (ceil): Likewise.
2416         (ceilf): Likewise.
2417         (floor): Likewise.
2418         (floorf): Likewise.
2419         (nearbyint): Likewise.
2420         (nearbyintf): Likewise.
2421
2422 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
2423
2424         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
2425         non-default versions.
2426
2427 2012-06-11  Roland McGrath  <roland@hack.frob.com>
2428
2429         [BZ #14218]
2430         * manual/argp.texi (Argp): Reword argp_parse description slightly.
2431
2432 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
2433
2434         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
2435         (FE_UPWARD, FE_DOWNWARD): Don't define.
2436         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
2437         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
2438
2439         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
2440         reading it.
2441         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
2442         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
2443
2444 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2445
2446         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
2447         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
2448         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
2449         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
2450
2451 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
2452
2453         [BZ #14117]
2454         * sysdeps/i386/fpu/bits/fenv.h: Removed.
2455         * sysdeps/i386/fpu/Implies: New file.
2456         * sysdeps/x86_64/fpu/Implies: Likewise.
2457         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
2458         * sysdeps/x86/fpu/bits/fenv.h: This.
2459
2460         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
2461         __SSE_MATH__.
2462
2463 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
2464
2465         [BZ #14134]
2466         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
2467         character 0xffff that matches the last element of the
2468         conversion table.
2469
2470 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2471
2472         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
2473         fmodl commit.
2474
2475 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2476
2477         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
2478         values higher than 25.6283.
2479
2480 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2481
2482         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
2483         subnormal exponent extraction and add some __builtin_expect.
2484         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
2485         Fix for subnormal mantissa calculation.
2486
2487 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
2488
2489         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
2490         cpu2 is -1 and errno is not ENOSYS.
2491
2492 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
2493
2494         [BZ #14117]
2495         * sysdeps/i386/i486/bits/string.h: Renamed to ...
2496         * sysdeps/x86/bits/string.h: This.
2497         * sysdeps/x86_64/bits/string.h: Removed.
2498
2499         * sysdeps/i386/i486/bits/string.h: Define inline functions only
2500         if not compiling for x86-64, but compiling for >= i486.
2501
2502         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
2503         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
2504
2505         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
2506         New macro from Linux kernel 3.4.0.
2507         (FP_XSTATE_MAGIC2): Likewise.
2508         (FP_XSTATE_MAGIC2_SIZE): Likewise.
2509         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
2510         (struct _fpx_sw_bytes): New struct.
2511         (struct _xsave_hdr): Likewise.
2512         (struct _ymmh_state): Likewise.
2513         (struct _xstate): Likewise.
2514
2515         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
2516         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
2517         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
2518         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
2519         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
2520         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
2521
2522         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
2523         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
2524         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
2525         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
2526         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
2527         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
2528
2529 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2530
2531         [BZ #13743]
2532         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
2533         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
2534         (sysdep_headers): Include sys/platform/ppc.h.
2535         * sysdeps/powerpc/test-gettimebase.c: Test for
2536         __ppc_get_timebase() to catch future ISA opcode/insn changes.
2537         * manual/Makefile (appendices): Include platform.texi.
2538         * manual/contrib.texi (Contributors): Update @node pointers.
2539         * manual/maint.texi (Maintenance): Likewise.
2540         (Platform): New node.
2541         * manual/platform.texi: New file.  Document the new features.
2542
2543 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
2544             Jakub Jelinek  <jakub@redhat.com>
2545
2546         [BZ #14188]
2547         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
2548         where __builtin_expect is unavailable.
2549
2550 2012-06-03  David S. Miller  <davem@davemloft.net>
2551
2552         * stdlib/longlong.h: Updated from GCC.
2553
2554 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
2555
2556         [BZ #14042]
2557         * sysdeps/powerpc/powerpc32/mcount.c: New file.
2558         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
2559         __mcount_internal.
2560         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
2561         (GLIBC_2.16): Likewise.
2562
2563 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
2564
2565         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
2566
2567 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
2568
2569         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
2570         (default-abi): New variable.
2571         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
2572         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
2573         variable.
2574         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
2575         Likewise.
2576         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
2577         Likewise.
2578         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
2579         Likewise.
2580
2581         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
2582         definition.  Document in comment.
2583
2584 2012-06-01  David S. Miller  <davem@davemloft.net>
2585
2586         * stdlib/longlong.h: Updated from GCC.
2587
2588 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
2589
2590         [BZ #14117]
2591         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
2592         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
2593         sys/debugreg.h sys/io.h here.
2594         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
2595         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
2596         sys/io.h.
2597         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
2598         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
2599         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
2600         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
2601         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
2602         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
2603
2604         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
2605         Define only if __x86_64__ is defined.
2606
2607 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
2608
2609         [BZ #14048]
2610         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
2611         Use int64_t for variable i.
2612         * math/libm-test.inc (fmod_test): Add more tests.
2613
2614         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
2615         z computation is not scheduled after fetestexcept.
2616         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
2617         Use math_force_eval instead of asm to ensure calculation scheduled
2618         before exception test.
2619         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
2620         Ensure a1 + u.d computation is not scheduled after fetestexcept.
2621
2622 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
2623
2624         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
2625         computation is not scheduled after fetestexcept.
2626
2627 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
2628
2629         [BZ #14117]
2630         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
2631         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
2632
2633 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2634
2635         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
2636         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
2637
2638 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
2639
2640         [BZ #14117]
2641         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
2642         <bits/wordsize.h>.
2643         (__WCHAR_MIN): Support __WORDSIZE == 64.
2644         (__WCHAR_MAX): Likewise.
2645
2646         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
2647         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
2648
2649         [BZ #14183]
2650         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
2651         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
2652
2653         [BZ #14117]
2654         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
2655         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
2656
2657         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
2658         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
2659
2660         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
2661         Defined to 1 if __x86_64__ isn't defined.
2662         (_STAT_VER_LINUX_OLD): New.
2663         (st_atime): Remove duplicate.
2664         (st_mtime): Likewise.
2665         (st_ctime): Likewise.
2666
2667 2012-05-31  David S. Miller  <davem@davemloft.net>
2668
2669         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
2670         entries.
2671
2672 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
2673
2674         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
2675         gen-libm-test.pl.
2676
2677         [BZ #14132]
2678         * elf/dl-reloc.c: Include <_itoa.h>.
2679         (_dl_reloc_bad_type): Remove use of INTUSE.
2680         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
2681         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
2682         * stdio-common/psiginfo.c (psiginfo): Likewise.
2683         * stdio-common/psignal.c (psignal): Likewise.
2684         * string/strsignal.c (strsignal): Likewise.
2685         * include/signal.h (_sys_siglist): Declare hidden proto.
2686         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
2687         INTVARDEF with libc_hidden_data_def.
2688         * stdio-common/itoa-udigits.c: Likewise.
2689         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
2690         (_itoa_lower_digits_internal): Remove declaration.
2691         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
2692         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
2693         (_sys_sigabbrev_internal): Remove aliases.
2694         (_sys_siglist): Define hidden alias.
2695
2696 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
2697
2698         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2699         bits/sysctl.h.
2700
2701 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
2702
2703         [BZ #14117]
2704         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
2705         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
2706
2707         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
2708         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
2709         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
2710         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
2711         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
2712         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
2713
2714         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
2715         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
2716         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
2717
2718         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
2719         with __addr.
2720         (insw): Likewise.
2721         (insl): Likewise.
2722         (outsb): Likewise.
2723         (outsw): Likewise.
2724         (outsl): Likewise.
2725
2726         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
2727         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
2728         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
2729
2730         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
2731         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
2732         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
2733         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
2734         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
2735         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
2736
2737         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
2738         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
2739
2740         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
2741         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
2742
2743         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
2744         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
2745         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
2746
2747         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
2748         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
2749         to ...
2750         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
2751
2752         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
2753         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
2754         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
2755
2756         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
2757         for x86-64.
2758         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
2759
2760 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
2761
2762         * math/math.h (M_El): Use two more decimal places.
2763         (M_LOG2El): Likewise.
2764         (M_LOG10El): Likewise.
2765         (M_LN2l): Likewise.
2766         (M_LN10l): Likewise.
2767         (M_PIl): Likewise.
2768         (M_PI_2l): Likewise.
2769         (M_PI_4l): Likewise.
2770         (M_1_PIl): Likewise.
2771         (M_2_PIl): Likewise.
2772         (M_2_SQRTPIl): Likewise.
2773         (M_SQRT2l): Likewise.
2774         (M_SQRT1_2l): Likewise.
2775
2776 2012-05-31  David S. Miller  <davem@davemloft.net>
2777
2778         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
2779         values between float registers.
2780         * sysdeps/sparc/sparc64/memset.S: Likewise.
2781         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
2782
2783 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
2784
2785         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
2786         -D_FORTIFY_SOURCE=1.
2787         (CPPFLAGS-tst-longjmp_chk.c): Define.
2788         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
2789         (CPPFLAGS-tst-longjmp_chk2.c): Define.
2790         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
2791         CFLAGS-tst-wchar-h.c.
2792
2793 2012-05-31  Marek Polacek  <polacek@redhat.com>
2794
2795         [BZ #14132]
2796         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
2797         __endmntent_internal): Remove declaration.
2798         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
2799         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
2800         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
2801
2802 2012-05-30  David S. Miller  <davem@davemloft.net>
2803
2804         * sysdeps/sparc/sparc32/soft-fp/q_util.c
2805         (___Q_simulate_exceptions): Use real FP ops rather than writing
2806         into the %fsr.
2807         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
2808         Likewise.
2809
2810 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
2811
2812         [BZ #14117]
2813         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
2814         * sysdeps/x86/bits/xtitypes.h: This.
2815
2816         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
2817         * sysdeps/x86/bits/wordsize.h: This.
2818
2819         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
2820         * sysdeps/x86/bits/huge_vall.h: This.
2821
2822         * sysdeps/i386/bits/select.h: Removed.
2823         * sysdeps/x86_64/bits/select.h: Renamed to ...
2824         * sysdeps/x86/bits/select.h: This.
2825
2826         * sysdeps/i386/bits/setjmp.h: Removed.
2827         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
2828         * sysdeps/x86/bits/setjmp.h: This.
2829
2830         * sysdeps/i386/bits/mathdef.h: Removed.
2831         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
2832         * sysdeps/x86/bits/mathdef.h: This.
2833
2834 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
2835
2836         [BZ #14132]
2837         * include/sys/socket.h (__connect_internal)
2838         (__libc_sa_len_internal): Remove declaration.
2839         (__connect, __libc_sa_len): Declare hidden_proto.
2840         (SA_LEN): Remove use of INTUSE.
2841         * socket/connect.c: Add libc_hidden_def.
2842         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
2843         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
2844         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
2845         alias.
2846         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
2847         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2848         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
2849         of adding _internal alias.
2850
2851 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
2852
2853         [BZ #14117]
2854         * sysdeps/i386/bits/link.h: Removed.
2855         * sysdeps/i386/bits/linkmap.h: Likewise.
2856         * sysdeps/x86_64/bits/link.h: Renamed to ...
2857         * sysdeps/x86/bits/link.h: This.
2858         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
2859         * sysdeps/x86/bits/linkmap.h: This.
2860
2861         * sysdeps/i386/bits/endian.h: Removed.
2862         * sysdeps/x86_64/bits/endian.h: Renamed to ...
2863         * sysdeps/x86/bits/endian.h: This.
2864
2865         * sysdeps/i386/bits/byteswap.h: Removed.
2866         * sysdeps/i386/bits/byteswap-16.h: Likewise.
2867         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
2868         * sysdeps/x86/bits/byteswap.h: This.
2869         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
2870         * sysdeps/x86/bits/byteswap-16.h: This.
2871         * sysdeps/i386/Implies: Add x86.
2872         * sysdeps/x86_64/Implies: Likewise.
2873
2874 2012-05-30  David S. Miller  <davem@davemloft.net>
2875
2876         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
2877         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
2878         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
2879         (FP_TRAPPING_EXCEPTIONS): Define.
2880         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
2881         (FP_TRAPPING_EXCEPTIONS): Define.
2882         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
2883         subnormals only when inexact has been signalled or underflow
2884         exceptions are enabled.
2885         (_FP_PACK_CANONICAL): Likewise.
2886
2887 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
2888
2889         [BZ #14183]
2890         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
2891         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
2892
2893 2012-05-30  Richard Henderson  <rth@twiddle.net>
2894
2895         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
2896         with #ifndef NOT_IN_libc.
2897
2898         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
2899         marked to avoid plt entry.
2900
2901 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
2902
2903         [BZ #14112]
2904         * Makeconfig (default-abi): New macro.
2905         (abi-includes): Likewise.
2906         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
2907         $(abi-$(default-abi)-lib-soname) for soname if defined.
2908         ($(common-objpfx)gnu/lib-names.stmp): Generate from
2909         abi-variants.
2910         * Makefile (installed-stubs): Likewise.
2911         * include/stubs-biarch.h: Removed.
2912         * scripts/lib-names.awk: Only handle one library at a time.
2913         * scripts/soversions.awk: Remove WORDSIZE support.
2914         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
2915         entries.
2916         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
2917         Removed.
2918         (syscall-list-default-condition): Likewise.
2919         (syscall-list-default-condition): Likewise.
2920         (syscall-list-includes): Likewise.
2921         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
2922         syscall-list-* with abi-*.  Handle undefined abi-variants.
2923         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
2924         * sysdeps/unix/sysv/linux/i386/Implies: New file.
2925         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
2926         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
2927         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
2928         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
2929         Removed.
2930         (syscall-list-32-options): Likewise.
2931         (syscall-list-32-condition): Likewise.
2932         (syscall-list-64-options): Likewise.
2933         (syscall-list-64-condition): Likewise.
2934         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
2935         macro.
2936         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
2937         Renamed to ...
2938         (abi-*): This.
2939         (abi-64-ld-soname): New macro.
2940         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
2941         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
2942         Renamed to ...
2943         (abi-*): This.
2944         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
2945         * sysdeps/x86_64/x32/shlib-versions: Likewise.
2946
2947 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
2948
2949         * sysdeps/unix/sysv/linux/kernel-features.h
2950         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
2951         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
2952         include <kernel-features.h>.
2953         [!__NR_ftruncate64]: Remove conditional code.
2954         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
2955         [__NR_ftruncate64]: Make code unconditional.
2956         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
2957         * sysdeps/unix/sysv/linux/truncate64.c: Do not
2958         include <kernel-features.h>.
2959         [!__NR_ftruncate64]: Remove conditional code.
2960         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
2961         [__NR_ftruncate64]: Make code unconditional.
2962         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
2963         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
2964         include <kernel-features.h>.
2965         [!__NR_ftruncate64]: Remove conditional code.
2966         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
2967         [__NR_ftruncate64]: Make code unconditional.
2968         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
2969         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
2970         include <kernel-features.h>.
2971         [!__NR_ftruncate64]: Remove conditional code.
2972         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
2973         [__NR_ftruncate64]: Make code unconditional.
2974         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
2975
2976         * configure.in (libc_cv_fpie): Weaken to a compile test using
2977         LIBC_TRY_CC_OPTION.
2978         * configure: Regenerated.
2979
2980 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2981
2982         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
2983         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
2984         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
2985         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
2986         Refreshed.
2987         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
2988         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
2989         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
2990         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
2991         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
2992         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
2993         Refreshed.
2994
2995 2012-05-27  David S. Miller  <davem@davemloft.net>
2996
2997         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
2998         (___Q_zero): New.
2999         (__Q_simulate_exceptions): Return void.  Change to simulate
3000         exceptions by writing into the %fsr.
3001         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
3002         (__Qp_handle_exceptions): Likewise.
3003         (numbers): Delete.
3004         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
3005         __Qp_handle_exceptions.
3006         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
3007         __Qp_handle_exceptions.
3008         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
3009         as unused and give dummy FP_RND_NEAREST initializer.
3010         (FP_INHIBIT_RESULTS): Define.
3011         (___Q_simulate_exceptions): Update declaration.
3012         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
3013         formatting.
3014         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
3015         as unused and give dummy FP_RND_NEAREST initializer.
3016         (__Qp_handle_exceptions): Update declaration.
3017         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
3018         formatting.
3019
3020 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
3021
3022         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
3023         the temporary FPU control word.
3024         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
3025         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
3026         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
3027         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
3028         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
3029         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
3030         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
3031         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
3032         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
3033         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
3034         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
3035
3036 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3037
3038         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
3039         fields.
3040
3041 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
3042
3043         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
3044         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
3045         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
3046         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
3047         Likewise.
3048         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
3049         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
3050         Likewise.
3051
3052 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
3053
3054         * po/h.po: Update from translation team.
3055
3056 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
3057
3058         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
3059
3060         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
3061         handling of denormals.
3062         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
3063         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
3064         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
3065         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
3066         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
3067         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
3068         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
3069         Likewise.
3070
3071 2012-05-26  Marek Polacek  <polacek@redhat.com>
3072
3073         [BZ #14152]
3074         * math/libm-test.inc (fma_test): Don't always expect underflow
3075         exception.
3076
3077 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
3078
3079         [BZ #12416]
3080         * elf/tst-execstack.c: Include stackinfo.h.
3081         (do_test): Adjust test case to ensure that pthread_getattr_np
3082         behaviour remains the same after marking stack executable.
3083
3084 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
3085
3086         * sysdeps/unix/sysv/linux/kernel-features.h
3087         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
3088         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
3089         kernel-features.h.
3090         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
3091         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
3092         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
3093         kernel-features.h.
3094         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
3095         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
3096
3097 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
3098
3099         * configure.in: Define the default includes to being none.
3100         * configure: Regenerated.
3101
3102 2012-05-25  Roland McGrath  <roland@hack.frob.com>
3103
3104         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
3105         * sysdeps/x86_64/setjmp.S: Likewise.
3106         * sysdeps/i386/bsd-setjmp.S: Likewise.
3107         * sysdeps/i386/bsd-_setjmp.S: Likewise.
3108         * sysdeps/i386/setjmp.S: Likewise.
3109         * sysdeps/i386/__longjmp.S: Likewise.
3110         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
3111         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
3112
3113         * include/stap-probe.h: New file.
3114         * configure.in: Handle --enable-systemtap.
3115         * configure: Regenerated.
3116         * config.h.in (USE_STAP_PROBE): New #undef.
3117         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
3118         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
3119         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
3120
3121 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
3122
3123         [BZ #13717]
3124         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
3125         to 2.4.0 where earlier.
3126         * sysdeps/unix/sysv/linux/configure: Regenerated.
3127         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
3128         <kernel-features.h>.
3129         [__ASSUME_32BITUIDS]: Make code unconditional.
3130         [!__ASSUME_32BITUIDS]: Remove conditional code.
3131         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
3132         <kernel-features.h>.
3133         [__ASSUME_32BITUIDS]: Make code unconditional.
3134         [!__ASSUME_32BITUIDS]: Remove conditional code.
3135         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
3136         [__ASSUME_32BITUIDS]: Make code unconditional.
3137         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
3138         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
3139         <kernel-features.h>.
3140         [__ASSUME_32BITUIDS]: Make code unconditional.
3141         [!__ASSUME_32BITUIDS]: Remove conditional code.
3142         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
3143         <kernel-features.h>.
3144         [__ASSUME_32BITUIDS]: Make code unconditional.
3145         [!__ASSUME_32BITUIDS]: Remove conditional code.
3146         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
3147         <kernel-features.h>.
3148         [__ASSUME_32BITUIDS]: Make code unconditional.
3149         [!__ASSUME_32BITUIDS]: Remove conditional code.
3150         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
3151         <kernel-features.h>.
3152         [__ASSUME_32BITUIDS]: Make code unconditional.
3153         [!__ASSUME_32BITUIDS]: Remove conditional code.
3154         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
3155         <kernel-features.h>.
3156         [__ASSUME_32BITUIDS]: Make code unconditional.
3157         [!__ASSUME_32BITUIDS]: Remove conditional code.
3158         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
3159         <kernel-features.h>.
3160         [__ASSUME_32BITUIDS]: Make code unconditional.
3161         [!__ASSUME_32BITUIDS]: Remove conditional code.
3162         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
3163         <kernel-features.h>.
3164         [__ASSUME_32BITUIDS]: Make code unconditional.
3165         [!__ASSUME_32BITUIDS]: Remove conditional code.
3166         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
3167         <kernel-features.h>.
3168         [__ASSUME_32BITUIDS]: Make code unconditional.
3169         [!__ASSUME_32BITUIDS]: Remove conditional code.
3170         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
3171         <kernel-features.h>.
3172         [__ASSUME_32BITUIDS]: Make code unconditional.
3173         [!__ASSUME_32BITUIDS]: Remove conditional code.
3174         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
3175         <kernel-features.h>.
3176         [__ASSUME_32BITUIDS]: Make code unconditional.
3177         [!__ASSUME_32BITUIDS]: Remove conditional code.
3178         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
3179         <kernel-features.h>.
3180         [__NR_setresgid] (__setresgid): Do not declare.
3181         [__ASSUME_32BITUIDS]: Make code unconditional.
3182         [!__ASSUME_32BITUIDS]: Remove conditional code.
3183         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
3184         <kernel-features.h>.
3185         [__NR_setresuid] (__setresuid): Do not declare.
3186         [__ASSUME_32BITUIDS]: Make code unconditional.
3187         [!__ASSUME_32BITUIDS]: Remove conditional code.
3188         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
3189         <kernel-features.h>.
3190         [__ASSUME_32BITUIDS]: Make code unconditional.
3191         [!__ASSUME_32BITUIDS]: Remove conditional code.
3192         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
3193         <kernel-features.h>.
3194         [__ASSUME_32BITUIDS]: Make code unconditional.
3195         [!__ASSUME_32BITUIDS]: Remove conditional code.
3196         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
3197         <kernel-features.h>.
3198         [__ASSUME_32BITUIDS]: Make code unconditional.
3199         [!__ASSUME_32BITUIDS]: Remove conditional code.
3200         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
3201         <kernel-features.h>.
3202         [__ASSUME_32BITUIDS]: Make code unconditional.
3203         [!__ASSUME_32BITUIDS]: Remove conditional code.
3204         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
3205         <kernel-features.h>.
3206         [__ASSUME_32BITUIDS]: Make code unconditional.
3207         [!__ASSUME_32BITUIDS]: Remove conditional code.
3208         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
3209         <kernel-features.h>.
3210         [__ASSUME_32BITUIDS]: Make code unconditional.
3211         [!__ASSUME_32BITUIDS]: Remove conditional code.
3212         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
3213         <kernel-features.h>.
3214         [__ASSUME_32BITUIDS]: Make code unconditional.
3215         [!__ASSUME_32BITUIDS]: Remove conditional code.
3216         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
3217         <kernel-features.h>.
3218         [__ASSUME_32BITUIDS]: Make code unconditional.
3219         [!__ASSUME_32BITUIDS]: Remove conditional code.
3220         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
3221         <kernel-features.h>.
3222         [__ASSUME_32BITUIDS]: Make code unconditional.
3223         [!__ASSUME_32BITUIDS]: Remove conditional code.
3224         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
3225         <kernel-features.h>.
3226         [__ASSUME_32BITUIDS]: Make code unconditional.
3227         [!__ASSUME_32BITUIDS]: Remove conditional code.
3228         * sysdeps/unix/sysv/linux/kernel-features.h
3229         (__ASSUME_SETRESUID_SYSCALL): Remove.
3230         (__ASSUME_SETRESGID_SYSCALL): Likewise.
3231         (__ASSUME_32BITUIDS): Likewise.
3232         (__ASSUME_LDT_WORKS): Likewise.
3233         (__ASSUME_O_DIRECTORY): Likewise.
3234         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
3235         architecture but not kernel version.
3236         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
3237         (__ASSUME_MMAP2_SYSCALL): Likewise.
3238         (__ASSUME_STAT64_SYSCALL): Likewise.
3239         (__ASSUME_IPC64): Likewise.
3240         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
3241         <kernel-features.h>.
3242         [__ASSUME_32BITUIDS]: Make code unconditional.
3243         [!__ASSUME_32BITUIDS]: Remove conditional code.
3244         * sysdeps/unix/sysv/linux/opendir.c: Do not include
3245         <kernel-features.h>.
3246         [__ASSUME_O_DIRECTORY]: Make code unconditional.
3247         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
3248         132096]: Remove conditional code.
3249         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
3250         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
3251         <kernel-features.h>.
3252         [__ASSUME_32BITUIDS]: Make code unconditional.
3253         [!__ASSUME_32BITUIDS]: Remove conditional code.
3254         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
3255         <kernel-features.h>.
3256         [__ASSUME_32BITUIDS]: Make code unconditional.
3257         [!__ASSUME_32BITUIDS]: Remove conditional code.
3258         * sysdeps/unix/sysv/linux/setegid.c: Do not include
3259         <kernel-features.h>.
3260         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
3261         unconditional.
3262         (__setresgid): Do not declare.
3263         [__ASSUME_32BITUIDS]: Make code unconditional.
3264         [!__ASSUME_32BITUIDS]: Remove conditional code.
3265         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
3266         <kernel-features.h>.
3267         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
3268         unconditional.
3269         (__setresuid): Do not declare.
3270         [__ASSUME_32BITUIDS]: Make code unconditional.
3271         [!__ASSUME_32BITUIDS]: Remove conditional code.
3272         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
3273         <kernel-features.h>.
3274         [__ASSUME_32BITUIDS]: Make code unconditional.
3275         [!__ASSUME_32BITUIDS]: Remove conditional code.
3276         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
3277         <kernel-features.h>.
3278         [__ASSUME_32BITUIDS]: Make code unconditional.
3279         [!__ASSUME_32BITUIDS]: Remove conditional code.
3280
3281 2012-05-25  Richard Henderson  <rth@twiddle.net>
3282
3283         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
3284         dl_hwcap to ifunc resolver.
3285         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
3286         elf_ifunc_invoke.
3287         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
3288         dl_hwcap to ifunc resolver.
3289         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
3290
3291 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
3292
3293         [BZ #14153]
3294         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
3295         for |x| <= 2**-26, not 2**-57.
3296         * math/libm-test.inc (acos_test): Do not allow spurious underflow
3297         exception.
3298
3299 2012-05-24  Jeff Law  <law@redhat.com>
3300
3301         * stdio-common/Makefile (tests): Add bug25.
3302         * stdio-common/bug25.c: New test.
3303
3304 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
3305
3306         [BZ #13576]
3307         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
3308         multiple of MALLOC_ALIGNMENT in size.
3309         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
3310
3311 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
3312
3313         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
3314         Require >= 256.
3315         (FILENAME_MAX): Use macro-int-constant.
3316         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
3317         (_IOFBF): Use macro-int-constant.
3318         (_IOLBF): Likewise.
3319         (_IONBF): Likewise.
3320         (SEEK_CUR): Likewise.
3321         (SEEK_END): Likewise.
3322         (SEEK_SET): Likewise.
3323         (TMP_MAX): Likewise.
3324         (EOF): Use macro-int-constant.  Require < 0.
3325         (NULL): Use macro-constant.  Require == 0.
3326         (stdin): Require type to be FILE *.
3327         (stdout): Likewise.
3328         (stderr): Likewise.
3329         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
3330         macro-int-constant.
3331         (EXIT_SUCCESS): Likewise.
3332         (NULL): Use macro-constant.  Require == 0.
3333         (RAND_MAX): Use macro-int-constant.
3334         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
3335         [C99-based standards] (strtof): Require function.
3336         [C99-based standards] (strtold): Likewise.
3337         [C99-based standards] (strtoll): Likewise.
3338         [C99-based standards] (strtoull): Likewise.
3339         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
3340         [ISO || ISO99 || ISO11] (limits.h): Likewise.
3341         [ISO || ISO99 || ISO11] (math.h): Likewise.
3342         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
3343         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
3344         [ISO || ISO99 || ISO11] (*_t): Do not allow.
3345
3346 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
3347
3348         [BZ #14132]
3349         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
3350         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
3351         * intl/dgettext.c (DCGETTEXT): Likewise.
3352         * intl/gettext.c (DCGETTEXT): Likewise.
3353         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
3354         * posix/regex_internal.h (gettext): Likewise.
3355         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
3356         Remove declaration.
3357         * include/argz.h (__argz_count_internal)
3358         (__argz_stringify_internal): Remove declaration.
3359         (__argz_count, __argz_stringify): Declare hidden proto.
3360         * intl/dcgettext.c: Remove use of INTDEF.
3361         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
3362         * string/argz-stringify.c: Likewise.
3363         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
3364         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
3365         Declare hidden proto.
3366         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
3367         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
3368         Declare hidden proto.
3369         * include/stdio.h (__asprintf_internal): Don't declare.
3370         (__asprintf): Don't define as macro.  Declare hidden proto.
3371         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
3372         (__fsetlocking): Declare hidden proto.
3373         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
3374         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
3375         hidden proto.
3376         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
3377         (_IO_setlinebuf): Remove use of INTUSE.
3378         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
3379         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
3380         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
3381         Remove declaration.
3382         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
3383         (_IO_do_flush): Remove use of INTUSE.
3384         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
3385         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
3386         (_IO_adjust_column, _IO_least_wmarker)
3387         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
3388         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
3389         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
3390         (_IO_default_doallocate, _IO_wdefault_doallocate)
3391         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
3392         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
3393         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
3394         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
3395         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
3396         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
3397         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
3398         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
3399         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
3400         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
3401         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
3402         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
3403         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
3404         proto.
3405         (_IO_flush_all_internal, _IO_adjust_column_internal)
3406         (_IO_default_uflow_internal, _IO_default_finish_internal)
3407         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
3408         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
3409         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
3410         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
3411         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
3412         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
3413         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
3414         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
3415         (_IO_file_close_internal, _IO_file_close_it_internal)
3416         (_IO_file_underflow_internal, _IO_file_overflow_internal)
3417         (_IO_file_init_internal, _IO_file_attach_internal)
3418         (_IO_file_fopen_internal, _IO_file_read_internal)
3419         (_IO_file_sync_internal, _IO_file_seek_internal)
3420         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
3421         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
3422         (_IO_str_underflow_internal, _IO_str_overflow_internal)
3423         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
3424         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
3425         (_IO_list_all_internal, _IO_link_in_internal)
3426         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
3427         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
3428         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
3429         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
3430         (_IO_do_write_internal, _IO_padn_internal)
3431         (_IO_getline_info_internal, _IO_getline_internal)
3432         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
3433         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
3434         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
3435         (_IO_vfscanf_internal, _IO_vfprintf_internal)
3436         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
3437         (_IO_init_internal, _IO_un_link_internal): Don't declare.
3438         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
3439         with libc_hidden_ver, remove use of INTUSE.
3440         * libio/genops.c: Likewise.
3441         * libio/freopen.c: Likewise.
3442         * libio/freopen64.c: Likewise.
3443         * libio/iofclose.c: Likewise.
3444         * libio/iofdopen.c: Likewise.
3445         * libio/iofflush.c: Likewise.
3446         * libio/iofflush_u.c: Likewise.
3447         * libio/iofgets.c: Likewise.
3448         * libio/iofgets_u.c: Likewise.
3449         * libio/iofopen.c: Likewise.
3450         * libio/iofopncook.c: Likewise.
3451         * libio/iofread.c: Likewise.
3452         * libio/iofread_u.c: Likewise.
3453         * libio/ioftell.c: Likewise.
3454         * libio/iofwrite.c: Likewise.
3455         * libio/iogetline.c: Likewise.
3456         * libio/iogets.c: Likewise.
3457         * libio/iogetwline.c: Likewise.
3458         * libio/iopadn.c: Likewise.
3459         * libio/iopopen.c: Likewise.
3460         * libio/ioseekoff.c: Likewise.
3461         * libio/ioseekpos.c: Likewise.
3462         * libio/iosetbuffer.c: Likewise.
3463         * libio/iosetvbuf.c: Likewise.
3464         * libio/ioungetc.c: Likewise.
3465         * libio/ioungetwc.c: Likewise.
3466         * libio/iovdprintf.c: Likewise.
3467         * libio/iovsprintf.c: Likewise.
3468         * libio/iovsscanf.c: Likewise.
3469         * libio/memstream.c: Likewise.
3470         * libio/obprintf.c: Likewise.
3471         * libio/oldfileops.c: Likewise.
3472         * libio/oldiofclose.c: Likewise.
3473         * libio/oldiofdopen.c: Likewise.
3474         * libio/oldiofopen.c: Likewise.
3475         * libio/oldiopopen.c: Likewise.
3476         * libio/oldstdfiles.c: Likewise.
3477         * libio/putc.c: Likewise.
3478         * libio/setbuf.c: Likewise.
3479         * libio/setlinebuf.c: Likewise.
3480         * libio/stdfiles.c: Likewise.
3481         * libio/strops.c: Likewise.
3482         * libio/vasprintf.c: Likewise.
3483         * libio/vscanf.c: Likewise.
3484         * libio/vsnprintf.c: Likewise.
3485         * libio/vswprintf.c: Likewise.
3486         * libio/wfiledoalloc.c: Likewise.
3487         * libio/wfileops.c: Likewise.
3488         * libio/wgenops.c: Likewise.
3489         * libio/wmemstream.c: Likewise.
3490         * libio/wstrops.c: Likewise.
3491         * libio/__fpurge.c: Likewise.
3492         * libio/__fsetlocking.c: Likewise.
3493         * assert/assert.c: Likewise.
3494         * debug/fgets_chk.c: Likewise.
3495         * debug/fgets_u_chk.c: Likewise.
3496         * debug/fread_chk.c: Likewise.
3497         * debug/fread_u_chk.c: Likewise.
3498         * debug/gets_chk.c: Likewise.
3499         * debug/obprintf_chk.c: Likewise.
3500         * debug/vasprintf_chk.c: Likewise.
3501         * debug/vdprintf_chk.c: Likewise.
3502         * debug/vsnprintf_chk.c: Likewise.
3503         * debug/vsprintf_chk.c: Likewise.
3504         * malloc/mtrace.c: Likewise.
3505         * misc/error.c: Likewise.
3506         * misc/syslog.c: Likewise.
3507         * stdio-common/asprintf.c: Likewise.
3508         * stdio-common/fxprintf.c: Likewise.
3509         * stdio-common/getw.c: Likewise.
3510         * stdio-common/isoc99_fscanf.c: Likewise.
3511         * stdio-common/isoc99_scanf.c: Likewise.
3512         * stdio-common/isoc99_vfscanf.c: Likewise.
3513         * stdio-common/isoc99_vscanf.c: Likewise.
3514         * stdio-common/isoc99_vsscanf.c: Likewise.
3515         * stdio-common/printf-prs.c: Likewise.
3516         * stdio-common/printf_fp.c: Likewise.
3517         * stdio-common/printf_fphex.c: Likewise.
3518         * stdio-common/printf_size.c: Likewise.
3519         * stdio-common/putw.c: Likewise.
3520         * stdio-common/scanf.c: Likewise.
3521         * stdio-common/sprintf.c: Likewise.
3522         * stdio-common/tmpfile.c: Likewise.
3523         * stdio-common/vfprintf.c: Likewise.
3524         * stdio-common/vfscanf.c: Likewise.
3525         * stdlib/strfmon_l.c: Likewise.
3526         * sunrpc/openchild.c: Likewise.
3527         * sunrpc/xdr_stdio.c: Likewise.
3528         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
3529         * sysdeps/mach/hurd/tmpfile.c: Likewise.
3530
3531 2012-05-24  Roland McGrath  <roland@hack.frob.com>
3532
3533         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
3534
3535         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
3536         in the third column, to generate for the shared library an IFUNC
3537         that uses _dl_vdso_vsym.
3538         * Makerules (COMPILE.c, compile-stdin.c): New variables.
3539         * Makeconfig (object-suffixes-noshared): New variable.
3540
3541         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
3542         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
3543         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
3544         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
3545
3546         [BZ #14132]
3547         * include/sys/time.h (__gettimeofday): Remove macro.
3548         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
3549         * time/gettimeofday.c (__gettimeofday): Remove #undef.
3550         Remove INTDEF.
3551         (__gettimeofday): Add libc_hidden_def.
3552         (gettimeofday): Add libc_hidden_weak.
3553         * sysdeps/mach/gettimeofday.c: Likewise.
3554         * sysdeps/posix/gettimeofday.c: Likewise.
3555         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
3556         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
3557         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
3558         (__gettimeofday_internal): Remove strong_alias.
3559         (__gettimeofday): Add libc_hidden_def.
3560         (gettimeofday): Add libc_hidden_weak.
3561         * sysdeps/unix/syscalls.list (gettimeofday):
3562         Remove __gettimeofday_internal alias.
3563
3564 2012-05-24  Daniel Jacobowitz  <drow@false.org>
3565             H.J. Lu  <hongjiu.lu@intel.com>
3566
3567         [BZ #12495]
3568         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
3569         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
3570         (largebin_index_32_big): New.
3571         (largebin_index): Use it for 16-byte alignment.
3572         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
3573         correction with front_misalign.
3574
3575 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
3576
3577         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
3578         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
3579         Likewise.
3580         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
3581         Likewise.
3582         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
3583         Likewise.
3584         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
3585         Likewise.
3586         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
3587         Likewise.
3588         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
3589         Likewise.
3590         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
3591         Likewise.
3592         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
3593         Likewise.
3594         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
3595         Likewise.
3596         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
3597         Likewise.
3598         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
3599         Likewise.
3600         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
3601         Likewise.
3602
3603         * scripts/data/c++-types-x32-linux-gnu.data: New file.
3604         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
3605
3606 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
3607
3608         [BZ #10846]
3609         [BZ #14036]
3610         * math/libm-test.inc (exp_test): Add test from bug 14036.
3611         (pow_test): Add test from bug 10846.
3612
3613         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
3614         and other flags.
3615         (special_function): Do not include flags in test name.
3616         (parse_args): Likewise.
3617         * sysdeps/i386/fpu/libm-test-ulps: Update.
3618         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
3619         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
3620         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
3621         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3622
3623         * math/gen-libm-test.pl (%beautify): Add entries for underflow
3624         exceptions.
3625         * math/libm-test.inc ("Philosophy"): Update comment about
3626         exception testing.
3627         (UNDERFLOW_EXCEPTION): New macro.
3628         (UNDERFLOW_EXCEPTION_OK): Likewise.
3629         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
3630         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
3631         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
3632         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
3633         (INVALID_EXCEPTION_OK): Update value.
3634         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
3635         (OVERFLOW_EXCEPTION_OK): Likewise.
3636         (IGNORE_ZERO_INF_SIGN): Likewise.
3637         (test_exceptions): Handle underflow exceptions.
3638         (acos_test): Update for underflow exception expectations.
3639         (cexp_test): Likewise.
3640         (clog_test): Likewise.
3641         (clog10_test): Likewise.
3642         (csqrt_test): Likewise.
3643         (ctan_test): Likewise.
3644         (ctanh_test): Likewise.
3645         (exp_test): Likewise.
3646         (exp10_test): Likewise.
3647         (exp2_test): Likewise.
3648         (expm1_test): Likewise.
3649         (fma_test): Likewise.
3650         (j0_test): Likewise.
3651         (jn_test): Likewise.
3652         (nexttoward_test): Likewise.
3653         (pow_test): Likewise.
3654         (scalbn_test): Likewise.
3655         (scalbln_test): Likewise.
3656         (tan_test): Likewise.
3657         (y1_test): Likewise.
3658         * sysdeps/i386/fpu/libm-test-ulps: Update.
3659         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3660
3661 2012-05-23  David S. Miller  <davem@davemloft.net>
3662
3663         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
3664         (__libc_sigaction): Remove unused local variables.
3665
3666 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
3667
3668         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
3669
3670 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
3671
3672         mktime: avoid signed integer overflow
3673         * time/mktime.c (__mktime_internal): Do not mishandle the case
3674         where diff == INT_MIN.
3675
3676         mktime: simplify computation of average
3677         * time/mktime.c (ranged_convert): Use new time_t_avg function
3678         instead of rolling our own (probably-slower) code.
3679
3680         mktime: do not assume signed right shift propagates sign bit
3681         * time/mktime.c (isdst_differ): New static function.
3682         (__mktime_internal): No need to normalize tm_isdst now.
3683         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
3684         tm_isdst values.
3685
3686         mktime: merge another wrapv change from gnulib
3687         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
3688         from some compilers.
3689
3690         mktime: remove incorrect attempt at unusual arithmetics
3691         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
3692         The code didn't really work on such machines anyway.
3693         (TYPE_MINIMUM): Assume two's complement.
3694         (twos_complement_arithmetic): Verify that long_int and time_t
3695         are two's complement (or unsigned, in the latter case).
3696
3697         mktime: check signed shifts on long_int and time_t, too
3698         * time/mktime.c (SHR): Check that shifts work as desired
3699         on the types long_int and time_t too, as SHR is used on
3700         such types.
3701
3702         mktime: do not assume 'long' is wide enough
3703         * time/mktime.c (verify): Move decl up.
3704         (long_int): New type.
3705         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
3706         to remove assumption in the code that 'long' is wide enough to
3707         store year values.  This assumption is not true on x32 and on
3708         some non-glibc platforms.
3709
3710         mktime: merge wrapv change from gnulib
3711         * time/mktime.c (WRAPV): New macro.
3712         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
3713         (guess_time_tm, __mktime_internal): Do not assume that signed
3714         integer overflow wraps around; modern compilers generate code
3715         where this assumption is no longer valid.
3716
3717 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
3718
3719         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
3720         Replace "jmp L(pseudo_end)" with "ret".
3721         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
3722         Likewise.
3723
3724 2012-05-23  Andreas Jaeger  <aj@suse.de>
3725
3726         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
3727         * sysdeps/unix/sysv/linux/poll.c: Remove file.
3728
3729 2012-05-23  Andreas Jaeger  <aj@suse.de>
3730             Maximilian Attems  <max@stro.at>
3731
3732         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
3733         New macros.
3734
3735 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
3736
3737         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
3738         code so that pseudo_end is just ret and the stack pointer is
3739         correct also for static library in error case.
3740
3741 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
3742
3743         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
3744         move to syscalls.list.
3745         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
3746         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
3747         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
3748         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
3749
3750         * manual/install.texi (Running make install): Do not mention Linux
3751         kernel version for which pt_chown is not needed.
3752         (Linux): Do not mention problems with nscd with 2.0 kernels.
3753         * INSTALL: Regenerated.
3754
3755 2012-05-23  Andreas Jaeger  <aj@suse.de>
3756
3757         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
3758         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
3759         macro.
3760         * sysdeps/unix/sysv/linux/s390/bits/mman.h
3761         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
3762         * sysdeps/unix/sysv/linux/sh/bits/mman.h
3763         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
3764         * sysdeps/unix/sysv/linux/i386/bits/mman.h
3765         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
3766         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
3767         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
3768         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
3769         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
3770         * sysdeps/unix/sysv/linux/bits/in.h
3771         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
3772
3773 2012-05-22  Roland McGrath  <roland@hack.frob.com>
3774
3775         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
3776         (PREPARE_VERSION): Just use assert instead, it will be elided
3777         under [NDEBUG] anyway.
3778
3779 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
3780
3781         * sysdeps/unix/sysv/linux/Makefile: Include
3782         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
3783         (sysdep_routines): Remove sysctl.
3784         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
3785         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
3786         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
3787         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
3788         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
3789
3790 2012-05-22  Andreas Jaeger  <aj@suse.de>
3791
3792         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
3793         that pseudo_end is just ret and the stack pointer is correct also
3794         for static library in error case.
3795
3796 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
3797
3798         [BZ #14122]
3799         * nss/nsswitch.c (defconfig_entries): New variable.
3800         (__nss_database_lookup): Don't leak defconfig entries.
3801         (nss_parse_service_list): Don't leak on error paths.
3802         (free_database_entries): New function.
3803         (free_defconfig): New function.
3804         (free_mem): Move common code to free_database_entries.
3805
3806 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
3807
3808         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
3809         Add arch_prctl.
3810         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
3811
3812         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
3813         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
3814         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
3815         New macro.
3816         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
3817         (INTERNAL_SYSCALL_TYPES): Likewise.
3818         (LOAD_ARGS_TYPES_[1-6]): Likewise.
3819         (LOAD_REGS_TYPES_[1-6]): Likewise.
3820         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
3821         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
3822
3823 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3824
3825         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
3826         copysignl for GLIBC_2_0.
3827         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
3828         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
3829         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
3830         logbl for GLIBC_2_0.
3831         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
3832         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
3833
3834 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
3835
3836         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
3837         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
3838
3839         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
3840         Use "neg %eax".
3841
3842         * time/mktime.c: Update copyright years.
3843
3844 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
3845
3846         mktime: merge comment-quoting-style change from gnulib
3847         * time/mktime.c: Quote 'like this' in comments.
3848         The GNU coding standards suggest that we no longer quote `like this',
3849         as "`" and "'" are typically rendered asymmetrically nowadays.
3850         The typical gnulib style is to quote 'like this' when quoting
3851         code, and "like this" when quoting English.
3852
3853         * time/mktime.c (compile-command): Add "-I.".
3854
3855         mktime: merge mktime-internal.h change from gnulib
3856         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
3857
3858         mktime: merge time_r change from gnulib
3859         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
3860
3861         mktime: merge DEBUG change from gnulib
3862         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
3863         case system <time.h> has a #define.
3864
3865         mktime: merge <sys/types.h> change from gnulib
3866         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
3867         since <time.t> is now guaranteed to define time_t.
3868
3869         mktime: merge HAVE_CONFIG_H change from gnulib
3870         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
3871
3872 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
3873
3874         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
3875         Use "neg %eax".
3876
3877         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
3878         __rlim_t cast.
3879         (struct rusage): Use anonymous union to pad each field to
3880         __syscall_slong_t.
3881
3882 2012-05-21  David S. Miller  <davem@davemloft.net>
3883
3884         * Makefules (o-iterator): Remove .s cases.
3885         (compile-command.s): Delete.
3886         (COMPILE.s): Delete.
3887         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
3888
3889 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
3890
3891         * configure.in (libc_cv_predef_stack_protector): Only consider
3892         "foobar" and "__stack_chk_fail" lines in libc_undefs.
3893         * configure: Regenerated.
3894
3895 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
3896
3897         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
3898         New macro.  Use R*LP on int and pointer.
3899         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
3900         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
3901         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
3902         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
3903
3904         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
3905         [__WORDSIZE_TIME64_COMPAT32] instead of
3906         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
3907         (struct utmp): Likewise.
3908         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
3909         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
3910         Renamed to ...
3911         (__WORDSIZE_TIME64_COMPAT32): This.
3912         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
3913         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
3914         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
3915         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
3916         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
3917         (__WORDSIZE_TIME64_COMPAT32): New macro.
3918
3919 2012-05-21  Andreas Jaeger  <aj@suse.de>
3920
3921         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
3922         only if [SHARED]. Add prototype for __wcschr_ia32.
3923
3924 2012-05-21  Roland McGrath  <roland@hack.frob.com>
3925
3926         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
3927         of %rbp unmolested in the jmp_buf while mangling the low bits.
3928         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
3929         unmolested high bits of %rbp while demangling the low bits.
3930         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
3931
3932 2012-05-21  Andreas Jaeger  <aj@suse.de>
3933
3934         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
3935         * sunrpc/svc_simple.c: Use it for registerrpc.
3936         * sunrpc/xcrypt.c: Use it for passwd2des.
3937
3938         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
3939
3940 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
3941
3942         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
3943         Don't define if [__SYSCALL_WORDSIZE != 32].
3944         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
3945         New macro.
3946
3947 2012-05-21  Bruno Haible  <bruno@clisp.org>
3948             Andreas Jaeger  <aj@suse.de>
3949
3950         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
3951         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
3952         inptr and inend for must_buffer_ch.
3953         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
3954         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
3955         * stdio-common/Makefile (tests): Remove bug15.
3956         (bug15-ENV): Remove macro.
3957         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
3958         anymore.
3959
3960 2012-05-19  Andreas Jaeger  <aj@suse.de>
3961             Roland McGrath  <roland@hack.frob.com>
3962
3963         * manual/contrib.texi: Completely rewritten. It contains now an
3964         alphabetical list of contributors and their contributions.
3965
3966 2012-05-21  Richard Henderson  <rth@twiddle.net>
3967
3968         * misc/getauxval.c (__getauxval): Use unsigned long int.
3969         * misc/sys/auxv.h: Include <sys/cdefs.h>.
3970         (getauxval): Use unsigned long int.
3971
3972 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
3973
3974         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
3975
3976 2012-05-21  Roland McGrath  <roland@hack.frob.com>
3977
3978         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
3979         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
3980         __alignof__ (long double).
3981
3982 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3983
3984         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3985
3986 2012-05-20  Richard Henderson  <rth@twiddle.net>
3987
3988         * misc/getauxval.c: New file.
3989         * misc/sys/auxv.h: New file.
3990         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
3991         (routines): Add getauxval.
3992         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
3993         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
3994         * elf/dl-sysdep.c (_dl_auxv): Remove.
3995         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
3996         * elf/dl-support.c (_dl_auxv): New variable.
3997         (_dl_aux_init): Initialize it.
3998         * manual/startup.texi (Auxiliary Vector): New node.
3999         * sysdeps/generic/bits/hwcap.h: New file.
4000         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
4001         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
4002         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
4003         * sysdeps/sparc/sysdep.h: ... here.  Include it.
4004         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
4005         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
4006         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
4007         Update.
4008         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
4009         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
4010         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
4011         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
4012         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
4013         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
4014         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
4015         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
4016
4017 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4018
4019         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4020
4021 2012-05-19  David S. Miller  <davem@davemloft.net>
4022
4023         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4024
4025 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
4026
4027         [BZ #14123]
4028         * math/s_ccosh.c: Include <float.h>
4029         (__ccosh): Avoid internal overflow calculating sinh and cosh
4030         values before multiplying by sin and cos values.
4031         * math/s_ccoshf.c: Likewise.
4032         * math/s_ccoshl.c: Likewise.
4033         * math/s_csin.c: Likewise.
4034         * math/s_csinf.c: Likewise.
4035         * math/s_csinl.c: Likewise.
4036         * math/s_csinh.c: Likewise.
4037         * math/s_csinhf.c: Likewise.
4038         * math/s_csinhl.c: Likewise.
4039         * math/libm-test.inc (ccos_test): Add more tests.
4040         (ccosh_test): Likewise.
4041         (csin_test): Likewise.
4042         (csinh_test): Likewise.
4043         * sysdeps/i386/fpu/libm-test-ulps: Update.
4044         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4045
4046 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
4047
4048         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
4049         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
4050
4051         * sysdeps/x86_64/x32/_itoa.h: Add comment.
4052
4053 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
4054
4055         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
4056         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
4057         * sysdeps/powerpc/soft-fp/Versions: Likewise.
4058         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
4059         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
4060         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
4061         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
4062         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
4063         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
4064         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
4065         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
4066         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
4067         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
4068         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
4069         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
4070         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
4071         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
4072         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
4073         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
4074         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
4075         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
4076         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
4077         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
4078         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
4079         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
4080         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
4081         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
4082         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
4083         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
4084         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
4085         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
4086
4087 2012-05-18  Andreas Jaeger  <aj@suse.de>
4088
4089         * csu/.gitignore: Delete.
4090
4091 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
4092
4093         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
4094         (timex): Use __syscall_slong_t.
4095
4096 2012-05-18  Andreas Jaeger  <aj@suse.de>
4097             Carlos O'Donell  <carlos_odonell@mentor.com>
4098
4099         * manual/install.texi (Configuring and compiling): Update
4100         description about files modified in the source directory.
4101         * INSTALL: Regenerated.
4102
4103 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
4104
4105         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
4106         value.  Use "or" to set return value to -1.
4107         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
4108         negate return value.
4109
4110 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4111
4112         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
4113         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
4114         failure if the compiler has Graphite support disabled.
4115         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
4116         Likewise.
4117         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
4118         CFLAGS-memmove.c): Likewise.
4119         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
4120         Likewise.
4121
4122 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
4123
4124         * sysdeps/x86_64/x32/_itoa.h: New file.
4125
4126         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
4127         getdents system call only if kernel and user dirents have the
4128         same d_ino and d_off.
4129
4130         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
4131         LLONG_MAX != LONG_MAX.
4132         (_itoa_word): Use _ITOA_WORD_TYPE on value.
4133         (_fitoa_word): Likewise.
4134
4135         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
4136         years.
4137         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
4138         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
4139         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
4140
4141         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
4142         include <bits/wordsize.h>.  Check __x86_64__ instead of
4143         __WORDSIZE.
4144         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
4145         if __x86_64__ is defined.  Use anonymous union on fpstate.
4146
4147         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
4148         anonymous union.
4149
4150 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
4151
4152         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
4153         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
4154         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
4155         Refer to _rtld_local_ro instead of _rtld_global_ro.
4156         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
4157         Likewise.
4158         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
4159         Likewise.
4160         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
4161         Likewise.
4162         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
4163         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
4164         of _rtld_global, and rtld_progname instead of _dl_argv[0].
4165
4166         * sysdeps/powerpc/powerpc32/dl-machine.c
4167         (__elf_machine_runtime_setup) [PROF]: Don't reference
4168         _dl_prof_resolve.
4169
4170 2012-05-18  Andreas Jaeger  <aj@suse.de>
4171
4172         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
4173         function only available for GCCs before 3.4 since GCC 3.4
4174         introduced a builtin.
4175         (lrint): Likewise.
4176         (llrintf): Likewise.
4177         (llrint): Likewise.
4178         (fmaxf): Likewise.
4179         (fmax): Likewise.
4180         (fminf): Likewise.
4181         (fmin): Likewise.
4182         (rint): Likewise.
4183         (rintf): Likewise.
4184         (nearbyint): Likewise.
4185         (nearbyintf): Likewise.
4186         (ceil): Likewise.
4187         (ceilf): Likewise.
4188         (floor): Likewise.
4189         (floorf): Likewise.
4190
4191 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
4192
4193         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
4194         on both fields and cast pointer to __syscall_ulong_t.
4195
4196         * bits/types.h (__fsword_t): New type.
4197         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
4198         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
4199         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
4200         (__FSWORD_T_TYPE): Likewise.
4201         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
4202         (__FSWORD_T_TYPE): Likewise.
4203         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
4204         (__FSWORD_T_TYPE): Likewise.
4205         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
4206         (__FSWORD_T_TYPE): Likewise.
4207         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
4208         __SWORD_TYPE with __fsword_t.
4209         (statfs64): Likewise.
4210
4211 2012-05-17  David S. Miller  <davem@davemloft.net>
4212
4213         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
4214
4215 2012-05-17  Andreas Jaeger  <aj@suse.de>
4216
4217         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
4218         warning.
4219
4220 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
4221
4222         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
4223
4224 2012-05-17  Andreas Jaeger  <aj@suse.de>
4225
4226         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
4227         when it is used.
4228
4229 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
4230
4231         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
4232
4233 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
4234
4235         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
4236         * sysdeps/x86_64/tst-mallocalign1.c: New file.
4237
4238 2012-05-17  Andreas Jaeger  <aj@suse.de>
4239             Carlos O'Donell  <carlos_odonell@mentor.com>
4240
4241         [BZ #14059]
4242         * sysdeps/x86_64/multiarch/init-arch.h
4243         (bit_YMM_Usable): Rename to...
4244         (bit_AVX_Usable): ... this.
4245         (bit_FMA4_Usable): New macro.
4246         (bit_XMM_state): New macro.
4247         (bit_YMM_state): New macro.
4248         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
4249         [__ASSEMBLER__] (index_AVX_Usable): ... this.
4250         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
4251         (CPUID_OSXSAVE): New macro.
4252         (CPUID_AVX): New macro.
4253         (CPUID_FMA4): New macro.
4254         (index_YMM_Usable): Rename to...
4255         (index_AVX_Usable): ... this.
4256         (HAS_AVX): Use HAS_ARCH_FEATURE.
4257         (HAS_FMA4): Likewise.
4258         (HAS_YMM_USABLE): Remove.
4259         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
4260         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
4261         are present.
4262         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
4263         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
4264         * sysdeps/x86_64/multiarch/Makefile: Likewise.
4265         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
4266         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
4267
4268 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
4269
4270         * math/libm-test.c: Support platforms without multiple rounding modes.
4271         * math/bug-nextafter.c: Support platforms without FP exceptions.
4272         * math/bug-nexttoward.c: Likewise.
4273         * math/test-fenv.c: Likewise.
4274         * math/test-misc.c: Likewise.
4275         * stdlib/bug-getcontext.c: Likewise.
4276
4277 2012-05-17  Andreas Jaeger  <aj@suse.de>
4278
4279         * manual/examples/search.c (critter_cmp): Change signature to
4280         avoid warnings.
4281         * manual/string.texi (Collation Functions): Likewise.
4282
4283 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
4284
4285         * bits/types.h: Fold copyright years.
4286         * bits/typesizes.h: Likewise.
4287         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
4288         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
4289         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
4290         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
4291         * time/time.h: Likewise.
4292
4293 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
4294
4295         [BZ #208]
4296         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
4297         in instead of returning them.  Return void.
4298         (__libc_mallinfo): Accumulate over all arenas.
4299         (__malloc_stats): Adjust for change in int_mallinfo interface.
4300
4301 2012-05-16  Roland McGrath  <roland@hack.frob.com>
4302
4303         [BZ #10375]
4304         * configure.in (NM): Add AC_CHECK_TOOL for it.
4305         (libc_extra_cflags): New substituted variable.
4306         Check for -fstack-protector being used implicitly.
4307         * configure: Regenerated.
4308         * config.make.in (config-extra-cflags): New variable,
4309         gets @libc_extra_cflags@.
4310         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
4311
4312         [BZ #10375]
4313         * configure.in: Check for _FORTIFY_SOURCE being predefined.
4314         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
4315         * configure: Regenerated.
4316         * config.make.in (CPPUNDEFS): New substituted variable.
4317         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
4318         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
4319         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
4320
4321 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
4322
4323         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
4324         (mq_attr): Use __syscall_slong_t.
4325
4326 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
4327
4328         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
4329         Check __x86_64__ instead of __WORDSIZE.
4330         (_STAT_VER_LINUX): Likewise.
4331         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
4332         __syscall_ulong_t and __syscall_slong_t.
4333         (stat64): Likewise.
4334
4335 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
4336
4337         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
4338
4339 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
4340
4341         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
4342
4343 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
4344
4345         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
4346         __syscall_ulong_t.
4347
4348         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
4349         include <bits/wordsize.h>.  Check __x86_64__ instead of
4350         __WORDSIZE.
4351         (greg_t): Use "__extension__ long long int" if __x86_64__ is
4352         defined.
4353         (mcontext_t): Replace "unsigned long" with "unsigned long long".
4354
4355         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
4356         include <bits/wordsize.h>.  Check __x86_64__ instead of
4357         __WORDSIZE.
4358         (user_regs_struct): Use "__extension__ unsigned long long"
4359         instead of "unsigned long" if __x86_64__ is defined.
4360         (user): Likewise.  Pad after pointer field if __ILP32__ is
4361         defined.
4362
4363 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
4364
4365         * configure.in (makeinfo): Require version 4.5 or later.  Allow
4366         versions 5 to 9.
4367         * configure: Regenerated.
4368         * manual/install.texi (texinfo): Increase version requirement to
4369         4.5 or later.
4370         * INSTALL: Regenerated.
4371
4372         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
4373
4374 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
4375
4376         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
4377
4378         * sysdeps/x86_64/x32/ffs.c: New file.
4379
4380         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
4381         __syscall_ulong_t.
4382         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
4383         defined.  Use __syscall_ulong_t.
4384         (shminfo): Use __syscall_ulong_t.
4385         (shm_info): Likewise.
4386
4387         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
4388         __syscall_ulong_t.
4389
4390         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
4391         <bits/wordsize.h>.
4392         (msgqnum_t): Use __syscall_ulong_t.
4393         (msglen_t): Likewise.
4394         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
4395         __syscall_ulong_t.
4396
4397         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
4398         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
4399
4400         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
4401
4402         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
4403         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
4404
4405         * sysvipc/sys/msg.h (msgbuf): Replace long int with
4406         __syscall_slong_t.
4407
4408         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
4409         include <bits/wordsize.h>.  Check __x86_64__ instead of
4410         __WORDSIZE.
4411
4412         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
4413         "unsigned long long int" if __x86_64__ is defined.
4414         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
4415
4416         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
4417         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
4418         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
4419
4420         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
4421         <stdint.h>.
4422         (GET_PC): Cast to uintptr_t first.
4423         (GET_FRAME): Likewise.
4424         (GET_STACK): Likewise.
4425
4426         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
4427         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
4428         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
4429         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
4430         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
4431         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
4432         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
4433         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
4434         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
4435         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
4436         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
4437         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
4438         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
4439         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
4440         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
4441         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
4442         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
4443         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
4444         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
4445         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
4446         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
4447         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
4448         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
4449         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
4450         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
4451         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
4452         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
4453         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
4454         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
4455
4456 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
4457
4458         * Makerules (+depfiles): Also collect depfiles from .oS in
4459         $(extra-objs).
4460         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
4461         .oS, $(libnldbl-routines)).
4462
4463         * Makerules (native-compile-mkdep-flags): Define.
4464         * sunrpc/Makefile (extra-objs): Add $(addprefix
4465         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
4466         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
4467         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
4468         calling $(make-target-directory).
4469
4470 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4471
4472         * bits/types.h (__snseconds_t): Removed.
4473         * time/time.h (struct timespec): Replace __snseconds_t with
4474         __syscall_slong_t.
4475         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
4476         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
4477         Likewise.
4478         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
4479         (__SNSECONDS_T_TYPE): Likewise.
4480         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
4481         (__SNSECONDS_T_TYPE): Likewise.
4482         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
4483         (__SNSECONDS_T_TYPE): Likewise.
4484
4485 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4486
4487         * sysdeps/mach/hurd/bits/typesizes.h
4488         (__SYSCALL_SLONG_TYPE): New macro.
4489         (__SYSCALL_ULONG_TYPE): Likewise.
4490
4491 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4492
4493         * bits/types.h (__syscall_slong_t): New type.
4494         (__syscall_ulong_t): Likewise.
4495
4496         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
4497         (__SYSCALL_ULONG_TYPE): Likewise.
4498         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
4499         (__SYSCALL_SLONG_TYPE): Likewise.
4500         (__SYSCALL_ULONG_TYPE): Likewise.
4501         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
4502         (__SYSCALL_SLONG_TYPE): Likewise.
4503         (__SYSCALL_ULONG_TYPE): Likewise.
4504         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
4505         (__SYSCALL_SLONG_TYPE): Likewise.
4506         (__SYSCALL_ULONG_TYPE): Likewise.
4507
4508 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4509
4510         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
4511         Add sigaltstack-offsets.sym.
4512         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
4513         <sigaltstack-offsets.h>.
4514         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
4515         longjmp_msg pointer.
4516         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
4517         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
4518         signal stack.
4519         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
4520
4521 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
4522
4523         * elf/stackguard-macros.h: Remove file.
4524         * sysdeps/generic/stackguard-macros.h: New file.
4525         * sysdeps/i386/stackguard-macros.h: Likewise.
4526         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
4527         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
4528         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
4529         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
4530         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
4531         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
4532         * sysdeps/x86_64/stackguard-macros.h: Likewise.
4533         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
4534         <elf/stackguard-macros.h>.
4535
4536         [BZ #14109]
4537         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
4538         __aligned__ in attribute.
4539         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
4540         (gregset_t): Likewise.
4541
4542 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4543
4544         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
4545         * sysdeps/x86_64/64/Implies-after: Here.  New file.
4546         * sysdeps/x86_64/x32/Implies-after: New file.
4547
4548 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4549
4550         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
4551         and access return value for _dl_profile_fixup.  Use R10_LP to
4552         load frame size.
4553
4554 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4555
4556         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
4557
4558 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4559
4560         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
4561         * sysdeps/x86_64/x32/sysdep.h: New file.
4562
4563 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4564
4565         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
4566         * sysdeps/x86_64/setjmp.S: Likewise.
4567
4568 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4569
4570         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
4571         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
4572         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
4573         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
4574         remove unused global constant.
4575
4576 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
4577
4578         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
4579         include of <not-cancel.h>.
4580
4581 2012-05-15  Roland McGrath  <roland@hack.frob.com>
4582
4583         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
4584
4585 2012-05-15  Jeff Law  <law@redhat.com>
4586             Andreas Jaeger  <aj@suse.de>
4587
4588         [BZ #13594]
4589         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
4590         out from...
4591         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
4592         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
4593         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
4594         code changing __hst_map_handle.map.
4595
4596 2012-05-15  Roland McGrath  <roland@hack.frob.com>
4597
4598         * configure.in (sysnames): Look for Implies-before and Implies-after
4599         files.
4600         * configure: Regenerated.
4601
4602 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4603
4604         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
4605         8-byte data alignment with LP_SIZE alignment.
4606
4607 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4608
4609         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
4610         into R10_LP.
4611
4612 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4613
4614         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
4615
4616 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4617
4618         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
4619         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
4620         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
4621         Likewise.
4622         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
4623
4624 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4625
4626         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
4627         (stackinfo_sub_sp): Likewise.
4628
4629 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4630
4631         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
4632         RAX_LP.
4633
4634 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4635
4636         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
4637         into R*_LP.
4638
4639 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4640
4641         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
4642         sizes into R*_LP.
4643
4644 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4645
4646         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
4647
4648 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4649
4650         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
4651         into R11_LP and load __x86_64_shared_cache_size_half into
4652         R8_LP.
4653
4654 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4655
4656         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
4657         R8_LP.
4658
4659 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4660
4661         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
4662         logb for POWER7.
4663         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
4664         logbf for POWER7.
4665         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
4666         logbl for POWER7.
4667         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
4668         powerpc32/power7/fpu/s_logb.c via #include.
4669         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
4670         powerpc32/power7/fpu/s_logbf.c via #include.
4671         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
4672         powerpc32/power7/fpu/s_logbl.c via #include.
4673
4674 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
4675
4676         * README.libm: Remove file.
4677
4678 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
4679
4680         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
4681         count for x32.  Use R*_LP and omit operand-size suffix.
4682
4683 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
4684
4685         * shlib-versions: Move x86_64-.*-linux.* entries to ...
4686         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
4687         * sysdeps/x86_64/x32/shlib-versions: New file.
4688
4689 2012-05-14  Roland McGrath  <roland@hack.frob.com>
4690
4691         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
4692         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
4693         Use _dl_fatal_printf instead.
4694
4695 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
4696
4697         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
4698         set if not set by the user.  Do not allow for being unset.
4699         * sysdeps/unix/sysv/linux/configure: Regenerated.
4700
4701 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
4702
4703         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
4704         the `q' suffix from lea and replace .quad with ASM_ADDR.
4705
4706 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
4707
4708         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
4709         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
4710         instead of $17.
4711         (PTR_DEMANGLE): Likewise.
4712
4713 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
4714
4715         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
4716         (LP_OP): Likewise.
4717         (ASM_ADDR): Likewise.
4718         (RAX_LP): Likewise.
4719         (RBP_LP): Likewise.
4720         (RBX_LP): Likewise.
4721         (RCX_LP): Likewise.
4722         (RDI_LP): Likewise.
4723         (RSI_LP): Likewise.
4724         (RSP_LP): Likewise.
4725         (R8_LP): Likewise.
4726         (R9_LP): Likewise.
4727         (R10_LP): Likewise.
4728         (R10_LP): Likewise.
4729         (R11_LP): Likewise.
4730         (R12_LP): Likewise.
4731         (R13_LP): Likewise.
4732         (R14_LP): Likewise.
4733         (R15_LP): Likewise.
4734
4735 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
4736
4737         * sysdeps/x86_64/x32/dl-machine.h: New file.
4738
4739 2012-05-14  Andreas Jaeger  <aj@suse.de>
4740
4741         * manual/Makefile (subdir): Remove export of subdir.
4742         (all): Remove target.
4743         (.PHONY): Remove all from list.
4744         (mkinstalldirs): Remove.
4745         (.PHONY): Remove installdirs from list.
4746         ($(inst_infodir)/libc.info): Use make-target-directory.
4747         (installdirs): Remove.
4748         (subdir_%): Remove.
4749         (glibc-targets): Remove.
4750         (lib): Remove.
4751         (stubs): Remove.
4752         ($(objpfx)stubs ../po/manual.pot): Remove.
4753         ($(objpfx)stamp%): Remove.
4754         (make-target-directory): Remove.
4755         (subdir_install): Remove.
4756         (routines): Remove.
4757         (aux): Remove.
4758         (sources): Remove.
4759         (objects): Remove.
4760         (headers): Remove.
4761
4762         [BZ #13750]
4763         * manual/.gitignore: Remove, it's not needed anymore.
4764         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
4765         all files in it.
4766         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
4767         directory.
4768         (texis): Renamed to $(objpfx)texis.
4769         (texis-path): New, contains path to generated files.
4770         (chapters.%): Use texis-path for complete path, add extra argument
4771         libc-texinfo.sh.
4772         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
4773         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
4774         (summary,texi, stamp-summary): Use complete path of
4775         files. Generate files in build dir.
4776         (dir-add.texi): Build in build dir.
4777         (libm-err.texi,stamp-libm-err): Likewise.
4778         (version.texi, stamp-version): Likewise.
4779         (.%c.texi): Likewise.
4780         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
4781         (mostlyclean): Remove target.
4782         (realclean): Remove target.
4783         (generated): Add new variable with contents from mostlyclean and
4784         realclean, remove entries duplicated in common-mostlyclean, add
4785         stamp-libm-err and stamp-version.
4786         (generated-dirs): Add libc directory.
4787         ($(inst_infodir)/libc.info): Install files from build dir.
4788
4789         * manual/install.texi (Configuring and compiling): Adjust since
4790         the info files are not part of the tar ball anymore.
4791
4792 2012-05-14  Andreas Jaeger  <aj@suse.de>
4793
4794         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
4795         variable.
4796
4797 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
4798
4799         [BZ #13717]
4800         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
4801         to 2.2.0 where earlier.
4802         * sysdeps/unix/sysv/linux/configure: Regenerated.
4803         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
4804         Remove conditional code.
4805         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
4806         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
4807         Remove conditional code.
4808         [!__NR_lchown]: Likewise.
4809         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
4810         [__NR_lchown]: Likewise.
4811         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
4812         comment referencing __ASSUME_LCHOWN_SYSCALL.
4813         * sysdeps/unix/sysv/linux/i386/sigaction.c
4814         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
4815         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
4816         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
4817         Remove conditional code.
4818         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
4819         (__protocol_available): Remove #if 0 code.
4820         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
4821         conditional code.
4822         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
4823         * sysdeps/unix/sysv/linux/kernel-features.h
4824         (__ASSUME_GETCWD_SYSCALL): Don't define.
4825         (__ASSUME_REALTIME_SIGNALS): Likewise.
4826         (__ASSUME_PREAD_SYSCALL): Likewise.
4827         (__ASSUME_PWRITE_SYSCALL): Likewise.
4828         (__ASSUME_POLL_SYSCALL): Likewise.
4829         (__ASSUME_LCHOWN_SYSCALL): Likewise.
4830         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
4831         non-SPARC.
4832         (__ASSUME_SIOCGIFNAME): Don't define.
4833         (__ASSUME_MSG_NOSIGNAL): Likewise.
4834         (__ASSUME_SENDFILE): Define unconditionally.
4835         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
4836         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
4837         conditional code.
4838         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
4839         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
4840         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
4841         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
4842         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
4843         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
4844         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
4845         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
4846         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
4847         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
4848         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
4849         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
4850         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
4851         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
4852         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
4853         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
4854         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
4855         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
4856         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
4857         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
4858         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
4859         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
4860         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
4861         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
4862         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
4863         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
4864         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
4865         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
4866         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
4867         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
4868         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
4869         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
4870         Remove conditional code.
4871         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
4872         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
4873         Remove conditional code.
4874         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
4875         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
4876         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
4877         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
4878         Remove conditional code.
4879         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
4880         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
4881         Remove conditional code.
4882         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
4883         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
4884         Remove conditional code.
4885         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
4886         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
4887         Remove conditional code.
4888         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
4889         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
4890         Remove conditional code.
4891         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
4892         * sysdeps/unix/sysv/linux/sh/pwrite64.c
4893         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
4894         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
4895         * sysdeps/unix/sysv/linux/sigaction.c
4896         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
4897         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
4898         * sysdeps/unix/sysv/linux/sigpending.c
4899         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
4900         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
4901         * sysdeps/unix/sysv/linux/sigprocmask.c
4902         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
4903         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
4904         * sysdeps/unix/sysv/linux/sigsuspend.c
4905         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
4906         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
4907         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
4908         (__libc_missing_rt_sigs): Remove.
4909         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
4910         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
4911         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
4912         Remove conditional code.
4913         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
4914         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
4915         return 1.
4916         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
4917         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
4918         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
4919         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
4920
4921 2012-05-14  Andreas Jaeger  <aj@suse.de>
4922
4923         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
4924         it's not used in glibc.
4925         (__coshm1): Likewise.
4926         (__acosh1p): Likewise.
4927         (__sgn): Likewise.
4928
4929         * manual/string.texi (Copying and Concatenation): Add missing
4930         variable in concat example.
4931         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
4932
4933 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
4934
4935         [BZ #14103]
4936         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
4937         __builtin_clzl with __builtin_clzll.
4938
4939 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
4940
4941         [BZ #14104]
4942         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
4943         libc_freeres_ptr.
4944
4945 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
4946
4947         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
4948         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
4949         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
4950         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
4951
4952 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
4953
4954         * NEWS: Update ia64 info.
4955
4956 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
4957
4958         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
4959         used as bcopy.
4960
4961 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
4962
4963         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
4964         * sysdeps/unix/syscalls.list (dup3): Likewise.
4965         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
4966         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
4967
4968 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
4969
4970         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
4971         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
4972
4973 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
4974
4975         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
4976         thread pointer.
4977         (TLS_IE): Use mov/add instead of movq/addq to load thread
4978         pointer.
4979         (TLS_GD_PREFIX): New.
4980         (TLS_GD): Use it.
4981
4982 2012-05-11  David S. Miller  <davem@davemloft.net>
4983
4984         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
4985         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
4986         (_FPU_SETCW): Likewise.
4987
4988 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
4989
4990         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
4991         is 32-byte aligned.
4992
4993 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
4994
4995         [BZ #11837]
4996         * iconvdata/gb18030.c: Update tables.
4997         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
4998         characters specially.
4999         (BODY for TO_LOOP): Add encoding of missing ranges.
5000
5001 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
5002
5003         [BZ #13673]
5004         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
5005         * sysdeps/mach/hurd/dup3.c: Likewise.
5006         * sysdeps/mach/hurd/readlinkat.c: Likewise.
5007         * sysdeps/powerpc/memmove.c:: Likewise.
5008
5009 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
5010
5011         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
5012         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
5013
5014 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
5015
5016         * elf/elf.h (R_X86_64_RELATIVE64): New.
5017         (R_X86_64_NUM): Updated.
5018         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
5019         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
5020         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
5021         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
5022         tst-quad1pie tst-quad2pie
5023         (modules-names): Add tst-quadmod1 tst-quadmod2.
5024         ($(objpfx)tst-quad1): New dependency.
5025         ($(objpfx)tst-quad2): Likewise.
5026         ($(objpfx)tst-quad1pie): Likewise.
5027         ($(objpfx)tst-quad2pie): Likewise.
5028         * sysdeps/x86_64/tst-quad1.c: New file.
5029         * sysdeps/x86_64/tst-quad1pie.c: New file.
5030         * sysdeps/x86_64/tst-quad2.c: Likewise.
5031         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
5032         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
5033         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
5034         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
5035         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
5036
5037 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5038
5039         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
5040         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
5041         * streams/stropts.h (t_scalar_t): Define type.
5042
5043         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
5044         (_PATH_PRESERVE): Set to "/var/lib".
5045         (_PATH_RWHODIR): Set to "/var/spool/rwho".
5046
5047         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
5048         instead of int.
5049
5050         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
5051         if __dir_mkfile succeeded.
5052
5053         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
5054         checking for _hurd_dtablesize.  Unlock it right after having
5055         finished _hurd_dtable allocation.
5056
5057 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5058
5059         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
5060         * sysdeps/mach/hurd/configure: Regenerated.
5061         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
5062         special-casing to...
5063         * sysdeps/gnu/configure.in: ... this new file.
5064         * sysdeps/unix/sysv/linux/configure: Regenerated.
5065         * sysdeps/gnu/configure: New generated file.
5066
5067         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
5068         for Linux: use nsec instead of usec, as well as:
5069         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
5070         members of type struct timespec.
5071         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
5072         New macros.
5073         (struct stat64): Likewise.
5074         (_STATBUF_ST_NSEC): New macro.
5075         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
5076
5077         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
5078         __strtoul_internal rather than strtoul.
5079
5080 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
5081
5082         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
5083         and reject them.
5084
5085 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5086
5087         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
5088         which preserves existing values.
5089         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
5090
5091 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
5092
5093         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
5094         TIMEOUT values.  Return EINVAL for NFDS values either negative or
5095         greater than FD_SETSIZE.
5096
5097 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5098
5099         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
5100         allocated, call __vm_protect to finish enabling the existing space, and
5101         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
5102         allocate the remainder.
5103
5104 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
5105
5106         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
5107         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
5108
5109 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5110
5111         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
5112         sysdeps/mach/hurd/readlink.c.
5113
5114         * posix/tst-sysconf.c (posix_options): Only use
5115         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
5116         _POSIX_SYNCHRONIZED_IO when they are defined
5117         * sysdeps/mach/hurd/bits/posix_opt.h:
5118         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
5119         (_XOPEN_REALTIME): Undefine macro.
5120         (_XOPEN_REALTIME_THREADS): Undefine macro.
5121         (_XOPEN_SHM): Undefine macro.
5122         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
5123         macro to -1.
5124         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
5125         macro to -1.
5126         (_POSIX_ASYNC_IO): Undefine macro.
5127         (_POSIX_PRIORITIZED_IO): Undefine macro.
5128         (_POSIX_SPIN_LOCKS): Define macro to -1.
5129
5130         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
5131         SA_NODEFER, SA_RESETHAND.
5132         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
5133         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
5134         F_DUPFD_CLOEXEC.
5135
5136 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5137
5138         * elf/Makefile (pldd-modules): Define unconditionally.
5139
5140 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5141
5142         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
5143
5144 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5145
5146         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
5147         Return ENOENT when name is empty.
5148         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
5149
5150 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5151
5152         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
5153
5154         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
5155
5156 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5157
5158         Fix mlock in all cases except non-readable pages.
5159         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
5160         instead of VM_PROT_ALL as parameter to __vm_wire function.
5161
5162         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
5163         (__mkdir): When path is `/', just fail with EEXIST.
5164         * sysdeps/mach/hurd/mkdirat.c: Likewise.
5165
5166 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5167
5168         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
5169         <sys/uio.h> (for writev).
5170         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
5171         and <sys/param.h> (for MIN).
5172
5173 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
5174
5175         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
5176         REQUESTED_TIME.  Properly set the remaining time and return EINTR
5177         if interrupted.
5178
5179 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5180
5181         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
5182         Depend on against $(link-rpcuserlibs).
5183
5184 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5185
5186         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
5187         (__libc_stack_end): Do not use attribute_relro.
5188         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
5189         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
5190         to libthread-provided value.
5191         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
5192         attribute_relro.
5193
5194 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5195
5196         [BZ #3748]
5197         * bits/libc-lock.h (__libc_once_get): New macro.
5198         * sysdeps/mach/bits/libc-lock.h: Likewise.
5199         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
5200         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
5201         instead of using implementation details.
5202
5203         * libio/fileops.c: Unconditionally include <kernel-features.h>.
5204         * libio/freopen.c: Likewise.
5205         * libio/freopen64.c: Likewise.
5206         * misc/syslog.c: Likewise.
5207         * nscd/connections.c: Likewise.
5208         * nscd/netgroupcache.c: Likewise.
5209         * sysdeps/posix/getcwd.c: Likewise.
5210
5211 2012-05-10  Roland McGrath  <roland@hack.frob.com>
5212
5213         * math/w_ilogbf.c: Add #include <limits.h>.
5214
5215 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5216
5217         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
5218         path instead of returning without unlocking.
5219
5220         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
5221         immediate-write ioctls.
5222         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
5223
5224 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5225
5226         * sysdeps/mach/hurd/i386/init-first.c (init): Use
5227         __builtin_frame_address instead of making assumptions about the
5228         location of the return address relative to DATA.  Force early load of
5229         the return address.
5230         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
5231         __builtin_frame_address.
5232
5233         dup3 for GNU Hurd.
5234         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
5235         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
5236         implement dup3 and do some further code clean-ups.
5237         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
5238         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
5239
5240 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5241
5242         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
5243
5244         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
5245         HURD_CRITICAL_END around holding _hurd_dtable_lock.
5246         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
5247         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
5248         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
5249         d->port.lock.
5250
5251         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
5252         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
5253         when handler == SIG_ERR, not when handler != SIG_ERR.
5254
5255 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5256
5257         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
5258         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
5259         definitions.
5260
5261         accept4 for GNU Hurd.
5262         * include/sys/socket.h (__libc_accept4): New prototype.
5263         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
5264         to implement __libc_accept4.
5265         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
5266         __libc_accept4.
5267         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
5268
5269         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
5270         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
5271         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
5272         signal-defines.sym.
5273
5274 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5275
5276         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
5277
5278 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5279
5280         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
5281         assertion on O_CLOEXEC flag.
5282         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
5283         * hurd/intern-fd.c: Likewise.
5284         * hurd/port2fd.c: Likewise.
5285
5286 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5287
5288         [BZ #3906]
5289         * bits/in.h (IPV6_PKTINFO): Define new macro.
5290         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
5291
5292 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5293
5294         [BZ #13954]
5295         [BZ #13955]
5296         [BZ #13956]
5297         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
5298         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
5299         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
5300         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
5301         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
5302         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
5303         * math/libm-test.inc (logb_test) : Additional logb tests.
5304
5305 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
5306             Andreas Jaeger  <aj@suse.de>
5307
5308         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
5309         * configure: Regenerated.
5310         * config.h.in (LINK_OBSOLETE_RPC): New macro.
5311         * config.make.in (link-obsolete-rpc): New substituted variable.
5312         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
5313         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
5314         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
5315         (shared-only-routines): Don't set it under [link-obsolete-rpc],
5316         so that libc.a contains the symbols.
5317         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
5318         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
5319         * sunrpc/auth_none.c: Likewise.
5320         * sunrpc/auth_unix.c: Likewise.
5321         * sunrpc/authdes_prot.c: Likewise.
5322         * sunrpc/authuxprot.c: Likewise.
5323         * sunrpc/clnt_gen.c: Likewise.
5324         * sunrpc/clnt_perr.c: Likewise.
5325         * sunrpc/clnt_raw.c: Likewise.
5326         * sunrpc/clnt_simp.c: Likewise.
5327         * sunrpc/clnt_tcp.c: Likewise.
5328         * sunrpc/clnt_udp.c: Likewise.
5329         * sunrpc/clnt_unix.c: Likewise.
5330         * sunrpc/des_crypt.c: Likewise.
5331         * sunrpc/des_soft.c: Likewise.
5332         * sunrpc/get_myaddr.c: Likewise.
5333         * sunrpc/key_call.c: Likewise.
5334         * sunrpc/key_prot.c: Likewise.
5335         * sunrpc/netname.c: Likewise.
5336         * sunrpc/pm_getmaps.c: Likewise.
5337         * sunrpc/pm_getport.c: Likewise.
5338         * sunrpc/pmap_clnt.c: Likewise.
5339         * sunrpc/pmap_prot.c: Likewise.
5340         * sunrpc/pmap_prot2.c: Likewise.
5341         * sunrpc/pmap_rmt.c: Likewise.
5342         * sunrpc/publickey.c: Likewise.
5343         * sunrpc/rpc_cmsg.c: Likewise.
5344         * sunrpc/rpc_common.c: Likewise.
5345         * sunrpc/rpc_dtable.c: Likewise.
5346         * sunrpc/rpc_prot.c: Likewise.
5347         * sunrpc/rpc_thread.c: Likewise.
5348         * sunrpc/rtime.c: Likewise.
5349         * sunrpc/svc.c: Likewise.
5350         * sunrpc/svc_auth.c: Likewise.
5351         * sunrpc/svc_raw.c: Likewise.
5352         * sunrpc/svc_run.c: Likewise.
5353         * sunrpc/svc_tcp.c: Likewise.
5354         * sunrpc/svc_udp.c: Likewise.
5355         * sunrpc/svc_unix.c: Likewise.
5356         * sunrpc/svcauth_des.c: Likewise.
5357         * sunrpc/xcrypt.c: Likewise.
5358         * sunrpc/xdr.c: Likewise.
5359         * sunrpc/xdr_array.c: Likewise.
5360         * sunrpc/xdr_float.c: Likewise.
5361         * sunrpc/xdr_intXX_t.c: Likewise.
5362         * sunrpc/xdr_mem.c: Likewise.
5363         * sunrpc/xdr_rec.c: Likewise.
5364         * sunrpc/xdr_ref.c: Likewise.
5365         * sunrpc/xdr_sizeof.c: Likewise.
5366         * sunrpc/xdr_stdio.c: Likewise.
5367
5368 2012-05-10  Roland McGrath  <roland@hack.frob.com>
5369
5370         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
5371         change.  Update copyright years.
5372
5373 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
5374
5375         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
5376
5377 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
5378             Joseph Myers  <joseph@codesourcery.com>
5379             Paul Pluzhnikov  <ppluzhnikov@google.com>
5380
5381         [BZ #14012]
5382         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
5383         requiring rpcgen.
5384         [cross-compiling] (extra-libs): Likewise.
5385         [cross-compiling] (extra-libs-others): Likewise.
5386         [cross-compiling] (librpcsvc-routines): Likewise.
5387         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
5388         [cross-compiling] (omit-deps): Likewise.
5389         (sunrpc-CPPFLAGS): New variable.
5390         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
5391         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
5392         (cross-rpcgen-objs): New variable.
5393         (extra-objs): Append $(cross-rpcgen-objs).
5394         ($(cross-rpcgen-objs)): New rule.
5395         ($(objpfx)cross-rpcgen): Likewise.
5396         (rpcgen-cmd): Define to use $(built-program-file).  Expand
5397         comment.
5398         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
5399         ($(objpfx)x%.stmp): Likewise.
5400         * sunrpc/proto.h [IS_IN_build] (_): Define.
5401         [IS_IN_build] (_libc_intl_domainname): Likewise.
5402
5403 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
5404
5405         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
5406         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
5407         and R_X86_64_TPOFF64.
5408
5409 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
5410
5411         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
5412         sysdeps/unix/sysv/syscalls.list.
5413         (stime): Likewise.
5414         (utime): Likewise.
5415         * sysdeps/unix/sysv/syscalls.list: Remove file.
5416
5417 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
5418
5419         [BZ #3440]
5420         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
5421         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
5422         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
5423         (__LC_IDENTIFICATION): Make these macros useful in #if
5424         expressions, as required by C99.
5425
5426 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
5427
5428         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
5429         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
5430         after this.
5431
5432 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
5433
5434         * stdlib/longlong.h: Updated from GCC.
5435
5436 2012-05-09  Andreas Jaeger  <aj@suse.de>
5437
5438         * nscd/nscd.c (run_modes): Make named enum, reorder so that
5439         default is first entry.
5440         (run_mode): Set type.
5441         (main): Remove informal message about syslog.
5442         (options): Fix typo.
5443
5444         [BZ #14053]
5445         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
5446         to asm.
5447         (lrint): Likewise.
5448         (llrintf): Likewise.
5449         (llrint): Likewise.
5450         (rint): Likewise.
5451         (rintf): Likewise.
5452         (nearbyint): Likewise.
5453         (nearbyintf): Likewise.
5454
5455 2012-05-09  Andreas Jaeger  <aj@suse.de>
5456             Pedro Alves  <palves@redhat.com>
5457
5458         * nscd/nscd.c (run_mode): Use enum.
5459         (main): Cleanup coding style issue.
5460
5461 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
5462             Andreas Jaeger  <aj@suse.de>
5463
5464         * nscd/nscd.c (go_background): Replaced with...
5465         (run_mode): ... this.
5466         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
5467         (options): Add -F --foreground.
5468         (main): Implement it.
5469         (parse_opt): Parse it.
5470
5471 2012-05-09  Andreas Jaeger  <aj@suse.de>
5472
5473         [BZ #14083]
5474         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
5475         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
5476         -Wconversion warning.
5477         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
5478         Likewise.
5479
5480 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
5481
5482         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
5483         == 0.
5484         (LC_ALL): Use macro-int-constant.
5485         (LC_COLLATE): Likewise.
5486         (LC_CTYPE): Likewise.
5487         (LC_MESSAGES): Likewise.
5488         (LC_MONETARY): Likewise.
5489         (LC_NUMERIC): Likewise.
5490         (LC_TIME): Likewise.
5491         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
5492         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
5493         [ISO || ISO99 || ISO11] (*_t): Do not allow.
5494         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
5495         Specify type.
5496         [C99-based standards] (float_t): Expect type.
5497         [C99-based standards] (double_t): Expect type.
5498         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
5499         type.
5500         [C99-based standards] (HUGE_VALL): Likewise.
5501         [C99-based standards] (INFINITY): Likewise.
5502         [C99-based standards] (NAN): Likewise.
5503         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
5504         [C99-based standards] (FP_NAN): Likewise.
5505         [C99-based standards] (FP_NORMAL): Likewise.
5506         [C99-based standards] (FP_SUBNORMAL): Likewise.
5507         [C99-based standards] (FP_ZERO): Likewise.
5508         [C99-based standards] (FP_FAST_FMA): Use
5509         optional-macro-int-constant.  Specify type.  Require == 1.
5510         [C99-based standards] (FP_FAST_FMAF): Likewise.
5511         [C99-based standards] (FP_FAST_FMAL): Likewise.
5512         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
5513         [C99-based standards] (FP_ILOGBNAN): Likewise.
5514         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
5515         Specify type.
5516         [C99-based standards] (MATH_ERREXCEPT): Likewise.
5517         [C99-based standards] (math_errhandling): Specify type.
5518         [ISO99 || ISO11] (signgam): Do not allow.
5519         [non-C99-based standards] (copysignf): Do not allow.
5520         [non-C99-based standards] (exp2f): Likewise.
5521         [non-C99-based standards] (log2f): Likewise.
5522         [non-C99-based standards] (modff): Allow.
5523         [non-C99-based standards] (erff): Do not allow.
5524         [non-C99-based standards] (erfcf): Likewise.
5525         [non-C99-based standards] (gammaf): Likewise.
5526         [non-C99-based standards] (hypotf): Likewise.
5527         [non-C99-based standards] (j0f): Likewise.
5528         [non-C99-based standards] (j1f): Likewise.
5529         [non-C99-based standards] (jnf): Likewise.
5530         [non-C99-based standards] (lgammaf): Likewise.
5531         [non-C99-based standards] (tgammaf): Likewise.
5532         [non-C99-based standards] (y0f): Likewise.
5533         [non-C99-based standards] (y1f): Likewise.
5534         [non-C99-based standards] (ynf): Likewise.
5535         [non-C99-based standards] (isnanf): Likewise.
5536         [non-C99-based standards] (acoshf): Likewise.
5537         [non-C99-based standards] (asinhf): Likewise.
5538         [non-C99-based standards] (atanhf): Likewise.
5539         [non-C99-based standards] (cbrtf): Likewise.
5540         [non-C99-based standards] (expm1f): Likewise.
5541         [non-C99-based standards] (ilogbf): Likewise.
5542         [non-C99-based standards] (log1pf): Likewise.
5543         [non-C99-based standards] (logbf): Likewise.
5544         [non-C99-based standards] (nextafterf): Likewise.
5545         [non-C99-based standards] (remainderf): Likewise.
5546         [non-C99-based standards] (rintf): Likewise.
5547         [non-C99-based standards] (scalbf): Likewise.
5548         [non-C99-based standards] (copysignl): Likewise.
5549         [non-C99-based standards] (exp2l): Likewise.
5550         [non-C99-based standards] (log2l): Likewise.
5551         [non-C99-based standards] (modfl): Allow.
5552         [non-C99-based standards] (erfl): Do not allow.
5553         [non-C99-based standards] (erfcl): Likewise.
5554         [non-C99-based standards] (gammal): Likewise.
5555         [non-C99-based standards] (hypotl): Likewise.
5556         [non-C99-based standards] (j0l): Likewise.
5557         [non-C99-based standards] (j1l): Likewise.
5558         [non-C99-based standards] (jnl): Likewise.
5559         [non-C99-based standards] (lgammal): Likewise.
5560         [non-C99-based standards] (tgammal): Likewise.
5561         [non-C99-based standards] (y0l): Likewise.
5562         [non-C99-based standards] (y1l): Likewise.
5563         [non-C99-based standards] (ynl): Likewise.
5564         [non-C99-based standards] (isnanl): Likewise.
5565         [non-C99-based standards] (acoshl): Likewise.
5566         [non-C99-based standards] (asinhl): Likewise.
5567         [non-C99-based standards] (atanhl): Likewise.
5568         [non-C99-based standards] (cbrtl): Likewise.
5569         [non-C99-based standards] (expm1l): Likewise.
5570         [non-C99-based standards] (ilogbl): Likewise.
5571         [non-C99-based standards] (log1pl): Likewise.
5572         [non-C99-based standards] (logbl): Likewise.
5573         [non-C99-based standards] (nextafterl): Likewise.
5574         [non-C99-based standards] (remainderl): Likewise.
5575         [non-C99-based standards] (rintl): Likewise.
5576         [non-C99-based standards] (scalbl): Likewise.
5577         [ISO || ISO99 || ISO11] (*_t): Do not allow.
5578         [non-C99-based standards] (FP_*): Do not allow.
5579         [C99-based standards] (FP_*): Change to
5580         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
5581         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
5582         allow.
5583         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
5584         (SIG_ERR): Likewise.
5585         [X/Open-based standards] (SIG_HOLD): Likewise.
5586         (SIG_IGN): Likewise.
5587         (SIGABRT): Use macro-int-constant.  Specify type.  Require
5588         positive value.
5589         (SIGFPE): Likewise.
5590         (SIGILL): Likewise.
5591         (SIGINT): Likewise.
5592         (SIGSEGV): Likewise.
5593         (SIGTER): Likewise.
5594         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
5595         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
5596         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
5597         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
5598         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
5599         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
5600         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
5601         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
5602         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
5603         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
5604         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
5605         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
5606         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
5607         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
5608         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
5609         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
5610         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
5611         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
5612         [X/Open-based standards] (SIGTRAP): Likewise.
5613         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
5614         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
5615         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
5616         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
5617         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
5618         allow.
5619
5620 2012-05-08  Ian Wienand  <ianw@vmware.com>
5621
5622         [BZ #14080]
5623         * time/tzset.c (__tzset_parse_tz): Update default rules for
5624         daylight time changes in the Energy Policy Act of 2005.
5625
5626 2012-05-09  Andreas Jaeger  <aj@suse.de>
5627
5628         [BZ #13983]
5629         * elf/ldconfig.c (parse_conf): Change string to make clear that
5630         ldconfig only issued a warning if ld.so.conf does not exist.
5631
5632 2012-05-08  David S. Miller  <davem@davemloft.net>
5633
5634         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
5635         movxtod instead of popping the value on the stack.
5636
5637         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5638
5639 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
5640
5641         * config.h.in: Add HAVE_ARM_PCS_VFP.
5642
5643 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
5644
5645         [BZ #13979]
5646         * include/features.h: Warn if user requests __FORTIFY_SOURCE
5647         checking but the checks are disabled for any reason.
5648
5649 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
5650
5651         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
5652         and ELF64_R_TYPE with ELFW(R_TYPE).
5653
5654 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
5655
5656         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
5657         (ulimit): Likewise.
5658
5659         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
5660         (settimeofday): Likewise.
5661
5662 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
5663
5664         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
5665         a struct th_u2 inside the union, and move tu_block/tu_code into
5666         a new th_u3 union of tu_block/tu_code inside of that.  Move
5667         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
5668         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
5669         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
5670         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
5671         (th_stuff): Change to th_u1.tu_stuff.
5672         (th_data): Define.
5673         (th_msg): Change to th_u1.th_u2.tu_data.
5674
5675 2012-05-07  David S. Miller  <davem@davemloft.net>
5676
5677         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5678
5679         [BZ #14074]
5680         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
5681         (SETUP_PIC_REG): Use it.
5682         (SETUP_PIC_REG_LEAF): Use it.
5683
5684 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
5685
5686         [BZ #13885]
5687         [BZ #13923]
5688         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
5689         USE_AS_EXPM1L.
5690         (EXPL_FINITE): Likewise.
5691         (FLDLOG): Likewise.
5692         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
5693         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
5694         e_expl.S.
5695         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
5696         USE_AS_EXPM1L.
5697         (EXPL_FINITE): Likewise.
5698         (FLDLOG): Likewise.
5699         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
5700         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
5701         e_expl.S.
5702         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
5703         test of -max_value argument for long double.
5704         * sysdeps/i386/fpu/libm-test-ulps: Update.
5705         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5706
5707 2012-05-06  David S. Miller  <davem@davemloft.net>
5708
5709         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
5710         quad soft-float symbols whose references which are compiler
5711         generated.
5712         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
5713
5714 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
5715
5716         [BZ #13884]
5717         [BZ #13914]
5718         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
5719         USE_AS_EXP10L.
5720         (EXPL_FINITE): Likewise.
5721         (FLDLOG): Likewise.
5722         (c0): Likewise.
5723         (c1): Likewise.
5724         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
5725         Adjust comments for base varying.
5726         (__expl_finite): Change alias to EXPL_FINITE.
5727         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
5728         e_expl.S.
5729         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
5730         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
5731         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
5732         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
5733         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
5734         USE_AS_EXP10L.
5735         (EXPL_FINITE): Likewise.
5736         (FLDLOG): Likewise.
5737         (c0): Likewise.
5738         (c1): Likewise.
5739         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
5740         Adjust comments for base varying.
5741         (__expl_finite): Change alias to EXPL_FINITE.
5742         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
5743         tests for bugs.
5744         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
5745
5746         [BZ #14064]
5747         * math/libm-test.inc (check_float_internal): Correct ulp
5748         calculation for subnormal expected results.
5749
5750 2012-05-06  Andreas Jaeger  <aj@suse.de>
5751
5752         * Makeconfig (+math-flags): New, set to -frounding-math.
5753         (+cflags): Add +math-flags so that all of glibc gets compiled with
5754         it.
5755
5756         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
5757
5758 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
5759
5760         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
5761         Disable one test.
5762
5763         [BZ #13787]
5764         [BZ #13922]
5765         [BZ #14036]
5766         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
5767         (__ieee754_expl): Allow for and saturate large arguments.
5768         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
5769         (u_threshold): Likewise.
5770         (__exp): Call __ieee754_exp before checking for overflow and
5771         underflow.
5772         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
5773         (u_threshold): Likewise.
5774         (__expf): Call __ieee754_expf before checking for overflow and
5775         underflow.
5776         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
5777         (u_threshold): Likewise.
5778         (__expl): Call __ieee754_expl before checking for overflow and
5779         underflow.
5780         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
5781         (__ieee754_expl): Allow for and saturate large arguments.
5782         * math/libm-test.inc (exp_test): Add another test.  Do not allow
5783         missing overflow exception on overflow.
5784         (expm1_test): Do not allow missing overflow exception on overflow.
5785
5786         * sysdeps/i386/fpu/e_expl.c: Move to ...
5787         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
5788         rather than using inline asm.
5789         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
5790         * sysdeps/x86_64/fpu/e_expl.S: Copy from
5791         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
5792
5793         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
5794         (nice): Likewise.
5795         (poll): Likewise.
5796         (signal): Likewise.
5797         (time): Likewise.
5798         (times): Likewise.
5799
5800 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
5801
5802         * sysdeps/unix/syscalls.list (adjtime): Add entry from
5803         sysdeps/unix/common/syscalls.list.
5804         (fchmod): Likewise.
5805         (fchown): Likewise.
5806         (ftruncate): Likewise.
5807         (getrusage): Likewise.
5808         (gettimeofday): Likewise.
5809         (setpgid): Likewise.
5810         (setregid): Likewise.
5811         (setreuid): Likewise.
5812         (sigaction): Likewise.
5813         (truncate): Likewise.
5814         (vhangup): Likewise.
5815         * sysdeps/unix/common/syscalls.list: Remove file.
5816         * sysdeps/unix/bsd/Implies: Don't include unix/common.
5817         * sysdeps/unix/sysv/linux/Implies: Likewise.
5818
5819 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
5820
5821         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
5822         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
5823         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
5824         Moved to ...
5825         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
5826         Here.
5827         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
5828         to ...
5829         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
5830         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
5831         to ...
5832         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
5833         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
5834         to ...
5835         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
5836         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
5837         to ...
5838         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
5839         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
5840         to ...
5841         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
5842         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
5843         to ...
5844         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
5845         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
5846         to ...
5847         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
5848         Here.
5849         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
5850         to ...
5851         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
5852         Here.
5853         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
5854         to ...
5855         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
5856         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
5857         Moved to ...
5858         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
5859         Here.
5860         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
5861         to ...
5862         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
5863
5864 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
5865
5866         * sysdeps/unix/common/bits/dirent.h: Remove file.
5867         * sysdeps/unix/common/bits/fcntl.h: Likewise.
5868
5869         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
5870         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
5871         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
5872         * sysdeps/unix/bsd/isatty.c: Likewise.
5873         * sysdeps/unix/bsd/tcdrain.c: Likewise.
5874         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
5875         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
5876
5877 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5878
5879         [BZ #13563]
5880         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
5881         long double comparison inaccuracies.
5882         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
5883         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5884
5885 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
5886
5887         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
5888         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
5889
5890 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
5891
5892         [BZ #14049]
5893         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
5894         nonzero digits before rounding a hex value.
5895         * stdlib/tst-strtod.c (tests): Add another test.
5896
5897 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5898
5899         * sysdeps/s390/fpu/libm-test-ulps: Update.
5900
5901 2012-05-03  Andreas Jaeger  <aj@suse.de>
5902
5903         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
5904         does not get optimized out.
5905         (malloc_opt_barrier): New.
5906
5907 2012-05-03  Andreas Jaeger  <aj@suse.de>
5908             Roland McGrath  <roland@hack.frob.com>
5909
5910         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
5911         intermediate file deletion.
5912         (generated): Add .symlist files.
5913
5914 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
5915
5916         [BZ #13775]
5917         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
5918         Redirect under this condition.
5919         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
5920         [__USE_GNU] (__dprintf_chk): Not under this condition.
5921         [__USE_GNU] (__vdprintf_chk): Likewise.
5922         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
5923         under this condition.
5924         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
5925         [__USE_XOPEN2K8] (dprintf): Define under this condition.
5926         [__USE_XOPEN2K8] (vdprintf): Likewise.
5927         [__USE_GNU] (__dprintf_chk): Not under this condition.
5928         [__USE_GNU] (__vdprintf_chk): Likewise.
5929         [__USE_GNU] (dprintf): Likewise.
5930         [__USE_GNU] (vdprintf): Likewise.
5931
5932 2012-05-03  Roland McGrath  <roland@hack.frob.com>
5933
5934         * elf/Makefile (common-generated): Set this instead of generated for
5935         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
5936         $(all-built-dso)-derived lists.
5937
5938 2012-05-03  Andreas Jaeger  <aj@suse.de>
5939
5940         * sysdeps/i386/fpu/libm-test-ulps: Update.
5941
5942         * FAQ: Removed.
5943         * FAQ.in: Likewise.
5944         * scripts/gen-FAQ.pl: Likewise.
5945         * manual/install.texi (Installation): Point to online location of
5946         FAQ.
5947         * Makefile (files-for-dist): Remove FAQ.
5948         (FAQ): Remove.
5949
5950 2012-05-02  Allan McRae  <allan@archlinux.org>
5951
5952         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
5953         (LDFLAGS-reldepmod5.so): Likewise.
5954         (LDFLAGS-reldep6mod1.so): Likewise.
5955         (LDFLAGS-reldep6mod4.so): Likewise.
5956         (LDFLAGS-reldep8mod3.so): Likewise.
5957         (LDFLAGS-unload4mod1.so): Likewise.
5958         (LDFLAGS-unload4mod2.so): Likewise.
5959         (LDFLAGS-tst-initorder): Likewise.
5960         (LDFLAGS-tst-initordera2.so): Likewise.
5961         (LDFLAGS-tst-initordera3.so): Likewise.
5962         (LDFLAGS-tst-initordera4.so): Likewise.
5963         (LDFLAGS-tst-initorderb2.so): Likewise.
5964         (LDFLAGS-noload): Likewise.
5965         (LDFLAGS-next): Likewise.
5966         (LDFLAGS-order2mod1.so): Likewise.
5967         (LDFLAGS-order2mod2.so): Likewise.
5968         (LDFLAGS-tst-initorder2): Likewise.
5969         (LDFLAGS-tst-initorder2a.so): Likewise.
5970         (LDFLAGS-tst-initorder2b.so): Likewise.
5971         (LDFLAGS-tst-initorder2c.so): Likewise.
5972         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
5973
5974 2012-05-02  David S. Miller  <davem@davemloft.net>
5975
5976         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5977
5978 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
5979
5980         [BZ #14055]
5981         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
5982
5983 2012-05-02  Andreas Jaeger  <aj@suse.de>
5984
5985         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
5986         since we manipulate rounding mode.
5987         (CPPFLAGS-test-idouble.c): Likewise.
5988         (CPPFLAGS-test-ifloat.c): Likewise.
5989         (CFLAGS-test-ldouble.c): Likewise.
5990         (CFLAGS-test-double.c): Likewise.
5991         (CFLAGS-test-float.c): Likewise.
5992         (CFLAGS-test-misc.c): Likewise.
5993         (CFLAGS-test-test-fenv.c): Likewise.
5994
5995 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5996
5997         [BZ #2550]
5998         [BZ #2570]
5999         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
6000         comparisons to determine direction to adjust input.
6001
6002 2012-05-01  Roland McGrath  <roland@hack.frob.com>
6003
6004         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
6005         output to the target.
6006
6007         * scripts/localplt.awk: New file.
6008         * elf/Makefile ($(objpfx)check-localplt): Target removed.
6009         (check-localplt-CFLAGS): Variable removed.
6010         ($(all-built-dso:=.jmprel)): New static pattern rule.
6011         (generated): Add those targets.
6012         (localplt-built-dso): New variable.
6013         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
6014
6015         * elf/check-localplt.c: File removed.
6016
6017         * scripts/check-execstack.awk: New file.
6018         * elf/Makefile ($(objpfx)check-execstack): Target removed.
6019         (check-execstack-CFLAGS): Variable removed.
6020         ($(objpfx)check-execstack.h): Target removed.
6021         ($(objpfx)execstack-default): New target.
6022         (generated): Add that instead of check-execstack.h.
6023         ($(all-built-dso:=.phdr)): New static pattern rule.
6024         (generated): Add those targets.
6025         * elf/check-execstack.c: File removed.
6026
6027         * scripts/check-textrel.awk: New file.
6028         * elf/Makefile ($(objpfx)check-textrel): Target removed.
6029         (check-textrel-CFLAGS): Variable removed.
6030         (all-built-dso): Use := to define.o
6031         ($(all-built-dso:=.dyn)): New static pattern rule.
6032         (generated): Add those targets.
6033         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
6034         * config.make.in (READELF): New substituted variable.
6035         * elf/check-textrel.c: File removed.
6036
6037 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
6038
6039         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
6040         allow.
6041         * conform/data/ctype.h-data [C99-based standards] (isblank):
6042         Expect function.
6043         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
6044         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
6045         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6046         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
6047         Specify type.  Require positive value.
6048         (EILSEQ): Likewise.
6049         (ERANGE): Likewise.
6050         [ISO || POSIX] (EILSEQ): Do not expect.
6051         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
6052         Specify type.  Require positive value.
6053         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
6054         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
6055         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
6056         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
6057         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
6058         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
6059         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
6060         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
6061         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
6062         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
6063         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
6064         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
6065         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
6066         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
6067         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
6068         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
6069         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
6070         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
6071         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
6072         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
6073         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
6074         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
6075         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
6076         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
6077         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
6078         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
6079         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
6080         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
6081         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
6082         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
6083         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
6084         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
6085         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
6086         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
6087         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
6088         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
6089         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
6090         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
6091         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
6092         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
6093         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
6094         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
6095         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
6096         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
6097         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
6098         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
6099         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
6100         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
6101         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
6102         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
6103         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
6104         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
6105         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
6106         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
6107         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
6108         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
6109         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
6110         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
6111         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
6112         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
6113         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
6114         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
6115         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
6116         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
6117         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
6118         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
6119         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
6120         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
6121         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
6122         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
6123         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
6124         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
6125         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
6126         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
6127         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
6128         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
6129         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
6130         Require >= 2.
6131         (FLT_ROUNDS): Expect as macro, not constant.
6132         (FLT_MANT_DIG): Use macro-int-constant.
6133         (DBL_MANT_DIG): Likewise.
6134         (LDBL_MANT_DIG): Likewise.
6135         (FLT_DIG): Likewise.
6136         (DBL_DIG): Likewise.
6137         (LDBL_DIG): Likewise.
6138         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
6139         (DBL_MIN_EXP): Likewise.
6140         (LDBL_MIN_EXP): Likewise.
6141         (FLT_MAX_EXP): Use macro-int-constant.
6142         (DBL_MAX_EXP): Likewise.
6143         (LDBL_MAX_EXP): Likewise.
6144         (FLT_MAX_10_EXP): Likewise.
6145         (DBL_MAX_10_EXP): Likewise.
6146         (LDBL_MAX_10_EXP): Likewise.
6147         (FLT_MAX): Use macro-constant.
6148         (DBL_MAX): Likewise.
6149         (LDBL_MAX): Likewise.
6150         (FLT_EPSILON): Use macro-constant.  Give upper bound.
6151         (DBL_EPSILON): Likewise.
6152         (LDBL_EPSILON): Likewise.
6153         (FLT_MIN): Likewise.
6154         (DBL_MIN): Likewise.
6155         (LDBL_MIN): Likewise.
6156         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
6157         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
6158         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
6159         [ISO11] (FLT_HAS_SUBNORM): Likewise.
6160         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
6161         [ISO11] (DBL_DECIMAL_DIG): Likewise.
6162         [ISO11] (FLT_DECIMAL_DIG): Likewise.
6163         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
6164         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
6165         [ISO11] (FLT_TRUE_MIN): Likewise.
6166         [ISO11] (LDBL_TRUE_MIN): Likewise.
6167         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6168         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
6169         (SCHAR_MIN): Use macro-int-constant.  Specify type.
6170         (SCHAR_MAX): Likewise.
6171         (UCHAR_MAX): Likewise.
6172         (CHAR_MIN): Likewise.
6173         (CHAR_MAX): Likewise.
6174         (MB_LEN_MAX): Use macro-int-constant.
6175         (SHRT_MIN): Use macro-int-constant.  Specify type.
6176         (SHRT_MAX): Likewise.
6177         (USHRT_MAX): Likewise.
6178         (INT_MAX): Likewise.
6179         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
6180         bound negative.
6181         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
6182         bound with "U".
6183         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
6184         bound with "L".
6185         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
6186         bound negative.  Suffix upper bound with "L".
6187         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
6188         bound with "UL".
6189         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
6190         Specify type.
6191         [C99-based standards] (LLONG_MAX): Likewise.
6192         [C99-based standards] (ULLONG_MAX): Likewise.
6193         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
6194         == 0.
6195         [ISO11] (max_align_t): Require type.
6196         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6197
6198         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
6199         from $CFLAGS, without defining away __attribute__ calls.
6200         (checknamespace): Use $CFLAGS_namespace.
6201
6202         * conform/conformtest.pl (@keywords): Only include C99 keywords
6203         for standards based on C99 or C11.
6204
6205         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
6206         Disable tests.
6207         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
6208         UNIX98]: Likewise.
6209
6210         * conform/conformtest.pl: Handle "macro-int-constant" and test for
6211         usability of symbols in #if.
6212
6213         * conform/conformtest.pl: If macro or constant types start
6214         "promoted:", expect the symbol to be of the following type
6215         promoted by the integer promotions.
6216
6217         * conform/conformtest.pl: Parse all "constant" and "macro" lines
6218         in one place.  Also handle "macro-constant".
6219
6220         * conform/conformtest.pl: Only accept expected macro values with
6221         "==".  Parse all "macro" lines in one place.
6222         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
6223
6224         * conform/conformtest.pl: Handle braced types on "constant" lines
6225         instead of handling "typed-constant".
6226         * conform/data/signal.h-data: Use "constant" instead of
6227         "typed-constant".
6228
6229         * conform/conformtest.pl: Handle "optional-" at start of lines in
6230         one place rather than duplicating several cases.  Handle each
6231         format of "macro" line with initial "optional-".
6232
6233         * conform/conformtest.pl: Only accept expected constant or
6234         optional-constant values with "==".  Parse all "constant" lines in
6235         one place.  Parse all "optional-constant" lines in one place.
6236         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
6237         * conform/data/fmtmsg.h-data: Likewise.
6238         * conform/data/netinet/in.h-data: Likewise.
6239         * conform/data/tar.h-data: Likewise.
6240         * conform/data/limits.h-data: Use "==" form on "constant" and
6241         "optional-constant" lines.
6242
6243         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
6244         Use -std=c99 for XOPEN2K.
6245         (@knownproblems): Remove.
6246         (newtoken): Don't check %isknown.
6247
6248         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
6249         Do not expect macro.
6250         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
6251         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
6252         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
6253         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
6254         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
6255         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
6256         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
6257         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
6258         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
6259         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
6260         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
6261         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
6262         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
6263         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
6264         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
6265         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
6266         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
6267         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
6268         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
6269         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
6270         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
6271         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
6272         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
6273         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
6274         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
6275         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
6276         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
6277         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
6278         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
6279         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
6280         [XPG3] (acosh): Likewise.
6281         [XPG3] (asinh): Likewise.
6282         [XPG3] (atanh): Likewise.
6283         [XPG3] (cbrt): Likewise.
6284         [XPG3] (expm1): Likewise.
6285         [XPG3] (ilogb): Likewise.
6286         [XPG3] (log1p): Likewise.
6287         [XPG3] (logb): Likewise.
6288         [XPG3] (nextafter): Likewise.
6289         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
6290         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
6291         [XPG3] (remainder): Likewise.
6292         [XPG3] (rint): Likewise.
6293         [XPG3 || XPG4 || UNIX98] (round): Likewise.
6294         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
6295         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
6296         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
6297         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
6298         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
6299         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
6300         [UNIX98 || XOPEN2K] (scalb): Expect.
6301         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
6302         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
6303         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
6304         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
6305         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
6306         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
6307         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
6308         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
6309         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
6310         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
6311         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
6312         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
6313         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
6314         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
6315         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
6316         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
6317         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
6318         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
6319         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
6320         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
6321         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
6322         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
6323         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
6324         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
6325         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
6326         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
6327         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
6328         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
6329         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
6330         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
6331         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
6332         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
6333         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
6334         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
6335         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
6336         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
6337         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
6338         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
6339         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
6340         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
6341         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
6342         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
6343         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
6344         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
6345         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
6346         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
6347         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
6348         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
6349         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
6350         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
6351         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
6352         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
6353         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
6354         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
6355         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
6356         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
6357         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
6358         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
6359         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
6360         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
6361         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
6362         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
6363         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
6364         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
6365         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
6366         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
6367         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
6368         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
6369         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
6370         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
6371         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
6372         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
6373         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
6374         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
6375         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
6376         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
6377         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
6378         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
6379         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
6380         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
6381         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
6382         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
6383         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
6384         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
6385         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
6386         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
6387         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
6388         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
6389         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
6390         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
6391         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
6392         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
6393         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
6394         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
6395         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
6396         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
6397         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
6398         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
6399         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
6400         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
6401         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
6402         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
6403         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
6404         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
6405         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
6406         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
6407         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
6408         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
6409         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
6410         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
6411         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
6412         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
6413         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
6414         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
6415         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
6416         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
6417         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
6418         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
6419         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
6420         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
6421         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
6422         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
6423         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
6424         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
6425         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
6426         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
6427         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
6428         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
6429         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
6430         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
6431         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
6432         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
6433         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
6434         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
6435         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
6436         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
6437         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
6438
6439         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
6440         _XOPEN_SOURCE_EXTENDED for XPG4.
6441
6442         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
6443
6444         * Makeconfig (localtime): Remove variable.
6445         (inst_localtime-file): Likewise.
6446
6447 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
6448
6449         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
6450         Update.
6451         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
6452         Update.
6453         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
6454         Update.
6455         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
6456         Update.
6457         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
6458         Update.
6459         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
6460         Update.
6461         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
6462         Update.
6463         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
6464         Update.
6465         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
6466         Update.
6467
6468 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
6469
6470         [BZ #2550]
6471         [BZ #2570]
6472         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
6473         comparisons to determine direction to adjust input.
6474         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
6475         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
6476         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
6477         Likewise.
6478         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
6479         Likewise.
6480         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
6481         Likewise.
6482         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
6483         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
6484         Likewise.
6485         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
6486         Likewise.
6487         * math/libm-test.inc (nexttoward_test): Add more tests.
6488
6489 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
6490
6491         [BZ #14040]
6492         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
6493         in version GLIBC_2.1, not GLIBC_2.0.
6494         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
6495         Likewise.
6496
6497 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
6498
6499         [BZ #13942]
6500         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
6501         (1 - x) * (1 + x).
6502         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
6503         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
6504         * math/libm-test.inc (acos_test): Add more tests.
6505         (asin_test): Likewise.
6506         * sysdeps/i386/fpu/libm-test-ulps: Update.
6507         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6508
6509         [BZ #14034]
6510         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
6511         of square root.
6512         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
6513         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
6514         * math/libm-test.inc (acos_test_tonearest): New function.
6515         (acos_test_towardzero): Likewise.
6516         (acos_test_downward): Likewise.
6517         (acos_test_upward): Likewise.
6518         (asin_test_tonearest): Likewise.
6519         (asin_test_towardzero): Likewise.
6520         (asin_test_downward): Likewise.
6521         (asin_test_upward): Likewise.
6522         (main): Call the new functions.
6523         * sysdeps/i386/fpu/libm-test-ulps: Update.
6524         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6525
6526         [BZ #13884]
6527         [BZ #13924]
6528         * math/e_exp10.c: Include <float.h>.
6529         (__ieee754_exp10): Handle underflow here rather than multiplying
6530         large negative argument by M_LN10.
6531         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
6532         of __ieee754_expf.
6533         * math/e_exp10l.c: Include <float.h>.
6534         (__ieee754_exp10l): Handle underflow here rather than multiplying
6535         large negative argument by M_LN10l.
6536         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
6537         spurious overflow exception on underflow.
6538
6539 2012-04-29  Marek Polacek  <polacek@redhat.com>
6540
6541         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
6542         (__fortify_function): New macro.
6543         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
6544         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
6545         __extern_always_inline.
6546         * libio/bits/stdio2.h: Likewise.
6547         * libio/bits/stdio.h: Likewise.
6548         * string/string.h: Likewise.
6549         * string/bits/string3.h: Likewise.
6550         * include/stdio.h: Likewise.
6551         * stdlib/bits/stdlib.h: Likewise.
6552         * stdlib/stdlib.h: Likewise.
6553         * rt/bits/mqueue2.h: Likewise.
6554         * rt/mqueue.h: Likewise.
6555         * posix/bits/unistd.h: Likewise.
6556         * posix/unistd.h: Likewise.
6557         * io/bits/poll2.h: Likewise.
6558         * io/bits/fcntl2.h: Likewise.
6559         * io/fcntl.h: Likewise.
6560         * io/sys/poll.h: Likewise.
6561         * misc/bits/syslog.h: Likewise.
6562         * misc/bits/syslog-ldbl.h: Likewise.
6563         * misc/sys/syslog.h: Likewise.
6564         * socket/bits/socket2.h: Likewise.
6565         * socket/sys/socket.h: Likewise.
6566         * debug/tst-chk1.c: Likewise.
6567         * wcsmbs/bits/wchar2.h: Likewise.
6568         * wcsmbs/bits/wchar-ldbl.h: Likewise.
6569         * wcsmbs/wchar.h: Likewise.
6570
6571 2012-04-29  Andreas Jaeger  <aj@suse.de>
6572
6573         * Makerules (tests): Remove enable-check-abi protection.
6574         (check-abi-warn): Remove.
6575         (check-abi-%): Remove check-abi-warn usage.
6576
6577         * configure.in: Remove check-abi configure option.
6578         * configure: Regenerated.
6579         * config.make.in (enable-check-abi): Remove.
6580
6581 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
6582
6583         [BZ #14033]
6584         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
6585         double functions to double *_finite functions.
6586
6587         [BZ #13941]
6588         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
6589         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
6590         LDBL_MIN_EXP.
6591         * stdio-common/Makefile (tests): Add tst-sprintf3.
6592         * stdio-common/tst-sprintf3.c: New file.
6593
6594         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
6595         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
6596
6597 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
6598
6599         * conform/conformtest.pl: Remove duplicate typed-constant
6600         handling.
6601
6602 2012-04-28  David S. Miller  <davem@davemloft.net>
6603
6604         * Makerules (%.abilist): Add vpath on sysdep_dirs.
6605         (check-abi-%): Remove AWK script prerequisite and explicit
6606         abilist directory.
6607         (check-abi): Rewrite to just diff the symlist with the abilist.
6608         (config-tls, config-abi-config): Delete, no longer used.
6609         (update-abi-%): Remove AWK script and explicit abilist directory.
6610         (update-abi): Rewrite to simply compare and conditionally copy the
6611         symlist and the sysdep abilist file.  Remove update-abi-config
6612         checks.
6613         * abilist/ld.abilist: Remove.
6614         * abilist/libBrokenLocale.abilist: Remove.
6615         * abilist/libanl.abilist: Remove.
6616         * abilist/libcrypt.abilist: Remove.
6617         * abilist/libdl.abilist: Remove.
6618         * abilist/librt.abilist: Remove.
6619         * abilist/libthread_db.abilist: Remove.
6620         * abilist/libutil.abilist: Remove.
6621         * scripts/extract-abilist.awk: Remove.
6622         * scripts/merge-abilist.awk: Remove.
6623         * sysdeps/generic/libcidn.abilist: New file.
6624         * sysdeps/generic/libnss_compat.abilist: New file.
6625         * sysdeps/generic/libnss_db.abilist: New file.
6626         * sysdeps/generic/libnss_dns.abilist: New file.
6627         * sysdeps/generic/libnss_files.abilist: New file.
6628         * sysdeps/generic/libnss_hesiod.abilist: New file.
6629         * sysdeps/generic/libnss_nis.abilist: New file.
6630         * sysdeps/generic/libnss_nisplus.abilist: New file.
6631         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
6632         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
6633         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
6634         file.
6635         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
6636         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
6637         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
6638         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
6639         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
6640         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
6641         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
6642         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
6643         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
6644         file.
6645         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
6646         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
6647         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
6648         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
6649         file.
6650         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
6651         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
6652         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
6653         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
6654         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
6655         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
6656         file.
6657         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
6658         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
6659         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
6660         file.
6661         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
6662         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
6663         New file.
6664         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
6665         New file.
6666         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
6667         New file.
6668         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
6669         New file.
6670         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
6671         New file.
6672         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
6673         New file.
6674         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
6675         New file.
6676         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
6677         New file.
6678         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
6679         New file.
6680         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
6681         New file.
6682         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
6683         New file.
6684         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
6685         New file.
6686         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
6687         New file.
6688         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
6689         file.
6690         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
6691         New file.
6692         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
6693         New file.
6694         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
6695         file.
6696         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
6697         New file.
6698         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
6699         New file.
6700         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
6701         file.
6702         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
6703         New file.
6704         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
6705         New file.
6706         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
6707         New file.
6708         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
6709         New file.
6710         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
6711         New file.
6712         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
6713         New file.
6714         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
6715         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
6716         file.
6717         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
6718         New file.
6719         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
6720         file.
6721         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
6722         file.
6723         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
6724         file.
6725         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
6726         file.
6727         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
6728         file.
6729         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
6730         New file.
6731         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
6732         file.
6733         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
6734         file.
6735         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
6736         New file.
6737         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
6738         file.
6739         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
6740         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
6741         file.
6742         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
6743         New file.
6744         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
6745         file.
6746         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
6747         file.
6748         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
6749         file.
6750         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
6751         file.
6752         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
6753         file.
6754         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
6755         New file.
6756         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
6757         file.
6758         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
6759         file.
6760         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
6761         New file.
6762         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
6763         file.
6764         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
6765         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
6766         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
6767         file.
6768         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
6769         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
6770         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
6771         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
6772         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
6773         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
6774         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
6775         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
6776         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
6777         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
6778         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
6779         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
6780         file.
6781         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
6782         New file.
6783         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
6784         file.
6785         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
6786         file.
6787         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
6788         file.
6789         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
6790         file.
6791         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
6792         file.
6793         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
6794         New file.
6795         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
6796         New file.
6797         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
6798         file.
6799         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
6800         New file.
6801         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
6802         file.
6803         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
6804         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
6805         file.
6806         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
6807         New file.
6808         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
6809         file.
6810         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
6811         file.
6812         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
6813         file.
6814         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
6815         file.
6816         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
6817         file.
6818         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
6819         New file.
6820         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
6821         New file.
6822         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
6823         file.
6824         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
6825         New file.
6826         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
6827         file.
6828
6829 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
6830
6831         * conform/conformtest.pl: Fix typo in handling typed-constant from
6832         allow-header.
6833
6834 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
6835
6836         * README: Cut down references to pre-2.6 Linux kernels and
6837         Linuxthreads.  Update lists of configurations in libc and ports
6838         and sort alphabetically.  Say "or newer" with Linux kernel version
6839         requirements.
6840
6841         * config.h.in [IS_IN_build]: Allow compiling without optimization.
6842
6843 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
6844
6845         [BZ #887]
6846         * math/libm-test.inc (logb_test_downward): New test to expose
6847         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
6848         rounding mode.
6849
6850 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
6851
6852         [BZ #14027]
6853         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
6854         to be done.
6855         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
6856         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
6857
6858 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
6859
6860         * sysdeps/unix/i386/brk.S: Remove file.
6861         * sysdeps/unix/i386/dl-brk.S: Likewise.
6862         * sysdeps/unix/i386/pipe.S: Likewise.
6863         * sysdeps/unix/i386/sigreturn.S: Likewise.
6864         * sysdeps/unix/i386/syscall.S: Likewise.
6865         * sysdeps/unix/i386/vfork.S: Likewise.
6866         * sysdeps/unix/i386/wait.S: Likewise.
6867
6868         * sysdeps/unix/common/tcsendbrk.c: Move to ...
6869         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
6870
6871         * configure.in (arm*-none*): Do not allow without
6872         --enable-hacker-mode.
6873         (netbsd*): Remove case setting base_os.
6874         (386bsd*): Likewise.
6875         (freebsd*): Likewise.
6876         (bsdi*): Likewise.
6877         (osf*): Likewise.
6878         (sunos*): Likewise.
6879         (ultrix*): Likewise.
6880         (newsos*): Likewise.
6881         (dynix*): Likewise.
6882         (*bsd*): Likewise.
6883         (sysv*): Likewise.
6884         (isc*): Likewise.
6885         (esix*): Likewise.
6886         (sco*): Likewise.
6887         (minix*): Likewise.
6888         (irix4*): Likewise.
6889         (irix6*): Likewise.
6890         (solaris[2-9]*): Likewise.
6891         (none): Likewise.
6892         * configure: Regenerated.
6893
6894 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6895
6896         [BZ #11521]
6897         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
6898         overflow or cancellation in calculating denominator.
6899         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
6900         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
6901         down expression to avoid unexpected rounding in newer GCCs.
6902         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
6903
6904 2012-04-26  David S. Miller  <davem@davemloft.net>
6905
6906         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
6907         long-double compat symbols.
6908         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
6909         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
6910         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
6911         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
6912         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
6913         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
6914         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
6915         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
6916         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
6917         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
6918         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
6919         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
6920         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
6921
6922 2012-04-25  David S. Miller  <davem@davemloft.net>
6923
6924         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
6925         HWCAP_* values only after the memory barriers have been defined.
6926         (atomic_full_barrier): Define.
6927         (atomic_read_barrier): Define.
6928         (atomic_write_barrier): Define.
6929
6930 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
6931
6932         * shlib-versions: Add libgcc_s version information.
6933         * sysdeps/generic/libgcc_s.h: Remove.
6934         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
6935         libgcc_s.h.
6936         * sysdeps/gnu/unwind-resume.c: Likewise.
6937         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
6938
6939 2012-04-25  David S. Miller  <davem@davemloft.net>
6940
6941         * sysdeps/unix/sparc/brk.S: Delete.
6942         * sysdeps/unix/sparc/dl-brk.S: Delete.
6943         * sysdeps/unix/sparc/pipe.S: Delete.
6944         * sysdeps/unix/sparc/sysdep.S: Delete.
6945         * sysdeps/unix/sparc/sysdep.h: Delete.
6946         * sysdeps/unix/sparc/vfork.S: Delete.
6947         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
6948         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
6949         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
6950         ret_ERRVAL, r0, r1, MOVE): Define.
6951         (JUMPTARGET): Remove.
6952         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
6953         sysdeps/unix/sparc/sysdep.h
6954         (ENTRY, END): Remove.
6955         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
6956
6957 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
6958
6959         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
6960         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
6961         -DIS_IN_build.
6962
6963         * timezone/README: Update upstream location and email address for
6964         tzcode and tzdata.
6965         * timezone/zdump.c: Update from tzcode 2012b.
6966         * timezone/zic.c: Likewise.
6967
6968         * configure.in (libc_cv_as_needed): Remove test.
6969         * configure: Regenerated.
6970         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
6971         conditional definition.
6972         [$(have-as-needed) != yes] (no-as-needed): Likewise.
6973         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
6974         * config.make.in (have-as-needed): Remove variable.
6975
6976 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
6977             Paul Pluzhnikov  <ppluzhnikov@google.com>
6978
6979         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
6980         strings correctly.
6981
6982 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
6983
6984         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
6985         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
6986         * sysdeps/sh/strlen.S: Likewise.
6987
6988 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
6989
6990         * sysdeps/unix/fork.S: Remove file.
6991         * sysdeps/unix/i386/fork.S: Likewise.
6992         * sysdeps/unix/sparc/fork.S: Likewise.
6993
6994         * sysdeps/unix/system.c: Remove file.
6995         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
6996
6997         * sysdeps/unix/getegid.S: Remove file.
6998         * sysdeps/unix/geteuid.S: Likewise.
6999
7000 2012-04-24  Roland McGrath  <roland@hack.frob.com>
7001
7002         * scripts/check-localplt.awk: New file.
7003         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
7004         of diff.
7005         * scripts/data/localplt-generic.data: Add a comment.
7006
7007         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
7008         NODE when __dir_mkfile failed.
7009         * sysdeps/mach/hurd/symlinkat.c: Likewise.
7010         Reported by Ludovic Courtès <ludo@gnu.org>.
7011
7012 2012-04-24  Andreas Jaeger  <aj@suse.de>
7013
7014         * Makerules (common-clean): Also remove gen-as-const-headers
7015         files.
7016
7017 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
7018
7019         * Makerules (native-compile): Do not change working directory for
7020         build.  Use $(OUTPUT_OPTION) in command.
7021         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
7022
7023 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7024
7025         [BZ #13886]
7026         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
7027         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
7028         * math/libm-test.inc (floor_test): Add more tests.
7029         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
7030
7031 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
7032
7033         * sysdeps/unix/getdents.c: Remove file.
7034         * sysdeps/unix/sysv/getdents.c: Likewise.
7035         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
7036
7037         * sysdeps/unix/syscalls.list (madvise): Add syscall from
7038         sysdeps/unix/mman/syscalls.list.
7039         (mmap): Likewise.
7040         (mprotect): Likewise.
7041         (msync): Likewise.
7042         (munmap): Likewise.
7043         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
7044         * sysdeps/unix/mman/syscalls.list: Remove.
7045         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
7046
7047         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
7048         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
7049         * configure: Regenerated.
7050         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
7051         $(libgcc_s_suffix).
7052         * config.make.in (libgcc_s_suffix): Remove variable.
7053
7054 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
7055
7056         * sysdeps/unix/sysv/gethostname.c: Move to ...
7057         * sysdeps/posix/gethostname.c: ... here.
7058
7059         * sysdeps/unix/execve.S: Remove file.
7060
7061         * sysdeps/unix/_exit.S: Remove file.
7062
7063 2012-04-23  Andreas Jaeger  <aj@suse.de>
7064
7065         [BZ #13739]
7066         * manual/Makefile: Remove make dist support, there's no
7067         need for a stand-alone documentation tar ball.
7068         (TEXI2DVI): Define always, it's not in Makeconfig.
7069         (dist): Removed.
7070         (tar-it): Removed.
7071         (edition): Removed.
7072         (glibc-doc-$(edition).tar): Removed
7073         (%.Z): Removed.
7074         (%.gz): Removed.
7075         (%.uu): Removed.
7076         (ETAGS): Remove, it's in Makeconfig.
7077         (move-if-change): Remove, it's in Makeconfig.
7078
7079 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
7080
7081         [BZ #13970]
7082         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
7083         (strtod, strtof, strtold, strtol, strtoul, strtoq)
7084         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
7085         (strtod_l, strtof_l, strtold_l): Remove __wur.
7086         It is not necessarily an error to ignore strtol's return value.
7087         One can reliably look at the stored endptr to decide whether
7088         the number had valid syntax.
7089
7090 2012-04-21  Andreas Jaeger  <aj@suse.de>
7091
7092         [BZ #13739]
7093         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
7094
7095 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
7096
7097         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
7098         * sysdeps/unix/sysv/Versions: Remove file.
7099
7100 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
7101
7102         [BZ #13927]
7103         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7104
7105 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
7106
7107         [BZ #7064]
7108         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
7109         version from __vm86.
7110
7111 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
7112
7113         * sysdeps/unix/common/lxstat.c: Remove file.
7114         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
7115
7116         * sysdeps/unix/sysv/Makefile: Remove file.
7117
7118         * sysdeps/unix/sysv/direct.h: Remove file.
7119
7120         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
7121         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
7122         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
7123         * sysdeps/unix/sysv/bits/signum.h: Likewise.
7124         * sysdeps/unix/sysv/bits/stat.h: Likewise.
7125         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
7126         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
7127
7128         * sysdeps/unix/sysv/setrlimit.c: Remove file.
7129
7130         * sysdeps/unix/xmknod.c: Remove file.
7131         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
7132
7133         * sysdeps/unix/sysv/settimeofday.c: Remove file.
7134
7135         * sysdeps/unix/sysv/i386/time.S: Remove file.
7136
7137         * sysdeps/unix/fxstat.c: Remove file.
7138         * sysdeps/unix/xstat.c: Likewise.
7139         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
7140
7141         * sysdeps/unix/sysv/sigaction.c: Remove file.
7142
7143         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
7144         (sysdep_headers): Remove variable.
7145         [termio.h not in sysdep_headers] (generated): Likewise.
7146         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
7147         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
7148         * sysdeps/unix/sysv/tcdrain.c: Likewise.
7149         * sysdeps/unix/sysv/tcflow.c: Likewise.
7150         * sysdeps/unix/sysv/tcflush.c: Likewise.
7151         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
7152         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
7153         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
7154         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
7155         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
7156
7157         * sysdeps/unix/siglist.c: Remove file.
7158
7159         * sysdeps/unix/getppid.S: Remove file.
7160
7161         * sysdeps/unix/mkdir.c: Remove file.
7162         * sysdeps/unix/rmdir.c: Likewise.
7163
7164 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
7165
7166         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
7167         ERR_MAX value.
7168         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
7169         errlist-compat value.
7170
7171 2012-04-18  David S. Miller  <davem@davemloft.net>
7172
7173         * sysdeps/generic/memcopy.h (reg_char): Delete.
7174         * debug/strcat_chk.c: Use char, not reg_char.
7175         * debug/strcpy_chk.c: Likewise.
7176         * debug/strncat_chk.c: Likewise.
7177         * debug/strncpy_chk.c: Likewise.
7178         * string/memchr.c: Likewise.
7179         * string/memrchr.c: Likewise.
7180         * string/rawmemchr.c: Likewise.
7181         * string/strcat.c: Likewise.
7182         * string/strchr.c: Likewise.
7183         * string/strchrnul.c: Likewise.
7184         * string/strcmp.c: Likewise.
7185         * string/strcpy.c: Likewise.
7186         * string/strncat.c: Likewise.
7187         * string/strncmp.c: Likewise.
7188         * string/strncpy.c: Likewise.
7189
7190 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
7191
7192         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
7193         __builtin_memcopy is called when src and dest ranges are known to not
7194         overlap.
7195
7196 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
7197
7198         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
7199         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
7200         fwd_align_merge macro call.
7201         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
7202         bwd_align_merge macro call.
7203         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
7204
7205 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
7206
7207         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
7208         bwd_align_merge macros.
7209         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
7210         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
7211         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
7212
7213 2012-04-18  David S. Miller  <davem@davemloft.net>
7214
7215         * sysdeps/sparc/sparc64/memcopy.h: Delete.
7216
7217 2012-04-18  Andreas Jaeger  <aj@suse.de>
7218
7219         [BZ# 6794]
7220         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
7221         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
7222         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
7223
7224         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
7225         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
7226         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
7227
7228         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
7229         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
7230         Adjust for changed ldbl-128 files.
7231
7232         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
7233         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
7234         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
7235
7236 2012-04-17  David S. Miller  <davem@davemloft.net>
7237
7238         * sysdeps/sparc/sparc32/memcopy.h: Delete.
7239
7240 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
7241
7242         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
7243         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
7244         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
7245         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
7246         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
7247         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
7248
7249 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7250
7251         [BZ #6794]
7252         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
7253         * math/libm-test.inc: Add ilogb errno and exception tests.
7254         * math/w_ilogb.c: New file: ilogb wrapper.
7255         * math/w_ilogbf.c: New file: ilogbf wrapper.
7256         * math/w_ilogbl.c: New file: ilogbl wrapper.
7257         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
7258         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
7259         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
7260         exception being thrown with 0.0 as argument.
7261         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
7262         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
7263         exception being thrown with 0.0 as argument.
7264         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
7265         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
7266         exception being thrown with 0.0 as argument.
7267         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
7268         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
7269         exception being thrown with 0.0 as argument.
7270         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
7271         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
7272         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
7273         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
7274         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
7275         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
7276         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
7277         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
7278         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
7279
7280 2012-04-17  Petr Baudis  <pasky@ucw.cz>
7281
7282         * include/sys/uio.h: Change __vector to __iovec to avoid clash
7283         with altivec.
7284
7285 2012-04-16  Marek Polacek  <polacek@redhat.com>
7286
7287         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
7288
7289 2012-04-16  Marek Polacek  <polacek@redhat.com>
7290
7291         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
7292         operands of fdivp instruction.
7293
7294 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
7295
7296         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
7297         * elf/tst-auditmod3b.c: Likewise.
7298         * elf/tst-auditmod4b.c: Likewise.
7299         * elf/tst-auditmod5b.c: Likewise.
7300         * elf/tst-auditmod6b.c: Likewise.
7301         * elf/tst-auditmod6c.c: Likewise.
7302         * elf/tst-auditmod7b.c: Likewise.
7303         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
7304         * sysdeps/x86_64/preconfigure.in: Likewise.
7305         * sysdeps/x86_64/preconfigure: Regenerated.
7306
7307 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
7308
7309         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
7310         __ILP32__.
7311
7312 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
7313
7314         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
7315         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
7316
7317 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
7318
7319         [BZ #13973]
7320         * locale/iso-639.def: Fix gl language name. Spotted by
7321         Yaron Shahrabani.
7322
7323 2012-04-12  Roland McGrath  <roland@hack.frob.com>
7324
7325         [BZ #2074]
7326         * libio/libio.h (__io_write_fn): Update comment.
7327
7328 2012-04-12  Petr Baudis  <pasky@ucw.cz>
7329
7330         [BZ #2074]
7331         * stdio.texi (Hook Functions): The user provided writer function
7332         is not allowed to return -1.
7333
7334 2012-04-11  David S. Miller  <davem@davemloft.net>
7335
7336         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7337
7338 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
7339
7340         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
7341         Add a leading slash to rtkaio.
7342
7343 2012-04-11  Jim Meyering  <meyering@redhat.com>
7344
7345         [BZ #11959]
7346         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
7347         It is not necessarily an error to ignore fwrite's return
7348         value.  One can reliably use ferror to test for errors after
7349         the fact.
7350
7351 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
7352
7353         * bits/types.h (__snseconds_t): New type.
7354         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
7355
7356         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
7357         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
7358         (__SNSECONDS_T_TYPE): Likewise.
7359         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
7360         (__SNSECONDS_T_TYPE): Likewise.
7361         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
7362         (__SNSECONDS_T_TYPE): Likewise.
7363
7364 2012-04-10  Andreas Jaeger  <aj@suse.de>
7365
7366         [BZ #2636]
7367         * manual/time.texi (Processor Time): Return type of times is
7368         elapsed real time since an arbitrary point in the past.
7369         (CPU Time): Move CLK_TCK from here...
7370         (Processor Time): ...to here.  Correct description.
7371         * manual/conf.texi (Constants for Sysconf): Correct description of
7372         _SC_CLK_TCK.
7373
7374 2012-04-10  David S. Miller  <davem@davemloft.net>
7375
7376         [BZ #13967]
7377         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
7378         where the is a gap between DT_REL(A) and DT_JMPREL.
7379
7380 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
7381
7382         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
7383         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
7384         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
7385
7386 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
7387
7388         * elf/dl-support.c (_dl_inhibit_cache): New variable.
7389         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
7390         (dl_main): Handle --inhibit-cache.
7391         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
7392         _dl_inhibit_cache.
7393         * elf/dl-load.c (_dl_map_object): Use it.
7394         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
7395
7396 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
7397
7398         [BZ #13872]
7399         * sysdeps/i386/fpu/e_powl.S (p78): New object.
7400         (__ieee754_powl): Saturate large exponents rather than testing for
7401         overflow of y*log2(x).
7402         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
7403         * math/libm-test.inc (pow_test): Do not permit spurious overflow
7404         exceptions.
7405
7406         [BZ #11521]
7407         * math/s_ctan.c: Include <float.h>.
7408         (__ctan): Avoid internal overflow or cancellation in calculating
7409         denominator.
7410         * math/s_ctanf.c: Likewise.
7411         * math/s_ctanl.c: Likewise.
7412         * math/s_ctanh.c: Likewise.
7413         * math/s_ctanhf.c: Likewise.
7414         * math/s_ctanhl.c: Likewise.
7415         * math/libm-test.inc (ctan_test): Add more tests.
7416         (ctanh_test): Likewise.
7417         * sysdeps/i386/fpu/libm-test-ulps: Update.
7418         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7419
7420 2012-04-09  Andreas Jaeger  <aj@suse.de>
7421
7422         [BZ #6894]
7423         * manual/filesys.texi (Directory Entries): Mention that d_namlen
7424         is an optional BSD extension.
7425
7426         [BZ #10254]
7427         * manual/stdio.texi (Opening Streams): Document additional fopen
7428         parameters.
7429
7430 2012-04-09  Roland McGrath  <roland@hack.frob.com>
7431
7432         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
7433         %eax without telling the compiler.
7434
7435 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
7436
7437         [BZ # 13963]
7438         * manual/install.texi: Use sourceware.org.
7439
7440 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
7441
7442         [BZ #13873]
7443         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
7444         (__ieee754_pow): Generate overflow and underflow using huge*huge
7445         and tiny*tiny rather than just returning constant infinity or zero
7446         for large exponents.
7447         * math/libm-test.inc (pow_test): Require overflow exceptions for
7448         applicable cases of large exponents.
7449
7450         [BZ #706]
7451         * sysdeps/i386/fpu/e_pow.S (p10): New object.
7452         (__ieee754_pow): Use iterative multiplication algorithm only for
7453         integer exponents with absolute value below 1024.  Check for odd
7454         integer exponents when using algorithm for real exponents.
7455         * math/libm-test.inc (pow_test): Add more tests.
7456         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7457
7458 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
7459
7460         [BZ #13705]
7461         * math/libm-test.inc (exp_test): Do not allow overflow exception
7462         on underflow test.
7463
7464 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
7465
7466         [BZ #13705]
7467         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
7468         instead of __kernel_standard_f.
7469
7470 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
7471
7472         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
7473         * sysdeps/x86_64/memset_chk.S: Likewise.
7474
7475 2012-04-08  Andreas Jaeger  <aj@suse.de>
7476
7477         [BZ #10153]
7478         * manual/startup.texi (Environment Access): Describe return value
7479         for putenv and setenv.
7480
7481         [BZ #6895]
7482         * manual/filesys.texi (Directory Entries): Add description for
7483         DT_LNK.
7484
7485         [BZ #6890]
7486         * manual/filesys.texi (Directory Entries): Clarify that it's file
7487         system not operating system in the description of DT_UNKNOWN.
7488
7489         [BZ #6578]
7490         * manual/syslog.texi (closelog): Fix reference, it's openlog.
7491
7492 2012-04-08  Stephen Compall  <s11@member.fsf.org>
7493
7494         [BZ #6649]
7495         * manual/llio.texi (Opening and Closing Files): Add cross
7496         reference to explain mode argument.
7497
7498 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
7499
7500         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
7501         * sysdeps/x86_64/memset_chk.S: Likewise.
7502
7503 2012-04-07  David S. Miller  <davem@davemloft.net>
7504
7505         * elf/elf.h (R_SPARC_WDISP10): Define.
7506         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
7507         R_SPARC_SIZE32.
7508         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
7509         R_SPARC_SIZE64 and R_SPARC_H34.
7510
7511 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
7512
7513         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
7514         conditions and remove no longer applicable assertion.
7515
7516 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
7517
7518         * bits/byteswap.h: Include <features.h>.
7519         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
7520         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
7521
7522 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
7523
7524         * bits/byteswap.h (__bswap_16): Removed.
7525         Include <bits/byteswap-16.h> to get __bswap_16.
7526         * sysdeps/i386/bits/byteswap.h: Likewise.
7527         * sysdeps/s390/bits/byteswap.h: Likewise.
7528         * sysdeps/x86_64/bits/byteswap.h: Likewise.
7529         * bits/byteswap-16.h: New file.
7530         * sysdeps/i386/bits/byteswap-16.h: Likewise.
7531         * sysdeps/s390/bits/byteswap-16.h: Likewise.
7532         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
7533         * string/Makefile (headers): Add bits/byteswap-16.h.
7534
7535 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
7536
7537         [BZ #13895]
7538         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
7539         extra indirection.
7540         * nss/Makefile (tests-static, tests): Add tst-nss-static.
7541         * nss/tst-nss-static.c: New.
7542
7543 2012-04-06  Robert Millan  <rmh@gnu.org>
7544
7545         [BZ #6486]
7546         * manual/llio.texi (File Position Primitive): lseek
7547         refers to WHENCE when it really means OFFSET.
7548
7549 2012-04-06  Andreas Jaeger  <aj@suse.de>
7550
7551         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
7552         strncmp declarations.
7553
7554         * abilist/libc.abilist: Add __poll and __ppoll.
7555
7556 2012-04-05  David S. Miller  <davem@davemloft.net>
7557
7558         * scripts/check-local-headers.sh: Accept a host triplet in the
7559         path matched by the exclude regexp.
7560
7561         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
7562         definition.
7563         * sysdeps/powerpc/powerpc32/dl-machine.h
7564         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
7565         * sysdeps/s390/s390-32/dl-machine.h
7566         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
7567         * sysdeps/sparc/sparc32/dl-machine.h
7568         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
7569         * sysdeps/sparc/sparc64/dl-machine.h
7570         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
7571
7572         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
7573         lazy binding.
7574         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
7575         undefined symbol errors.
7576
7577         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
7578         DT_NEEDED entries.
7579
7580 2012-04-05  Michael Matz  <matz@suse.de>
7581
7582         [BZ #13592]
7583         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
7584
7585 2012-04-05  Andreas Jaeger  <aj@suse.de>
7586
7587         [BZ #13908]
7588         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
7589         comment.
7590
7591 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
7592
7593         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
7594         which ROUND is no valid rounding mode.
7595
7596 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
7597
7598         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
7599         read again.
7600         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
7601
7602 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
7603
7604         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
7605         an exception using FPU order intentionally.
7606
7607 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
7608
7609         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
7610         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
7611         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
7612         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
7613
7614 2012-04-05  Simon Josefsson  <simon@josefsson.org>
7615
7616         [BZ #12340]
7617         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
7618         EINVAL when BUFLEN is too smal.
7619
7620 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
7621
7622         [BZ #13553]
7623         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
7624         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
7625
7626 2012-04-03  Andreas Jaeger  <aj@suse.de>
7627
7628         [BZ #13938]
7629         * manual/setjmp.texi (System V contexts): Fix sentence.
7630
7631         [BZ #13926]
7632         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
7633         New macro for this case.
7634         [!__GNUC__] (__bswap_64): New inline function for this case.
7635         * sysdeps/x86_64/bits/byteswap.h: Likewise.
7636         * bits/byteswap.h: Likewise.
7637         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
7638         ull, guard with __GLIBC_HAVE_LONG_LONG.
7639
7640         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
7641         __GLIBC_HAVE_LONG_LONG.
7642
7643         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
7644         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
7645
7646 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
7647
7648         [BZ #13691]
7649         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
7650         inptr and inend, rather than using last_ch.
7651
7652 2012-04-02  David S. Miller  <davem@davemloft.net>
7653
7654         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
7655         * stdio-common/printf-parse.h (read_int): Change return type to
7656         'int', return -1 on INT_MAX overflow.
7657         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
7658         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
7659         overflows INT_MAX.  Check for overflow of in-format-string precision
7660         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
7661         SIZE_MAX not INT_MAX for integer overflow test.
7662         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
7663         skip the construct in the format string but do not record anything.
7664         * stdio-common/bug22.c: Adjust to test both width/prevision
7665         INT_MAX overflow as well as total length INT_MAX overflow.  Check
7666         explicitly for proper errno values.
7667
7668 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
7669
7670         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
7671         CHAR_MAX.
7672         * string/test-strcmp.c [! WIDE]: Likewise.
7673         * time/tst-mktime2.c: Likewise for INT_MAX.
7674         * string/test-string.h: #include <sys/param.h> for MIN.
7675
7676         * csu/init-first.c (__libc_init_first): Call __ctype_init.
7677         * sysdeps/i386/init-first.c (init): Likewise.
7678         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
7679         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
7680         * sysdeps/sh/init-first.c (init): Likewise.
7681
7682 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
7683
7684         * po/ru.po: Update from translation team.
7685         * po/vi.po: Likewise.
7686
7687 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
7688
7689         * resolv/nss_dns/dns-host.c: Merge copyright years.
7690
7691 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7692
7693         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
7694         Optimize memcpy with prefetch if
7695         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
7696         src, dst pointers have unequal 16 byte alignments.
7697
7698 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
7699
7700         [BZ #13928]
7701         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
7702         from a CNAME entry and return the minimum ttl for the query.
7703         (gaih_getanswer_slice): Likewise.
7704
7705 2012-03-30  Jeff Law  <law@redhat.com>
7706
7707         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
7708         due to long keys.
7709         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
7710         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
7711
7712         * resolv/nss_dns/dns-host.c: Update copyright year.
7713
7714 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
7715
7716         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
7717         requests to save a system call.  Fix check that all bytes are sent.
7718
7719         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
7720         comments for sendmmsg.
7721
7722 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
7723
7724         [BZ #13691]
7725         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
7726         with only 1 character between 0x0041 and 0x01b0.
7727         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
7728         * wcsmbs/tst-mbsnrtowcs.c: New file.
7729
7730 2012-03-29  David S. Miller  <davem@davemloft.net>
7731
7732         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
7733         small copies by hand.
7734
7735 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
7736
7737         [BZ #13761]
7738         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
7739         _nss_compat_initgroups_dyn): Fall back to malloc/free
7740         for large group memberships.
7741
7742 2012-03-28  David S. Miller  <davem@davemloft.net>
7743
7744         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
7745         that branches into memcpy.
7746         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
7747         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
7748         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
7749         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
7750         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
7751         bits.
7752         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
7753         implementation too.
7754         * sysdeps/sparc/mempcpy.S: New file.
7755
7756         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
7757         the IFUNC routine in the libc case.
7758         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
7759
7760         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
7761         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
7762         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
7763         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
7764         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
7765         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
7766         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
7767         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
7768
7769         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
7770         loop to 256 bytes instead of 64 bytes and fix test signedness.
7771
7772         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
7773         * sysdeps/sparc/sparc32/Makefile: rather than here...
7774         * sysdeps/sparc/sparc64/Makefile: and here.
7775
7776 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
7777
7778         * malloc/mallocbug.c: Avoid warnings about unused variables.
7779
7780 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
7781
7782         [BZ #13760]
7783         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
7784         in the right place. Discard and retry query if response is
7785         larger than input buffer size.
7786
7787 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
7788
7789         [BZ #369]
7790         [BZ #2678]
7791         [BZ #3866]
7792         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
7793         x for large integer exponent.
7794         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
7795         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
7796         sign of result as needed afterwards.
7797         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
7798         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
7799         result for underflowing pow the same as for overflow.
7800         (__kernel_standard_l): Handle powl overflow and underflow here
7801         rather than calling __kernel_standard.
7802         * math/libm-test.inc (pow_test): Add more tests.
7803
7804         [BZ #3868]
7805         [BZ #13879]
7806         [BZ #13910]
7807         [BZ #13911]
7808         [BZ #13912]
7809         [BZ #13913]
7810         [BZ #13915]
7811         [BZ #13916]
7812         [BZ #13917]
7813         [BZ #13918]
7814         [BZ #13919]
7815         [BZ #13920]
7816         [BZ #13921]
7817         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
7818         * sysdeps/ieee754/k_standard.c: Include <float.h>.
7819         (__kernel_standard_l): New function.
7820         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
7821         __kernel_standard.
7822         * math/w_acosl.c (__acosl): Likewise.
7823         * math/w_asinl.c (__asinl): Likewise.
7824         * math/w_atan2l.c (__atan2l): Likewise.
7825         * math/w_atanhl.c (__atanhl): Likewise.
7826         * math/w_coshl.c (__coshl): Likewise.
7827         * math/w_exp10l.c (__exp10l): Likewise.
7828         * math/w_exp2l.c (__exp2l): Likewise.
7829         * math/w_fmodl.c (__fmodl): Likewise.
7830         * math/w_hypotl.c (__hypotl): Likewise.
7831         * math/w_j0l.c (__j0l, __y0l): Likewise.
7832         * math/w_j1l.c (__j1l, __y1l): Likewise.
7833         * math/w_jnl.c (__jnl, __ynl): Likewise.
7834         * math/w_lgammal.c (__lgammal): Likewise.
7835         * math/w_log10l.c (__log10l): Likewise.
7836         * math/w_log2l.c (__log2l): Likewise.
7837         * math/w_logl.c (__logl): Likewise.
7838         * math/w_powl.c (__powl): Likewise.
7839         * math/w_remainderl.c (__remainderl): Likewise.
7840         * math/w_scalbl.c (sysv_scalbl): Likewise.
7841         * math/w_sinhl.c (__sinhl): Likewise.
7842         * math/w_sqrtl.c (__sqrtl): Likewise.
7843         * math/w_tgammal.c (__tgammal): Likewise.
7844         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
7845         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
7846         * math/libm-test.inc (acos_test): Add more tests.
7847         (acosh_test): Likewise.
7848         (asin_test): Likewise.
7849         (atanh_test): Likewise.
7850         (exp_test): Likewise.
7851         (exp10_test): Likewise.
7852         (exp2_test): Likewise.
7853         (expm1_test): Likewise.
7854         (lgamma_test): Likewise.
7855         (log_test): Likewise.
7856         (log10_test): Likewise.
7857         (log1p_test): Likewise.
7858         (log2_test): Likewise.
7859         (pow_test): Do not allow some spurious overflow exceptions.
7860         (sqrt_test): Add more tests.
7861         (tgamma_test): Likewise.
7862         (y0_test): Likewise.
7863         (y1_test): Likewise.
7864         (yn_test): Likewise.
7865
7866 2012-03-27  Anton Blanchard  <anton@samba.org>
7867
7868         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
7869         MAP_HUGETLB.
7870         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
7871         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
7872         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
7873
7874 2012-03-27  David S. Miller  <davem@davemloft.net>
7875
7876         * conform/Makefile: Run run-conformtest.sh using $(BASH).
7877
7878         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
7879         have-as-vis3 check.
7880
7881 2012-03-27  Andreas Jaeger  <aj@suse.de>
7882
7883         * sysdeps/x86_64/elf/configure.in: Moved to ...
7884         * sysdeps/x86_64/configure.in: ... here.
7885         * sysdeps/x86_64/elf/start.S: Moved to ...
7886         * sysdeps/x86_64/start.S: ... here.
7887         * sysdeps/x86_64/elf/configure: Delete.
7888
7889         * sysdeps/x86_64/configure.in: Merge contents from
7890         sysdeps/i386/configure.in (without i686 check).
7891
7892         * sysdeps/i386/elf/Versions: Merge into ...
7893         * sysdeps/i386/Versions: ... this.
7894         * sysdeps/i386/elf/Versions: Delete file.
7895         * sysdeps/i386/elf/start.S: Moved to ...
7896         * sysdeps/i386/start.S: ...here.
7897         * sysdeps/i386/elf/configure.in: Merge into...
7898         * sysdeps/i386/configure.in: ...here.
7899         * sysdeps/i386/elf/configure.in: Delete file.
7900         * sysdeps/i386/elf/configure: Delete file.
7901
7902         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
7903         * debug/backtracesyms.c: ... here.
7904         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
7905         * debug/backtracesymsfd.c: ... here.
7906         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
7907         * sysdeps/generic/ifunc-sel.h: ... here.
7908
7909         * sysdeps/unix/i386/start.c: Delete file.
7910         * sysdeps/unix/sparc/start.c: Delete file.
7911         * sysdeps/unix/start.c: Delete file.
7912
7913         * sysdeps/sh/elf/configure.in: Moved to ...
7914         * sysdeps/sh/configure.in: ... here.
7915         * sysdeps/sh/elf/start.S: Moved to ...
7916         * sysdeps/sh/start.S: ... here.
7917         * sysdeps/sh/elf/configure: Delete file.
7918
7919         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
7920         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
7921         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
7922         * sysdeps/powerpc/powerpc64/entry.h: ... here.
7923         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
7924         * sysdeps/powerpc/powerpc64/start.S: here.
7925         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
7926         * sysdeps/powerpc/powerpc64/Makefile: ... this.
7927         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
7928         * sysdeps/powerpc/powerpc64/configure.in: ... this.
7929         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
7930
7931         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
7932         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
7933         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
7934         * sysdeps/powerpc/powerpc32/start.S: ... here.
7935         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
7936         * sysdeps/powerpc/powerpc32/configure.in: ... this.
7937         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
7938
7939         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
7940         * sysdeps/powerpc/ifunc-sel.h: ... here.
7941         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
7942         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
7943
7944         * sysdeps/sparc/elf/configure.in: Moved to ...
7945         * sysdeps/sparc/configure.in: ... here.
7946         * sysdeps/sparc/elf/configure: Delete file.
7947         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
7948         * sysdeps/sparc/sparc32/start.S: ... here.
7949         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
7950         * sysdeps/sparc/sparc64/start.S: ... here.
7951         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
7952         * sysdeps/sparc/sparc32/Makefile: ... this.
7953         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
7954         * sysdeps/sparc/sparc64/Makefile: ... this.
7955
7956         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
7957         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
7958         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
7959         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
7960         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
7961         * sysdeps/s390/s390-32/setjmp.S: ... here.
7962         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
7963         * sysdeps/s390/s390-32/configure.in: ... here.
7964         * sysdeps/s390/s390-32/elf/configure: Delete file.
7965         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
7966         * sysdeps/s390/s390-32/start.S: ... here.
7967
7968         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
7969         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
7970         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
7971         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
7972         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
7973         * sysdeps/s390/s390-64/setjmp.S: ... here.
7974         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
7975         * sysdeps/s390/s390-64/configure.in: ... here
7976         * sysdeps/s390/s390-64/elf/configure: Delete file.
7977         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
7978         * sysdeps/s390/s390-64/start.S: ... here.
7979         * sysdeps/s390/s390-64/elf/configure: Delete.
7980
7981         * configure.in: Remove support for elf directories in sysdeps.
7982
7983         * configure: Regenerated.
7984         * sysdeps/i386/configure: Regenerated.
7985         * sysdeps/powerpc/powerpc32/configure: Regenerated.
7986         * sysdeps/powerpc/powerpc64/configure: Regenerated.
7987         * sysdeps/s390/s390-32/configure: Regenerated.
7988         * sysdeps/s390/s390-64/configure: Regenerated.
7989         * sysdeps/sh/configure: Regenerated.
7990         * sysdeps/sparc/configure: Regenerated.
7991         * sysdeps/x86_64/configure: Regenerated.
7992
7993 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
7994
7995         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7996
7997         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
7998         denormal result into account.
7999
8000 2012-03-25  Roland McGrath  <roland@hack.frob.com>
8001
8002         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
8003         Reported by Allan McRae <allan@archlinux.org>.
8004
8005 2012-03-23  Jeff Law  <law@redhat.com>
8006
8007         * nss/getnssent.c (__nss_getent): Fix typo.
8008
8009 2012-03-23  David S. Miller  <davem@davemloft.net>
8010
8011         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8012
8013 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
8014
8015         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
8016         to pad to uint64_t for each field.
8017         (dl_tls_index): Replace unsigned long with uint64_t.
8018
8019 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
8020         Paul Pluzhnikov  <ppluzhnikov@google.com>
8021
8022         [BZ #6528]
8023         * grp/Makefile (otherlibs): Don't set it.
8024         * inet/Makefile (otherlibs): Likewise.
8025         * login/Makefile (otherlibs): Likewise.
8026         * nscd/Makefile (otherlibs): Likewise.
8027         * posix/Makefile (otherlibs): Likewise.
8028         * pwd/Makefile (otherlibs): Likewise.
8029         * rt/Makefile (otherlibs): Likewise.
8030         * sunrpc/Makefile (otherlibs): Likewise.
8031         * nss/Makefile (otherlibs): Likewise.
8032         Add libnss_files to routines and static-only-routines.
8033         ($(objpfx)getent): Remove rule.
8034         * resolv/Makefile: Add libnss_dns and libresolv to routines and
8035         static-only-routines.
8036
8037 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
8038
8039         [BZ #13892]
8040         * math/s_cexp.c: Include <float.h>.
8041         (__cexp): Handle exp result overflowing not necessarily
8042         overflowing both real and imaginary parts of result.
8043         * math/s_cexpf.c: Likewise.
8044         * math/s_cexpl.c: Likewise.
8045         * math/libm-test.inc (cexp_test): Add more tests.
8046         * sysdeps/i386/fpu/libm-test-ulps: Update.
8047         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8048
8049 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
8050
8051         * include/link.h (ELFW): New macro.
8052         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
8053         Replace ELF64_R_TYPE with ELFW(R_TYPE).
8054
8055 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
8056
8057         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
8058         with uint64_t.
8059
8060 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
8061
8062         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
8063         declaration.
8064         (struct La_x32_retval): Likewise.
8065
8066 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
8067
8068         * sysdeps/x86_64/preconfigure.in: New file.
8069         * sysdeps/x86_64/preconfigure: New generated file.
8070
8071 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
8072
8073         [BZ #13824]
8074         * math/e_exp2l.c: Include <float.h>.
8075         (__ieee754_exp2l): Handle overflow and underflow cases
8076         separately.  Only pass fractional part of argument to
8077         __ieee754_expl.
8078         * math/libm-test.inc (exp2_test): Add more tests.
8079
8080         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
8081         negating x to take absolute value.
8082         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
8083         Likewise.
8084         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
8085         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
8086         Likewise.
8087         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
8088         computing low part if x was negated.
8089         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
8090
8091 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
8092
8093         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
8094         la_x32_gnu_pltexit.
8095         (pltexit): Cast int_retval to ptrdiff_t.
8096         * elf/tst-auditmod3b.c: Likewise.
8097         * elf/tst-auditmod4b.c: Likewise.
8098         * elf/tst-auditmod5b.c: Likewise.
8099         * elf/tst-auditmod6b.c: Likewise.
8100         * elf/tst-auditmod6c.c: Likewise.
8101         * elf/tst-auditmod7b.c: Likewise.
8102
8103         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
8104         and x32_gnu_pltexit.
8105
8106         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
8107         __ELF_NATIVE_CLASS.
8108         (La_x32_regs): New macro.
8109         (La_x32_retval): Likewise.
8110         (la_x32_gnu_pltenter): New function prototype.
8111         (la_x32_gnu_pltexit): Likewise.
8112
8113 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
8114
8115         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
8116         exponent.
8117
8118         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8119
8120         * configure.in (libc_cv_cc_nofma): Check for option to disable
8121         generation of FMA instructions.
8122         * configure: Regenerate.
8123         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
8124         * sysdeps/ieee754/dbl-64/Makefile: New file.
8125         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
8126         Remove brandred-fma4.
8127         (CFLAGS-brandred-fma4.c): Remove.
8128         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
8129         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
8130         define.
8131         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
8132         define.
8133
8134 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
8135
8136         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
8137         LLONG_MAX != LONG_MAX.
8138         (_itoa_word): Use _ITOA_WORD_TYPE on value.
8139         (_fitoa_word): Likewise.
8140         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
8141         LLONG_MAX != LONG_MAX.
8142         * stdio-common/_itowa.h: Include <_itoa.h>.
8143         (_itowa_word): Use _ITOA_WORD_TYPE on value.
8144         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
8145         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
8146         only if not defined.
8147         (_ITOA_WORD_TYPE): Likewise.
8148         (_itoa_word): Use _ITOA_WORD_TYPE on value.
8149         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
8150
8151 2012-03-21  David S. Miller  <davem@davemloft.net>
8152
8153         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8154
8155 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
8156
8157         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
8158         of x86_64 when setting libc_cv_slibdir, libdir and
8159         libc_cv_localedir.
8160         * sysdeps/unix/sysv/linux/configure: Regenerated.
8161
8162 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
8163
8164         * manual/lang.texi (Old Varargs): Remove section.
8165         (How Variadic): Update menu.
8166         (va_start): Do not mention varargs.h.
8167
8168 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
8169             Joseph Myers  <joseph@codesourcery.com>
8170
8171         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
8172         link test.
8173         * configure: Regenerated.
8174
8175 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
8176
8177         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
8178         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
8179         conformtest.pl
8180
8181 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
8182
8183         * NOTES: Remove.
8184         * Makefile (files-for-dist): Remove NOTES.
8185         (NOTES): Remove rule.
8186         * README: Don't refer to NOTES.
8187         * manual/creature.texi: Don't include macros.texi.
8188         * manual/intro.texi (creature.texi): Remove comment referring to
8189         NOTES.
8190
8191         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
8192         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
8193         * configure: Regenerated.
8194         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
8195         LIBC_TRY_CC_OPTION.
8196         (libc_cv_as_i686): Likewise.
8197         (libc_cv_cc_avx): Likewise.
8198         (libc_cv_cc_sse2avx): Likewise.
8199         (libc_cv_cc_fma4): Likewise.
8200         (libc_cv_cc_novzeroupper): Likewise.
8201         * sysdeps/i386/configure: Regenerated.
8202
8203         [BZ #13883]
8204         * sysdeps/i386/fpu/s_cexp.S: Remove.
8205         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
8206         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
8207         * math/libm-test.inc (cexp_test): Add more tests.
8208         * sysdeps/i386/fpu/libm-test-ulps: Update.
8209         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8210
8211 2012-03-21  Allan McRae  <allan@archlinux.org>
8212
8213         * timezone/Makefile: Do not install iso3166.tab and zone.tab
8214
8215 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
8216
8217         [BZ #13871]
8218         * math/w_exp2.c: Do not include <float.h>.
8219         (o_threshold, u_threshold): Remove.
8220         (__exp2): Calculate result before checking finiteness and calling
8221         __kernel_standard.
8222         * math/w_exp2f.c: Likewise.
8223         * math/w_exp2l.c: Likewise.
8224         * math/libm-test.inc (exp2_test): Require overflow exception for
8225         1e6 input.
8226
8227         [BZ #3866]
8228         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
8229         range of signed 64-bit integers before using fistpll.  Remove
8230         checks for whether integers fit in mantissa bits.
8231         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
8232         the range of signed 32-bit integers before using fistpl.  Remove
8233         checks for whether integers fit in mantissa bits.
8234         * sysdeps/i386/fpu/e_powl.S (p64): New object.
8235         (__ieee754_powl): Test for y outside the range of signed 64-bit
8236         integers before using fistpll.  Reduce 64-bit values to 63-bit
8237         ones as needed.
8238         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
8239         divide-by-zero is raised for zero to large negative powers.
8240         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
8241         (__ieee754_powl): Test for y outside the range of signed 64-bit
8242         integers before using fistpll.  Reduce 64-bit values to 63-bit
8243         ones as needed.
8244         * math/libm-test.inc (pow_test): Add more tests.
8245
8246 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
8247
8248         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
8249         <stdio-common/_itoa.h>.
8250         * debug/segfault.c: Likewise.
8251         * elf/dl-cache.c: Likewise.
8252         * elf/dl-minimal.c: Likewise.
8253         * elf/dl-misc.c: Likewise.
8254         * elf/dl-sysdep.c: Likewise.
8255         * elf/dl-version.c: Likewise.
8256         * elf/rtld.c: Likewise.
8257         * hurd/hurdsock.c: Likewise.
8258         * hurd/lookup-retry.c: Likewise.
8259         * malloc/malloc.c: Likewise.
8260         * malloc/mtrace.c: Likewise.
8261         * nscd/nscd_getgr_r.c: Likewise.
8262         * nscd/nscd_getpw_r.c: Likewise.
8263         * nscd/nscd_getserv_r.c: Likewise.
8264         * posix/getopt_init.c: Likewise.
8265         * posix/wordexp.c: Likewise.
8266         * stdio-common/_itoa.c: Likewise.
8267         * stdio-common/printf_fphex.c: Likewise.
8268         * stdio-common/vfprintf.c: Likewise.
8269         * string/_strerror.c: Likewise.
8270         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
8271         * sysdeps/i386/i686/hp-timing.h: Likewise.
8272         * sysdeps/mach/_strerror.c: Likewise.
8273         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
8274         * sysdeps/mach/hurd/sethostid.c: Likewise.
8275         * sysdeps/mach/hurd/xmknodat.c: Likewise.
8276         * sysdeps/mach/xpg-strerror.c: Likewise.
8277         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
8278         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
8279         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
8280         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
8281         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
8282         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
8283         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
8284         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
8285         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
8286         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
8287         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
8288         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
8289         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
8290         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
8291         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
8292         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
8293         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
8294         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
8295         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
8296         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
8297         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
8298
8299         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
8300
8301         * stdio-common/_itoa.h: Moved to ...
8302         * sysdeps/generic/_itoa.h: Here.
8303
8304         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
8305
8306         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
8307         instead of "_itoa.h" and "_itowa.h".
8308         * stdio-common/vfprintf.: Likewise.
8309
8310 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
8311
8312         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
8313         <bits/wordsize.h>.
8314         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
8315         (__signbit): Likwise.
8316         (llrintf): Likwise.
8317         (llrint): Likwise.
8318
8319 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
8320
8321         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
8322         __WORDSIZE != 64.
8323
8324 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
8325
8326         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
8327         OVERFLOW_EXCEPTION_OK.
8328         * math/libm-test.inc ("Philosophy"): Update comment about
8329         exception testing.
8330         (OVERFLOW_EXCEPTION): Define.
8331         (OVERFLOW_EXCEPTION_OK): Likewise.
8332         (INVALID_EXCEPTION_OK): Renumber.
8333         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
8334         (IGNORE_ZERO_INF_SIGN): Likewise.
8335         (test_exceptions): Handle FE_OVERFLOW.
8336         (exp10_test): Expect overflow exceptions.
8337         (exp2_test): Likewise.
8338         (expm1_test): Likewise.
8339         (nextafter_test): Likewise.
8340         (pow_test): Likewise.
8341         (scalbn_test): Likewise.
8342         (scalbln_test): Likewise.
8343
8344 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
8345
8346         * sysdeps/x86_64/bits/atomic.h
8347         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
8348         64bit integer.
8349         (atomic_exchange_acq): Likewise.
8350         (__arch_exchange_and_add_body): Likewise.
8351         (__arch_add_body): Likewise.
8352         (atomic_add_negative): Likewise.
8353         (atomic_add_zero): Likewise.
8354
8355 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
8356
8357         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
8358         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
8359
8360 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
8361
8362         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
8363         Check __x86_64__ instead of __WORDSIZE.
8364
8365 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
8366
8367         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
8368
8369 2012-03-19  David S. Miller  <davem@davemloft.net>
8370
8371         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8372
8373         * sysdeps/sparc/fpu/fenv_private.h: New file.
8374         * sysdeps/sparc/fpu/math_private.h: Use it.
8375         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
8376         Remove.
8377         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
8378         (libc_feholdexcept_setroundl): Remove.
8379         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
8380         Remove.
8381         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
8382         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
8383
8384 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
8385
8386         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
8387         int64_t instead of long int.
8388         (INSERT_WORDS64): Likwise.
8389
8390 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
8391
8392         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
8393         _Unwind_GetCFA return to _Unwind_Ptr first.
8394
8395 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
8396
8397         [BZ #13629]
8398         * math/s_clog.c: Include <float.h>.
8399         (__clog): Scale large or subnormal inputs.
8400         * math/s_clogf.c: Likewise.
8401         * math/s_clogl.c: Likewise.
8402         * math/s_clog10.c: Include <float.h>.
8403         (M_LOG10_2): Define.
8404         (__clog10): Scale large or subnormal inputs.
8405         * math/s_clog10f.c: Likewise.
8406         * math/s_clog10l.c: Likewise.
8407         * math/libm-test.inc (clog_test): Add more tests.
8408         (clog10_test): Likewise.
8409         * sysdeps/i386/fpu/libm-test-ulps: Update.
8410         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8411
8412         [BZ #11451]
8413         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
8414         x and y.
8415         * math/libm-test.inc (atan2_test): Add another test.
8416
8417         * Makerules (common-objdir-compile): Remove.
8418         * sysdeps/unix/Makefile (config-generated): Do not add
8419         $(unix-generated) to variable.
8420         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
8421         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
8422         Remove rule.
8423         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
8424         Likewise.
8425         [generic bits/local_lim.h] (before-compile): Do not append to
8426         variable.
8427         [generic bits/local_lim.h] (common-generated): Likewise.
8428         [generic sys/param.h] (before-compile): Do not append to variable.
8429         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
8430         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
8431         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
8432         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
8433         include.
8434         [generic sys/param.h] (sys/param.h-includes): Remove variable.
8435         [generic sys/param.h] (sys/param.h-includes): Remove rule.
8436         [generic sys/param.h] ($(addprefix
8437         $(common-objpfx),$(sys/param.h-includes))): Likewise.
8438         [generic sys/param.h] (common-generated): Do not append to
8439         variable.
8440         [generic sys/param.h] (sysdep_headers): Likewise.
8441         [generic bits/errno.h] (before-compile): Do not append to
8442         variable.
8443         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
8444         rule.
8445         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
8446         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
8447         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
8448         [generic bits/errno.h] (common-generated): Do not append to
8449         variable.
8450         [generic bits/ioctls.h] (before-compile): Do not append to
8451         variable.
8452         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
8453         rule.
8454         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
8455         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
8456         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
8457         rule.
8458         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
8459         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
8460         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
8461         [generic bits/ioctls.h] (common-generated): Do not append to
8462         variable.
8463         [generic sys/syscall.h] (syscall.h): Remove variable.
8464         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
8465         rule.
8466         [generic sys/syscall.h] (before-compile): Do not append to
8467         variable.
8468         [generic sys/syscall.h] (common-generated): Likewise.
8469         * sysdeps/unix/errnos-tmpl.c: Remove file.
8470         * sysdeps/unix/errnos.awk: Likewise.
8471         * sysdeps/unix/ioctls-tmpl.c: Likewise.
8472         * sysdeps/unix/ioctls.awk: Likewise.
8473         * sysdeps/unix/mk-local_lim.c: Likewise.
8474         * sysdeps/unix/snarf-ioctls: Likewise.
8475
8476 2012-03-19  Richard Henderson  <rth@twiddle.net>
8477
8478         * sysdeps/i386/fpu/fenv_private.h: New file.
8479         * sysdeps/i386/fpu/math_private.h: Use it.
8480         (math_opt_barrier, math_force_eval): Remove.
8481         (libc_feholdexcept_setround_53bit): Remove.
8482         (libc_feupdateenv_53bit): Remove.
8483         * sysdeps/x86_64/fpu/math_private.h: Likewise.
8484         (math_opt_barrier, math_force_eval): Remove.
8485         (libc_feholdexcept): Remove.
8486         (libc_feholdexcept_setround): Remove.
8487         (libc_fetestexcept, libc_fesetenv): Remove.
8488         (libc_feupdateenv_test): Remove.
8489         (libc_feupdateenv, libc_feholdsetround): Remove.
8490         (libc_feresetround): Remove.
8491
8492         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
8493         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
8494
8495         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
8496         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
8497         (libc_feupdateenv_testl): New.
8498         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
8499         (libc_feupdateenv_testf): New.
8500         (libc_feupdateenv): Use libc_feupdateenv_test.
8501         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
8502         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
8503
8504         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
8505         (libc_feholdsetroundf, libc_feholdsetroundl): New.
8506         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
8507         (libc_feresetround_noex): New.
8508         (libc_feresetround_noexf): New.
8509         (libc_feresetround_noexl): New.
8510         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
8511         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
8512         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
8513         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
8514         SET_RESTORE_ROUND.
8515         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
8516         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
8517         (__cos): Likewise.
8518         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
8519         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
8520         SET_RESTORE_ROUND_NOEX.
8521         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
8522         SET_RESTORE_ROUND_NOEXF.
8523         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
8524         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
8525         (libc_feholdsetroundf): New.
8526         (libc_feresetround, libc_feresetroundf): New.
8527
8528         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
8529         (libc_feholdexcept_setround_53bit): Convert from macro to function.
8530         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
8531
8532         * sysdeps/generic/math_private.h: Include <fenv.h>.
8533         (default_libc_feholdexcept): New.
8534         (default_libc_feholdexcept_setround): New.
8535         (default_libc_fesetenv, default_libc_feupdateenv): New.
8536         (libc_feholdexcept): Only define if undefined.
8537         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
8538         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
8539         (libc_feholdexcept_setroundl): Likewise.
8540         (libc_feholdexcept_setround_53bit): Likewise.
8541         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
8542         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
8543         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
8544         (libc_feupdateenv_53bit): Likewise.
8545         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
8546         (libc_feholdexcept): Convert from macro to inline function.
8547         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
8548         (libc_fesetenv, libc_feupdateenv): Likewise.
8549
8550         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
8551         not previously defined.
8552         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
8553         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
8554         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
8555         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
8556         * sysdeps/ieee754/flt-32/math_private.h: New file.
8557         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
8558         math_private.h below SET_FLOAT_WORD.
8559         (__isnan, __isinf_ns, __finite): Remove.
8560         (__isnanf, __isinf_nsf, __finitef): Remove.
8561
8562 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
8563
8564         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8565
8566 2012-03-17  David S. Miller  <davem@davemloft.net>
8567
8568         [BZ #6471]
8569         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
8570         for 2.16.
8571
8572 2012-03-16  David S. Miller  <davem@davemloft.net>
8573
8574         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
8575         warnings.
8576
8577         [BZ #6471]
8578         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
8579         properly.
8580         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
8581         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
8582         sysdep_routines when subdir is sysvipc.
8583         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
8584         __getshmlba helper.
8585
8586         * sysdeps/sparc/fpu/libm-test/ulps: Update.
8587
8588 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
8589
8590         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
8591         [__LP64__].
8592
8593 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
8594
8595         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
8596         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
8597         (__lround): Renamed to ...
8598         (__llround): This.  Replace long int with long long int.
8599         Define lround functions as aliases of llround functions.
8600         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
8601
8602 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
8603
8604         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
8605         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
8606         adresses to uintptr_t.  Replace "long int" and "unsigned long
8607         int" with "greg_t" on va_arg.
8608
8609 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
8610
8611         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
8612         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
8613
8614         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
8615         Move e_machine check before EI_CLASS check.  Handle x32
8616         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
8617         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
8618         SKIP_EM_IA_64 and include
8619         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
8620
8621         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
8622         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
8623         (add_system_dir): New macro.
8624
8625         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
8626         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
8627
8628 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
8629
8630         [BZ #2551]
8631         [BZ #2552]
8632         [BZ #2553]
8633         [BZ #2554]
8634         [BZ #2562]
8635         [BZ #2563]
8636         [BZ #2565]
8637         [BZ #2566]
8638         [BZ #2576]
8639         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
8640         (y0): Likewise.
8641         * math/w_j0f.c (j0f): Likewise.
8642         (y0f): Likewise.
8643         * math/w_j0l.c (__j0l): Likewise.
8644         (__y0l): Likewise.
8645         * math/w_j1.c (j1): Likewise.
8646         (y1): Likewise.
8647         * math/w_j1f.c (j1f): Likewise.
8648         (y1f): Likewise.
8649         * math/w_j1l.c (__j1l): Likewise.
8650         (__y1l): Likewise.
8651         * math/w_jn.c (jn): Likewise.
8652         (yn): Likewise.
8653         * math/w_jnf.c (jnf): Likewise.
8654         (ynf): Likewise.
8655         * math/w_jnl.c (__jnl): Likewise.
8656         (__ynl): Likewise.
8657         * math/libm-test.inc (j0_test): Add more tests.
8658         (j1_test): Likewise.
8659         (jn_test): Likewise.  Add trailing semicolon to existing test.
8660         (y0_test): Likewise.
8661         (y1_test): Likewise.
8662         * sysdeps/i386/fpu/libm-test-ulps: Update.
8663         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8664
8665         [BZ #13851]
8666         [BZ #13854]
8667         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
8668         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
8669         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
8670         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
8671         (__tanl): Set errno for infinite argument.
8672         * sysdeps/i386/fpu/mptan.c: Remove.
8673         * sysdeps/i386/fpu/s_tan.S: Likewise.
8674         * sysdeps/i386/fpu/s_tanl.S: Likewise.
8675         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
8676         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
8677         * math/libm-test.inc (tan_test): Add more tests and enable more
8678         tests for double and long double.
8679         * sysdeps/i386/fpu/libm-test-ulps: Update.
8680         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8681
8682 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8683
8684         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
8685         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
8686
8687 2012-03-16  Roland McGrath  <roland@hack.frob.com>
8688
8689         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
8690         * configure.in: Use it for both main tree and add-ons.
8691         * configure: Regenerated.
8692
8693 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
8694
8695         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
8696
8697 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
8698
8699         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
8700         in comment.
8701
8702         [BZ #13851]
8703         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
8704         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
8705         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
8706         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
8707         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
8708         infinite argument.
8709         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
8710         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
8711         != 0 for prec == 2.
8712         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
8713         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
8714         * sysdeps/i386/fpu/s_cosl.S: Likewise.
8715         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
8716         * sysdeps/i386/fpu/s_sinl.S: Likewise.
8717         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
8718         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
8719         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
8720         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
8721         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
8722         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
8723         * math/libm-test.inc (cos_test): Add more tests and enable more
8724         tests for long double.
8725         (sin_test): Likewise.
8726         (sincos_test): Likewise.
8727         * sysdeps/i386/fpu/libm-test-ulps: Update.
8728         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8729
8730 2012-03-16  David S. Miller  <davem@davemloft.net>
8731
8732         * sysdeps/sparc/fpu/math_private.h: New file.
8733
8734 2012-03-15  David S. Miller  <davem@davemloft.net>
8735
8736         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
8737         file.
8738         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
8739         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
8740         file.
8741         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
8742         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
8743         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
8744         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
8745         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
8746         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
8747         sysdep routines.
8748         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
8749
8750         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
8751         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
8752
8753         * sysdeps/sparc/sparc-ifunc.h: New file.
8754         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
8755         sparc-ifunc.h
8756         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
8757         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
8758         Likewise.
8759         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
8760         Likewise.
8761         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
8762         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
8763         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
8764         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
8765         Likewise.
8766         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
8767         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
8768         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
8769         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
8770         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
8771         Likewise.
8772         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
8773         Likewise.
8774         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
8775         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
8776         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
8777         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
8778         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
8779         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
8780         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
8781         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
8782         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
8783         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
8784         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
8785         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
8786         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
8787         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
8788         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
8789         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
8790         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
8791         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
8792         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
8793         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
8794         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
8795         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
8796         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
8797         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
8798
8799 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
8800
8801         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
8802         scaling.
8803         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8804
8805 2012-03-15  Andreas Jaeger  <aj@suse.de>
8806
8807         [BZ #13852]
8808         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
8809         ieee754/flt-32 implementation for sin, cos and sincos.
8810         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
8811         * sysdeps/i386/fpu/s_cosf.S: Likewise.
8812         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
8813         * sysdeps/i386/fpu/s_sinf.S: Likewise.
8814         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
8815         ieee754/flt-32 implementation for tan.
8816
8817         * math/libm-test.inc (cos_test): Enable some large input tests for
8818         float as well
8819         (sin_test): Likewise.
8820         (sincos_test): Likewise.
8821         (tan_test): Add tests for large input.
8822
8823         * sysdeps/i386/fpu/libm-test-ulps: Update.
8824
8825 2012-03-15  Andreas Jaeger  <aj@suse.de>
8826
8827         [BZ #13658]
8828         * math/libm-test.inc (cos_test): Add more test cases.
8829         (sin_test): Likewise.
8830         (sincos_test): Likewise.
8831
8832 2012-03-15  Andreas Jaeger  <aj@suse.de>
8833
8834         [BZ #13837]
8835         * math/libm-test.inc (cos_test): Add a test case for large input
8836         value.
8837         (sin_test): Likewise.
8838         (sincos_test): Likewise.
8839
8840 2012-03-15  Andreas Jaeger  <aj@suse.de>,
8841         Joseph Myers  <joseph@codesourcery.com>
8842
8843         [BZ #13658]
8844         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
8845         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
8846         * sysdeps/i386/fpu/branred.c: Likewise.
8847         * sysdeps/i386/fpu/dosincos.c: Likewise.
8848         * sysdeps/i386/fpu/mpa.c: Likewise.
8849         * sysdeps/i386/fpu/s_cos.S: Likewise.
8850         * sysdeps/i386/fpu/s_sin.S: Likewise.
8851         * sysdeps/i386/fpu/s_sincos.S: Likewise.
8852         * sysdeps/i386/fpu/sincos32.c: Likewise.
8853
8854         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
8855         Define.
8856         (libc_feupdateenv_53bit): Define.
8857         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
8858         Define.
8859         (libc_feupdateenv_53bit): Define.
8860
8861         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
8862         53 bit (without extend i386 double precision).
8863
8864         * math/libm-test.inc (sincos_test): Add tests for large input.
8865         (sin): Likewise.
8866         (cos): Likewise.
8867
8868         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
8869
8870 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
8871
8872         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8873
8874 2012-03-15  David S. Miller  <davem@davemloft.net>
8875
8876         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
8877         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
8878         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
8879         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
8880         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
8881         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
8882         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
8883         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
8884         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
8885         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
8886         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
8887         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
8888         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
8889         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
8890         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
8891         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
8892         file.
8893         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
8894         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
8895         file.
8896         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
8897         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
8898         file.
8899         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
8900         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
8901         file.
8902         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
8903         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
8904         fmin/fmax sysdep routines.
8905         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
8906
8907 2012-03-14  David S. Miller  <davem@davemloft.net>
8908
8909         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
8910         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
8911         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
8912         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
8913         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
8914         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
8915         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
8916         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
8917         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
8918         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
8919         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
8920         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
8921         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
8922         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
8923         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
8924         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
8925         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
8926         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
8927         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
8928         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
8929         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
8930         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
8931         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
8932         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
8933         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
8934         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
8935         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
8936         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
8937         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
8938         routines.
8939         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
8940         file.
8941         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
8942         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
8943         file.
8944         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
8945         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
8946         file.
8947         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
8948         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
8949         file.
8950         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
8951         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
8952         file.
8953         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
8954         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
8955         file.
8956         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
8957         file.
8958         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
8959         file.
8960         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
8961         file.
8962         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
8963         New file.
8964         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
8965         file.
8966         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
8967         file.
8968         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
8969         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
8970         file.
8971         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
8972         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
8973         file.
8974         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
8975         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
8976         file.
8977         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
8978         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
8979         VIS3 routines.
8980
8981         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
8982         New file.
8983
8984         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8985
8986         * sysdeps/sparc/configure.in: New file.
8987         * sysdeps/sparc/configure: Generate.
8988         * configure.in (libc_cv_sparc_as_vis3): Substitute.
8989         * configure: Regenerate.
8990         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
8991         * config.make.in (have-as-vis3): New.
8992         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
8993         available use -Av9d instead of -Av9a.
8994         * sysdeps/sparc/sparc64/Makefile: Likewise.
8995         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
8996         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
8997         New file.
8998         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
8999         file.
9000         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
9001         New file.
9002         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
9003         file.
9004         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
9005         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
9006         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
9007         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
9008         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
9009
9010         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
9011         fzeros/fnegs to load 0x80000000 into a float register instead of
9012         using the stack.
9013         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
9014
9015 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
9016
9017         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
9018         bits/syscall.h.
9019         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
9020         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
9021         ($(inst_includedir)/bits/syscall.h): Remove rule.
9022         ($(objpfx)bits/syscall.d): Include instead of
9023         $(objpfx)syscall-list.d.
9024         (generated): Change syscall-list.h and syscall-list.d to
9025         bits/syscall.h and bits/syscall.d.
9026
9027 2012-03-14  Roland McGrath  <roland@hack.frob.com>
9028
9029         [BZ #13846]
9030         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
9031
9032 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
9033
9034         [BZ #13841]
9035         * math/s_csqrt.c: Include <float.h>.
9036         (__csqrt): Scale large or subnormal inputs.
9037         * math/s_csqrtf.c: Likewise.
9038         * math/s_csqrtl.c: Likewise.
9039         * math/libm-test.inc (csqrt_test): Add more tests.
9040         * sysdeps/i386/fpu/libm-test-ulps: Update.
9041         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9042
9043         [BZ #13840]
9044         * math/libm-test.inc (hypot_test): Add more tests.
9045
9046 2012-03-13  David S. Miller  <davem@davemloft.net>
9047
9048         [BZ #13840]
9049         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
9050         double-precision for the calculation instead of scaling.
9051
9052 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
9053
9054         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
9055         manipulate bits before adding and subtracting TWO52[sx].
9056         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
9057         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
9058         Likewise.
9059         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
9060
9061 2012-03-13  David S. Miller  <davem@davemloft.net>
9062
9063         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
9064         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
9065         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
9066         rtld-global-offsets.h
9067         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
9068
9069         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
9070         large parameters.
9071
9072         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
9073
9074         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
9075         'err' in the ifdef scope in which it is actually used.
9076
9077         * nss/nss_db/db-init.c: Include string.h
9078
9079 2012-03-12  David S. Miller  <davem@davemloft.net>
9080
9081         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
9082         masking out of the most significant byte of random value used.
9083         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
9084         Fix coding style in previous change.
9085
9086         * sysdeps/unix/sysv/linux/kernel-features.h
9087         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
9088         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
9089         expression.
9090         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
9091         later.
9092
9093 2012-03-11  David S. Miller  <davem@davemloft.net>
9094
9095         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
9096         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
9097         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
9098         for 'resultvar' otherwise things get truncated on 64-bit.
9099
9100         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
9101         Fix masking out of the most significant byte of random value used.
9102
9103         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9104
9105 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
9106
9107         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9108
9109 2012-03-09  David S. Miller  <davem@davemloft.net>
9110
9111         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
9112         variables with appropriate CPP guards.
9113         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
9114         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
9115         on resulting framesize and the management of the outregs buffer for pltexit.
9116         Preserve floating point return values across _dl_call_pltexit call.
9117         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
9118         framesize and the management of the outregs buffer for pltexit.
9119         Preserve floating point return values across _dl_call_pltexit
9120         call.
9121         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
9122         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
9123         (print_exit): Fix format string for return register value.
9124
9125 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
9126
9127         * sunrpc/Makefile (others): Add rpcgen.
9128         ($(objpfx)rpcgen): Remove special build rule and dependency on
9129         libc.
9130         * sunrpc/rpcgen.c: New file.
9131
9132 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
9133
9134         [BZ #13673]
9135         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
9136         * stdio-common/bug-vfprintf-nargs.c: Likewise.
9137         * sysdeps/i386/crti.S: Likewise.
9138         * sysdeps/i386/crtn.S: Likewise.
9139         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
9140         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
9141         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
9142         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
9143         * sysdeps/sh/crti.S: Likewise.
9144         * sysdeps/sh/crtn.S: Likewise.
9145         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
9146
9147         [BZ #13673]
9148         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
9149         with URL.
9150         * locale/programs/locfile-kw.gperf: Likewise.
9151         * locale/programs/charmap-kw.h: Regenerated.
9152         * locale/programs/locfile-kw.h: Likewise.
9153
9154         [BZ #13673]
9155         * intl/plural.y: Replace FSF snail mail address with URL.
9156         * intl/plural.c: Regenerated.
9157
9158 2012-03-09  Richard Henderson  <rth@twiddle.net>
9159
9160         * include/math_private.h: Remove file.
9161         * math/math_private.h: Move file ...
9162         * sysdeps/generic/math_private.h: ... here.
9163
9164         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
9165         * sysdeps/powerpc/fpu/math_private.h: Likewise.
9166         * sysdeps/x86_64/fpu/math_private.h: Likewise.
9167
9168         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
9169         and <math_private.h>.
9170         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
9171         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
9172         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
9173         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
9174         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
9175         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
9176         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
9177         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
9178         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
9179         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
9180         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
9181         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
9182         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
9183         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
9184         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
9185         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
9186         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
9187         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
9188         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
9189         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
9190         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
9191         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
9192         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
9193         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
9194         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
9195         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
9196         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
9197         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
9198         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
9199         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
9200         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
9201         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
9202         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
9203         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
9204         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
9205         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
9206         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
9207         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
9208         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
9209         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
9210         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
9211         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
9212         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
9213         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
9214         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
9215         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
9216         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
9217         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
9218         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
9219         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
9220         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
9221         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
9222         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
9223         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
9224         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
9225         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
9226         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
9227         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
9228         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
9229         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
9230         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
9231         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
9232         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
9233         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
9234         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
9235         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
9236         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
9237         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
9238         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
9239         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
9240         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
9241         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
9242         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
9243         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
9244         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
9245         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
9246         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
9247         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
9248         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
9249         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
9250         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
9251         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
9252         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
9253         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
9254         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
9255         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
9256         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
9257         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
9258         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
9259         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
9260         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
9261         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
9262         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
9263         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
9264         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
9265         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
9266         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
9267         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
9268         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
9269         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
9270         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
9271         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
9272         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
9273         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
9274         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
9275         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
9276         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
9277         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
9278         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
9279         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
9280         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
9281         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
9282         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
9283         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
9284         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
9285         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
9286         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
9287         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
9288         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
9289         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
9290         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
9291         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
9292         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
9293         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
9294         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
9295         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
9296         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
9297         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
9298         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
9299         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
9300         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
9301         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
9302         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
9303         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
9304         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
9305         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
9306         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
9307         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
9308         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
9309         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
9310         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
9311         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
9312         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
9313         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
9314         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
9315         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
9316         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
9317         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
9318         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
9319         * sysdeps/ieee754/k_standard.c: Likewise.
9320         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
9321         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
9322         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
9323         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
9324         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
9325         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
9326         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
9327         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
9328         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
9329         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
9330         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
9331         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
9332         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
9333         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
9334         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
9335         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
9336         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
9337         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
9338         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
9339         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
9340         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
9341         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
9342         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
9343         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
9344         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
9345         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
9346         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
9347         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
9348         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
9349         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
9350         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
9351         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
9352         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
9353         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
9354         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
9355         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
9356         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
9357         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
9358         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
9359         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
9360         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
9361         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
9362         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
9363         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
9364         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
9365         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
9366         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
9367         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
9368         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
9369         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
9370         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
9371         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
9372         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
9373         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
9374         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
9375         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
9376         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
9377         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
9378         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
9379         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
9380         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
9381         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
9382         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
9383         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
9384         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
9385         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
9386         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
9387         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
9388         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
9389         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
9390         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
9391         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
9392         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
9393         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
9394         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
9395         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
9396         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
9397         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
9398         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
9399         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
9400         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
9401         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
9402         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
9403         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
9404         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
9405         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
9406         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
9407         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
9408         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
9409         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
9410         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
9411         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
9412         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
9413         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
9414         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
9415         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
9416         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
9417         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
9418         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
9419         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
9420         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
9421         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
9422         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
9423         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
9424         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
9425         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
9426         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
9427         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
9428         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
9429         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
9430         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
9431         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
9432         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
9433         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
9434         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
9435         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
9436         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
9437         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
9438         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
9439         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
9440         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
9441         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
9442         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
9443         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
9444         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
9445         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
9446         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
9447         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
9448         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
9449         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
9450         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
9451         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
9452         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
9453         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
9454         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
9455         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
9456         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
9457         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
9458         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
9459         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
9460         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
9461         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
9462         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
9463         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
9464         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
9465         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
9466         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
9467         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
9468         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
9469         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
9470         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
9471         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
9472         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
9473         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
9474         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
9475         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
9476         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
9477         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
9478         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
9479         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
9480         * sysdeps/ieee754/s_lib_version.c: Likewise.
9481         * sysdeps/ieee754/s_matherr.c: Likewise.
9482         * sysdeps/ieee754/s_signgam.c: Likewise.
9483         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
9484         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
9485         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
9486         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
9487         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
9488         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
9489         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
9490         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
9491         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
9492         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
9493         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
9494         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
9495         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
9496         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
9497         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
9498         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
9499         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
9500         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
9501         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
9502         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
9503         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
9504
9505 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
9506
9507         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
9508         * sunrpc/rpc_main.c: Likewise.
9509         * sunrpc/rpc_svcout.c: Likewise.
9510
9511 2012-03-09  David S. Miller  <davem@davemloft.net>
9512
9513         * include/math_private.h: New file.
9514
9515 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
9516
9517         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
9518         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
9519         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
9520         from <bits/socket_type.h>.
9521         (enum __socket_type): Don't define here.
9522         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
9523         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
9524         bits/socket_type.h.
9525
9526         [BZ #13566]
9527         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
9528         checking __USE_GNU.
9529
9530         * Makerules ($(inst_includedir)/%.h): New rule.
9531         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
9532         (install-others): Remove variable setting.
9533         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
9534
9535 2012-03-08  Richard Henderson  <rth@twiddle.net>
9536
9537         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
9538         from macro to inline function; merge with the
9539         !__LIBC_INTERNAL_MATH_INLINES version.
9540         (__ieee754_sqrtf): Likewise.
9541
9542         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
9543         to inline function.
9544         (__rintf, __floor, __floorf): Likewise.
9545
9546         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
9547         macro to inline function.
9548         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
9549
9550         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
9551         not <math/math_private.h>.
9552
9553 2012-03-08  David S. Miller  <davem@davemloft.net>
9554
9555         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
9556         copyright year.
9557         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
9558
9559 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
9560
9561         * resolv/gai_misc.c (handle_requests): Fix struct timespec
9562         normalization.
9563         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
9564         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
9565
9566 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
9567
9568         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
9569         be defined individually, they must be defined as a block.  Define
9570         S for printing a string instead of hidint the different by using a
9571         macro for adding the 'l'.
9572         * stdio-common/tst-fphex-wide.c: Adjust.
9573
9574 2012-03-07  Marek Polacek  <polacek@redhat.com>
9575
9576         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
9577
9578 2012-03-08  Marek Polacek  <polacek@redhat.com>
9579
9580         [BZ #13806]
9581         * stdio-common/Makefile (tests): Add tst-fphex-wide.
9582         * stdio-common/tst-fphex.c: Define a few macros to make the
9583         test reusable.  Use them.
9584         * stdio-common/tst-fphex-wide.c: New file.
9585
9586 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
9587
9588         [BZ #6911]
9589         * manual/macros.texi (gnusystems): New macro.
9590         (nongnusystems): Likewise.
9591         (gnulinuxhurdsystems): Likewise.
9592         (gnuhurdsystems): Likewise..
9593         (gnulinuxsystems): Likewise.
9594         * manual/charset.texi: Use new macros or @theglibc{} to refer to
9595         variants of the GNU system, not "GNU system".
9596         * manual/conf.texi: Likewise.
9597         * manual/errno.texi: Likewise.  Update example of errno macro
9598         expansion.
9599         * manual/filesys.texi: Likewise.
9600         (getumask): Document as specific to GNU/Hurd.
9601         * manual/install.texi: Likewise.  Reword some references to
9602         GNU/Linux.
9603         * manual/intro.texi: Likewise.
9604         * manual/io.texi: Likewise.
9605         (File Name Portability): Detail which constraints are inapplicable
9606         to all GNU systems and which are only inapplicable to GNU/Hurd.
9607         * manual/job.texi: Likewise.
9608         * manual/llio.texi: Likewise.
9609         (O_NOCTTY): Document as present on GNU/Linux.
9610         * manual/maint.texi: Likewise.
9611         * manual/memory.texi: Likewise.
9612         * manual/pattern.texi: Likewise.
9613         * manual/pipe.texi: Likewise.
9614         * manual/process.texi: Likewise.
9615         * manual/resource.texi: Likewise.
9616         (RUSAGE_CHILDREN): Remove statement about specifying a particular
9617         child on GNU/Hurd.
9618         * manual/setjmp.texi: Likewise.
9619         * manual/signal.texi: Likewise.
9620         * manual/startup.texi: Likewise.
9621         * manual/stdio.texi: Likewise.
9622         * manual/terminal.texi: Likewise.
9623         (ONLCR): Document as POSIX.
9624         (OXTABS): Document availability on GNU/Linux as XTABS.
9625         (ONOEOT): Document availability separately from other bits.
9626         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
9627         * manual/time.texi: Likewise.
9628         * manual/users.texi: Likewise.
9629         * INSTALL: Regenerated.
9630         * sysdeps/gnu/errlist.c: Regenerated.
9631
9632         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
9633         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
9634         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
9635         puts.
9636         * configure: Regenerated.
9637
9638 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
9639
9640         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
9641         default includes instead of AC_HEADER_CHECK.
9642         * sysdeps/i386/configure: Regenerated.
9643
9644         [BZ #10716]
9645         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
9646         * math/s_cacoshf.c (__cacoshf): Likewise.
9647         * math/s_cacoshl.c (__cacoshl): Likewise.
9648         * math/s_casinh.c (__casinh): Set signs of result from argument.
9649         * math/s_casinhf.c (__casinhf): Likewise.
9650         * math/s_casinhl.c (__casinhl): Likewise.
9651         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
9652         (casinh_test): Add more tests.
9653         * sysdeps/i386/fpu/libm-test-ulps: Update.
9654         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9655
9656 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
9657
9658         * po/zh_TW.po: Update from translation team.
9659
9660         * login/Makefile (distribute): Remove variable.
9661         * catgets/Makefile: Likewise.
9662         * mach/Makefile: Likewise.
9663         * malloc/Makefile: Likewise.
9664         * misc/Makefile: Likewise.
9665         * iconv/Makefile: Likewise.
9666         * nscd/Makefile: Likewise.
9667         * hurd/Makefile: Likewise.
9668         * manual/Makefile: Likewise.
9669         * locale/Makefile: Likewise.
9670         * intl/Makefile: Likewise.
9671         * conform/Makefile: Likewise.
9672         * nss/Makefile: Likewise.
9673         * time/Makefile: Likewise.
9674         * soft-fp/Makefile: Likewise.
9675         * dirent/Makefile: Likewise.
9676         * gmon/Makefile: Likewise.
9677         * po/Makefile: Likewise.
9678         * rt/Makefile: Likewise.
9679         * socket/Makefile: Likewise.
9680         * math/Makefile: Likewise.
9681         * signal/Makefile: Likewise.
9682         * debug/Makefile: Likewise.
9683         * elf/Makefile: Likewise.
9684         * timezone/Makefile: Likewise.
9685         * stdlib/Makefile: Likewise.
9686         * iconvdata/Makefile: Likewise.
9687         * sunrpc/Makefile: Likewise.
9688         * io/Makefile: Likewise.
9689         * argp/Makefile: Likewise.
9690         * inet/Makefile: Likewise.
9691         * hesiod/Makefile: Likewise.
9692         * grp/Makefile: Likewise.
9693         * csu/Makefile: Likewise.
9694         * wctype/Makefile: Likewise.
9695         * crypt/Makefile: Likewise.
9696         * libio/Makefile: Likewise.
9697         * string/Makefile: Likewise.
9698         * nis/Makefile: Likewise.
9699         * resolv/Makefile: Likewise.
9700         * stdio-common/Makefile: Likewise.
9701         * wcsmbs/Makefile: Likewise.
9702         * dlfcn/Makefile: Likewise.
9703         * posix/Makefile: Likewise.
9704
9705         [BZ #6959]
9706         * timezone/Makefile: Don't install timezone files, just the programs
9707         and scripts.
9708
9709 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
9710
9711         * nss/databases.def: Add missing gshadow entry.
9712
9713         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
9714
9715 2012-03-06  Marek Polacek  <polacek@redhat.com>
9716
9717         [BZ #13726]
9718         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
9719         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
9720         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
9721         * stdio-common/tst-long-dbl-fphex.c: New file.
9722
9723 2012-03-06  David S. Miller  <davem@davemloft.net>
9724
9725         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
9726         (set_obp_int): New function.
9727         (get_obp_int): New function.
9728         (__get_clockfreq_via_dev_openprom): Likewise.
9729         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
9730         Avoid unused variable warnings on 'val' and use builtin_expect.
9731         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
9732         __builtin_expect.
9733         (INLINE_CLONE_SYSCALL): Likewise.
9734
9735 2012-03-05  David S. Miller  <davem@davemloft.net>
9736
9737         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9738
9739 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
9740
9741         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9742
9743         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
9744         only for |x| >= 40.
9745         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
9746
9747 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
9748
9749         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
9750         Replace gettimeofday with __vdso_gettimeofday.
9751
9752         * sysdeps/unix/sysv/linux/x86_64/init-first.c
9753         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
9754         __vdso_clock_gettime and __vdso_getcpu.
9755
9756         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
9757         time with __vdso_time.
9758
9759 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
9760
9761         * manual/lang.texi (size_t): Note types to which size_t may be
9762         equivalent with the GNU C Library, but do not describe when
9763         differences between them are significant.
9764
9765 2012-03-05  Andreas Jaeger  <aj@suse.de>
9766
9767         * sysdeps/i386/fpu/libm-test-ulps: Update.
9768
9769 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
9770
9771         [BZ #3976]
9772         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
9773         (__ieee754_pow): Save and restore rounding mode and use
9774         round-to-nearest for main computations.
9775         * math/libm-test.inc (pow_test_tonearest): New function.
9776         (pow_test_towardzero): Likewise.
9777         (pow_test_downward): Likewise.
9778         (pow_test_upward): Likewise.
9779         (main): Call the new functions.
9780         * sysdeps/i386/fpu/libm-test-ulps: Update.
9781         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9782
9783         [BZ #3976]
9784         * math/libm-test.inc (cosh_test_tonearest): New function.
9785         (cosh_test_towardzero): Likewise.
9786         (cosh_test_downward): Likewise.
9787         (cosh_test_upward): Likewise.
9788         (sinh_test_tonearest): Likewise.
9789         (sinh_test_towardzero): Likewise.
9790         (sinh_test_downward): Likewise.
9791         (sinh_test_upward): Likewise.
9792         (main): Call the new functions.
9793         * sysdeps/i386/fpu/libm-test-ulps: Update.
9794         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9795
9796 2012-03-05  Tom de Vries  <tom@codesourcery.com>
9797
9798         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
9799         default stack guard is set in last bytes.
9800         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
9801
9802 2012-03-05  Kees Cook  <keescook@chromium.org>
9803
9804         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
9805
9806         [BZ #13656]
9807         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
9808         possibly allocate from heap instead of stack.
9809         * stdio-common/bug-vfprintf-nargs.c: New file.
9810         * stdio-common/Makefile (tests): Add nargs overflow test.
9811
9812 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
9813
9814         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9815
9816 2012-03-03  Marek Polacek  <polacek@redhat.com>
9817
9818         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
9819         * math/math_private.h: Likewise.
9820         * stdlib/tst-strtod.c: Likewise.
9821         * sysdeps/i386/i486/bits/atomic.h: Likewise.
9822         * sysdeps/x86_64/bits/atomic.h: Likewise.
9823
9824 2012-03-02  David S. Miller  <davem@davemloft.net>
9825
9826         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
9827         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
9828         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
9829         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
9830         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
9831         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
9832         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
9833         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
9834
9835 2012-03-02  Roland McGrath  <roland@hack.frob.com>
9836
9837         [BZ #13792]
9838         * manual/examples/README: New file, says the example source files
9839         can be used under GPL>=2.
9840         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
9841         line containing just "*/".
9842         * manual/examples/add.c: Add copyright header (GPL>=2).
9843         * manual/examples/argp-ex1.c: Likewise.
9844         * manual/examples/argp-ex2.c: Likewise.
9845         * manual/examples/argp-ex3.c: Likewise.
9846         * manual/examples/argp-ex4.c: Likewise.
9847         * manual/examples/atexit.c: Likewise.
9848         * manual/examples/db.c: Likewise.
9849         * manual/examples/dir.c: Likewise.
9850         * manual/examples/dir2.c: Likewise.
9851         * manual/examples/execinfo.c: Likewise.
9852         * manual/examples/filecli.c: Likewise.
9853         * manual/examples/filesrv.c: Likewise.
9854         * manual/examples/fmtmsgexpl.c: Likewise.
9855         * manual/examples/genpass.c: Likewise.
9856         * manual/examples/inetcli.c: Likewise.
9857         * manual/examples/inetsrv.c: Likewise.
9858         * manual/examples/isockad.c: Likewise.
9859         * manual/examples/longopt.c: Likewise.
9860         * manual/examples/memopen.c: Likewise.
9861         * manual/examples/memstrm.c: Likewise.
9862         * manual/examples/mkfsock.c: Likewise.
9863         * manual/examples/mkisock.c: Likewise.
9864         * manual/examples/mygetpass.c: Likewise.
9865         * manual/examples/pipe.c: Likewise.
9866         * manual/examples/popen.c: Likewise.
9867         * manual/examples/rprintf.c: Likewise.
9868         * manual/examples/search.c: Likewise.
9869         * manual/examples/select.c: Likewise.
9870         * manual/examples/setjmp.c: Likewise.
9871         * manual/examples/sigh1.c: Likewise.
9872         * manual/examples/sigusr.c: Likewise.
9873         * manual/examples/stpcpy.c: Likewise.
9874         * manual/examples/strdupa.c: Likewise.
9875         * manual/examples/strftim.c: Likewise.
9876         * manual/examples/strncat.c: Likewise.
9877         * manual/examples/subopt.c: Likewise.
9878         * manual/examples/swapcontext.c: Likewise.
9879         * manual/examples/termios.c: Likewise.
9880         * manual/examples/testopt.c: Likewise.
9881         * manual/examples/testpass.c: Likewise.
9882         * manual/examples/timeval_subtract.c: Likewise.
9883
9884         [BZ #13792]
9885         * manual/time.texi (Elapsed Time): Move timeval_subtract example
9886         function to ...
9887         * manual/timeval_subtract.c.texi: ... here, new file.
9888
9889 2012-03-02  David S. Miller  <davem@davemloft.net>
9890
9891         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
9892
9893 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
9894
9895         [BZ #3976]
9896         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
9897         (__sin): Save and restore rounding mode and use round-to-nearest
9898         for all computations.
9899         (__cos): Save and restore rounding mode and use round-to-nearest
9900         for all computations.
9901         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
9902         <fenv.h>.
9903         (tan): Save and restore rounding mode and use round-to-nearest for
9904         all computations.
9905         * math/libm-test.inc (cos_test_tonearest): New function.
9906         (cos_test_towardzero): Likewise.
9907         (cos_test_downward): Likewise.
9908         (cos_test_upward): Likewise.
9909         (sin_test_tonearest): Likewise.
9910         (sin_test_towardzero): Likewise.
9911         (sin_test_downward): Likewise.
9912         (sin_test_upward): Likewise.
9913         (tan_test_tonearest): Likewise.
9914         (tan_test_towardzero): Likewise.
9915         (tan_test_downward): Likewise.
9916         (tan_test_upward): Likewise.
9917         (main): Call the new functions.
9918         * sysdeps/i386/fpu/libm-test-ulps: Update.
9919         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9920
9921         [BZ #10135]
9922         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
9923         small n, then large n, before computing and testing k+n.
9924         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
9925         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
9926         Likewise.
9927         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
9928         Likewise.
9929         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
9930         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
9931         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
9932         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
9933         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
9934         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
9935         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
9936         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
9937         * math/libm-test.inc (scalbn_test): Add more tests.
9938         (scalbln_test): Likewise.
9939
9940         * manual/filesys.texi (mode_t): Describe constraints on size and
9941         signedness, not exact equivalence to a particular type.
9942         (ino_t): Likewise.
9943         (ino64_t): Likewise.
9944         (dev_t): Likewise.
9945         (nlink_t): Likewise.
9946         (blkcnt_t): Likewise.
9947         (blkcnt64_t): Likewise.
9948         * manual/llio.texi (off_t): Likewise.
9949
9950         [BZ #3976]
9951         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
9952         (__ieee754_exp): Save and restore rounding mode and use
9953         round-to-nearest for all computations.
9954         * math/libm-test.inc (exp_test_tonearest): New function.
9955         (exp_test_towardzero): Likewise.
9956         (exp_test_downward): Likewise.
9957         (exp_test_upward): Likewise.
9958         (main): Call the new functions.
9959         * sysdeps/i386/fpu/libm-test-ulps: Update.
9960         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9961
9962 2012-03-01  Chris Demetriou  <cgd@google.com>
9963
9964         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
9965         have predictable order.
9966
9967 2012-03-01  David S. Miller  <davem@davemloft.net>
9968
9969         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
9970
9971         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
9972         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
9973         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
9974         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
9975
9976         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
9977         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
9978         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
9979         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
9980         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
9981         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
9982         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
9983         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
9984         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
9985
9986         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9987
9988         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
9989         * sysdeps/sparc/fpu/libm-test-ulps: to here.
9990         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
9991
9992         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
9993         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
9994         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
9995         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
9996         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
9997         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
9998         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
9999         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
10000         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
10001         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
10002         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
10003         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
10004         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
10005         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
10006         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
10007         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
10008         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
10009         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
10010         * sysdeps/sparc/elf/configure: Regenerated.
10011
10012 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
10013
10014         * configure.in (AS, LD): Require binutils 2.20 or later.
10015         * configure: Regenerated.
10016         * manual/install.texi (Tools for Compilation): Give binutils 2.20
10017         as required minimum version.
10018         * INSTALL: Regenerated.
10019
10020         [BZ #2541]
10021         [BZ #4108]
10022         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
10023         before squaring exponent.
10024         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
10025         bottom long double and 27 bits of top long double before squaring
10026         exponent.
10027         * math/libm-test.inc (erfc_test): Add more tests.
10028         * sysdeps/i386/fpu/libm-test-ulps: Update.
10029         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
10030         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10031
10032 2012-03-01  Kai Tietz  <ktietz@redhat.com>
10033
10034         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
10035         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
10036         containing bit-fields.
10037         * soft-fp/extended.h (_FP_UNION_E): Likewise.
10038         * soft-fp/single.h (_FP_UNION_S): Likewise.
10039         * soft-fp/double.h (_FP_UNION_D): Likewise.
10040
10041 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
10042
10043         [BZ #13786]
10044         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
10045         not include ../strcmp.S.
10046         [USE_AS_STRNCASECMP_L]: Likewise.
10047         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
10048         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
10049         * sysdeps/i386/i686/multiarch/strncase_l-c.c
10050         (__strncasecmp_l_ia32): Define as alias to
10051         __strncasecmp_l_nonascii.
10052
10053         [BZ #5794]
10054         * math/libm-test.inc (expm1_test): Add test for bug 5794.
10055         * sysdeps/i386/fpu/libm-test-ulps: Update.
10056         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10057
10058         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
10059         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10060
10061 2012-02-29  Jeff Law  <law@redhat.com>
10062
10063         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
10064         out of bounds read.
10065
10066 2012-02-29  Marek Polacek  <polacek@redhat.com>
10067
10068         [BZ #13706]
10069         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
10070         * elf/Makefile: Add rules to run tst-unused-dep.out.
10071
10072 2012-02-28  David S. Miller  <davem@davemloft.net>
10073
10074         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
10075         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
10076         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
10077         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
10078         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
10079         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
10080
10081 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
10082
10083         * math/libm-test.inc (llround_test): Move one test from
10084         lround_test.  Use TEST_f_L in moved test.
10085         (lround_test): Move misplaced test to llround_test.  Add testcase
10086         from bug 2561.
10087
10088 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
10089
10090         * sysdeps/x86_64/fpu/e_expf.S: New file.
10091         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
10092
10093 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
10094
10095         [BZ #13637]
10096         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
10097         of remain_len that may cause incomplete multi-byte character and
10098         false match.
10099         * posix/bug-regex33.c: New file.
10100         * posix/Makefile (tests): Add bug-regex33.
10101
10102 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
10103
10104         * manual/macros.texi: New file.
10105         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
10106         * manual/libc.texinfo: Include macros.texi.
10107         * manual/creatute.texi: Likewise.
10108         * manual/install.texi: Likewise.
10109         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
10110         @glibcadj{} in references to the GNU C Library.
10111         * manual/charset.texi: Likewise.
10112         * manual/conf.texi: Likewise.
10113         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
10114         when not using those macros.
10115         * manual/creature.texi: Likewise.
10116         * manual/crypt.texi: Likewise.
10117         * manual/errno.texi: Likewise.
10118         * manual/filesys.texi: Likewise.
10119         * manual/header.texi: Likewise.
10120         * manual/install.texi: Likewise.
10121         * manual/intro.texi: Likewise.
10122         * manual/io.texi: Likewise.
10123         * manual/job.texi: Likewise.
10124         * manual/lang.texi: Likewise.
10125         * manual/libc.texiinfo: Likewise.
10126         * manual/llio.texi: Likewise.
10127         * manual/locale.texi: Likewise.
10128         * manual/maint.texi: Likewise.
10129         * manual/math.texi: Likewise.
10130         * manual/memory.texi: Likewise.
10131         * manual/message.texi: Likewise.
10132         * manual/nss.texi: Likewise.
10133         * manual/pattern.texi: Likewise.
10134         * manual/process.texi: Likewise.
10135         * manual/resource.texi: Likewise.
10136         * manual/search.texi: Likewise.
10137         * manual/setjmp.texi: Likewise.
10138         * manual/signal.texi: Likewise.
10139         * manual/socket.texi: Likewise.
10140         * manual/startup.texi: Likewise.
10141         * manual/stdio.texi: Likewise.
10142         * manual/string.texi: Likewise.
10143         * manual/sysinfo.texi: Likewise.
10144         * manual/syslog.texi: Likewise.
10145         * manual/terminal.texi: Likewise.
10146         * manual/time.texi: Likewise.
10147         * manual/users.texi: Likewise.
10148         * INSTALL: Regenerated.
10149         * NOTES: Regenerated.
10150         * sysdeps/gnu/errlist.c: Regenerated.
10151
10152 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
10153
10154         * include/dirent.h: Include <dirstream.h> before
10155         <dirent/dirent.h>.
10156
10157 2012-02-28  David S. Miller  <davem@davemloft.net>
10158
10159         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
10160         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
10161         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
10162         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
10163
10164 2012-02-27  David S. Miller  <davem@davemloft.net>
10165
10166         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
10167         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
10168         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
10169         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
10170
10171         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
10172         frame pointer instead of stack pointer relative arg slot.
10173         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
10174         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
10175         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
10176
10177 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
10178
10179         [BZ #3992]
10180         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
10181
10182 2012-02-27  David S. Miller  <davem@davemloft.net>
10183
10184         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
10185         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
10186         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
10187         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
10188         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
10189         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
10190         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
10191         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
10192
10193 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
10194
10195         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
10196         later.  Allow versions 5-9.
10197         * configure: Regenerated.
10198         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
10199         required minimum version and 4.6 as recommended version.  Do not
10200         mention bugs in GCC 2.7 and 2.8.
10201         * INSTALL: Regenerated.
10202
10203 2012-02-27  David S. Miller  <davem@davemloft.net>
10204
10205         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
10206         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
10207         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
10208         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
10209         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
10210         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
10211         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
10212         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
10213
10214         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
10215         manipulate bits before adding and subtracting TWO112[sx].
10216         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
10217
10218 2012-02-27  Roland McGrath  <roland@hack.frob.com>
10219
10220         [BZ #13775]
10221         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
10222         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
10223         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
10224         being in POSIX, because they are in 1003.1-2008.
10225
10226         * rt/tst-aio.c: Include <fcntl.h>.
10227         * rt/tst-aio7.c: Likewise.
10228         * rt/tst-aio64.c: Likewise.
10229
10230         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
10231
10232 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
10233
10234         * manual/install.texi (--with-headers): Describe headers as
10235         interface headers, not private headers.
10236         (Specific advice for GNU/Linux systems): Describe use of headers
10237         from "make headers_install", not private headers from older
10238         kernels.
10239         * INSTALL: Regenerated.
10240         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
10241         Change to 2.6.19.
10242         * sysdeps/unix/sysv/linux/configure: Regenerated.
10243
10244         * manual/llio.texi (fclean): Remove documentation.
10245
10246         * manual/Makefile (libc-texi-generated): New variable.  Include
10247         version.texi.
10248         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
10249         $(libc-texi-generated), not duplicated list of files.
10250         (version.texi, stamp-version): New rules.
10251         (realclean): Remove $(libc-texi-generated), not individual files
10252         from that list.  Do not remove dir-add.texinfo.
10253         * manual/libc.texinfo: Comment out uses of edition numbers and
10254         references to printed manual.  Remove last-updated dates.
10255         (EDITION): Comment out.
10256         (ISBN): Likewise.
10257         (VERSION, UPDATED): Remove.
10258         (version.texi): Include.
10259
10260 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
10261
10262         * sysdeps/posix/spawni.c: Include <signal.h>.
10263         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
10264         * sysdeps/pthread/aio_fsync.c: Likewise.
10265
10266 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
10267
10268         * conform/Makefile (tests): Run only when not cross-compiling and
10269         when fast-check is not defined.
10270
10271         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
10272         * conform/data/limits.h-data: Fixes for POSIX2008.
10273         * conform/run-conformtest.sh: Run all tests.
10274         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
10275         headers.
10276         * include/bits/dlfcn.h: Likewise.
10277         * include/langinfo.h: Likewise.
10278         * include/monetary.h: Likewise.
10279         * include/sys/poll.h: Likewise.
10280
10281         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
10282         for __USE_GNU.
10283         * posix/spawn.h: Define __need_sigset_t.
10284         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
10285         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
10286         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
10287         to get sigevent_t only.
10288         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
10289         only for __USE_GNU.
10290         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
10291         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
10292         process_vm_writev only for __USE_GNU.
10293         * termios/termios.h: Declare tcgetsid also for POSIX2008.
10294
10295         * conform/Makefile: For now ignore errors from run-conformtest.
10296         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
10297         POSIX to avoid namespace pollution.  Don't prepend headers.
10298         * conform/data/aio.h-data: Fixes for POSIX testing.
10299         * conform/data/fcntl.h-data: Likewise.
10300         * conform/data/glob.h-data: Likewise.
10301         * conform/data/grp.h-data: Likewise.
10302         * conform/data/pthread.h-data: Likewise.
10303         * conform/data/pwd.h-data: Likewise.
10304         * conform/data/signal.h-data: Likewise.
10305         * conform/data/spawn.h-data: Likewise.
10306         * conform/data/stdio.h-data: Likewise.
10307         * conform/data/stdlib.h-data: Likewise.
10308         * conform/data/stropts.h-data: Likewise.
10309         * conform/data/sys/mman.h-data: Likewise.
10310         * conform/data/sys/stat.h-data: Likewise.
10311         * conform/data/sys/types.h-data: Likewise.
10312         * conform/data/sys/wait.h-data: Likewise.
10313         * conform/data/time.h-data: Likewise.
10314         * conform/data/unistd.h-data: Likewise.
10315         * conform/data/utime.h-data: Likewise.
10316
10317         * io/sys/stat.h: fchmod was always in POSIX.
10318         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
10319         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
10320         * rt/aio.h: Define __need_timespec before including <time.h>.
10321         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
10322         struct.  Add forward declaration of pthread_attr_t and use it in
10323         sigevent.
10324         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
10325         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
10326         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
10327         always remove CLK_TCK definition.
10328
10329 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
10330
10331         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
10332
10333 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
10334
10335         * conform/run-conformtest.sh: New file.
10336         * conform/Makefile: Run run-conformtest for tests.
10337         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
10338         support.
10339
10340         * conform/data/uchar.h-data: New file.
10341         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
10342         * conform/data/arpa/inet.h-data: Likewise.
10343         * conform/data/assert.h-data: Likewise.
10344         * conform/data/complex.h-data: Likewise.
10345         * conform/data/cpio.h-data: Likewise.
10346         * conform/data/ctype.h-data: Likewise.
10347         * conform/data/dirent.h-data: Likewise.
10348         * conform/data/dlfcn.h-data: Likewise.
10349         * conform/data/errno.h-data: Likewise.
10350         * conform/data/fcntl.h-data: Likewise.
10351         * conform/data/float.h-data: Likewise.
10352         * conform/data/fmtmsg.h-data: Likewise.
10353         * conform/data/fnmatch.h-data: Likewise.
10354         * conform/data/ftw.h-data: Likewise.
10355         * conform/data/glob.h-data: Likewise.
10356         * conform/data/grp.h-data: Likewise.
10357         * conform/data/iconv.h-data: Likewise.
10358         * conform/data/inttypes.h-data: Likewise.
10359         * conform/data/langinfo.h-data: Likewise.
10360         * conform/data/libgen.h-data: Likewise.
10361         * conform/data/limits.h-data: Likewise.
10362         * conform/data/locale.h-data: Likewise.
10363         * conform/data/math.h-data: Likewise.
10364         * conform/data/monetary.h-data: Likewise.
10365         * conform/data/mqueue.h-data: Likewise.
10366         * conform/data/ndbm.h-data: Likewise.
10367         * conform/data/net/if.h-data: Likewise.
10368         * conform/data/netdb.h-data: Likewise.
10369         * conform/data/netinet/in.h-data: Likewise.
10370         * conform/data/nl_types.h-data: Likewise.
10371         * conform/data/poll.h-data: Likewise.
10372         * conform/data/pthread.h-data: Likewise.
10373         * conform/data/pwd.h-data: Likewise.
10374         * conform/data/regex.h-data: Likewise.
10375         * conform/data/sched.h-data: Likewise.
10376         * conform/data/search.h-data: Likewise.
10377         * conform/data/semaphore.h-data: Likewise.
10378         * conform/data/setjmp.h-data: Likewise.
10379         * conform/data/signal.h-data: Likewise.
10380         * conform/data/spawn.h-data: Likewise.
10381         * conform/data/stdarg.h-data: Likewise.
10382         * conform/data/stdio.h-data: Likewise.
10383         * conform/data/stdlib.h-data: Likewise.
10384         * conform/data/string.h-data: Likewise.
10385         * conform/data/strings.h-data: Likewise.
10386         * conform/data/stropts.h-data: Likewise.
10387         * conform/data/sys/ipc.h-data: Likewise.
10388         * conform/data/sys/mman.h-data: Likewise.
10389         * conform/data/sys/msg.h-data: Likewise.
10390         * conform/data/sys/resource.h-data: Likewise.
10391         * conform/data/sys/select.h-data: Likewise.
10392         * conform/data/sys/sem.h-data: Likewise.
10393         * conform/data/sys/shm.h-data: Likewise.
10394         * conform/data/sys/socket.h-data: Likewise.
10395         * conform/data/sys/stat.h-data: Likewise.
10396         * conform/data/sys/statvfs.h-data: Likewise.
10397         * conform/data/sys/time.h-data: Likewise.
10398         * conform/data/sys/timeb.h-data: Likewise.
10399         * conform/data/sys/times.h-data: Likewise.
10400         * conform/data/sys/types.h-data: Likewise.
10401         * conform/data/sys/uio.h-data: Likewise.
10402         * conform/data/sys/un.h-data: Likewise.
10403         * conform/data/sys/utsname.h-data: Likewise.
10404         * conform/data/sys/wait.h-data: Likewise.
10405         * conform/data/syslog.h-data: Likewise.
10406         * conform/data/tar.h-data: Likewise.
10407         * conform/data/termios.h-data: Likewise.
10408         * conform/data/utime.h-data: Likewise.
10409         * conform/data/utmpx.h-data: Likewise.
10410         * conform/data/varargs.h-data: Likewise.
10411         * conform/data/wchar.h-data: Likewise.
10412         * conform/data/wctype.h-data: Likewise.
10413         * conform/data/wordexp.h-data: Likewise.
10414
10415         * include/stropts.h: New file.
10416         * include/uchar.h: New file.
10417         * include/aio.h: Changes to allow conformtest.pl to use the headers.
10418         * include/assert.h: Likewise.
10419         * include/ctype.h: Likewise.
10420         * include/dirent.h: Likewise.
10421         * include/dlfcn.h: Likewise.
10422         * include/fcntl.h: Likewise.
10423         * include/fnmatch.h: Likewise.
10424         * include/glob.h: Likewise.
10425         * include/grp.h: Likewise.
10426         * include/libio.h: Likewise.
10427         * include/locale.h: Likewise.
10428         * include/math.h: Likewise.
10429         * include/net/if.h: Likewise.
10430         * include/netdb.h: Likewise.
10431         * include/netinet/in.h: Likewise.
10432         * include/pthread.h: Likewise.
10433         * include/pwd.h: Likewise.
10434         * include/regex.h: Likewise.
10435         * include/sched.h: Likewise.
10436         * include/search.h: Likewise.
10437         * include/setjmp.h: Likewise.
10438         * include/signal.h: Likewise.
10439         * include/stdio.h: Likewise.
10440         * include/stdlib.h: Likewise.
10441         * include/string.h: Likewise.
10442         * include/sys/cdefs.h: Likewise.
10443         * include/sys/mman.h: Likewise.
10444         * include/sys/msg.h: Likewise.
10445         * include/sys/resource.h: Likewise.
10446         * include/sys/select.h: Likewise.
10447         * include/sys/socket.h: Likewise.
10448         * include/sys/stat.h: Likewise.
10449         * include/sys/statvfs.h: Likewise.
10450         * include/sys/time.h: Likewise.
10451         * include/sys/times.h: Likewise.
10452         * include/sys/uio.h: Likewise.
10453         * include/sys/utsname.h: Likewise.
10454         * include/sys/wait.h: Likewise.
10455         * include/termios.h: Likewise.
10456         * include/time.h: Likewise.
10457         * include/ulimit.h: Likewise.
10458         * include/unistd.h: Likewise.
10459         * include/utime.h: Likewise.
10460         * include/wchar.h: Likewise.
10461         * include/wctype.h: Likewise.
10462         * include/wordexp.h: Likewise.
10463
10464         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
10465
10466         * time/time.h: TIME_UTC must be a macro.
10467         Make timespec_get available for ISO C11 only as well.
10468
10469 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
10470
10471         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
10472         Reported by Peng Haitao <penght@cn.fujitsu.com>.
10473
10474 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
10475
10476         * configure.in: Use -o not -a in test for unsupported multi-arch.
10477
10478 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
10479
10480         * manual/texinfo.tex: Update to version 2012-01-19.16.
10481
10482 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
10483
10484         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
10485
10486 2012-02-24  Roland McGrath  <roland@hack.frob.com>
10487
10488         [BZ #13738]
10489         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
10490         * manual/fdl-1.3.texi: New file.
10491         * manual/fdl-1.1.texi: File removed.
10492
10493         [BZ #13738]
10494         * manual/libc.texinfo (FDL_VERSION): New @set.
10495         Use it for mention of FDL in cover text.
10496         (Documentation License): Use it in @include file name.
10497
10498 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
10499             Roland McGrath  <roland@hack.frob.com>
10500
10501         [BZ #5461]
10502         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
10503         not LONG_LONG_MAX and LONG_LONG_MIN.
10504         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
10505         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
10506         name.
10507         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
10508
10509 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
10510
10511         [BZ #2547]
10512         [BZ #11365]
10513         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
10514         manipulate bits before adding and subtracting TWO23[sx].
10515         * math/libm-test.inc (nearbyint_test): Add more tests.
10516
10517 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
10518
10519         [BZ #2548]
10520         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
10521         bits before adding and subtracting TWO23[sx].
10522         * math/libm-test.inc (rint_test): Add more tests.
10523         (rint_test_tonearest): Likewise.
10524         (rint_test_towardzero): Likewise.
10525         (rint_test_downward): Likewise.
10526         (rint_test_upward: Likewise.
10527
10528 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
10529
10530         [BZ #10110]
10531         * include/stdc-predef.h: New file.  Extracted from features.h.
10532         * include/features.h: Include stdc-predef.h.
10533         * Makefile (headers): Add stdc-predef.h.
10534         * CONFORMANCE (Compiler limitations): Update.
10535
10536 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
10537
10538         * manual/libc.texinfo (VERSION, UPDATED): Revert.
10539
10540 2012-02-21  David S. Miller  <davem@davemloft.net>
10541
10542         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
10543         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
10544
10545 2012-02-20  David S. Miller  <davem@davemloft.net>
10546
10547         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
10548         using a normal save/restore sequence, rather than allocating a
10549         dummy stack frame just to store a frame pointer and restore.
10550         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
10551
10552 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
10553
10554         * manual/install.texi: Fix stray word in line-wrapped comment.
10555
10556 2012-02-20  David S. Miller  <davem@davemloft.net>
10557
10558         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
10559         both binutils and gcc support GOTDATA.
10560
10561         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
10562         "rd %pc" in the PIC register setup sequences.
10563
10564         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
10565         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
10566         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
10567         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
10568         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
10569         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
10570         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
10571         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
10572         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
10573         (SYSCALL_ERROR_HANDLER): Likewise.
10574         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
10575         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
10576         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
10577         (SYSCALL_ERROR_HANDLER): Likewise.
10578
10579         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
10580         (HAVE_GCC_GOTDATA): New.
10581         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
10582         relocation support in both binutils and gcc.
10583         * sysdeps/sparc/elf/configure: Regenerate.
10584
10585         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
10586         * sysdeps/sparc/sparc32/elf/configure: Delete.
10587         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
10588         * sysdeps/sparc/sparc64/elf/configure: Delete.
10589         * sysdeps/sparc/elf/configure.in: New file.
10590         * sysdeps/sparc/elf/configure: Generate.
10591
10592         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
10593         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
10594         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
10595         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
10596         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
10597
10598 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
10599
10600         * manual/install.texi: Do not mention specific glibc version
10601         numbers.
10602         * manual/libc.texinfo (VERSION, UPDATED): Update.
10603         (@copying): Use @copyright{} and range of years.
10604
10605 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
10606
10607         [BZ #13695]
10608         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
10609         [crti.S not in sysdirs] (generated): Do not append.
10610         [crti.S not in sysdirs] (omit-deps): Likewise.
10611         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
10612         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
10613         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
10614         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
10615         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
10616         Likewise.
10617         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
10618         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
10619         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
10620         * csu/defs.awk: Remove file.
10621         * sysdeps/generic/initfini.c: Likewise.
10622         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
10623         variable.
10624         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
10625         Likewise.
10626
10627 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
10628
10629         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
10630         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
10631         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
10632         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
10633         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
10634         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
10635         <bits/epoll.h>.
10636         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
10637         (__EPOLL_PACKED): Define to empty if not defined by
10638         <bits/epoll.h>.
10639         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
10640         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10641         bits/epoll.h.
10642
10643 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
10644
10645         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
10646         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
10647         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
10648         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
10649         <bits/timerfd.h>.
10650         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
10651         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10652         bits/timerfd.h.
10653
10654 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
10655
10656         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
10657         in C locale.
10658         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
10659         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
10660         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
10661         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10662
10663 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
10664
10665         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
10666         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
10667
10668 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
10669
10670         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
10671         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
10672         defined.
10673         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
10674         Likewise.
10675         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
10676         entry for 2.16.
10677
10678 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
10679
10680         * math/w_acos.c: Use non-signaling floating-point comparisons.
10681         * math/w_acosf.c: Likewise.
10682         * math/w_acosh.c: Likewise.
10683         * math/w_acoshf.c: Likewise.
10684         * math/w_acoshl.c: Likewise.
10685         * math/w_acosl.c: Likewise.
10686         * math/w_asin.c: Likewise.
10687         * math/w_asinf.c: Likewise.
10688         * math/w_asinl.c: Likewise.
10689         * math/w_atanh.c: Likewise.
10690         * math/w_atanhf.c: Likewise.
10691         * math/w_atanhl.c: Likewise.
10692         * math/w_exp2.c: Likewise.
10693         * math/w_exp2f.c: Likewise.
10694         * math/w_exp2l.c: Likewise.
10695         * math/w_j0.c: Likewise.
10696         * math/w_j0f.c: Likewise.
10697         * math/w_j0l.c: Likewise.
10698         * math/w_j1.c: Likewise.
10699         * math/w_j1f.c: Likewise.
10700         * math/w_j1l.c: Likewise.
10701         * math/w_jn.c: Likewise.
10702         * math/w_jnf.c: Likewise.
10703         * math/w_log.c: Likewise.
10704         * math/w_log10.c: Likewise.
10705         * math/w_log10f.c: Likewise.
10706         * math/w_log10l.c: Likewise.
10707         * math/w_log2.c: Likewise.
10708         * math/w_log2f.c: Likewise.
10709         * math/w_log2l.c: Likewise.
10710         * math/w_logf.c: Likewise.
10711         * math/w_logl.c: Likewise.
10712         * math/w_sqrt.c: Likewise.
10713         * math/w_sqrtf.c: Likewise.
10714         * math/w_sqrtl.c: Likewise.
10715         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
10716         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
10717         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
10718         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
10719         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
10720
10721 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
10722
10723         [BZ #9739]
10724         * manual/string.texi (strnlen): Use correct parameter name in
10725         equivalent expression.
10726
10727 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
10728
10729         [BZ #11174]
10730         * manual/users.texi (seteuid): Consistently use neweuid for
10731         argument name.
10732
10733 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
10734
10735         [BZ #13704]
10736         * manual/nss.texi (Services in the NSS configuration): Correct
10737         list of services in example configuration file.
10738
10739 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
10740
10741         [BZ #11322]
10742         * manual/arith.texi: Remove statements about negative zero
10743         behaving identically to zero.
10744
10745 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
10746
10747         [BZ #5993]
10748         * manual/install.texi: Do not document upgrading from libc5.
10749
10750 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
10751
10752         [BZ #4596]
10753         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
10754
10755 2012-02-18  David S. Miller  <davem@davemloft.net>
10756
10757         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
10758         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
10759         %o7 across the call.
10760         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
10761         instead.
10762         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
10763         SETUP_PIC_REG_LEAF.
10764         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
10765         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
10766         * sysdeps/sparc/crtn.S: Likewise.
10767
10768 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
10769
10770         * aout/Makefile: Remove.
10771
10772 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
10773
10774         [BZ #13058]
10775         * manual/examples/argp-ex1.c (main): Format definition in GNU
10776         style.
10777         * manual/examples/argp-ex2.c (main): Likewise.
10778         * manual/examples/argp-ex3.c (main): Likewise.
10779         * manual/examples/argp-ex4.c (main): Likewise.
10780         * manual/examples/longopt.c (main): Use new-style prototype
10781         definition.
10782         * manual/examples/strncat.c (main): Specify return type and use
10783         (void) for arguments.
10784         * manual/examples/subopt.c (main): Use char **argv argument.
10785
10786 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
10787
10788         [BZ #5077]
10789         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
10790         rounding modes.
10791
10792 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
10793
10794         [BZ #6907]
10795         * manual/string.texi (strchr): Change when strchrnul is
10796         recommended.
10797
10798 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
10799
10800         [BZ #174]
10801         * manual/locale.texi (setlocale): Document LOCPATH.
10802
10803 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
10804
10805         [BZ #10210]
10806         * manual/process.texi (execle): Move @dots{} before last argument.
10807
10808 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
10809
10810         [BZ #12047]
10811         * manual/charset.texi (Generic Charset Conversion): Fix typo
10812         (LC_TYPE -> LC_CTYPE).
10813
10814 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
10815
10816         [BZ #5805]
10817         * manual/arith.texi (scalbn): Use @var{} on parameter names.
10818         (scalbnf): Likewise.
10819         (scalbnl): Likewise.
10820         (scalbln): Likewise.
10821         (scalblnf): Likewise.
10822         (scalblnl): Likewise.
10823         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
10824         (vwarnx): Likewise.
10825         (verr): Likewise.
10826         (verrx): Likewise.
10827         * manual/filesys.texi (telldir): Use braces around return type.
10828         * manual/llio.texi (mmap): Add space after comma.
10829         (mmap64): Likewise.
10830         * manual/math.texi (jn): Use @var{} on parameter names.
10831         (jnf): Likewise.
10832         (jnl): Likewise.
10833         (yn): Likewise.
10834         (ynf): Likewise.
10835         (ynl): Likewise.
10836         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
10837         line.
10838         * manual/resource.texi (ulimit): Use @dots{} instead of literal
10839         "...".
10840         (sched_get_priority_min): Remove semicolon on @deftypefun line.
10841         (sched_get_priority_max): Likewise.
10842         * manual/signal.texi (sigvec): Add space after comma.
10843         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
10844         names.
10845         (if_indextoname): Likewise.
10846         (if_freenameindex): Likewise.
10847         (sendto): Use ',' instead of '.' in prototype.
10848         * manual/startup.texi (syscall): Use @dots{} instead of literal
10849         "...".
10850         * manual/stdio.texi (__fpending): Separate initial words of
10851         paragraph from @deftypefun line.
10852         * manual/syslog.texi (syslog): Use @dots{} instead of literal
10853         "...".
10854         (vsyslog): Use @var{} on parameter names.
10855         * manual/terminal.texi (stty): Use @var{} on parameter names.
10856         * manual/users.texi (getutmp): Use @var{} on parameter names.
10857         (getutmpx): Likewise.
10858
10859 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
10860
10861         [BZ #6884]
10862         * manual/stdio.texi (fopen): Fix typos in description of
10863         ",ccs=STRING".
10864
10865 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
10866
10867         [BZ #4026]
10868         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
10869         get clock_id definition.
10870
10871 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
10872
10873         [BZ #4822]
10874         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
10875         (madvise): Cast every argument to void on its own.
10876
10877 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
10878
10879         [BZ #9902]
10880         * manual/startup.texi (Exit Status): Fix typo.
10881
10882 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
10883
10884         [BZ #10140]
10885         * manual/examples/argp-ex1.c: Include <stdlib.h>.
10886         * manual/examples/argp-ex2.c: Likewise.
10887         * manual/examples/argp-ex3.c: Likewise.
10888
10889 2012-02-16  Richard Henderson  <rth@redhat.com>
10890
10891         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
10892         * sysdeps/s390/s390-32/initfini.c: Remove.
10893         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
10894         * sysdeps/s390/s390-64/initfini.c: Remove.
10895
10896 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
10897
10898         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
10899         compiler output for sysdeps/generic/initfini.c.
10900         * sysdeps/sh/elf/initfini.c: Remove file.
10901
10902 2012-02-16  David S. Miller  <davem@davemloft.net>
10903
10904         [BZ #11494]
10905         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
10906
10907         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
10908         * sysdeps/sparc/crti.S: New file.
10909         * sysdeps/sparc/crtn.S: New file.
10910         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
10911         * sysdeps/sparc/sparc64/Makefile: Likewise.
10912
10913 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
10914
10915         [BZ #3335]
10916         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
10917
10918 2012-02-15  Roland McGrath  <roland@hack.frob.com>
10919
10920         [BZ #4822]
10921         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
10922
10923         * mach/devstream.c (cookie_io_functions_t): Macro removed.
10924         (write, read, close): Likewise.
10925         Patch by Aurelien Jarno <aurelien@aurel32.net>.
10926
10927 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
10928
10929         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
10930         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
10931         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
10932         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
10933         <bits/signalfd.h>.
10934         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
10935         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10936         bits/signalfd.h.
10937
10938 2012-02-14  Marek Polacek  <polacek@redhat.com>
10939
10940         * sysdeps/x86_64/crti.S: New file.
10941         * sysdeps/x86_64/crtn.S: New file.
10942         * sysdeps/x86_64/elf/initfini.c: Remove file.
10943
10944 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
10945
10946         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
10947         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
10948         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
10949         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
10950         <bits/inotify.h>.
10951         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
10952         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10953         bits/inotify.h.
10954
10955 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
10956
10957         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
10958         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
10959         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
10960         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
10961         <bits/eventfd.h>.
10962         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
10963         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10964         bits/eventfd.h.
10965
10966 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
10967
10968         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
10969         __feraiseexcept instead of feraiseexcept.
10970
10971         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
10972         nanosleep invocations.
10973         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
10974         strings, and add error checking for a nanosleep invocations.
10975
10976 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
10977
10978         Replace FSF snail mail address with URLs, as per GNU coding standards.
10979         Most of the snail mail addresses were wrong anyway, and omitting
10980         them makes the source code easier to maintain.  Almost all of the
10981         changes are to license notices and to locale LC_IDENTIFICATION
10982         addresses, except for this one:
10983         * manual/libc.texinfo: In "Published by", give the FSF's URL,
10984         not its snail mail address.
10985
10986 2012-02-09  Richard Henderson  <rth@twiddle.net>
10987
10988         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
10989         of kernel-features.h.
10990
10991         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
10992
10993 2012-02-08  Marek Polacek  <polacek@redhat.com>
10994
10995         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
10996         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
10997         * sysdeps/gnu/_G_config.h: Likewise.
10998         * sysdeps/generic/_G_config.h: Likewise.
10999
11000 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
11001
11002         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
11003         tests.
11004         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11005
11006         * sysdeps/powerpc/powerpc32/crti.S: New file.
11007         * sysdeps/powerpc/powerpc32/crtn.S: New file.
11008         * sysdeps/powerpc/powerpc64/crti.S: New file.
11009         * sysdeps/powerpc/powerpc64/crtn.S: New file.
11010
11011         * Makeconfig (have-initfini): Don't set.
11012         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
11013         * configure.in (nopic_initfini): Don't substitute.
11014         * config.h.in (HAVE_INITFINI): Don't #undef.
11015         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
11016         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
11017
11018 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
11019
11020         Support crti.S and crtn.S provided directly by architectures.
11021         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
11022         [crti.S in sysdirs] (omit-deps): Likewise.
11023         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
11024         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
11025         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
11026         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
11027         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
11028         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
11029         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
11030         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
11031         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
11032         compiler output for sysdeps/generic/initfini.c.
11033         * sysdeps/i386/elf/Makefile: Remove file.
11034         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
11035
11036 2012-02-07  Marek Polacek  <polacek@redhat.com>
11037
11038         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
11039         * sysdeps/gnu/_G_config.h: Likewise.
11040         * sysdeps/mach/hurd/_G_config.h: Likewise.
11041
11042 2012-02-07  Marek Polacek  <polacek@redhat.com>
11043
11044         * math/Makefile (tests): Add tst-CMPLX2.
11045         * math/tst-CMPLX2.c: New file.
11046
11047 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
11048
11049         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
11050
11051         * math/libm-test.inc (jn_test): Add missing L suffix.
11052
11053 2012-02-06  Marek Polacek  <polacek@redhat.com>
11054
11055         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
11056         * sysdeps/i386/fpu/e_powf.S: Likewise.
11057         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
11058         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
11059         * sysdeps/i386/fpu/e_acosh.S: Likewise.
11060         * sysdeps/i386/fpu/e_pow.S: Likewise.
11061         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
11062         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
11063         * sysdeps/i386/fpu/s_expm1.S: Likewise.
11064         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
11065         * sysdeps/i386/fpu/e_log2.S: Likewise.
11066         * sysdeps/i386/fpu/e_log2l.S: Likewise.
11067         * sysdeps/i386/fpu/e_scalb.S: Likewise.
11068         * sysdeps/i386/fpu/e_powl.S: Likewise.
11069         * sysdeps/i386/fpu/s_log1p.S: Likewise.
11070         * sysdeps/i386/fpu/e_log10f.S: Likewise.
11071         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
11072         * sysdeps/i386/fpu/e_logl.S: Likewise.
11073         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
11074         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
11075         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
11076         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
11077         * sysdeps/i386/fpu/e_log2f.S: Likewise.
11078         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
11079         * sysdeps/i386/fpu/e_log.S: Likewise.
11080         * sysdeps/i386/fpu/s_cexp.S: Likewise.
11081         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
11082         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
11083         * sysdeps/i386/fpu/e_logf.S: Likewise.
11084         * sysdeps/i386/fpu/e_log10l.S: Likewise.
11085         * sysdeps/i386/fpu/e_atanh.S: Likewise.
11086         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
11087         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
11088         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
11089         * sysdeps/i386/fpu/e_log10.S: Likewise.
11090         * sysdeps/i386/fpu/s_frexp.S: Likewise.
11091         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
11092         * sysdeps/i386/fpu/s_asinh.S: Likewise.
11093         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
11094         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
11095         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
11096         * sysdeps/i386/asm-syntax.h: Likewise.
11097         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
11098         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
11099         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
11100         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
11101         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
11102         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
11103         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
11104         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
11105         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
11106         * sysdeps/powerpc/sysdep.h: Likewise.
11107         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
11108         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
11109
11110 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
11111
11112         [BZ #411]
11113         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
11114
11115 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
11116
11117         * sysdeps/i386/sysdep.h: Include <features.h>.
11118         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
11119         version.
11120
11121 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
11122
11123         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
11124         Define.
11125         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
11126         LOAD_PIC_REG_STR.
11127
11128 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
11129
11130         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
11131         (SETUP_PIC_REG): Use GET_PC_THUNK.
11132         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
11133         macro.
11134
11135 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
11136
11137         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
11138         for non-PIC compilation.
11139         (SETUP_PIC_REG): Add .p2align directive.
11140         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
11141         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
11142         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
11143         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
11144         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
11145         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
11146         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
11147         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
11148         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
11149         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
11150         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
11151         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
11152         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
11153         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
11154         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
11155         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
11156         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
11157         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
11158         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
11159         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
11160         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
11161         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
11162         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
11163         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
11164         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
11165         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
11166         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
11167         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
11168         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
11169         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
11170         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
11171         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
11172         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
11173         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
11174         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
11175         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
11176         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
11177         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
11178         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
11179         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
11180         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
11181
11182 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
11183
11184         * math/tst-CMPLX.c: Include <stdio.h>.
11185
11186 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
11187
11188         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
11189         float.
11190         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
11191         * sysdeps/sparc/bits/mathdef.h: Likewise.
11192
11193 2012-01-31  Marek Polacek  <polacek@redhat.com>
11194
11195         * libio/libio.h: Don't define _PARAMS.
11196         * locale/programs/config.h: Don't define PARAMS.
11197         * stdlib/strtol_l.c: Likewise.
11198         (__strtol_l): Remove PARAMS from the prototype.
11199
11200 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
11201
11202         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
11203         names.  Just use the correct names.  Remove unnecessary wrapper
11204         functions.
11205         * malloc/arena.c: Likewise.
11206         * malloc/hooks.c: Likewise.
11207
11208         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
11209         ARENA_TEST says not to.  Simplify test for creation of a new arena.
11210         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
11211
11212 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
11213
11214         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
11215         into tail calls.
11216         (update_get_addr): New function.
11217         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
11218         GET_ADDR_MODULE parameter.
11219
11220 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
11221
11222         * crypt/cert.c: Remove __STDC__ conditionals.
11223         * crypt/crypt-entry.c: Likewise.
11224         * crypt/crypt_util.c: Likewise.
11225         * libio/filedoalloc.c: Likewise.
11226         * libio/fileops.c: Likewise.
11227         * libio/genops.c: Likewise.
11228         * libio/iofclose.c: Likewise.
11229         * libio/iofdopen.c: Likewise.
11230         * libio/iofopen.c: Likewise.
11231         * libio/iofopen64.c: Likewise.
11232         * libio/iogetdelim.c: Likewise.
11233         * libio/iopopen.c: Likewise.
11234         * libio/obprintf.c: Likewise.
11235         * libio/oldfileops.c: Likewise.
11236         * libio/oldiofclose.c: Likewise.
11237         * libio/oldiofdopen.c: Likewise.
11238         * libio/oldiofopen.c: Likewise.
11239         * libio/oldiopopen.c: Likewise.
11240         * libio/wfiledoalloc.c: Likewise.
11241         * libio/wgenops.c: Likewise.
11242         * locale/programs/xmalloc.c: Likewise.
11243         * misc/syslog.c: Likewise.
11244         * stdio-common/xbug.c: Likewise.
11245         * string/memchr.c: Likewise.
11246         * string/memcmp.c: Likewise.
11247         * string/memrchr.c: Likewise.
11248         * string/rawmemchr.c: Likewise.
11249         * sysdeps/posix/getcwd.c: Likewise.
11250         * time/strftime_l.c: Likewise.
11251
11252 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
11253
11254         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
11255         * config.make.in (config-cflags-sse2avx): Define.
11256         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
11257         Fix typo.
11258
11259 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
11260
11261         * scripts/config.guess: Update from upstream config git repository.
11262         * scripts/config.sub: Likewise.
11263
11264 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
11265
11266         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
11267         (EM_NUM): Update.
11268         (R_TILEPRO_*, R_TILEGX_*): New macros.
11269
11270         * scripts/firstversions.awk: Fix bug in version range handling.
11271
11272         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
11273
11274         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
11275
11276         * include/sys/epoll.h: New file.
11277         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
11278         libc_hidden_def.
11279
11280 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
11281
11282         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
11283         Avoid unnecessary __WORDSIZE == 64 test.
11284         (fmaxf): Use VEX format if possible.
11285         (fmax): Likewise.
11286         (fminf): Likewise.
11287         (fmin): Likewise.
11288
11289         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
11290         * math/math_private.h: Remove libc_fegetround* and
11291         libc_fesetround*.
11292         * sysdeps/i386/configure.in: Check for -msse2avx.
11293         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
11294         also if SSE2AVX is defined.
11295         Remove libc_fegetround* and libc_fesetround*.
11296         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
11297         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
11298         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
11299         of HAS_YMM_USABLE.
11300         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
11301         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
11302         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
11303         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
11304         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
11305
11306         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
11307
11308 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11309
11310         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
11311         size is not set.
11312         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
11313
11314 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
11315
11316         [BZ #13618]
11317         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
11318         relocation.
11319         * Makeconfig (libm): Define.
11320         * elf/Makefile: Add rules to build and run tst-relsort1.
11321         * elf/tst-relsort1.c: New file.
11322         * elf/tst-relsort1mod1.c: New file.
11323         * elf/tst-relsort1mod2.c: New file.
11324
11325 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
11326
11327         * math/s_ldexp.c: Remove __STDC__ conditionals.
11328         * math/s_ldexpf.c: Likewise.
11329         * math/s_ldexpl.c: Likewise.
11330         * math/s_nextafter.c: Likewise.
11331         * math/s_nexttowardf.c: Likewise.
11332         * math/s_significand.c: Likewise.
11333         * math/s_significandf.c: Likewise.
11334         * math/s_significandl.c: Likewise.
11335         * math/w_jnl.c: Likewise.
11336         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
11337         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
11338         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
11339         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
11340         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
11341         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
11342         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
11343         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
11344         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
11345         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
11346         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
11347         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
11348         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
11349         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
11350         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
11351         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
11352         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
11353         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
11354         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
11355         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
11356         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
11357         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
11358         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
11359         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
11360         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
11361         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
11362         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
11363         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
11364         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
11365         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
11366         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
11367         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
11368         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
11369         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
11370         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
11371         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
11372         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
11373         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
11374         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
11375         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
11376         * sysdeps/ieee754/k_standard.c: Likewise.
11377         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11378         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
11379         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
11380         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
11381         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
11382         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
11383         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
11384         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
11385         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
11386         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
11387         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
11388         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
11389         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
11390         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
11391         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
11392         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
11393         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
11394         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
11395         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
11396         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
11397         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
11398         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
11399         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
11400         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
11401         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
11402         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
11403         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
11404         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11405         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
11406         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
11407         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
11408         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
11409         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
11410         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
11411         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
11412         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
11413         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
11414         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
11415         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
11416         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
11417         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
11418         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
11419         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
11420         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
11421         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
11422         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
11423         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
11424         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
11425         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
11426         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
11427         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
11428         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
11429         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
11430         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
11431         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
11432         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
11433         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
11434         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
11435         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
11436         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
11437         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
11438         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
11439         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
11440         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
11441         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
11442         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
11443         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
11444         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
11445         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
11446         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
11447         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
11448         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
11449         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
11450         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
11451         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
11452         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
11453         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
11454         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
11455         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
11456         * sysdeps/ieee754/s_matherr.c: Likewise.
11457         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
11458         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
11459         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
11460         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
11461
11462 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
11463
11464         * crypt/md5.h: Remove __STDC__ conditionals.
11465         * libio/libioP.h: Likewise.
11466         * locale/programs/config.h: Likewise.
11467         * sysdeps/generic/sysdep.h: Likewise.
11468         * sysdeps/i386/asm-syntax.h: Likewise.
11469         * sysdeps/s390/asm-syntax.h: Likewise.
11470         * sysdeps/unix/sysdep.h: Likewise.
11471         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
11472         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
11473
11474 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
11475
11476         * libio/libio.h: Remove __STDC__ conditionals.
11477         * malloc/obstack.h: Likewise.
11478         * math/complex.h: Likewise.
11479         * math/math.h: Likewise.
11480         * sysdeps/generic/_G_config.h: Likewise.
11481         * sysdeps/gnu/_G_config.h: Likewise.
11482         * sysdeps/mach/hurd/_G_config.h: Likewise.
11483         * sysdeps/powerpc/bits/mathdef.h: Likewise.
11484         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
11485         * sysdeps/sparc/bits/mathdef.h: Likewise.
11486
11487 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
11488
11489         [BZ #13583]
11490         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
11491         Clean up HAS_* macros.
11492         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
11493         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
11494         possible.
11495         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
11496         HAS_AVX.
11497         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
11498         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
11499         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
11500         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
11501         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
11502
11503 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
11504
11505         * elf/tst-unique3.cc (gets): Remove declaration.
11506         * elf/tst-unique3lib.cc (gets): Likewise.
11507         * elf/tst-unique3lib2.cc (gets): Likewise.
11508         * elf/tst-unique4.cc (gets): Likewise.
11509
11510 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
11511
11512         * include/stdio.h: Add C++ protection.  Add gets declarations and
11513         definitions.
11514         * debug/tst-chk1.c: Don't declare gets here.
11515         * stdio-common/tst-gets.c: Likewise.
11516
11517 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
11518
11519         * posix/glob: Remove directory.
11520
11521 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
11522
11523         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
11524
11525 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
11526
11527         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
11528         of the non-standard EPFNOSUPPORT.
11529
11530 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11531
11532         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
11533         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
11534         ANYWHERE set to 1 only on KERN_NO_SPACE error.
11535
11536 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
11537
11538         * wcsmbs/uchar.h: Test __STDC_VERSION__.
11539
11540 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
11541
11542         * nscd/aicache.c (addhstaiX): Do not cache negative results of
11543         transient errors.
11544         * nscd/grpcache.c (cache_addgr): Likewise.
11545         * nscd/hstcache.c (cache_addhst): Likewise.
11546         * nscd/initgrcache.c (addinitgroupsX): Likewise.
11547         * nscd/pwdcache.c (cache_addpw): Likewise.
11548         * nscd/servicescache.c (cache_addserv): Likewise.
11549
11550 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
11551
11552         * malloc/malloc.c: Various cleanups.
11553         * malloc/hooks.c: Likewise.
11554
11555         * stdlib/Makefile (tests): Add bug-fmtmsg1.
11556         * stdlib/bug-fmtmsg1.c: New file.
11557
11558         * stdlib/fmtmsg.c (init): Add missing unlock.
11559         Patch by Peng Haitao <penght@cn.fujitsu.com>.
11560
11561 2012-01-12  Marek Polacek  <polacek@redhat.com>
11562
11563         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
11564         and _GNU_SOURCE.
11565
11566 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
11567
11568         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
11569         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
11570         macro to ensure uniqueness of label name.
11571         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
11572         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
11573
11574 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
11575
11576         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
11577
11578         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
11579         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
11580         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
11581         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
11582
11583 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
11584
11585         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
11586
11587         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
11588         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
11589         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
11590
11591         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
11592
11593         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
11594         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
11595         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
11596         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
11597
11598         * math/bits/math-finite.h: Add ldexp support.
11599
11600 2012-01-10  Marek Polacek  <polacek@redhat.com>
11601
11602         * locale/programs/localedef.h (show_archive_content): Add noreturn
11603         attribute.
11604
11605 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
11606
11607         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
11608
11609 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
11610
11611         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
11612
11613         * io/Makefile (headers): Add bits/poll2.h.
11614
11615 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
11616
11617         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
11618         typo #include statement.
11619
11620 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
11621
11622         * include/sys/cdefs.h: Define __attribute_alloc_size.
11623         * catgets/gencat.c: Add alloc_size attribute and apply consistently
11624         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
11625         * elf/pldd.c: Likewise.
11626         * iconv/iconv_charmap.c: Likewise.
11627         * iconv/iconvconfig.c: Likewise.
11628         * iconv/strtab.c: Likewise.
11629         * locale/programs/locale.c: Likewise.
11630         * locale/programs/localedef.h: Likewise.
11631         * locale/programs/simple-hash.c: Likewise.
11632         * nscd/nscd.h: Likewise.
11633         * nss/makedb.c: Likewise.
11634         * sysdeps/generic/ldconfig.h: Likewise.
11635         * locale/programs/localedef.c: Remove xmalloc prototype.
11636         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
11637
11638 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
11639
11640         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
11641         appropriate.
11642
11643 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
11644
11645         * math/Makefile (tests): Add tst-CMPLX.
11646         * math/tst-CMPLX.c: New file.
11647
11648         * math/complex.h (CMPLXL): Fix typo.
11649
11650         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
11651         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
11652         GLIBC_2.16.
11653         * debug/tst-chk1.c: Add poll and ppoll tests.
11654         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
11655         * include/sys/poll.h: Add hidden proto for ppoll.
11656         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
11657         * sysdeps/mach/hurd/ppoll.c: Likewise.
11658         * io/ppoll.c: Likewise.
11659         * debug/poll_chk.c: New file.
11660         * debug/ppoll_chk.c: New file.
11661         * include/bits/poll2.h: New file.
11662         * io/bits/poll2.h: New file.
11663
11664         [BZ #1350]
11665         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
11666
11667         * configure.in: static is always set to yes.  Remove.
11668         * config.make.in: Don't set build-static.
11669         * Makeconfig: Remove use of build-static.
11670         * dlfcn/Makefile: Likewise.
11671         * elf/Makefile: Likewise.
11672         * math/Makefile: Likewise.
11673         * misc/Makefile: Likewise.
11674         * nptl/Makefile: Likewise.
11675         * sysdeps/mach/hurd/Makefile: Likewise.
11676
11677         * configure.in: PWD_P is not used anymore.
11678         * config.make.in: Remove PWD_P entry.
11679
11680         * configure.in: Remove last remnants of RANLIB.
11681         No need to check for signed size_t anymore.
11682         Don't set libc_commonpagesize and libc_relro_required here for Alpha
11683         and IA-64.
11684         Remove __builtin_expect test because we require at least gcc 3.4.
11685         * aclocal.m4: Likewise.
11686
11687         * wcsmbs/mbrtoc16.c: Implement using towc function.
11688         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
11689         * wcsmbs/wcsmbsload.c: Likewise.
11690         * iconv/gconv_simple.c: Likewise.
11691         * iconv/gconv_int.h: Likewise.
11692         * iconv/gconv_builtin.h: Likewise.
11693         * iconv/iconv_prog.c: Remove CHAR16 handling.
11694
11695         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
11696
11697         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
11698
11699         * configure.in: Remove --with-elf and --enable-bounded options.
11700         Dont set base_machine for ia64.  More non-ELF conditions removed.
11701         Remove testing and setting of leading underscore information.
11702         * config.make.in (build-bounded): Set to no.
11703         * config.h.in: Remove NO_UNDERSCORES entry.
11704         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
11705         them.
11706         * csu/start.c: Remove !NO_UNDERSCORE code.
11707         * locale/localeinfo.h: Likewise.
11708         * sysdeps/generic/machine-gmon.h: Likewise.
11709         * sysdeps/generic/sysdep.h: Likewise.
11710         * sysdeps/i386/sysdep.h: Likewise.
11711         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
11712         * sysdeps/mach/sysdep.h: Likewise.
11713         * sysdeps/s390/s390-32/sysdep.h: Likewise.
11714         * sysdeps/s390/s390-64/sysdep.h: Likewise.
11715         * sysdeps/sh/sysdep.h: Likewise.
11716         * sysdeps/sparc/sparc32/alloca.S: Likewise.
11717         * sysdeps/unix/i386/sysdep.S: Likewise.
11718         * sysdeps/unix/sparc/start.c: Likewise.
11719         * sysdeps/unix/sparc/sysdep.S: Likewise.
11720         * sysdeps/unix/sparc/sysdep.h: Likewise.
11721         * sysdeps/unix/start.c: Likewise.
11722         * sysdeps/unix/x86_64/sysdep.S: Likewise.
11723         * sysdeps/x86_64/sysdep.h: Likewise.
11724
11725 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
11726
11727         [BZ #13553]
11728         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
11729         for non-gcc.
11730         * argp/argp-fmtstream.h: Use const instead __const.
11731         * argp/argp.h: Likewise.
11732         * assert/assert.h: Likewise.
11733         * bits/fenv.h: Likewise.
11734         * bits/sched.h: Likewise.
11735         * bits/sigset.h: Likewise.
11736         * bits/sigthread.h: Likewise.
11737         * catgets/nl_types.h: Likewise.
11738         * conform/data/pthread.h-data: Likewise.
11739         * crypt/crypt-private.h: Likewise.
11740         * crypt/crypt.h: Likewise.
11741         * crypt/crypt_util.c: Likewise.
11742         * ctype/ctype.h: Likewise.
11743         * debug/execinfo.h: Likewise.
11744         * debug/mbsnrtowcs_chk.c: Likewise.
11745         * debug/mbsrtowcs_chk.c: Likewise.
11746         * debug/wcsnrtombs_chk.c: Likewise.
11747         * debug/wcsrtombs_chk.c: Likewise.
11748         * debug/wcstombs_chk.c: Likewise.
11749         * dirent/dirent.h: Likewise.
11750         * dlfcn/dlfcn.h: Likewise.
11751         * elf/neededtest4.c: Likewise.
11752         * grp/grp.h: Likewise.
11753         * gshadow/gshadow.h: Likewise.
11754         * iconv/gconv.h: Likewise.
11755         * iconv/gconv_int.h: Likewise.
11756         * iconv/gconv_simple.c: Likewise.
11757         * iconv/iconv.h: Likewise.
11758         * iconv/loop.c: Likewise.
11759         * iconv/skeleton.c: Likewise.
11760         * include/aio.h: Likewise.
11761         * include/aliases.h: Likewise.
11762         * include/argz.h: Likewise.
11763         * include/arpa/inet.h: Likewise.
11764         * include/assert.h: Likewise.
11765         * include/dirent.h: Likewise.
11766         * include/dlfcn.h: Likewise.
11767         * include/execinfo.h: Likewise.
11768         * include/fcntl.h: Likewise.
11769         * include/fenv.h: Likewise.
11770         * include/glob.h: Likewise.
11771         * include/grp.h: Likewise.
11772         * include/libintl.h: Likewise.
11773         * include/mntent.h: Likewise.
11774         * include/netdb.h: Likewise.
11775         * include/pwd.h: Likewise.
11776         * include/rpc/netdb.h: Likewise.
11777         * include/sched.h: Likewise.
11778         * include/search.h: Likewise.
11779         * include/shadow.h: Likewise.
11780         * include/signal.h: Likewise.
11781         * include/stdio.h: Likewise.
11782         * include/stdlib.h: Likewise.
11783         * include/string.h: Likewise.
11784         * include/sys/socket.h: Likewise.
11785         * include/sys/stat.h: Likewise.
11786         * include/sys/statfs.h: Likewise.
11787         * include/sys/statvfs.h: Likewise.
11788         * include/sys/syslog.h: Likewise.
11789         * include/sys/time.h: Likewise.
11790         * include/sys/uio.h: Likewise.
11791         * include/time.h: Likewise.
11792         * include/unistd.h: Likewise.
11793         * include/utmp.h: Likewise.
11794         * include/wchar.h: Likewise.
11795         * include/wctype.h: Likewise.
11796         * inet/aliases.h: Likewise.
11797         * inet/arpa/inet.h: Likewise.
11798         * inet/netinet/ether.h: Likewise.
11799         * inet/netinet/in.h: Likewise.
11800         * intl/libintl.h: Likewise.
11801         * io/bits/fcntl2.h: Likewise.
11802         * io/fcntl.h: Likewise.
11803         * io/ftw.h: Likewise.
11804         * io/sys/poll.h: Likewise.
11805         * io/sys/stat.h: Likewise.
11806         * io/sys/statfs.h: Likewise.
11807         * io/sys/statvfs.h: Likewise.
11808         * io/utime.h: Likewise.
11809         * libio/bits/stdio.h: Likewise.
11810         * libio/bits/stdio2.h: Likewise.
11811         * libio/libio.h: Likewise.
11812         * libio/libioP.h: Likewise.
11813         * libio/stdio.h: Likewise.
11814         * locale/lc-ctype.c: Likewise.
11815         * locale/locale.h: Likewise.
11816         * login/utmp.h: Likewise.
11817         * malloc/arena.c: Likewise.
11818         * malloc/malloc.c: Likewise.
11819         * malloc/malloc.h: Likewise.
11820         * malloc/mcheck.c: Likewise.
11821         * malloc/mtrace.c: Likewise.
11822         * math/bits/mathcalls.h: Likewise.
11823         * math/fenv.h: Likewise.
11824         * math/math_private.h: Likewise.
11825         * misc/bits/error.h: Likewise.
11826         * misc/bits/syslog.h: Likewise.
11827         * misc/err.h: Likewise.
11828         * misc/error.h: Likewise.
11829         * misc/fstab.h: Likewise.
11830         * misc/mntent.h: Likewise.
11831         * misc/regexp.h: Likewise.
11832         * misc/search.h: Likewise.
11833         * misc/sgtty.h: Likewise.
11834         * misc/sys/mman.h: Likewise.
11835         * misc/sys/syslog.h: Likewise.
11836         * misc/sys/uio.h: Likewise.
11837         * misc/sys/xattr.h: Likewise.
11838         * misc/ttyent.h: Likewise.
11839         * nis/rpcsvc/ypclnt.h: Likewise.
11840         * nss/nss.h: Likewise.
11841         * posix/bits/unistd.h: Likewise.
11842         * posix/fnmatch.h: Likewise.
11843         * posix/glob.h: Likewise.
11844         * posix/sched.h: Likewise.
11845         * posix/spawn.h: Likewise.
11846         * posix/sys/wait.h: Likewise.
11847         * posix/unistd.h: Likewise.
11848         * posix/wordexp.h: Likewise.
11849         * pwd/pwd.h: Likewise.
11850         * resolv/netdb.h: Likewise.
11851         * resource/sys/resource.h: Likewise.
11852         * rt/aio.h: Likewise.
11853         * rt/bits/mqueue2.h: Likewise.
11854         * rt/mqueue.h: Likewise.
11855         * shadow/shadow.h: Likewise.
11856         * signal/signal.h: Likewise.
11857         * socket/send.c: Likewise.
11858         * socket/sendto.c: Likewise.
11859         * socket/sys/socket.h: Likewise.
11860         * stdio-common/printf.h: Likewise.
11861         * stdlib/bits/stdlib.h: Likewise.
11862         * stdlib/fmtmsg.h: Likewise.
11863         * stdlib/monetary.h: Likewise.
11864         * stdlib/stdlib.h: Likewise.
11865         * stdlib/ucontext.h: Likewise.
11866         * streams/stropts.h: Likewise.
11867         * string/argz.h: Likewise.
11868         * string/bits/string2.h: Likewise.
11869         * string/string.h: Likewise.
11870         * string/strings.h: Likewise.
11871         * sunrpc/rpc/auth.h: Likewise.
11872         * sunrpc/rpc/auth_des.h: Likewise.
11873         * sunrpc/rpc/clnt.h: Likewise.
11874         * sunrpc/rpc/netdb.h: Likewise.
11875         * sunrpc/rpc/pmap_clnt.h: Likewise.
11876         * sunrpc/rpc/xdr.h: Likewise.
11877         * sysdeps/generic/inttypes.h: Likewise.
11878         * sysdeps/generic/net/if.h: Likewise.
11879         * sysdeps/generic/sys/swap.h: Likewise.
11880         * sysdeps/gnu/net/if.h: Likewise.
11881         * sysdeps/gnu/utmpx.h: Likewise.
11882         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
11883         * sysdeps/i386/i486/bits/string.h: Likewise.
11884         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
11885         * sysdeps/s390/bits/string.h: Likewise.
11886         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
11887         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
11888         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
11889         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
11890         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
11891         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
11892         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
11893         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
11894         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
11895         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
11896         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
11897         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
11898         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
11899         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
11900         * sysdeps/unix/sysv/linux/readv.c: Likewise.
11901         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
11902         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
11903         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
11904         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
11905         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
11906         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
11907         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
11908         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
11909         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
11910         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
11911         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
11912         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
11913         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
11914         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
11915         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
11916         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
11917         * sysvipc/sys/ipc.h: Likewise.
11918         * sysvipc/sys/msg.h: Likewise.
11919         * sysvipc/sys/sem.h: Likewise.
11920         * sysvipc/sys/shm.h: Likewise.
11921         * termios/termios.h: Likewise.
11922         * time/sys/time.h: Likewise.
11923         * time/time.h: Likewise.
11924         * wcsmbs/bits/wchar2.h: Likewise.
11925         * wcsmbs/uchar.h: Likewise.
11926         * wcsmbs/wchar.h: Likewise.
11927         * wctype/wctype.h: Likewise.
11928
11929         [BZ #13551]
11930         * Makeconfig: Remove all but ELF support including AIX support.
11931         * Makerules: Likewise.
11932         * config.h.in: Likewise.
11933         * config.make.in: Likewise.
11934         * configure: Likewise.
11935         * configure.in: Likewise.
11936         * csu/Makefile: Likewise.
11937         * csu/version.c: Likewise.
11938         * debug/Makefile: Likewise.
11939         * dlfcn/Makefile: Likewise.
11940         * elf/Makefile: Likewise.
11941         * extra-lib.mk: Likewise.
11942         * iconv/Makefile: Likewise.
11943         * include/libc-symbols.h: Likewise.
11944         * include/shlib-compat.h: Likewise.
11945         * resolv/Makefile: Likewise.
11946         * resolv/res_libc.c: Likewise.
11947         * rt/Makefile: Likewise.
11948         * sysdeps/i386/asm-syntax.h: Likewise.
11949         * sysdeps/i386/sysdep.h: Likewise.
11950         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
11951         * sysdeps/mach/sysdep.h: Likewise.
11952         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
11953         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
11954         * sysdeps/s390/asm-syntax.h: Likewise.
11955         * sysdeps/s390/s390-32/sysdep.h: Likewise.
11956         * sysdeps/s390/s390-64/sysdep.h: Likewise.
11957         * sysdeps/sh/sysdep.h: Likewise.
11958         * sysdeps/unix/sparc/sysdep.h: Likewise.
11959         * sysdeps/wordsize-32/divdi3.c: Likewise.
11960         * sysdeps/x86_64/sysdep.h: Likewise.
11961
11962         * argp/Versions: Remove _argp_unlock_xxx.
11963
11964         [BZ #13559]
11965         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
11966         * abilist/libBrokenLocale.abilist: Likewise.
11967         * abilist/libanl.abilist: Likewise.
11968         * abilist/libc.abilist: Likewise.
11969         * abilist/libcrypt.abilist: Likewise.
11970         * abilist/libdl.abilist: Likewise.
11971         * abilist/libm.abilist: Likewise.
11972         * abilist/libnsl.abilist: Likewise.
11973         * abilist/libpthread.abilist: Likewise.
11974         * abilist/libresolv.abilist: Likewise.
11975         * abilist/librt.abilist: Likewise.
11976         * abilist/libthread_db.abilist: Likewise.
11977         * abilist/libutil.abilist: Likewise.
11978         * abilist/libnss_db.abilist: New file.
11979
11980         * scripts/abilist.awk: Add support for indirect functions.
11981
11982         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
11983
11984         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
11985
11986         * shlib-versions: Remove entries for ports architectures.
11987
11988         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
11989         files in ports.
11990         * elf/stackguard-macros.h: Remove support for IA-64.
11991         * elf/tst-auditmod1.c: Likewise.
11992         * sysdeps/generic/ldsodefs.h: Likewise.
11993
11994         * sysdeps/unix/sysv/linux/configure.in: Ports should define
11995         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
11996         configure files.
11997
11998         [BZ #13552]
11999         * configure.in: Remove --enable-omitfp support.
12000         * FAQ.in: Adjust.
12001         * config.make.in: Likewise.
12002         * Makeconfig: Likewise.
12003         * manual/install.texi: Likewise.
12004
12005         In case anyone cares, the IA-64 architecture could move to ports.
12006         * sysdeps/ia64/*: Removed.
12007         * sysdeps/unix/sysv/linux/ia64/*: Removed.
12008         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
12009
12010         [BZ #13555]
12011         * configure.in: Remove entries for unsupported architectures.
12012
12013         [BZ #13533]
12014         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
12015         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
12016         routines.
12017         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
12018         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
12019         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
12020         fall back to using wcrtomb.
12021         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
12022         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
12023         renaming.
12024         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
12025         * wcsmbs/tst-c16c32-1.c: New file.
12026
12027         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
12028         local variable.
12029
12030         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
12031
12032         * elf/tst-unique3.cc: Add explicit declaration of gets.
12033         * elf/tst-unique3lib.cc: Likewise.
12034         * elf/tst-unique3lib2.cc: Likewise.
12035         * elf/tst-unique4.cc: Likewise.
12036
12037         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
12038
12039 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
12040
12041         [BZ #13566]
12042         * assert/assert.h (static_assert): Don't define for C++.
12043         * libio/stdio.h (gets): Do declare for C++ <= C++11.
12044         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
12045
12046 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
12047
12048         * iconv/loop.c (single loop): Fix assertion in storing of
12049         remaining bytes.
12050
12051         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
12052
12053 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
12054
12055         * posix/getconf.c: Update copyright year.
12056         * nss/getent.c: Likewise.
12057         * nss/makedb.c: Likewise.
12058         * iconv/iconvconfig.c: Likewise.
12059         * iconv/iconv_prog.c: Likewise.
12060         * elf/ldconfig.c: Likewise.
12061         * elf/pldd.c: Likewise.
12062         * elf/sotruss.ksh: Likewise.
12063         * catgets/gencat.c: Likewise.
12064         * csu/version.c: Likewise.
12065         * elf/ldd.bash.in: Likewise.
12066         * elf/sprof.c (print_version): Likewise.
12067         * locale/programs/locale.c: Likewise.
12068         * locale/programs/localedef.c: Likewise.
12069         * login/programs/pt_chown.c: Likewise.
12070         * nscd/nscd.c (print_version): Likewise.
12071         * debug/xtrace.sh: Likewise.
12072         * malloc/memusage.sh: Likewise.
12073         * malloc/mtrace.pl: Likewise.
12074         * debug/catchsegv.sh: Likewise.
12075
12076 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
12077
12078         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
12079         pure attribute.
12080
12081 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
12082
12083         [BZ #13533]
12084         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
12085         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
12086         transformations.
12087         * iconv/gconv_int.h: Likewise.
12088         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
12089         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
12090         from libc for GLIBC_2.16.
12091         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
12092         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
12093         * wcsmbs/uchar.h: Really define mbstate_t.
12094         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
12095         * wcsmbs/c16rtomb.c: New file.
12096         * wcsmbs/mbrtoc16.c: New file.
12097         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
12098         for C/POSIX locale.
12099         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
12100         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
12101
12102         * wcsmbs/wchar.h: Add missing __restrict.
12103
12104 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
12105
12106         [BZ #13532]
12107         * time/Makefile (routines): Add timespec_get.
12108         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
12109         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
12110         timespec for ISO C11.
12111         * time/timespec_get.c: New file.
12112         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
12113         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
12114
12115         [BZ #13531]
12116         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
12117         * stdlib/stdlib.h: Declare aligned_alloc.
12118         * Versions.def: Add GLIBC_2.16 for libc.
12119         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
12120
12121         [BZ 13527]
12122         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
12123         ISO C11.
12124
12125         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
12126         code.
12127
12128         [BZ #13528]
12129         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
12130
12131         [BZ #13529]
12132         * assert/assert.h (static_assert): Define.
12133
12134         * version.h: Update for 2.16 development version.
12135
12136         [BZ #13526]
12137         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
12138         _ISOC11_SOURCE.
12139
12140         * version.h (RELEASE): Bump for 2.15 release.
12141         * include/features.h (__GLIBC_MINOR__): Bump to 15.
12142
12143         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
12144         Patch by Marek Polacek <mpolacek@redhat.com>.
12145
12146         * bits/byteswap.h: Protect long long constants with __extension__.
12147         * sysdeps/i386/bits/byteswap.h: Likewise.
12148         * sysdeps/ia64/bits/byteswap.h: Likewise.
12149         * sysdeps/s390/bits/byteswap.h: Likewise.
12150         * sysdeps/x86_64/bits/byteswap.h: Likewise.
12151
12152 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12153
12154         [BZ #13540]
12155         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
12156         destination buffer.
12157         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
12158
12159 2011-12-23  Marek Polacek  <polacek@redhat.com>
12160
12161         * elf/dl-addr.c (determine_info): Add inline keyword.
12162         * elf/tst-auditmod4b.c (check_avx): Likewise.
12163         * elf/tst-auditmod6b.c (check_avx): Likewise.
12164         * elf/tst-auditmod6c.c (check_avx): Likewise.
12165         * elf/tst-auditmod7b.c (check_avx): Likewise.
12166
12167 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
12168
12169         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
12170         !__SSE_MATH__.
12171
12172 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12173
12174         [BZ #13540]
12175         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
12176         processing for last bytes.
12177
12178 2011-08-06  Bruno Haible  <bruno@clisp.org>
12179
12180         [BZ #13061]
12181         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
12182         U+0385, not to U+1FEE.
12183
12184         [BZ #13062]
12185         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
12186         entry for U+00A5 U+0301.
12187
12188 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
12189
12190         [BZ #13166]
12191         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
12192         buffer for the output is too small.
12193
12194         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
12195         optimization.
12196
12197         [BZ #13185]
12198         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
12199         SSE flags if possible.
12200
12201 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12202
12203         [BZ #13540]
12204         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
12205         processing for last bytes.
12206
12207 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
12208
12209         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
12210         (syscall-list-default-options, syscall-list-default-condition)
12211         (syscall-list-includes): Define.
12212         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
12213         list of ABIs and options and #if conditions for each ABI.  Do not
12214         handle common syscalls between ABIs specially.
12215         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
12216         Remove.
12217         (syscall-list-variants, syscall-list-32bit-options)
12218         (syscall-list-32bit-condition, syscall-list-64bit-options)
12219         (syscall-list-64bit-condition): Define.
12220         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
12221         (syscall-list-variants, syscall-list-32bit-options)
12222         (syscall-list-32bit-condition, syscall-list-64bit-options)
12223         (syscall-list-64bit-condition): Define.
12224         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
12225         Remove.
12226         (syscall-list-variants, syscall-list-32bit-options)
12227         (syscall-list-32bit-condition, syscall-list-64bit-options)
12228         (syscall-list-64bit-condition): Define.
12229         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
12230         Remove.
12231         (syscall-list-variants, syscall-list-32bit-options)
12232         (syscall-list-32bit-condition, syscall-list-64bit-options)
12233         (syscall-list-64bit-condition): Define.
12234
12235 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
12236
12237         * locale/iso-639.def: Add brx entry.
12238
12239         [BZ #13328]
12240         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
12241         Proposed by Mariusz_Cukr <marcukr@op.pl>.
12242
12243         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
12244         __feraiseexcept_renamed.
12245
12246 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
12247
12248         [BZ #13538]
12249         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
12250         EPOLLET with unsigned values.
12251         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
12252         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
12253
12254         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
12255         to large cancellation.
12256         * math/s_cacoshf.c: Likewise.
12257         * math/s_cacoshl.c: Likewise.
12258
12259 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
12260
12261         [BZ #13305]
12262         [BZ #12786]
12263         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
12264         * math/s_cacoshf.c: Likewise.
12265         * math/s_cacoshl.c: Likewise.
12266
12267 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
12268
12269         [BZ #13439]
12270         * iconv/gconv.h: Define __GCONV_SWAP.
12271         * iconvdata/unicode.c: The swap bit must be stored in __flags.
12272         * iconvdata/utf-16.c: Likewise.
12273         * iconvdata/utf-32.c: Likewise.
12274
12275 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
12276
12277         [BZ #13524]
12278         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
12279         numerator after shifting it by one limb.
12280
12281 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
12282
12283         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
12284         under [__USE_EXTERN_INLINES].
12285
12286 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
12287
12288         [BZ #13446]
12289         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
12290
12291 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12292
12293         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
12294         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
12295         optimized code.
12296         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
12297         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
12298         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
12299         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
12300         for strncasecmp/strncasecmp_l compilation.
12301         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
12302         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
12303
12304 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
12305
12306         [BZ #13484]
12307         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
12308         of __asm__.
12309
12310 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
12311
12312         [BZ #13506]
12313         * time/tzfile.c (__tzfile_read): Check values from file header.
12314
12315 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
12316
12317         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
12318         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
12319         * powerpc/powerpc32/dl-start.S: Likewise.
12320         * powerpc/powerpc32/elf/start.S: Likewise.
12321         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
12322         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
12323         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
12324         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
12325         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
12326         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
12327         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
12328         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
12329         * powerpc/powerpc32/fpu/s_round.S: Likewise.
12330         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
12331         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
12332         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
12333         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
12334         * powerpc/powerpc32/memset.S: Likewise.
12335         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
12336         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
12337         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
12338         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
12339         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
12340         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
12341         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
12342         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
12343         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
12344         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
12345         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
12346         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
12347         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
12348
12349 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12350
12351         * math/libm-test.inc: Added more nearbyint tests.
12352         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
12353         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
12354         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
12355         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
12356
12357 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
12358
12359         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
12360         FD_CLOEXEC.
12361
12362 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12363
12364         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
12365         Add wcscpy-ssse3 wcscpy-c.
12366         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
12367         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
12368         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
12369         * sysdeps/x86_64/wcschr.S: New file.
12370         * sysdeps/x86_64/wcsrchr.S: New file.
12371         * string/test-strcmp.c: Remove checking of wcscmp function for
12372         wrong alignments.
12373         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
12374         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
12375         wcsrchr-sse2 wcsrchr-c.
12376         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
12377         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
12378         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
12379         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
12380         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
12381         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
12382         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
12383         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
12384         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
12385         * wcsmbc/wcschr.c (WCSCHR): New macro.
12386
12387 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12388
12389         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
12390         * wcsmbs/test-wcsrchr.c: New file.
12391         * string/test-strrchr.c: Add wcsrchr support.
12392         (WIDE): New macro.
12393         * wcsmbs/test-wcscpy.c: New file.
12394         * string/test-strcpy.c: Add wcscpy support.
12395         (WIDE): New macro.
12396
12397 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
12398
12399         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
12400         the inner loop.
12401
12402 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
12403
12404         [BZ #13472]
12405         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
12406
12407 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
12408
12409         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
12410         Minor optimizations.
12411
12412         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
12413         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
12414         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
12415
12416 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
12417
12418         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
12419         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
12420         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
12421         for gcc to avoid warnings.
12422         * inet/Makefile (tests): Add tst-checks.
12423         * inet/tst-checks.c: New file.
12424
12425         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
12426         warning.
12427
12428         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
12429         __wmemcmp_sse2.
12430
12431         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
12432         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
12433
12434         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
12435
12436 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
12437
12438         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
12439         problem.
12440
12441         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
12442
12443 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
12444
12445         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
12446         conditional on GCC version.
12447         (__arch_compare_and_exchange_val_8_acq)
12448         (__arch_compare_and_exchange_val_16_acq)
12449         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
12450         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
12451         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
12452
12453 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
12454
12455         * sysdeps/sh/backtrace.c: New file.
12456
12457 2011-12-02  Andreas Schwab  <schwab@redhat.com>
12458
12459         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
12460         parenthesis.
12461
12462 2011-12-01  Andreas Schwab  <schwab@redhat.com>
12463
12464         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
12465         falling back to utime.
12466
12467 2011-11-30  Andreas Schwab  <schwab@redhat.com>
12468
12469         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
12470         expectations for float.
12471
12472 2011-11-29  Andreas Schwab  <schwab@redhat.com>
12473
12474         * locale/weight.h (findidx): Add parameter len.
12475         * locale/weightwc.h (findidx): Likewise.
12476         * posix/fnmatch_loop.c (FCT): Adjust caller.
12477         * posix/regcomp.c (build_equiv_class): Likewise.
12478         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
12479         * posix/regexec.c (check_node_accept_bytes): Likewise.
12480         * string/strcoll_l.c (STRCOLL): Likewise.
12481         * string/strxfrm_l.c (STRXFRM): Likewise.
12482
12483 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
12484
12485         * Makefile.in: Remove CVSOPT handling.
12486         * configure.in: Remove use of AC_REVISION.
12487         * iconvdata/Makefile (distribute): No need to filter out CVS.
12488         * scripts/list-sources.sh: Remove CVS, subversion and monotone
12489         handling.
12490
12491 2011-11-16  Andreas Schwab  <schwab@redhat.com>
12492
12493         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
12494         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
12495         [USE_AS_STRNCASECMP_L]: Likewise.
12496         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
12497         NO_TLS_DIRECT_SEG_REFS.
12498         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
12499         Fix argument offsets for non-PIC.
12500         [USE_AS_STRNCASECMP_L]: Likewise.
12501         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
12502         NO_TLS_DIRECT_SEG_REFS.
12503
12504 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
12505
12506         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
12507         O_CLOEXEC.
12508         * locale/loadlocale.c (_nl_load_locale): Likewise.
12509
12510 2011-11-15  Andreas Schwab  <schwab@redhat.com>
12511
12512         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
12513         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
12514         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
12515         (SYSCALL_GETTIME): Set errno on error.
12516
12517         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
12518         count references to noai6ai_cached.
12519
12520 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
12521
12522         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
12523
12524         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
12525         FD_CLOEXEC for /proc/self/maps.
12526
12527         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
12528         FD_CLOEXEC for /proc/meminfo.
12529
12530         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
12531         gai.conf.
12532
12533         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
12534         FD_CLOEXEC for given file.
12535
12536         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
12537
12538         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
12539         FD_CLOEXEC for /etc/hosts.
12540         (_gethtent): Likewise.
12541
12542         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
12543
12544         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
12545         cancellation and set FD_CLOEXEC for /etc/netgroup.
12546
12547         * nss/nss_files/files-key.c (search): Don't allow cancellation when
12548         reading /etc/publickey.
12549
12550         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
12551         allow cancellation when reading /etc/group.
12552
12553         * nss/nss_files/files-alias.c (internal_setent): Don't allow
12554         cancellation.
12555         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
12556
12557         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
12558         when using data file.
12559
12560         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
12561
12562         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
12563         (write_nis_obj): Use "c" and "e" in fopen.
12564
12565         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
12566
12567         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
12568
12569         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
12570
12571         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
12572
12573         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
12574         locale.alias.
12575
12576         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
12577
12578         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
12579
12580         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
12581
12582         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
12583         file parsing and set FD_CLOEXEC.
12584
12585 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
12586
12587         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
12588
12589 2011-11-14  Andreas Schwab  <schwab@redhat.com>
12590
12591         * malloc/arena.c (arena_get2): Don't call reused_arena when
12592         _int_new_arena failed.
12593
12594 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
12595
12596         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
12597         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
12598         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
12599         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
12600         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
12601         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
12602         to compile strcasecmp and strncasecmp.
12603         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
12604         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
12605
12606         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
12607
12608 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
12609
12610         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
12611         locale-defines.sym to gen-as-const-headers.
12612         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
12613         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
12614         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
12615         to compile strcasecmp and strncasecmp.
12616         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
12617         strcasecmp_l and strncasecmp_l.
12618         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
12619         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
12620         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
12621         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
12622         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
12623         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
12624         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
12625         * sysdeps/i386/i686/multiarch/strncase.S: New file.
12626         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
12627         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
12628         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
12629
12630 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
12631
12632         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
12633         result of SYSDEP_GETTIME_CPU to retval.
12634         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
12635         parameter list to macro.  Remove trailing semicolon.  Adjust users.
12636
12637         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
12638         variable.
12639
12640         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
12641         mantissa words.
12642         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
12643
12644         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
12645         from unused variable.
12646
12647         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
12648         DWARF definitions.
12649         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
12650         for assembling.
12651
12652         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
12653         over namespaces.
12654
12655         * sunrpc/rpc_prot.c (rejected): Fix case value.
12656
12657         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
12658         unsigned long long int to avoid warnings in shift.
12659
12660         * posix/regex_internal.c (re_string_reconstruct): Actually use result
12661         of use of trans.
12662         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
12663         variable tmp.
12664
12665         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
12666         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
12667         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
12668
12669         * nis/nis_table.c (nis_list): Use variable of correct type for
12670         result of __follow_path call.
12671
12672 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12673
12674         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
12675         of math functions ceil, trunc, floor, round, and sqrt, when
12676         avaliable on the platform.
12677         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
12678         name clash.
12679         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
12680         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
12681         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
12682
12683 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
12684
12685         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
12686         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
12687
12688 2011-11-11  Roland McGrath  <roland@hack.frob.com>
12689
12690         * include/unistd.h: Fix __readlink return type.
12691         Reported by Chris Metcalf <cmetcalf@tilera.com>.
12692
12693 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
12694
12695         * stdlib/ucontext.h: Undo last change for makecontext.
12696
12697 2011-11-11  Andreas Schwab  <schwab@redhat.com>
12698
12699         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
12700
12701         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
12702         * setjmp/setjmp.h: Mark functions as non-leaf.
12703         * setjmp/bits/setjmp2.h: Likewise.
12704         * stdlib/ucontext.h: Likewise.
12705
12706 2011-11-10  Andreas Schwab  <schwab@redhat.com>
12707
12708         * malloc/arena.c (_int_new_arena): Don't increment narenas.
12709         (reused_arena): Don't check arena limit.
12710         (arena_get2): Atomically check arena limit.
12711
12712 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
12713
12714         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
12715         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
12716
12717         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
12718         instructions.
12719
12720 2011-11-07  Andreas Schwab  <schwab@redhat.com>
12721
12722         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
12723         handler when locking.
12724
12725         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
12726         Fix size of allocated buffer.
12727
12728 2011-11-04  Andreas Schwab  <schwab@redhat.com>
12729
12730         [BZ #10103]
12731         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
12732         declarations for long double functions.
12733         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
12734
12735         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
12736
12737 2011-11-03  Andreas Schwab  <schwab@redhat.com>
12738
12739         * nscd/nscd.c (main): Don't start AVC thread until credentials are
12740         installed.
12741
12742         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
12743         is disabled.
12744
12745 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12746
12747         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
12748
12749 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
12750
12751         * include/alloca.h (stackinfo_alloca_round): Define.
12752         (extend_alloca): Use it.
12753         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
12754         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
12755         here.
12756
12757         * scripts/check-local-headers.sh: Ignore libaudit.h.
12758
12759         * nscd/Makefile (extra-objs): Make recursively expanded.
12760
12761 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
12762
12763         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
12764         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
12765
12766         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
12767         * posix/tst-rfc3484-2.c: Likewise.
12768         * posix/tst-rfc3484-3.c: Likewise.
12769
12770         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
12771         process_vm_writev.
12772         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
12773         process_vm_writev.
12774         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
12775         process_vm_writev from libc using GLIBC_2.15 version.
12776
12777         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
12778
12779 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
12780
12781         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
12782         stack usage.
12783
12784 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
12785
12786         [BZ #13367]
12787         * nss/getent.c (initgroups_keys): Show error message in case no group
12788         names are given.
12789
12790         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
12791         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
12792         __bump_nl_timestamp.
12793         * nscd/connections (nscd_init): When host database is served open
12794         netlink socket and request notification about configuration changes.
12795         (main_loop_poll): Track netlink file descriptor and bump timestamp
12796         in case data becomes available.
12797         (main_loop_epoll): Likewise.
12798         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
12799         (database_pers_head): Add extra_data fileds.
12800         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
12801         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
12802         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
12803         Adjust caller.
12804         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
12805         in6ai data, call __free_in6ai.
12806         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
12807         Add -DHAVE_NETLINK.
12808         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
12809         interface information.  Reuse previous data if netlink timestamp
12810         is not changed.
12811         (__bump_nl_timestamp): New function.
12812         (__free_in6ai): New function.
12813
12814 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
12815
12816         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
12817         close_not_cancel_no_status here.
12818         (__check_pf): Reorganize code a bit to not call close twice if OOM.
12819
12820 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
12821
12822         [BZ #13276]
12823         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
12824         return value.
12825
12826         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
12827         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
12828         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
12829
12830 2011-07-03  Andreas Jaeger  <aj@suse.de>
12831
12832         [BZ #10709]
12833         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
12834         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
12835         * math/libm-test.inc (sin_test): Add test case.
12836
12837 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
12838
12839         [BZ #13337]
12840         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
12841         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
12842
12843         * elf/chroot_canon.c (chroot_canon): Cleanups.
12844
12845         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
12846
12847         [BZ #13335]
12848         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
12849         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
12850
12851         * string/test-strchr.c: Make usable for strchrnul testing.
12852         * string/test-strchrnul.c: New file.
12853         * string/Makefile (strop-tests): Add strchrnul.
12854
12855         * po/it.po: Update from translation team.
12856         * po/es.po: Likewise.
12857
12858 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
12859
12860         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
12861         the three constants needed as parameters.  Drop the others.
12862         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
12863         __m128i_strloadu_tolower.
12864         Create and initialize variable zero and use it in all the places
12865         where _mm_setzero_si128 was used.
12866
12867         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
12868         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
12869         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
12870         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
12871         anymore.
12872         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
12873         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
12874         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
12875         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
12876         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
12877         __mpranred, __mptan.
12878         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
12879         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
12880         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
12881         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
12882         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
12883         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
12884         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
12885         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
12886         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
12887
12888 2011-10-28  Andreas Schwab  <schwab@redhat.com>
12889
12890         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
12891         redefine if SHARED.
12892         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
12893
12894         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
12895         wide char related routines to wcsmbs subdir.
12896
12897 2011-10-27  Andreas Schwab  <schwab@redhat.com>
12898
12899         [BZ #13344]
12900         * misc/sys/cdefs.h (__THROWNL): Define.
12901         * posix/unistd.h: Use __THREADNL instead of __THREAD
12902         for memory synchronization functions.
12903
12904 2011-10-26  Roland McGrath  <roland@hack.frob.com>
12905
12906         [BZ #13349]
12907         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
12908         doesn't exist.
12909         * manual/stdio.texi (Obstack Streams): Node removed.
12910
12911 2011-10-26  Andreas Schwab  <schwab@redhat.com>
12912
12913         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
12914         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
12915         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
12916
12917         * math/math_private.h (math_force_eval): Allow non-addressable
12918         arguments.
12919         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
12920
12921 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
12922
12923         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
12924         file is not needed.
12925
12926         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
12927         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
12928         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
12929         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
12930         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
12931         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
12932         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
12933         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
12934         Add AVX variants.
12935         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
12936         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
12937         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
12938         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
12939         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
12940         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
12941         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
12942         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
12943         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
12944         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
12945         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
12946         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
12947         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
12948         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
12949         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
12950         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
12951         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
12952         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
12953         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
12954
12955         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
12956         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
12957
12958         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
12959         place.  Use VEX encoding when compiling for AVX.
12960
12961 2011-10-25  Andreas Schwab  <schwab@redhat.com>
12962
12963         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
12964         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
12965
12966         * string/test-strchr.c (do_test): Don't generate NUL bytes.
12967
12968 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
12969
12970         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
12971         useless if() expression.
12972         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
12973         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
12974         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
12975         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
12976         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
12977         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
12978         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
12979         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
12980         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
12981         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12982         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
12983         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
12984         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
12985         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
12986         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
12987         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
12988         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
12989         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
12990         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
12991
12992         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
12993
12994 2011-10-25  Andreas Schwab  <schwab@redhat.com>
12995
12996         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
12997         condition.
12998         * elf/dl-fini.c (_dl_sort_fini): Likewise.
12999
13000 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
13001
13002         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
13003         .text section.  Avoid duplicate constants.
13004         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
13005         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13006         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
13007         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13008         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
13009         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13010         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13011         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
13012         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
13013         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
13014         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
13015         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
13016         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
13017         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
13018         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
13019         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
13020         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
13021         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
13022         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
13023         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13024         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
13025         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
13026         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
13027         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
13028         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
13029         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
13030         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
13031         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
13032         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
13033         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
13034         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
13035         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
13036         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
13037         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
13038         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
13039         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
13040         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
13041         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
13042         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
13043         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
13044         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
13045         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
13046         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
13047         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
13048         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
13049
13050 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
13051
13052         * sysdeps/x86_64/dla.h: Move to ...
13053         * sysdeps/x86_64/fpu/dla.h: ...here.
13054         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
13055         situations.  Use __builtin_fma only for gcc 4.6 and up.
13056
13057         * config.make.in: Add have-mfma4 entry.
13058         * configure.in: Substitute libc_cv_cc_fma4.
13059         * math/Makefile (dbl-only-routines): Add sincostab.
13060         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
13061         Use __sincostab not sincos.
13062         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
13063         name is a macro.
13064         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
13065         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13066         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13067         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
13068         using __copysign.
13069         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
13070         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
13071         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
13072         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
13073         and __inv.
13074         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
13075         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
13076         __copysign.
13077         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
13078         define aliases when function name is a macro.
13079         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
13080         sysdeps/ieee754/dbl-64/sincos.tbl.
13081         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
13082         fma4-enabled routines.
13083         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
13084         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
13085         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
13086         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
13087         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
13088         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
13089         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
13090         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
13091         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
13092         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
13093         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
13094         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
13095         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
13096         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
13097         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
13098         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
13099         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
13100         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
13101         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
13102         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
13103         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
13104         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
13105         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
13106         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
13107         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
13108         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
13109         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
13110         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
13111         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
13112         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
13113
13114         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
13115         rename.
13116         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13117         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13118         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13119         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13120         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13121         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
13122         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
13123         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13124
13125 2011-10-24  Andreas Schwab  <schwab@redhat.com>
13126
13127         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
13128
13129 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
13130
13131         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
13132
13133         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
13134         prediction.
13135         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
13136
13137         * string/strnlen.c: Don't define STRNLEN, reverse logic.
13138         Remove unused variable magic_bits.
13139         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
13140
13141         * string/strnlen.c: Define and use STRNLEN macro.
13142         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
13143         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
13144         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
13145         * wcsmbs/wcslen.c: Define and use WCSLEN.
13146         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
13147         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
13148         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
13149         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
13150         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
13151         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
13152         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
13153
13154 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13155
13156         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
13157         strnlen-sse2-no-bsf.
13158         Rename strlen-no-bsf to strlen-sse2-no-bsf.
13159         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
13160         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
13161         Add strnlen support.
13162         (USE_AS_STRNLEN): New macro.
13163         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
13164         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
13165         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
13166         * sysdeps/x86_64/wcslen.S: New file.
13167
13168 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
13169
13170         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
13171         XMM-moves are used for copying on small sizes.
13172
13173 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13174
13175         * wcsmbs/Makefile (strop-tests): Add wcschr.
13176         * wcsmbs/test-wcschr.c: New file.
13177         * string/test-strchr.c: Update.
13178         Add wcschr support.
13179         (WIDE): New macro.
13180
13181 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13182
13183         * wcsmbs/Makefile (strop-tests): Add wcslen.
13184         * wcsmbs/test-wcslen.c: New file.
13185         * string/test-strlen.c: Update.
13186         Add wcslen support.
13187         (WIDE): New macro.
13188
13189 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
13190
13191         * po/it.po: Update from translation team.
13192
13193 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13194
13195         * sysdeps/x86_64/wcscmp.S: Update.
13196         Fix wrong comparison semantics.
13197         wcscmp shall use signed comparison not unsigned.
13198         Don't use substraction to avoid overflow bug.
13199         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
13200         * wcsmbc/wcscmp.c: Likewise.
13201         * string/test-strcmp.c: Likewise.
13202         Add new tests to check cases with negative values.
13203
13204 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
13205
13206         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
13207         * sysdeps/x86_64/dla.h: ...here.  New file.
13208         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
13209         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13210         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13211         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13212         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13213         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
13214         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
13215         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
13216         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13217
13218 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
13219
13220         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
13221         __ynl_finite aliases.
13222
13223 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
13224
13225         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
13226
13227         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
13228         define DLA_FMA.
13229         [DLA_FMA] (EMULV): Use DLA_FMA.
13230         [DLA_FMA] (MUL12): Use EMULV.
13231         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
13232         that are not needed.
13233         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13234         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13235         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13236         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13237         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
13238         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
13239         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13240
13241 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
13242
13243         * math/s_nan.c: Undef __nan.
13244         * math/s_nanf.c: Undef __nanf.
13245         * math/s_nanl.c: Undef __nanl.
13246         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
13247         "math_private.h".
13248
13249 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
13250
13251         * math/s_catan.c: Add branch predictions.
13252         * math/s_catanf.c: Likewise.
13253         * math/s_catanh.c: Likewise.
13254         * math/s_catanhf.c: Likewise.
13255         * math/s_catanhl.c: Likewise.
13256         * math/s_catanl.c: Likewise.
13257         * math/s_cexp.c: Likewise.
13258         * math/s_cexpf.c: Likewise.
13259         * math/s_cexpl.c: Likewise.
13260         * math/s_clog.c: Likewise.
13261         * math/s_clog10.c: Likewise.
13262         * math/s_clog10f.c: Likewise.
13263         * math/s_clog10l.c: Likewise.
13264         * math/s_clogf.c: Likewise.
13265         * math/s_clogl.c: Likewise.
13266         * math/s_csqrt.c: Likewise.
13267         * math/s_csqrtf.c: Likewise.
13268         * math/s_csqrtl.c: Likewise.
13269         * math/s_ctanf.c: Likewise.
13270         * math/s_ctanh.c: Likewise.
13271         * math/s_ctanhf.c: Likewise.
13272         * math/s_ctanhl.c: Likewise.
13273         * math/s_ctanl.c: Likewise.
13274
13275         * math/math_private.h: Define __nan, __nanf, __nanl.
13276         * math/s_cacosh.c: Include <math_private.h>.
13277         * math/s_cacoshl.c: Likewise.
13278         * math/s_casinh.c: Likewise.
13279         * math/s_casinhf.c: Likewise.
13280         * math/s_casinhl.c: Likewise.
13281         * math/s_ccos.c: Rely entire on ccosh.
13282         * math/s_ccosf.c: Rely entire on ccoshf.
13283         * math/s_ccosl.c: Rely entirely on ccoshl.
13284         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
13285         Remove tests for FE_INVALID.
13286         * math/s_ccoshf.c: Likewise.
13287         * math/s_ccoshl.c: Likewise.
13288         * math/s_csin.c: Likewise.
13289         * math/s_csinf.c: Likewise.
13290         * math/s_csinh.c Likewise.
13291         * math/s_csinhf.c: Likewise.
13292         * math/s_csinhl.c: Likewise.
13293         * math/s_csinl.c: Likewise.
13294         * math/s_ctan.c: Likewise.
13295         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
13296         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
13297         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
13298
13299 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
13300
13301         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
13302         compilation problems.
13303
13304         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
13305         __builtin_expect.
13306
13307 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
13308
13309         * sysdeps/i386/configure.in: Test for -mfma4 option.
13310         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
13311         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
13312         COMMON_CPUID_INDEX_80000001.
13313         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
13314         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
13315         use it if FMA3 is not supported.
13316         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
13317
13318         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
13319         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
13320
13321 2011-10-20  Andreas Schwab  <schwab@redhat.com>
13322
13323         [BZ #12892]
13324         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
13325         it would create a cycle with a link time dependency.
13326
13327 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
13328
13329         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
13330         instruction.
13331         * string/Makefile (strop-tests): Add rawmemchr.
13332         * string/test-rawmemchr.c: New file.
13333
13334         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
13335         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
13336         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
13337         when compiling str{,n}casecmp and when AVX is available.  Hook up
13338         new optimized code in initializers.
13339
13340 2011-10-19  Andreas Schwab  <schwab@redhat.com>
13341
13342         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
13343         __feraiseexcept instead of feraiseexcept.
13344
13345 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
13346
13347         * math/math_private.h: Define defaults for libc_fetestexcept and
13348         libc_feupdateenv.
13349         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
13350         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
13351         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
13352         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
13353         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
13354         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
13355         libc_fetestexcept and libc_feupdateenv.
13356
13357         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
13358         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
13359         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
13360         * sysdeps/x86_64/fpu/math_private.h: Define special version of
13361         libc_feholdexcept_setround.
13362
13363         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
13364         Add s_nearbyint-c and s_nearbyintf-c.
13365         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
13366         nearbyintf inlines.
13367         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
13368         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
13369         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
13370         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
13371
13372         * math/math_private.h: Define defaults for libc_fegetround,
13373         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
13374         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
13375         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
13376         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
13377         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
13378         standard functions.
13379         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
13380         Remove comments and hacks for old compiler versions.
13381         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
13382         libc_fegetround, libc_fesetround, libc_feholdexcept, and
13383         libc_feholdexceptl.
13384
13385 2011-10-18  Andreas Schwab  <schwab@redhat.com>
13386
13387         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
13388         (__feraiseexcept_renamed): Add __NTH.
13389         (feraiseexcept): Add __NTH.  Rename local variables to fix
13390         namespace violations.
13391
13392 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
13393
13394         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
13395
13396         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
13397
13398         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
13399         recently added interfaces.
13400         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
13401
13402         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
13403         about macro parameter expansion.
13404
13405         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
13406         __NO_MATH_INLINES is defined.  Cleanups.
13407
13408         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
13409         and __floorf is target has SSE4.1.
13410         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
13411         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
13412         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
13413         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
13414
13415         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
13416         name.
13417         (floorf): Likewise.
13418
13419         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
13420
13421 2011-10-17  Andreas Schwab  <schwab@redhat.com>
13422
13423         * misc/sys/cdefs.h: Fix last change.
13424
13425         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
13426         database lookup.
13427
13428 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
13429
13430         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
13431
13432         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
13433         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
13434         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
13435         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
13436         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
13437         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
13438         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
13439         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
13440         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
13441         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
13442         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
13443         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
13444         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
13445         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
13446         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
13447         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
13448         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
13449         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
13450         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
13451         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
13452         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
13453         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
13454
13455         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
13456         ceil, ceilf, floor, floorf.
13457
13458         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
13459         Perform IRELATIVE relocations last.
13460
13461         * elf/do-rel.h: Add another parameter nrelative, replacing the
13462         local variable with the same name.  Change name of the function
13463         to end in Rel or Rela (uppercase).
13464         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
13465         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
13466         elf_dynamic_do_##reloc function.
13467
13468 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
13469
13470         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
13471         is sufficient, at least on modern CPUs.
13472
13473         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
13474
13475         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
13476         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
13477
13478         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
13479         __expl_finite.
13480         * math/bits/math-finite.h: Add entries for exp.
13481         * math/e_expl.c: Add __*_finite alias.
13482         * sysdeps/i386/fpu/e_exp.S: Likewise.
13483         * sysdeps/i386/fpu/e_expf.S: Likewise.
13484         * sysdeps/i386/fpu/e_expl.c: Likewise.
13485         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
13486         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
13487         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
13488         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
13489         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
13490         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
13491         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
13492
13493         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
13494         is sufficient, at least on modern CPUs.
13495
13496         * ctype/ctype-info.c (__ctype_init): Define.
13497         * include/ctype.h (__ctype_init): Declare.
13498         (__ctype_b_loc): The variable is always initialized.
13499         (__ctype_toupper_loc): Likewise.
13500         (__ctype_tolower_loc): Likewise.
13501         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
13502         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
13503
13504 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
13505
13506         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
13507
13508         * configure.in: Also look in $cxxmachine/include for C++ system
13509         headers.
13510
13511 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13512
13513         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
13514         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
13515         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
13516         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
13517         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
13518         (USE_AS_WMEMCMP): New macro.
13519         Fixing indents.
13520         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
13521         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
13522         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
13523         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
13524         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
13525         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
13526         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
13527         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
13528         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
13529         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
13530         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
13531         (USE_AS_WMEMCMP): New macro.
13532         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
13533         * sysdeps/string/test-memcmp.c: Update.
13534         Fix simple_wmemcmp.
13535         Add new tests.
13536         * wcsmbs/wmemcmp.c: Update.
13537         (WMEMCMP): New macro.
13538         Fix overflow bug.
13539
13540 2011-10-12  Andreas Jaeger  <aj@suse.de>
13541
13542         [BZ #13268]
13543         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
13544
13545 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
13546
13547         * libio/iofwide.c (do_length): Avoid warning.
13548
13549         * ctype/ctype.h (__isctype_f): Add missing __THROW.
13550
13551 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
13552
13553         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
13554
13555         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
13556         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
13557         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
13558         * sysdeps/i386/i686/fpu/e_log.S: New file.
13559         * sysdeps/i386/i686/fpu/e_logf.S: New file.
13560         * sysdeps/i386/i686/fpu/e_logl.S: New file.
13561
13562         * ctype/ctype.h: Add support for inlined isXXX functions when
13563         compiling C++ code.
13564
13565 2011-10-14  Andreas Schwab  <schwab@redhat.com>
13566
13567         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
13568
13569         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
13570
13571 2011-10-13  Roland McGrath  <roland@hack.frob.com>
13572
13573         [BZ #13291]
13574         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
13575
13576 2011-10-13  Andreas Schwab  <schwab@redhat.com>
13577
13578         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
13579         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
13580         feraiseexcept.
13581
13582         * sysdeps/x86_64/memrchr.S: Check for zero size.
13583
13584         * string/stratcliff.c: Add memrchr tests.
13585
13586 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13587
13588         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
13589         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
13590         rawmemchr-sse2 rawmemchr-sse2-bsf.
13591         * sysdeps/i386/i686/multiarch/memchr.S: New file.
13592         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
13593         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
13594         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
13595         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
13596         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
13597         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
13598         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
13599         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
13600         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
13601         * string/memrchr.c (MEMRCHR): New macro.
13602
13603 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
13604
13605         Add integration with gcc's -ffinite-math-only and optimize wrapper
13606         functions in libm.
13607         * Versions.def: Define GLIBC_2.15 version for libm.
13608         * math/Makefile (headers): Add bits/math-finite.h.
13609         * math/bits/math-finite.h: New file.
13610         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
13611         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
13612         * math/e_acoshl.c: Add __*_finite alias.
13613         * math/e_acosl.c: Likewise.
13614         * math/e_asinl.c: Likewise.
13615         * math/e_atan2l.c: Likewise.
13616         * math/e_atanhl.c: Likewise.
13617         * math/e_coshl.c: Likewise.
13618         * math/e_exp10.c: Likewise.
13619         * math/e_exp10f.c: Likewise.
13620         * math/e_exp10l.c: Likewise.
13621         * math/e_exp2l.c: Likewise.
13622         * math/e_fmodl.c: Likewise.
13623         * math/e_gammal_r.c: Likewise.
13624         * math/e_hypotl.c: Likewise.
13625         * math/e_j0l.c: Likewise.
13626         * math/e_j1l.c: Likewise.
13627         * math/e_jnl.c: Likewise.
13628         * math/e_lgammal_r.c: Likewise.
13629         * math/e_log10l.c: Likewise.
13630         * math/e_log2l.c: Likewise.
13631         * math/e_logl.c: Likewise.
13632         * math/e_powl.c: Likewise.
13633         * math/e_sinhl.c: Likewise.
13634         * math/e_sqrtl.c: Likewise.
13635         * math/e_scalb.c: Completely rewritten and optimized.
13636         * math/e_scalbf.c: Likewise.
13637         * math/e_scalbl.c: Likewise.
13638         * math/w_acos.c: Likewise.
13639         * math/w_acosf.c: Likewise.
13640         * math/w_acosl.c: Likewise.
13641         * math/w_acosh.c: Likewise.
13642         * math/w_acoshf.c: Likewise.
13643         * math/w_acoshl.c: Likewise.
13644         * math/w_asin.c: Likewise.
13645         * math/w_asinf.c: Likewise.
13646         * math/w_asinl.c: Likewise.
13647         * math/w_atan2.c: Likewise.
13648         * math/w_atan2f.c: Likewise.
13649         * math/w_atan2l.c: Likewise.
13650         * math/w_atanh.c: Likewise.
13651         * math/w_atanhf.c: Likewise.
13652         * math/w_atanhl.c: Likewise.
13653         * math/w_exp10.c: Likewise.
13654         * math/w_exp10f.c: Likewise.
13655         * math/w_exp10l.c: Likewise.
13656         * math/w_fmod.c: Likewise.
13657         * math/w_fmodf.c: Likewise.
13658         * math/w_fmodl.c: Likewise.
13659         * math/w_j0.c: Likewise.
13660         * math/w_j0f.c: Likewise.
13661         * math/w_j0l.c: Likewise.
13662         * math/w_j1.c: Likewise.
13663         * math/w_j1f.c: Likewise.
13664         * math/w_j1l.c: Likewise.
13665         * math/w_jn.c: Likewise.
13666         * math/w_jnf.c: Likewise.
13667         * math/w_log.c: Likewise.
13668         * math/w_logf.c: Likewise.
13669         * math/w_logl.c: Likewise.
13670         * math/w_log10.c: Likewise.
13671         * math/w_log10f.c: Likewise.
13672         * math/w_log10l.c: Likewise.
13673         * math/w_log2.c: Likewise.
13674         * math/w_log2f.c: Likewise.
13675         * math/w_log2l.c: Likewise.
13676         * math/w_pow.c: Likewise.
13677         * math/w_powf.c: Likewise.
13678         * math/w_powl.c: Likewise.
13679         * math/w_remainder.c: Likewise.
13680         * math/w_remainderf.c: Likewise.
13681         * math/w_remainderl.c: Likewise.
13682         * math/w_scalb.c: Likewise.
13683         * math/w_scalbf.c: Likewise.
13684         * math/w_scalbl.c: Likewise.
13685         * math/w_sqrt.c: Likewise.
13686         * math/w_sqrtf.c: Likewise.
13687         * math/w_sqrtl.c: Likewise.
13688         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
13689         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
13690         used.
13691         * math/math_private.h: Declare __kernel_standard_f.
13692         * math/w_cosh.c: Remove cruft and optimize a bit.
13693         * math/w_coshf.c: Likewise.
13694         * math/w_coshl.c: Likewise.
13695         * math/w_exp2.c: Likewise.
13696         * math/w_exp2f.c: Likewise.
13697         * math/w_exp2l.c: Likewise.
13698         * math/w_hypot.c: Likewise.
13699         * math/w_hypotf.c: Likewise.
13700         * math/w_hypotl.c: Likewise.
13701         * math/w_lgamma.c: Likewise.
13702         * math/w_lgamma_r.c: Likewise.
13703         * math/w_lgammaf.c: Likewise.
13704         * math/w_lgammaf_r.c: Likewise.
13705         * math/w_lgammal.c: Likewise.
13706         * math/w_lgammal_r.c: Likewise.
13707         * math/w_sinh.c: Likewise.
13708         * math/w_sinhf.c: Likewise.
13709         * math/w_sinhl.c: Likewise.
13710         * math/w_tgamma.c: Likewise.
13711         * math/w_tgammaf.c: Likewise.
13712         * math/w_tgammal.c: Likewise.
13713         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
13714         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
13715         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
13716         Minor optimizations.  Pretty printing.  Remove cruft.
13717         * sysdeps/i386/fpu/e_acosf.S: Likewise.
13718         * sysdeps/i386/fpu/e_acosh.S: Likewise.
13719         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
13720         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
13721         * sysdeps/i386/fpu/e_acosl.c: Likewise.
13722         * sysdeps/i386/fpu/e_asin.S: Likewise.
13723         * sysdeps/i386/fpu/e_asinf.S: Likewise.
13724         * sysdeps/i386/fpu/e_atan2.S: Likewise.
13725         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
13726         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
13727         * sysdeps/i386/fpu/e_atanh.S: Likewise.
13728         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
13729         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
13730         * sysdeps/i386/fpu/e_exp10.S: Likewise.
13731         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
13732         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
13733         * sysdeps/i386/fpu/e_exp2.S: Likewise.
13734         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
13735         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
13736         * sysdeps/i386/fpu/e_fmod.S: Likewise.
13737         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
13738         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
13739         * sysdeps/i386/fpu/e_hypot.S: Likewise.
13740         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
13741         * sysdeps/i386/fpu/e_log.S: Likewise.
13742         * sysdeps/i386/fpu/e_log10.S: Likewise.
13743         * sysdeps/i386/fpu/e_log10f.S: Likewise.
13744         * sysdeps/i386/fpu/e_log10l.S: Likewise.
13745         * sysdeps/i386/fpu/e_log2.S: Likewise.
13746         * sysdeps/i386/fpu/e_log2f.S: Likewise.
13747         * sysdeps/i386/fpu/e_log2l.S: Likewise.
13748         * sysdeps/i386/fpu/e_logf.S: Likewise.
13749         * sysdeps/i386/fpu/e_logl.S: Likewise.
13750         * sysdeps/i386/fpu/e_pow.S: Likewise.
13751         * sysdeps/i386/fpu/e_powf.S: Likewise.
13752         * sysdeps/i386/fpu/e_powl.S: Likewise.
13753         * sysdeps/i386/fpu/e_remainder.S: Likewise.
13754         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
13755         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
13756         * sysdeps/i386/fpu/e_scalb.S: Likewise.
13757         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
13758         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
13759         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
13760         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
13761         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
13762         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
13763         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
13764         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13765         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
13766         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
13767         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
13768         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
13769         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
13770         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
13771         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
13772         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
13773         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
13774         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13775         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
13776         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
13777         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13778         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
13779         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
13780         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
13781         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
13782         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
13783         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
13784         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
13785         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
13786         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
13787         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
13788         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
13789         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
13790         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
13791         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
13792         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
13793         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
13794         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
13795         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
13796         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
13797         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
13798         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
13799         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
13800         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
13801         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
13802         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
13803         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
13804         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
13805         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
13806         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
13807         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
13808         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
13809         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
13810         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
13811         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
13812         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
13813         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
13814         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
13815         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
13816         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
13817         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
13818         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
13819         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
13820         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
13821         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
13822         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
13823         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
13824         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
13825         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
13826         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
13827         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
13828         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
13829         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
13830         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
13831         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
13832         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
13833         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
13834         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
13835         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
13836         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
13837         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
13838         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
13839         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
13840         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
13841         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
13842         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
13843         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
13844         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
13845         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
13846         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
13847         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
13848         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
13849         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
13850         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
13851         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
13852         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
13853         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
13854         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
13855         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
13856         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
13857         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
13858         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
13859         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
13860         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
13861         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
13862         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
13863         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
13864         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
13865         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
13866         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
13867         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
13868         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
13869         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
13870         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
13871         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
13872         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
13873         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
13874         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
13875         (__isnanf): Likewise.
13876         (__isinf_ns): Likewise.
13877         (__isinf_nsf): Likewise.
13878         (__finite): Likewise.
13879         (__finitef): Likewise.
13880         (__ieee754_sqrt): Define as macro.
13881         (__ieee754_sqrtf): Define as macro.
13882         (__ieee754_sqrtl): Define as macro.
13883         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
13884         inlined copy.
13885         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
13886         __FINITE_MATH_ONLY__ consistent.
13887         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
13888
13889 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
13890
13891         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
13892         of rawmemchr.
13893
13894         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
13895
13896 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
13897
13898         * po/ja.po: Update from translation team.
13899
13900 2011-10-08  Roland McGrath  <roland@hack.frob.com>
13901
13902         * locale/programs/locarchive.c (prepare_address_space): New function.
13903         (create_archive, enlarge_archive, open_archive): Use it.
13904
13905         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
13906         inside [SHARED], where it is used.
13907
13908         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
13909
13910         * nss/getent.c (netgroup_keys): Remove unused variable.
13911         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
13912
13913 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
13914
13915         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
13916         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
13917         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
13918         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
13919         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
13920         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
13921         * math/Makefile (libm-calls): Add s_isinf_ns.
13922         * math/divtc3.c: Use __isinf_nsl instead of isinf.
13923         * math/multc3.c: Likewise.
13924         * math/s_casin.c: Likewise.
13925         * math/s_casinf.c: Likewise.
13926         * math/s_casinl.c: Likewise.
13927         * math/s_ccos.c: Likewise.
13928         * math/s_ccosf.c: Likewise.
13929         * math/s_ccosl.c: Likewise.
13930         * math/s_ctan.c: Likewise.
13931         * math/s_ctanf.c: Likewise.
13932         * math/s_ctanh.c: Likewise.
13933         * math/s_ctanhf.c: Likewise.
13934         * math/s_ctanhl.c: Likewise.
13935         * math/s_ctanl.c: Likewise.
13936         * math/w_fmod.c: Likewise.
13937         * math/w_fmodf.c: Likewise.
13938         * math/w_fmodl.c: Likewise.
13939         * math/w_remainder.c: Likewise.
13940         * math/w_remainderf.c: Likewise.
13941         * math/w_remainderl.c: Likewise.
13942         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
13943         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
13944         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
13945         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
13946         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
13947         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
13948         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
13949         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
13950
13951         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
13952         of the number.
13953         * stdio-common/printf_fphex.c: Likewise.
13954         * stdio-common/printf_size.c: Likewise.
13955
13956         * math/e_exp10.c: Include math_private.h using <...> not "...".
13957         * math/e_exp10f.c: Likewise.
13958         * math/e_exp10l.c: Likewise.
13959         * math/e_exp2l.c: Likewise.
13960         * math/e_j0l.c: Likewise.
13961         * math/e_j1l.c: Likewise.
13962         * math/e_jnl.c: Likewise.
13963         * math/e_lgammal_r.c: Likewise.
13964         * math/e_rem_pio2l.c: Likewise.
13965         * math/e_scalb.c: Likewise.
13966         * math/e_scalbf.c: Likewise.
13967         * math/e_scalbl.c: Likewise.
13968         * math/k_cosl.c: Likewise.
13969         * math/k_sinl.c: Likewise.
13970         * math/k_tanl.c: Likewise.
13971         * math/s_cacoshf.c: Likewise.
13972         * math/s_catan.c: Likewise.
13973         * math/s_catanf.c: Likewise.
13974         * math/s_catanh.c: Likewise.
13975         * math/s_catanhf.c: Likewise.
13976         * math/s_catanhl.c: Likewise.
13977         * math/s_catanl.c: Likewise.
13978         * math/s_ccosh.c: Likewise.
13979         * math/s_ccoshf.c: Likewise.
13980         * math/s_ccoshl.c: Likewise.
13981         * math/s_cexp.c: Likewise.
13982         * math/s_cexpf.c: Likewise.
13983         * math/s_cexpl.c: Likewise.
13984         * math/s_clog.c: Likewise.
13985         * math/s_clog10.c: Likewise.
13986         * math/s_clog10f.c: Likewise.
13987         * math/s_clog10l.c: Likewise.
13988         * math/s_clogf.c: Likewise.
13989         * math/s_clogl.c: Likewise.
13990         * math/s_csin.c: Likewise.
13991         * math/s_csinf.c: Likewise.
13992         * math/s_csinh.c: Likewise.
13993         * math/s_csinhf.c: Likewise.
13994         * math/s_csinhl.c: Likewise.
13995         * math/s_csinl.c: Likewise.
13996         * math/s_csqrt.c: Likewise.
13997         * math/s_csqrtf.c: Likewise.
13998         * math/s_csqrtl.c: Likewise.
13999         * math/s_ctan.c: Likewise.
14000         * math/s_ctanf.c: Likewise.
14001         * math/s_ctanh.c: Likewise.
14002         * math/s_ctanhf.c: Likewise.
14003         * math/s_ctanhl.c: Likewise.
14004         * math/s_ctanl.c: Likewise.
14005         * math/s_ldexp.c: Likewise.
14006         * math/s_ldexpf.c: Likewise.
14007         * math/s_ldexpl.c: Likewise.
14008         * math/s_significand.c: Likewise.
14009         * math/s_significandf.c: Likewise.
14010         * math/s_significandl.c: Likewise.
14011         * math/w_acos.c: Likewise.
14012         * math/w_acosf.c: Likewise.
14013         * math/w_acosh.c: Likewise.
14014         * math/w_acoshf.c: Likewise.
14015         * math/w_acoshl.c: Likewise.
14016         * math/w_acosl.c: Likewise.
14017         * math/w_asin.c: Likewise.
14018         * math/w_asinf.c: Likewise.
14019         * math/w_asinl.c: Likewise.
14020         * math/w_atan2.c: Likewise.
14021         * math/w_atan2f.c: Likewise.
14022         * math/w_atan2l.c: Likewise.
14023         * math/w_atanh.c: Likewise.
14024         * math/w_atanhf.c: Likewise.
14025         * math/w_atanhl.c: Likewise.
14026         * math/w_cosh.c: Likewise.
14027         * math/w_coshf.c: Likewise.
14028         * math/w_coshl.c: Likewise.
14029         * math/w_dremf.c: Likewise.
14030         * math/w_exp10.c: Likewise.
14031         * math/w_exp10f.c: Likewise.
14032         * math/w_exp10l.c: Likewise.
14033         * math/w_exp2.c: Likewise.
14034         * math/w_exp2f.c: Likewise.
14035         * math/w_fmod.c: Likewise.
14036         * math/w_fmodf.c: Likewise.
14037         * math/w_fmodl.c: Likewise.
14038         * math/w_hypot.c: Likewise.
14039         * math/w_hypotf.c: Likewise.
14040         * math/w_hypotl.c: Likewise.
14041         * math/w_j0.c: Likewise.
14042         * math/w_j0f.c: Likewise.
14043         * math/w_j0l.c: Likewise.
14044         * math/w_j1.c: Likewise.
14045         * math/w_j1f.c: Likewise.
14046         * math/w_j1l.c: Likewise.
14047         * math/w_jn.c: Likewise.
14048         * math/w_jnf.c: Likewise.
14049         * math/w_jnl.c: Likewise.
14050         * math/w_lgamma.c: Likewise.
14051         * math/w_lgamma_r.c: Likewise.
14052         * math/w_lgammaf.c: Likewise.
14053         * math/w_lgammaf_r.c: Likewise.
14054         * math/w_lgammal.c: Likewise.
14055         * math/w_lgammal_r.c: Likewise.
14056         * math/w_log.c: Likewise.
14057         * math/w_log10.c: Likewise.
14058         * math/w_log10f.c: Likewise.
14059         * math/w_log10l.c: Likewise.
14060         * math/w_log2.c: Likewise.
14061         * math/w_log2f.c: Likewise.
14062         * math/w_log2l.c: Likewise.
14063         * math/w_logf.c: Likewise.
14064         * math/w_logl.c: Likewise.
14065         * math/w_pow.c: Likewise.
14066         * math/w_powf.c: Likewise.
14067         * math/w_powl.c: Likewise.
14068         * math/w_remainder.c: Likewise.
14069         * math/w_remainderf.c: Likewise.
14070         * math/w_remainderl.c: Likewise.
14071         * math/w_scalb.c: Likewise.
14072         * math/w_scalbf.c: Likewise.
14073         * math/w_scalbl.c: Likewise.
14074         * math/w_sinh.c: Likewise.
14075         * math/w_sinhf.c: Likewise.
14076         * math/w_sinhl.c: Likewise.
14077         * math/w_sqrt.c: Likewise.
14078         * math/w_sqrtf.c: Likewise.
14079         * math/w_sqrtl.c: Likewise.
14080         * math/w_tgamma.c: Likewise.
14081         * math/w_tgammaf.c: Likewise.
14082         * math/w_tgammal.c: Likewise.
14083
14084         * po/ja.po: Update from translation team.
14085
14086 2011-09-29  Andreas Jaeger  <aj@suse.de>
14087
14088         [BZ #13179]
14089         * sunrpc/netname.c (netname2host): Fix logic.
14090
14091         [BZ #6779]
14092         [BZ #6783]
14093         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
14094         correctly.
14095         * math/w_remainder.c (__remainder): Likewise.
14096         * math/w_remainderf.c (__remainderf): Likewise.
14097         * math/libm-test.inc (remainder_test): Add test cases.
14098
14099 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14100
14101         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
14102         sdiv_qrnnd.
14103
14104 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
14105
14106         * string/test-memcmp.c: Avoid unncessary #defines.
14107         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
14108
14109 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14110
14111         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
14112         Use new sse2 version for core i3 - i7 as it's faster
14113         than sse42 version.
14114         (bit_Prefer_PMINUB_for_stringop): New.
14115         * sysdeps/x86_64/rawmemchr.S: Update.
14116         Replace with faster SSE2 version.
14117         * sysdeps/x86_64/memrchr.S: New file.
14118         * sysdeps/x86_64/memchr.S: Update.
14119         Replace with faster SSE2 version.
14120
14121 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
14122
14123         * elf/dl-load.c (lose): Add cast to avoid warning.
14124
14125 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
14126
14127         * po/ca.po: Update from translation team.
14128
14129         * inet/getnetgrent_r.c: Hook up nscd.
14130         * nscd/Makefile (routines): Add nscd_netgroup.
14131         (nscd-modules): Add netgroupcache.
14132         (CFLAGS-netgroupcache.c): Define.
14133         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
14134         (cache_search): Add const to second parameter.
14135         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
14136         INNETGR.
14137         (dbs): Add netgrdb entry.
14138         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
14139         (verify_persistent_db): Handle netgrdb.
14140         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
14141         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
14142         GETFDNETGR.
14143         (netgroup_response_header): Define.
14144         (innetgroup_response_header): Define.
14145         (datahead): Add netgroup_response_header and innetgroup_response_header
14146         elements.
14147         * nscd/nscd.conf: Add entries for netgroup cache.
14148         * nscd/nscd.h (dbtype): Add netgrdb.
14149         (_PATH_NSCD_NETGROUP_DB): Define.
14150         (netgroup_iov_disabled): Declare.
14151         (xmalloc, xcalloc, xrealloc): Move declarations here.
14152         (cache_search): Adjust prototype.
14153         Add netgroup-related prototypes.
14154         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
14155         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
14156         (__nscd_innetgr): Declare.
14157         * nscd/selinux.c (perms): Use access_vector_t as element type and
14158         add netgroup-related initializers.
14159         * nscd/netgroupcache.c: New file.
14160         * nscd/nscd_netgroup.c: New file.
14161         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
14162         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
14163         For four parameters use innetgr.
14164         * nss/nss_files/files-init.c: Add definition and callback for netgr.
14165         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
14166         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
14167         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
14168
14169         * nscd/connections.c (register_traced_file): Don't register file
14170         for disabled databases.
14171
14172 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
14173
14174         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
14175
14176         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
14177         from tree and freeing node.
14178
14179 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
14180
14181         * nss/nsswitch.c (__nss_database_lookup): Handle
14182         nss_parse_service_list out of memory case.
14183
14184 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
14185
14186         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
14187         out of memory case.
14188
14189 2011-10-04  Andreas Schwab  <schwab@redhat.com>
14190
14191         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
14192         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
14193         pass it down.
14194         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
14195         elf_machine_rela, elf_machine_lazy_rel.
14196         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
14197         (ELF_DYNAMIC_DO_REL): Likewise.
14198         (ELF_DYNAMIC_DO_RELA): Likewise.
14199         (ELF_DYNAMIC_RELOCATE): Likewise.
14200         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
14201         to ELF_DYNAMIC_DO_REL.
14202         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
14203         (dl_main): In trace mode always set __RTLD_NOIFUNC.
14204         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
14205         elf_machine_rela.
14206         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
14207         skip_ifunc, don't call ifunc function if non-zero.
14208         (elf_machine_rela): Likewise.
14209         (elf_machine_lazy_rel): Likewise.
14210         (elf_machine_lazy_rela): Likewise.
14211         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
14212         (elf_machine_lazy_rel): Likewise.
14213         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
14214         Likewise.
14215         (elf_machine_lazy_rel): Likewise.
14216         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
14217         Likewise.
14218         (elf_machine_lazy_rel): Likewise.
14219         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
14220         (elf_machine_lazy_rel): Likewise.
14221         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
14222         (elf_machine_lazy_rel): Likewise.
14223         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
14224         (elf_machine_lazy_rel): Likewise.
14225         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
14226         (elf_machine_lazy_rel): Likewise.
14227         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
14228         (elf_machine_lazy_rel): Likewise.
14229         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
14230         (elf_machine_lazy_rel): Likewise.
14231
14232 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
14233
14234         * nss/nss_files/files-init.c (_nss_files_init): Use static
14235         initialization for all the *_traced_file variables.
14236
14237 2011-09-28  Andreas Schwab  <schwab@redhat.com>
14238
14239         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
14240
14241 2011-09-27  Roland McGrath  <roland@hack.frob.com>
14242
14243         [BZ #13226]
14244         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
14245
14246 2011-09-27  Andreas Schwab  <schwab@redhat.com>
14247
14248         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
14249         Reread the line before reparsing it.
14250
14251 2011-09-26  Andreas Schwab  <schwab@redhat.com>
14252
14253         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
14254
14255 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
14256             Maxim Kuvyrkov  <maxim@codesourcery.com>
14257             Joseph Myers  <joseph@codesourcery.com>
14258
14259         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
14260         if needed for __stack_chk_guard.
14261
14262 2011-09-19  Roland McGrath  <roland@hack.frob.com>
14263
14264         * sysdeps/posix/spawni.c (script_execute): Always define it.
14265         It will be optimized away if unused.
14266         (maybe_script_execute): New function.
14267         (__spawni): Call it.
14268
14269         * Makerules: Don't include tls.make.
14270         (config-tls): Always set to thread.
14271         * tls.make.c: File removed.
14272
14273 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
14274
14275         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
14276         * config.make.in (CPPFLAGS-config): New substituted variable.
14277
14278 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
14279
14280         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
14281
14282         [BZ #13192]
14283         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
14284         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
14285
14286 2011-09-15  Roland McGrath  <roland@hack.frob.com>
14287
14288         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
14289         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
14290         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
14291         (CALL_FAIL): Likewise.
14292         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
14293         (CALL_FAIL): Macro removed.
14294         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
14295
14296 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
14297
14298         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
14299         for __FINITE_MATH_ONLY__ == 1.
14300
14301 2011-09-15  Andreas Schwab  <schwab@redhat.com>
14302
14303         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
14304         __ieee754_sqrt instead of sqrt.
14305         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
14306         __ieee754_sqrtf instead of sqrtf.
14307         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
14308         __floorf instead of floorf.
14309         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
14310         __floorf, __truncf instead of floorf, truncf.
14311
14312 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
14313
14314         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
14315
14316         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
14317         __extern_always_inline.
14318         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
14319         32-bit.
14320
14321 2011-09-14  Andreas Schwab  <schwab@redhat.com>
14322
14323         * elf/rtld.c (dl_main): Also relocate in dependency order when
14324         doing symbol dependency testing.
14325
14326 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
14327
14328         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
14329         Always define `refsym'.
14330
14331 2011-09-13  Andreas Schwab  <schwab@redhat.com>
14332
14333         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
14334         (__FD_ELT): Renamed from __FDELT.
14335         * misc/bits/select2.h (__FD_ELT): Likewise.
14336         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
14337         __FD_MASK instead of __FDELT, __FDMASK.
14338         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
14339         Likewise.
14340         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
14341         Likewise.
14342
14343         * elf/Makefile (gen-ldd): Fix pattern.
14344
14345         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
14346         (init_tls): Likewise.
14347
14348 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
14349
14350         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
14351
14352 2011-09-12  Andreas Schwab  <schwab@redhat.com>
14353
14354         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
14355         `struct cmsghdr *' instead of `void *'.
14356         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
14357         Likewise.
14358
14359 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
14360
14361         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
14362         if non-absolute.
14363         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
14364         ldd_rewrite_script.
14365
14366 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
14367
14368         * configure.in: Remove --with-tls option.
14369         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
14370         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
14371         out in case it is missing.
14372         * sysdeps/ia64/elf/configure.in: Likewise.
14373         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
14374         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
14375         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
14376         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
14377         * sysdeps/sh/elf/configure.in: Likewise.
14378         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
14379         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
14380         * sysdeps/x86_64/elf/configure.in: Likewise.
14381         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
14382         * sysdeps/mach/hurd/tls.h: Likewise.
14383
14384         [BZ #13067]
14385         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
14386
14387         [BZ #13090]
14388         * configure.in: Fix use of AC_INIT.
14389
14390         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
14391
14392 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
14393
14394         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
14395         __set_errno.
14396         * malloc/hooks.c: Likewise.
14397
14398         [BZ #11929]
14399         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
14400         variables statically.
14401         (narenas): Initialize.
14402         (list_lock): Initialize.
14403         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
14404         initializtion of main_arena and list_lock.  Small cleanups.
14405         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
14406         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
14407         Add initializers to main_arena and mp_.
14408         (malloc_state): Remove pagesize member.  Change all users to use
14409         GLRO(dl_pagesize).
14410
14411         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
14412         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
14413         is always initialized.
14414
14415         * malloc/malloc.c: Removed unused configurations and dead code.
14416         * malloc/arena.c: Likewise.
14417         * malloc/hooks.c: Likewise.
14418         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
14419
14420         * include/tls.h: Removed.  USE___THREAD must always be defined.
14421         * bits/libc-tsd.h: Don't handle !USE___THREAD.
14422         * elf/dl-libc.c: Likewise.
14423         * elf/dl-tsd.c: Likewise.
14424         * include/errno.h: Likewise.
14425         * include/netdb.h: Likewise.
14426         * include/resolv.h: Likewise.
14427         * inet/herrno-loc.c: Likewise.
14428         * inet/herrno.c: Likewise.
14429         * malloc/arena.c: Likewise.
14430         * malloc/hooks.c: Likewise.
14431         * malloc/malloc.c: Likewise.
14432         * resolv/res-state.c: Likewise.
14433         * resolv/res_libc.c: Likewise.
14434         * sysdeps/i386/dl-machine.h: Likewise.
14435         * sysdeps/ia64/dl-machine.h: Likewise.
14436         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
14437         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
14438         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
14439         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
14440         * sysdeps/sh/dl-machine.h: Likewise.
14441         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
14442         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
14443         * sysdeps/unix/i386/sysdep.S: Likewise.
14444         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
14445         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
14446         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
14447         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
14448         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
14449         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
14450         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
14451         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
14452         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
14453         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
14454         * sysdeps/unix/x86_64/sysdep.S: Likewise.
14455         * sysdeps/x86_64/dl-machine.h: Likewise.
14456         * tls.make.c: Likewise.
14457
14458         * configure.in: Remove --with-__thread option.  Make tests for
14459         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
14460         tls_model attribute fail if no support is available.  Remove
14461         USE_IN_LIBIO.
14462         * Makeconfig: Adjust for dropped configure option.  All features are
14463         now mandatory.
14464         * Makerules: Likewise.
14465         * Versions.def: Likewise.
14466         * argp/argp-fmtstream.c: Likewise.
14467         * argp/argp-fmtstream.h: Likewise.
14468         * argp/argp-help.c: Likewise.
14469         * assert/assert.c: Likewise.
14470         * config.h.in: Likewise.
14471         * config.make.in: Likewise.
14472         * configure: Likewise.
14473         * configure.in: Likewise.
14474         * csu/Versions: Likewise.
14475         * csu/init.c: Likewise.
14476         * elf/tst-audit2.c: Likewise.
14477         * elf/tst-tls10.c: Likewise.
14478         * elf/tst-tls10.h: Likewise.
14479         * elf/tst-tls11.c: Likewise.
14480         * elf/tst-tls12.c: Likewise.
14481         * elf/tst-tls14.c: Likewise.
14482         * elf/tst-tlsmod11.c: Likewise.
14483         * elf/tst-tlsmod12.c: Likewise.
14484         * elf/tst-tlsmod13.c: Likewise.
14485         * elf/tst-tlsmod13a.c: Likewise.
14486         * elf/tst-tlsmod14a.c: Likewise.
14487         * elf/tst-tlsmod15b.c: Likewise.
14488         * elf/tst-tlsmod16a.c: Likewise.
14489         * elf/tst-tlsmod16b.c: Likewise.
14490         * elf/tst-tlsmod7.c: Likewise.
14491         * elf/tst-tlsmod8.c: Likewise.
14492         * elf/tst-tlsmod9.c: Likewise.
14493         * gmon/gmon.c: Likewise.
14494         * grp/fgetgrent_r.c: Likewise.
14495         * grp/putgrent.c: Likewise.
14496         * hurd/fopenport.c: Likewise.
14497         * include/libc-symbols.h: Likewise.
14498         * include/tls.h: Likewise.
14499         * intl/gettextP.h: Likewise.
14500         * intl/loadinfo.h: Likewise.
14501         * locale/global-locale.c: Likewise.
14502         * locale/localeinfo.h: Likewise.
14503         * mach/devstream.c: Likewise.
14504         * malloc/arena.c: Likewise.
14505         * malloc/set-freeres.c: Likewise.
14506         * misc/err.c: Likewise.
14507         * misc/getttyent.c: Likewise.
14508         * misc/mntent_r.c: Likewise.
14509         * posix/getopt.c: Likewise.
14510         * posix/wordexp.c: Likewise.
14511         * pwd/fgetpwent_r.c: Likewise.
14512         * resolv/Versions: Likewise.
14513         * resolv/res_hconf.c: Likewise.
14514         * shadow/fgetspent_r.c: Likewise.
14515         * shadow/putspent.c: Likewise.
14516         * stdio-common/printf_fphex.c: Likewise.
14517         * stdio-common/tmpfile.c: Likewise.
14518         * stdlib/abort.c: Likewise.
14519         * stdlib/fmtmsg.c: Likewise.
14520         * sunrpc/auth_unix.c: Likewise.
14521         * sunrpc/clnt_perr.c: Likewise.
14522         * sunrpc/clnt_tcp.c: Likewise.
14523         * sunrpc/clnt_udp.c: Likewise.
14524         * sunrpc/clnt_unix.c: Likewise.
14525         * sunrpc/openchild.c: Likewise.
14526         * sunrpc/svc_simple.c: Likewise.
14527         * sunrpc/svc_tcp.c: Likewise.
14528         * sunrpc/svc_udp.c: Likewise.
14529         * sunrpc/svc_unix.c: Likewise.
14530         * sunrpc/xdr.c: Likewise.
14531         * sunrpc/xdr_array.c: Likewise.
14532         * sunrpc/xdr_rec.c: Likewise.
14533         * sunrpc/xdr_ref.c: Likewise.
14534         * sunrpc/xdr_stdio.c: Likewise.
14535
14536 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
14537
14538         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
14539
14540 2011-07-03  Andreas Jaeger  <aj@suse.de>
14541
14542         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
14543         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
14544         regenerate with gen-libm-tests.pl.
14545
14546 2010-05-12  Petr Baudis  <pasky@suse.cz>
14547
14548         [BZ #11589]
14549         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
14550         around j0() zero points by switching to j1().
14551         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
14552         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
14553         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
14554         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
14555
14556 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
14557
14558         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
14559         instead of 0.
14560         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
14561         instead of 0.                              .
14562         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
14563         Patch in part by Pavel Roskin <proski@gnu.org>.
14564
14565         [BZ #13138]
14566         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
14567         realloc.
14568         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
14569         Free memory block if necessary.
14570
14571         [BZ #12847]
14572         * libio/genops.c (INTDEF): For string streams the _lock pointer can
14573         be NULL.  Don't lock in this case.
14574
14575 2011-09-09  Roland McGrath  <roland@hack.frob.com>
14576
14577         * elf/elf.h (ELFOSABI_GNU): New macro.
14578         (ELFOSABI_LINUX): Define to that.
14579
14580 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
14581
14582         * string/strncat.c (strncat): Undef the symbol in case it has been
14583         defined in bits/string.h.
14584
14585 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
14586
14587         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
14588
14589         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
14590         link map.
14591
14592 2011-08-17  Andreas Jaeger  <aj@suse.de>
14593
14594         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
14595
14596 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
14597             Ian Lance Taylor  <iant@google.com>
14598
14599         * math/libm-test.inc (lround_test): New testcase.
14600         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
14601
14602 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
14603
14604         * Makefile: Remove support for automatic cvs check-ins.
14605         * Makerules: Likewise.
14606         * config.make.in: Likewise.
14607         * configure.in: Likewise.
14608         * intl/Makefile: Likewise.
14609         * locale/Makefile: Likewise.
14610         * po/Makefile: Likewise.
14611         * posix/Makefile: Likewise.
14612         * sysdeps/gnu/Makefile: Likewise.
14613         * sysdeps/mach/hurd/Makefile: Likewise.
14614         * sysdeps/sparc/sparc32/Makefile: Likewise.
14615
14616         [BZ #13118]
14617         * posix/Makefile (bug-regex32-ENV): Define.
14618         Patch by John Stanley <jpsinthemix@verizon.net>.
14619
14620         * misc/Makefile (headers): Add bits/select2.h.
14621         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
14622         * misc/bits/select2.h: New file.
14623         * include/bits/select2.h: New file.
14624         * debug/Makefile (routines): Add fdelt_chk.
14625         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
14626         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
14627         FD_ISSET.
14628         * debug/fdelt_chk.c: New file.
14629
14630         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
14631         * wcsmbs/test-wmemcmp.c: Likewise.
14632         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
14633         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
14634
14635 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14636
14637         * string/Makefile (strop-tests): Add memcmp.
14638         * string/test-wmemcmp.c: New file.
14639         * string/test-memcmp.c: Add wmemcmp support.
14640
14641 2011-09-08  Roland McGrath  <roland@hack.frob.com>
14642
14643         [BZ #13153]
14644         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
14645         2011-07-19 change.
14646
14647         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
14648         garbage value in a __mach_port_mod_refs call in the cases of the
14649         task-self and thread-self ports.
14650
14651 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14652
14653         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
14654
14655 2011-09-08  Andreas Schwab  <schwab@redhat.com>
14656
14657         * elf/dl-load.c (lose): Check for non-null L.
14658
14659 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
14660
14661         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
14662
14663         * elf/dl-libc.c (dlerror_run): Pass back error code from
14664         dl_catch_error.
14665
14666         [BZ #13123]
14667         * elf/dl-load.c (lose): Free l_origin if it is valid.
14668
14669         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
14670         names.
14671         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
14672         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
14673         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
14674         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
14675         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
14676         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
14677
14678 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14679
14680         * sysdeps/powerpc/fpu/e_hypot.c: New file.
14681         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
14682         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
14683         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
14684         * sysdeps/powerpc/fpu/k_cosf.c: New file.
14685         * sysdeps/powerpc/fpu/k_sinf.c: New file.
14686         * sysdeps/powerpc/fpu/s_cosf.c: New file.
14687         * sysdeps/powerpc/fpu/s_sinf.c: New file.
14688         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
14689         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
14690
14691 2011-08-15  Alan Modra  <amodra@gmail.com>
14692
14693         [BZ #13092]
14694         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
14695         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
14696         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
14697         ppc_mcount to static-only-routines.
14698         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
14699         __mcount_internal.
14700         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
14701         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
14702
14703 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
14704
14705         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
14706         for finite and infinity parameters.
14707
14708 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
14709
14710         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
14711         and add nop instructions for throughput optimization.
14712         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
14713
14714 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
14715
14716         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
14717         aligned copy for power7 with vector-scalar instructions.
14718         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
14719
14720 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
14721
14722         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
14723         AVX check.
14724
14725 2011-09-07  Andreas Schwab  <schwab@redhat.com>
14726
14727         [BZ #13144]
14728         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
14729         last change.
14730
14731 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
14732
14733         * sysdeps/unix/sysv/linux/x86_64/init-first.c
14734         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
14735         syscall wrapper around clock_gettime in __vdso_clock_gettime.
14736         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
14737         clock_gettime.
14738
14739 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
14740
14741         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
14742         Forgot to demangle the pointer.
14743
14744         * sysdeps/i386/sysdep.h: Define atom_text_section.
14745         * sysdeps/x86_64/sysdep.h: Likewise.
14746         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
14747         section with atom_text_section.
14748         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
14749         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
14750         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
14751         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
14752         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
14753
14754         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
14755         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
14756         already be defined.  Change to take two parameters and don't assign
14757         result to variable.  Adjust all users.
14758         Define INTERNAL_GETTIME if not already defined.
14759         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
14760         call.
14761         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
14762         HAVE_CLOCK_GETTIME_VSYSCALL.
14763         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
14764
14765         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
14766         gettimeofday vsyscall, just use time.
14767
14768 2011-09-06  Andreas Schwab  <schwab@redhat.com>
14769
14770         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
14771         <errno.h>.
14772
14773 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
14774
14775         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
14776         syscall on x86-64.
14777         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
14778         syscall.
14779         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
14780         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
14781         syscall if possible.
14782
14783 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
14784
14785         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
14786         e_ident.  Don't pass to find_mapsXX.
14787         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
14788
14789 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
14790
14791         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
14792         strchr-sse2-no-bsf strrchr-sse2-no-bsf
14793         * sysdeps/x86_64/multiarch/strchr.S: Update.
14794         Check bit_slow_BSF bit.
14795         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
14796         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
14797         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
14798
14799 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
14800
14801         [BZ #13134]
14802         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
14803         before glibc 2.15.
14804         (tryshell): Define.
14805         (__spawni): Change last parameter to be flag.  Test
14806         SPAWN_XFLAGS_USE_PATH flag to use path or not.
14807         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
14808         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
14809         * posix/spawni.c: Likewise.
14810         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
14811         * posix/spawnp.c: Likewise.  Change normal version to use
14812         SPAWN_XFLAGS_USE_PATH.
14813         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
14814         SPAWN_XFLAGS_TRY_SHELL.
14815
14816         [BZ #13150]
14817         * posix/glob.h: Remove gcc 1.x support.
14818
14819         [BZ #13068]
14820         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
14821
14822 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
14823
14824         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
14825         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
14826         strrchr-sse2-bsf
14827         * sysdeps/i386/i686/multiarch/strchr.S: New file.
14828         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
14829         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
14830         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
14831         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
14832         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
14833
14834 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14835
14836         * sysdeps/x86_64/wcscmp.S: New file.
14837
14838         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
14839         wcscmp-c wcscmp-sse2
14840         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
14841         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
14842         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
14843         * wcsmbs/wcscmp.c: Allow renaming.
14844
14845 2011-09-05  David S. Miller  <davem@davemloft.net>
14846
14847         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
14848         stack slot, rather than the struct return pointer slot.
14849         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
14850         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
14851         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
14852         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
14853
14854 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
14855
14856         * po/ja.po: Update from translation team.
14857
14858         [BZ #13144]
14859         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
14860         kernel in 64-bit binaries.
14861
14862 2011-09-01  David S. Miller  <davem@davemloft.net>
14863
14864         * elf/elf.h (HWCAP_SPARC_*): Move to..
14865         * sysdeps/sparc/sysdep.h: this new file and add new values.
14866         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
14867         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
14868         _DL_HWCAP_COUNT to 24.
14869         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
14870         entries.
14871         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
14872         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
14873         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
14874         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
14875         instead of magic constants.
14876         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
14877
14878 2011-08-31  David S. Miller  <davem@davemloft.net>
14879
14880         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
14881         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
14882         Reimplement to do errno handling inline.
14883         (SYSCALL_ERROR_HANDLER): New macro.
14884         (__SYSCALL_STRING): Do not do errno handling in asm.
14885         (__CLONE_SYSCALL_STRING): Delete.
14886         (__INTERNAL_SYSCALL_STRING): Delete.
14887         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
14888         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
14889         (PSEUDO): Reimplement to do errno handling inline.
14890         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
14891         (SYSCALL_ERROR_HANDLER): New macro.
14892         (__SYSCALL_STRING): Do not do errno handling in asm.
14893         (__CLONE_SYSCALL_STRING): Delete.
14894         (__INTERNAL_SYSCALL_STRING): Delete.
14895         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
14896         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
14897         i386.
14898         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
14899         (inline_syscall*): Add 'err' argument.
14900         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
14901         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
14902         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
14903         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
14904
14905         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
14906         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
14907
14908 2011-08-30  Andreas Schwab  <schwab@redhat.com>
14909
14910         * elf/rtld.c (dl_main): Relocate objects in dependency order.
14911
14912 2011-08-29  Jiri Olsa <jolsa@redhat.com>
14913
14914         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
14915         directive.
14916
14917 2011-08-24  David S. Miller  <davem@davemloft.net>
14918
14919         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
14920
14921 2011-08-24  Andreas Schwab  <schwab@redhat.com>
14922
14923         * elf/Makefile: Add rules to build and run unload8 test.
14924         * elf/unload8.c: New file.
14925         * elf/unload8mod1.c: New file.
14926         * elf/unload8mod1x.c: New file.
14927         * elf/unload8mod2.c: New file.
14928         * elf/unload8mod3.c: New file.
14929
14930         * elf/dl-close.c (_dl_close_worker): Reset private search list if
14931         it wasn't used.
14932
14933 2011-08-23  David S. Miller  <davem@davemloft.net>
14934
14935         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
14936         subtract stack bias.
14937         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
14938         %sp not %fp in calculations.
14939         (_JMPBUF_UNWINDS_ADJ): Likewise.
14940
14941         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
14942         (aio_suspend): Call it to force an exception region around the
14943         AIO_MISC_WAIT() invocation.
14944
14945 2011-08-23  Andreas Schwab  <schwab@redhat.com>
14946
14947         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
14948         backslash.
14949
14950 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
14951
14952         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
14953         protection macro.
14954         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
14955         and <dl-machine.h>.
14956         (Elf64_FuncDesc): Remove.
14957
14958 2011-08-22  David S. Miller  <davem@davemloft.net>
14959
14960         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
14961         sigaltstack check, add missing cfi directives.
14962         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
14963         missing cfi directives, and sigaltstack handling.
14964
14965 2011-08-16  Andreas Schwab  <schwab@redhat.com>
14966
14967         [BZ #11724]
14968         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
14969         object is seen twice.
14970         * elf/dl-fini.c (_dl_sort_fini): Likewise.
14971
14972         * elf/Makefile (distribute): Add tst-initorder2.c.
14973         (tests): Add tst-initorder2.
14974         (modules-names): Add tst-initorder2a tst-initorder2b
14975         tst-initorder2c tst-initorder2d.  Add rules to build them.
14976         ($(objpfx)tst-initorder2.out): New rule.
14977         * elf/tst-initorder2.c: New file.
14978         * elf/tst-initorder2.exp: New file.
14979
14980 2011-08-22  Andreas Schwab  <schwab@redhat.com>
14981
14982         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
14983
14984         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
14985         dependencies back to end of function.
14986
14987         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
14988         $(elfobjdir)/ld.so.
14989
14990 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
14991
14992         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
14993         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
14994         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
14995         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
14996         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
14997         of __vdso_gettimeofday.
14998         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
14999         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
15000         attribute_hidden.
15001         (_libc_vdso_platform_setup): Remove initialization of
15002         __vdso_gettimeofday and __vdso_time.
15003
15004 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
15005
15006         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
15007         and fgetc_unlocked.
15008         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
15009         getc_unlocked.
15010
15011         * elf/dl-open.c (add_to_global): Report additions to the global scope
15012         for LD_DEBUG=scopes.
15013         (dl_open_worker): Also print scope of newly loaded dependencies.
15014         (_dl_show_scope): Indicate if there is no scope.
15015
15016         [BZ #13114]
15017         * stdio-common/Makefile (tests): Add bug24.
15018         * stdio-common/bug24.c: New file.
15019
15020 2011-08-19  Andreas Jaeger  <aj@suse.de>
15021
15022         [BZ #13114]
15023         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
15024         non-existant file when using close-on-exec mode.
15025
15026 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
15027
15028         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
15029         the very first instruction.
15030
15031         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
15032         the CFI state in the end.
15033         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
15034         inclusion of dl-trampoline.h.
15035         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
15036
15037 2011-08-19  Andreas Schwab  <schwab@redhat.com>
15038
15039         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
15040         expectations for long double.
15041
15042         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
15043         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
15044
15045 2011-08-14  David S. Miller  <davem@davemloft.net>
15046
15047         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
15048         artificual limit depends upon the system page size.
15049
15050 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
15051
15052         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
15053         * resolv/Makefile: Define CFLAGS-libresolv.
15054
15055 2011-08-17  Andreas Schwab  <schwab@redhat.com>
15056
15057         * nss/makedb.c (compute_tables): Make variables used in nested
15058         function static.
15059
15060 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
15061
15062         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
15063         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
15064         if buffer was too small.
15065
15066         * elf/pldd.c (main): Attach to all threads in the process.
15067         Rewrite /proc handling to use *at functions.
15068
15069 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
15070
15071         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
15072         specifies first scope to show.
15073         (dl_open_worker): Update callers.  Move printing scope of new
15074         object to before the relocation.
15075         * elf/rtld.c (dl_main): Update _dl_show_scope call.
15076         * sysdeps/generic/ldsodefs.h: Update declaration.
15077
15078         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
15079         string for the scope number.
15080
15081 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
15082
15083         * nscd/servicescache.c (cache_addserv): Make sure written is always
15084         initialized.
15085
15086 2011-08-14  Roland McGrath  <roland@hack.frob.com>
15087
15088         * sysdeps/i386/i486/bits/atomic.h
15089         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
15090         statement expression, so as to suppress "set but not used" warning.
15091         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
15092
15093         * string/strncat.c (STRNCAT): Use prototype definition.
15094
15095         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
15096         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
15097         -Iprograms here.
15098         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
15099         (localedef-modules): Add localedef.
15100         (locale-modules): Add locale.
15101
15102         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
15103         * elf/rtld.c (dl_main): Invert order of assignment in last change,
15104         to avoid a warning.
15105
15106 2011-08-14  David S. Miller  <davem@davemloft.net>
15107
15108         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
15109         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
15110
15111 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
15112
15113         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
15114         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
15115         * elf/rtld.c (dl_main): Set l_name of vDSO.
15116         Call _dl_show_scope when DL_DEBUG_SCOPES.
15117         (process_dl_debug): Recognize scopes flag and also set it for all.
15118         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
15119         Declare _dl_show_scope.
15120
15121         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
15122         (do_dlopen): Pass caller_dlopen to dl_open.
15123         (__libc_dlopen_mode): Initialize caller_dlopen.
15124
15125         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
15126         of libc.  Make tolower call locale-independent.  Optimize a bit by
15127         using isdigit instead of isalnum.
15128         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
15129
15130 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
15131
15132         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
15133         was a dependency or dynamically loaded.
15134
15135 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
15136
15137         * intl/l10nflist.c: Allow architecture-specific pop function.
15138         * sysdeps/x86_64/l10nflist.c: New file.
15139
15140         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
15141         classification.
15142
15143 2011-08-10  Andreas Schwab  <schwab@redhat.com>
15144
15145         * include/dirent.h: Add libc_hidden_proto for scandirat and
15146         scandirat64.  Don't declare __scandirat64.
15147         * dirent/scandirat.c: Add libc_hidden_def.
15148         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
15149         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
15150
15151 2011-08-10  David S. Miller  <davem@davemloft.net>
15152
15153         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
15154         enum.
15155         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
15156         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
15157         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
15158
15159 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
15160
15161         * Versions.def [libc]: Add GLIBC_2.15.
15162         * dirent/Makefile (routines): Add scandirat and scandirat64.
15163         * dirent/Versions [libc]: Export scandirat and scandirat64 for
15164         GLIBC_2.15.
15165         * dirent/dirent.h: Declare scandirat and scandirat64.
15166         * dirent/scandirat.c: New file.
15167         * dirent/scandirat64.c: New file.
15168         * sysdeps/wordsize-64/scandirat.c: New file.
15169         * sysdeps/wordsize-64/scandirat64.c: New file.
15170         * dirent/opendir.c: Define opendirat.
15171         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
15172         using scandirat.
15173         * dirent/scandir64.c: Adjust for scandir.c change.
15174         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
15175         __scandirat64, and __scandir_cancel_handler.
15176         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
15177         additional parameter and use openat instead of open (outside of ld.so).
15178         Add new __opendir as wrapper around __opendirat.
15179         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
15180         here without requiring old scandirat implementation.
15181
15182 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
15183
15184         * dirent/scandir.c (cancel_handler): Renamed to
15185         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
15186         defined.  Adjust users.
15187         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
15188         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
15189
15190 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
15191
15192         * string/test-string.h (IMPL): Use __STRING to expand name and then
15193         stringify it.
15194
15195         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
15196         of cleanups.
15197
15198 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15199
15200         * string/Makefile: Update.
15201         (strop-tests): Append strncat.
15202         * string/test-wcscmp.c: New file.
15203         New comprehensive test for wcscmp.
15204         * string/test-strcmp.c: Update.
15205         (WIDE): New define.
15206
15207 2011-07-22  Andreas Schwab  <schwab@redhat.com>
15208
15209         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
15210         line.
15211
15212 2011-07-26  Andreas Schwab  <schwab@redhat.com>
15213
15214         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
15215         encoding to ACE if AI_IDN.
15216
15217 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
15218
15219         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
15220         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
15221
15222 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15223
15224         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
15225         Fix overflow bug in strncat.
15226         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
15227
15228         * string/test-strncat.c: Update.
15229         Add new tests for checking overflow bugs.
15230
15231 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15232
15233         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15234         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
15235         * sysdeps/i386/i686/multiarch/strcat.S: New file.
15236         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
15237         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
15238         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
15239         * sysdeps/i386/i686/multiarch/strncat.S: New file.
15240         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
15241         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
15242
15243         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
15244         (USE_AS_STRCAT): Define.
15245         Add strcat and strncat support.
15246         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
15247
15248 2011-07-25  Andreas Schwab  <schwab@redhat.com>
15249
15250         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
15251         __n bigger than INT_MAX+1.
15252         (__strncmp_g): Likewise.
15253
15254 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
15255
15256         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
15257         * libio/stido.h: Likewise.
15258
15259         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
15260         (AF_NFC): Define.
15261         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
15262         (AF_NFC): Define.
15263
15264         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
15265         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
15266         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
15267         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
15268         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
15269
15270         [BZ #13021]
15271         * scripts/test-installation.pl: Don't expect libnss_test1 to be
15272         installed.
15273
15274         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
15275         typo.
15276         (_dl_x86_64_save_sse): Likewise.
15277
15278 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
15279
15280         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
15281         OSXSAVE.
15282         (_dl_x86_64_save_sse): Likewise.
15283
15284         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
15285
15286         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
15287
15288 2011-07-21  Andreas Schwab  <schwab@redhat.com>
15289
15290         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
15291         change.
15292         (_dl_x86_64_save_sse): Use correct AVX check.
15293
15294 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15295
15296         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
15297         bug in strncpy/strncat.
15298         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
15299
15300 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
15301
15302         * string/tester.c (test_strcat): Add tests for different alignments
15303         of source and destination.
15304         (test_strncat): Likewise.
15305
15306 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
15307
15308         [BZ #12852]
15309         * posix/glob.c (glob): Check passed in values before using them in
15310         expressions to avoid some overflows.
15311         (glob_in_dir): Likewise.
15312
15313         [BZ #13007]
15314         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
15315         check for AVX enablement so that we don't crash with old kernels and
15316         new hardware.
15317         * elf/tst-audit4.c: Add same checks here.
15318         * elf/tst-audit6.c: Likewise.
15319
15320         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
15321
15322 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
15323
15324         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
15325
15326 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
15327
15328         * po/cs.po: Update from translation team.
15329         * po/bg.po: Likewise.
15330
15331 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
15332
15333         * misc/sys/cdefs.h: Add support for const attribute.
15334         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
15335         to gnu_dev_{major,minor,makedev} functions.
15336
15337 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
15338
15339         * intl/dcigettext.c (get_output_charset): Add missing bracket.
15340
15341 2011-07-20  Andreas Schwab  <schwab@redhat.com>
15342
15343         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
15344         strlen results.
15345
15346 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15347
15348         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
15349         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
15350         register in order to avoid conflicts with the soft frame pointer
15351         being held in r11 when necessary.
15352         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
15353         (INTERNAL_VSYSCALL_NCS): Likewise.
15354
15355 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
15356
15357         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
15358         * elf/dl-fini.c (_dl_fini): Adjust caller.
15359         * elf/dl-close.c (_dl_close_worker): Likewise.
15360         * sysdeps/generic/ldsodefs.h: Adjust declaration.
15361
15362 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
15363
15364         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
15365         "aux_cache->nlibs < 0".
15366
15367         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
15368         in the reload-count case.
15369
15370 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15371
15372         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
15373         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
15374         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
15375         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
15376         * sysdeps/x86_64/multiarch/strcat.S: New file.
15377         * sysdeps/x86_64/multiarch/strncat.S: New file.
15378         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
15379         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
15380         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
15381         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
15382         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
15383         (USE_AS_STRCAT): Define.
15384         Add strcat and strncat support.
15385         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
15386         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
15387         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
15388         * string/strncat.c: Update.
15389         (USE_AS_STRNCAT): Define.
15390         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
15391         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
15392         and i7.
15393         * sysdeps/x86_64/multiarch/init-arch.h
15394         (bit_Prefer_PMINUB_for_stringop): New.
15395         (index_Prefer_PMINUB_for_stringop): Likewise.
15396         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
15397         bit_Prefer_PMINUB_for_stringop.
15398
15399 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
15400
15401         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
15402         buffer64.
15403         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
15404         of casting of buffer.
15405         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
15406         buffer32 and buffer64.
15407         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
15408         writes instead of casting of buffer.
15409         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
15410         buffer32.
15411         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
15412         casting of buffer.
15413
15414 2011-07-19  Andreas Schwab  <schwab@redhat.com>
15415
15416         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
15417
15418 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
15419
15420         * nscd/nscd.c (termination_handler): Don't do anything for a database
15421         if it has not yet been initialized.
15422
15423 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
15424
15425         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
15426
15427 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
15428
15429         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
15430
15431 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
15432
15433         * po/nl.po: Update from translation team.
15434         * po/sv.po: Likewise.
15435
15436 2011-07-16  Roland McGrath  <roland@hack.frob.com>
15437
15438         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
15439         now disallowed by GCC.
15440
15441         * configure.in (use-default-link): Default to yes if a test -shared
15442         link meets our qualifications.
15443         * configure: Regenerated.
15444
15445         * config.make.in (output-format): New variable.
15446         * configure.in: Check for ld --print-output-format support.
15447         * configure: Regenerated.
15448         * Makerules ($(common-objpfx)format.lds)
15449         [$(output-format) != unknown]: Just use $(output-format),
15450         instead of the linker-script munging.
15451
15452 2011-07-14  Roland McGrath  <roland@hack.frob.com>
15453
15454         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
15455         of $(common-objpfx)shlib.lds.
15456         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
15457
15458         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
15459         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
15460
15461         * configure.in (-z relro check): Adjust test code to add a large
15462         writable data section after it.
15463         * configure: Regenerated.
15464
15465 2011-07-11  Roland McGrath  <roland@hack.frob.com>
15466
15467         * configure.in (-z relro check): Fix test code to make the variable
15468         truly const.
15469         * configure: Regenerated.
15470
15471 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
15472
15473         * nscd/nscd.h (struct traced_file): Define.
15474         (struct database_dyn): Remove inotify_descr, reset_res, and filename
15475         elements.  Add traced_files.
15476         (inotify_fd): Declare.
15477         (register_traced_file): Declare.
15478         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
15479         (inotify_fd): Export.
15480         (resolv_conf_descr): Remove.
15481         (nscd_init): Move inotify descriptor creation to main.
15482         Don't register files for notification here.
15483         (register_traced_file): New function.
15484         (invalidate_cache): Don't use reset_res to determine whether to call
15485         res_init, go through the list of registered files.
15486         (main_loop_poll): The inotify descriptors are now stored in the
15487         structures for the traced files.
15488         (main_loop_epoll): Likewise
15489         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
15490         to __nss_disable_nscd.
15491         * nscd/cache.c (prune_cache): There is no single inotify descriptor
15492         for a database anymore.  Check the records for all the registered
15493         files instead.
15494         * nss/Makefile (libnss_files-routines): Add files-init.
15495         (libnss_db-routines): Add db-init.
15496         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
15497         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
15498         * nss/nss_db/db-init.c: New file.
15499         * nss/nss_files/files-init.c: New file.
15500         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
15501         __nss_lookup_function.
15502         (__nss_lookup_function): Call nss_load_library.
15503         (nss_load_all_libraries): New function.
15504         (__nss_disable_nscd): Take parameter with callback function for files
15505         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
15506         used for the cached services.
15507         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
15508         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
15509         options for features to all the files in nscd.
15510
15511         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
15512
15513 2011-07-10  Roland McGrath  <roland@hack.frob.com>
15514
15515         * csu/elf-init.c (__libc_csu_init): Comment typo.
15516
15517 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
15518
15519         * po/pl.po: Update from translation team.
15520         * po/ja.po: Likewise.
15521         * po/ru.po: Likewise.
15522         * po/ko.po: Likewise.
15523         * po/fr.po: Likewise.
15524
15525 2011-07-09  Roland McGrath  <roland@hack.frob.com>
15526
15527         * configure.in (.ctors/.dtors header and trailer check):
15528         Use an empirical test on a built program.
15529         * configure: Regenerated.
15530
15531         * configure.in (-z relro check): Use an empirical test on a built DSO.
15532         Detect, but do not require, on ia64.
15533         * configure: Regenerated.
15534
15535         * configure.in (READELF): Find it with AC_CHECK_TOOL.
15536         Update tests that use readelf to use $READELF instead.
15537         * configure: Regenerated.
15538
15539 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
15540
15541         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
15542         if the result is not used.
15543
15544 2011-07-05  Andreas Jaeger  <aj@suse.de>
15545
15546         [BZ#9696]
15547         * stdlib/tst-strtod.c: Add testcase.
15548
15549 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
15550
15551         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
15552         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
15553         The latter has a higher limit.  Take additional parameter to pass to
15554         the new function.
15555         (__pathconf): Pass file to __statfs_link_max.
15556         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
15557         __statfs_link_max.
15558         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
15559         __statfs_link_max.
15560
15561         [BZ #12868]
15562         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
15563         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
15564         Handle Lustre.
15565         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
15566         (__statfs_filesize_max): Likewise.
15567         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
15568
15569 2011-07-05  Andreas Jaeger  <aj@suse.de>
15570
15571         * resolv/res_comp.c (dn_skipname): Remove unused variable.
15572
15573 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
15574
15575         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
15576         `status' variable.
15577         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
15578         Likewise.
15579
15580 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
15581
15582         * Makefile (strop-tests): Add strncat.
15583         * string/test-strncat.c: New file.
15584
15585 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
15586
15587         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
15588
15589 2011-06-21  Andreas Jaeger  <aj@suse.de>
15590
15591         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
15592         Copy rule from iconvdata/Makefile.
15593
15594 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
15595
15596         [BZ #12922]
15597         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
15598         but no long options are defined, just return 'W'.
15599
15600 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
15601
15602         [BZ #9696]
15603         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
15604
15605 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
15606
15607         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
15608         netgroups to read.
15609         (innetgr): Likewise.
15610
15611 2011-07-05  Roland McGrath  <roland@hack.frob.com>
15612
15613         * config.make.in (install_root): Default to $(DESTDIR).
15614
15615 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
15616
15617         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
15618
15619 2011-07-02  Roland McGrath  <roland@hack.frob.com>
15620
15621         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
15622
15623         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
15624         containing directory rather than embedding absolute directory names.
15625
15626         * scripts/check-local-headers.sh: Rewritten using awk.
15627         Match by word, not by line.  Print error messages for matches.
15628         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
15629
15630         * Makerules [shlib-lds-flags empty]:
15631         ($(common-objpfx)libc_pic.opts): New target.
15632         ($(common-objpfx)libc_pic.os.clean): New target.
15633         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
15634
15635         * config.make.in (OBJCOPY): New variable.
15636         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
15637         * configure: Regenerated.
15638
15639         * config.make.in (use-default-link): New variable.
15640         * configure.in (use_default_link): Grok --with-default-link to set it.
15641         * configure: Regenerated.
15642         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
15643         (shlib-lds, shlib-lds-flags): Define to empty.
15644
15645         * Makerules (shlib-lds): New variable.
15646         (shlib-lds-flags): New variable.
15647         (build-shlib, build-moduile, build-module-asneeded): Use it.
15648         ($(common-objpfx)libc.so): Use $(shlib-lds).
15649         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
15650         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
15651
15652         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
15653         DT_FLAGS/DT_FLAGS_1 with zero flags.
15654
15655         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
15656         linker script munging.
15657
15658 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
15659
15660         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
15661         as 128-bit value.
15662         * crypt/sha512.c (sha512_process_block): Perform total addition using
15663         128-bit if possible.
15664         (__sha512_finish_ctx): Likewise.
15665         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
15666         as 64-bit value.
15667         * crypt/sha256.c (SWAP64): Define.
15668         (sha256_process_block): Perform total addition using 64-bit if
15669         possible.
15670         (__sha256_finish_ctx): Likewise.
15671
15672 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
15673
15674         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
15675         * nscd/initgrcache.c (addinitgroupsX): Likewise.
15676         * nscd/hstcache.c (cache_addhst): Likewise.
15677         * nscd/grpcache.c (cache_addgr): Likewise.
15678         * nscd/aicache.c (addhstaiX): Likewise
15679         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
15680
15681 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
15682
15683         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
15684         * nscd/initgrcache.c (addinitgroupsX): Likewise.
15685         * nscd/hstcache.c (cache_addhst): Likewise.
15686         * nscd/grpcache.c (cache_addgr): Likewise.
15687         * nscd/aicache.c (addhstaiX): Likewise
15688
15689 2011-07-01  Andreas Schwab  <schwab@redhat.com>
15690
15691         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
15692         domain only when needed.
15693
15694 2011-06-30  Andreas Schwab  <schwab@redhat.com>
15695
15696         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
15697         is always restored.
15698
15699 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
15700
15701         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
15702         are re-adding the entry.
15703         * nscd/servicescache.c (cache_addserv): Likewise.
15704
15705 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
15706
15707         * sysdeps/generic/dl-irel.h: fix protection against multiple
15708         inclusions.
15709         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
15710
15711 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
15712
15713         [BZ #12935]
15714         * malloc/memusage.sh: Fix quoting in message.
15715         * debug/xtrace.sh: Likewise.
15716
15717         * configure.in: Remove support for --experimental-malloc option, make
15718         it the default.
15719         * config.make.in: Likewise.
15720         * malloc/Makefile: Likewise.
15721
15722 2011-06-27  Andreas Schwab  <schwab@redhat.com>
15723
15724         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
15725         two-byte characters.
15726
15727 2011-06-27  Roland McGrath  <roland@hack.frob.com>
15728
15729         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
15730         AC_CACHE_CHECK invocation.
15731         * configure: Regenerated.
15732
15733         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
15734
15735 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
15736
15737         [BZ #12350]
15738         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
15739         bit from old_res_options.
15740
15741         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
15742
15743         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
15744         value type for setfct.
15745
15746 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
15747
15748         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
15749         __gettimeofday instead of gettimeofday.
15750
15751 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
15752
15753         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
15754
15755 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
15756
15757         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
15758
15759         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
15760         info.
15761
15762 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
15763
15764         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
15765         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
15766         strcpy-sse2-unaligned strncpy-sse2-unaligned
15767         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
15768         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
15769         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
15770         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
15771         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
15772         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
15773         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
15774         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
15775         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
15776         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
15777         (STRCPY): Support SSE2 and SSSE3 versions.
15778
15779 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
15780
15781         [BZ #12874]
15782         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
15783         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
15784         kernels which artificially limit size of requests.
15785
15786 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
15787
15788         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15789         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
15790         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
15791         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
15792         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
15793         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
15794         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
15795         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
15796         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
15797         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
15798         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
15799         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
15800         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
15801         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
15802         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
15803         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
15804         Enable unaligned load optimization for Intel Core i3, i5 and i7
15805         processors.
15806         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
15807         Define.
15808         (index_Fast_Unaligned_Load): Define.
15809         (HAS_FAST_UNALIGNED_LOAD): Define.
15810
15811 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
15812
15813         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
15814
15815 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
15816
15817         [BZ #12907]
15818         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
15819         until it is clear that the information is realy needed.
15820         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
15821
15822 2011-06-22  Andreas Schwab  <schwab@redhat.com>
15823
15824         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
15825
15826 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
15827
15828         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
15829         /sys/devices/system/cpu/online if it is usable.
15830
15831         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
15832         reading the information from the /proc filesystem to once a second.
15833
15834 2011-06-21  Andreas Jaeger  <aj@suse.de>
15835
15836         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
15837         NULL after inclusion of kernel headers.
15838
15839 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
15840
15841         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
15842         calls to internal_setent.
15843
15844         [BZ #12885]
15845         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
15846         addresses using gethostbyname4_r ignore IPv4 addresses.
15847
15848         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
15849         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
15850
15851         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
15852
15853 2011-06-20  David S. Miller  <davem@davemloft.net>
15854
15855         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
15856         inclusions.
15857         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
15858
15859         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
15860         (elf_irel): Use it.
15861         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
15862         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
15863         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
15864         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
15865         * sysdeps/x86_64/dl-irel.h: Likewise.
15866
15867         * elf/dl-runtime.c: Use elf_ifunc_invoke.
15868         * elf/dl-sym.c: Likewise.
15869
15870 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
15871
15872         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
15873         need to dereference resplen2.
15874
15875 2011-06-14  Andreas Schwab  <schwab@redhat.com>
15876
15877         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
15878
15879 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
15880
15881         * Makeconfig: Define vardbdir and inst_vardbdir.
15882         * nss/Makefile: Add rules to install db-Makefile.
15883
15884         * nss/nss_db/db-XXX.c: Cleanup.
15885
15886         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
15887         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
15888         GLIBC_PRIVATE.
15889         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
15890         * nss/makedb.c: Implement -g option to specify that value strings
15891         are generated and should not be added to table iterated over for
15892         get*ent calls.
15893         * nss/nss_db/db-initgroups.c: New file.
15894
15895         * nss/getent.c: Add support for initgroups lookups through getgrouplist
15896         interface.
15897
15898         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
15899         (internal_getgrouplist): Adjust to name change.
15900         Update use_initgroups_entry if this is not the first call.
15901         * nss/databases.def: Add initgroups entry.
15902
15903         * nss/makedb.c (compute_tables): Check result of multiple hash table
15904         sizes to minimize maximum chain length.
15905
15906 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
15907
15908         * Versions.def: Add entry for libnss_db.
15909         * shlib-versions: Likewise.
15910         * nss/Makefile: Add rules to build libnss_db.
15911         * nss/Versions: Add libnss_db information.  Organize libnss_files
15912         entries better.
15913         * nss/db-Makefile: Add gshadow support.  Change rules for the new
15914         makedb progra.  Some minor improvements to generate smaller files.
15915         * nss/nss_db/nss_db.h: Move NSS database header data structures to
15916         here from...
15917         * nss/makedb.c: ...here.
15918         Improve database format to be smaller and require less memory at
15919         runtime.
15920         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
15921         db anymore.
15922         * nss/nss_db/db-netgrp.c: Likewise.
15923         * nss/nss_db/db-open.c: Likewise.
15924         * nss/nss_files/flies-XXX.x: Adjust comments.
15925         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
15926         * nss/nss_files/files-grp.c: Likewise.
15927         * nss/nss_files/files-hosts.c: Likewise.
15928         * nss/nss_files/files-network.c: Likewise.
15929         * nss/nss_files/files-proto.c: Likewise.
15930         * nss/nss_files/files-pwd.c: Likewise.
15931         * nss/nss_files/files-rpc.c: Likewise.
15932         * nss/nss_files/files-service.c: Likewise.
15933         * nss/nss_files/files-sgrp.c: Likewise.
15934         * nss/nss_files/files-spwd.c: Likewise.
15935         * nss/nss_db/db-alias.c: Removed.
15936         * nss/nss_db/dummy-db.h: Removed.
15937
15938 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
15939
15940         * nss/makedb.c: Rewritten to not use database library.
15941         * nss/Makefile: Update to build new makedb program.
15942
15943 2011-06-14  Andreas Jaeger  <aj@suse.de>
15944
15945         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
15946         memset declaration.
15947
15948 2011-06-10  Andreas Schwab  <schwab@redhat.com>
15949
15950         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
15951         tmpbuf.
15952
15953 2011-06-10  Roland McGrath  <roland@hack.frob.com>
15954
15955         * Makerules (shlib.lds): Fail if the linker script comes out empty.
15956         * elf/Makefile ($(objpfx)ld.so): Likewise.
15957
15958         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
15959         Don't list ld.so twice in dependencies.
15960
15961         * posix/bug-regex31.c: Include <stdlib.h>.
15962
15963         * nscd/hstcache.c (cache_addhst): Remove unused variable.
15964
15965         * nis/nss_compat/compat-spwd.c
15966         (getspent_next_nss_netgr): Remove unused variable.
15967         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
15968
15969         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
15970         nonmembers" output to use the right array.
15971
15972         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
15973
15974         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
15975
15976         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
15977         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
15978         * catgets/gencat.c (read_input_file): Likewise.
15979         * locale/programs/locarchive.c (enlarge_archive): Likewise.
15980
15981         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
15982         variable definition inside #if's controlling its use.
15983
15984         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
15985
15986         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
15987
15988         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
15989
15990         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
15991         unreachable code.
15992
15993         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
15994
15995         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
15996         * configure: Regenerated.
15997
15998         * Makerules: Revert last change.
15999         * elf/Makefile: Likewise.
16000
16001 2011-06-09  Roland McGrath  <roland@hack.frob.com>
16002
16003         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
16004         * elf/Makefile ($(objpfx)librtld.os): Likewise.
16005         (reloc-link): Likewise.
16006
16007 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
16008
16009         * elf/Makefile: Add rules to build pldd.
16010         * elf/pldd.c: New file.
16011         * elf/pldd-xx.c: New file.
16012
16013 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
16014
16015         * version.h: Update for 2.15 development version.
16016
16017 2011-06-07  David S. Miller  <davem@davemloft.net>
16018
16019         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
16020         ifuncs.
16021         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
16022         elf_machine_lazy_rel): Likewise.
16023         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
16024         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
16025         elf_machine_lazy_rel): Likewise.
16026         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
16027         dl_hwcap via passed in argument.
16028         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
16029         Likewise.
16030
16031 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16032
16033         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
16034
16035 2011-06-06  Roland McGrath  <roland@hack.frob.com>
16036
16037         [BZ #12849]
16038         * manual/fdl-1.1.texi: New file, verbatim from:
16039         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
16040         * manual/lgpl-2.1.texi: New file, verbatim from:
16041         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
16042         * manual/Makefile (licenses): New variable, list those new file names.
16043         (texis): Use it.
16044         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
16045
16046         * manual/fdl.texi: File removed.
16047         * manual/lesser.texi: File removed.
16048         * manual/libc.texinfo (Copying, Documentation License):
16049         Use new @include file names, put @appendix directive before @include.
16050
16051 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
16052
16053         [BZ #12841]
16054         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
16055         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
16056         (mq_open): Add __NTH.
16057
16058 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
16059
16060         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16061         Assume Intel Core i3/i5/i7 processor if AVX is available.
16062
16063 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
16064
16065         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
16066         typo.
16067
16068 2011-05-31  Andreas Schwab  <schwab@redhat.com>
16069
16070         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
16071         memory.  Use alloca_account.  Fix memory leak when retrying.
16072
16073 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
16074
16075         * version.h (RELEASE): Bump for 2.14 release.
16076         * include/features.h (__GLIBC_MINOR__): Bump to 14.
16077
16078         * config.make.in (RANLIB): Remove entry.
16079
16080 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
16081
16082         * po/Makefile (po-sed-cmd): Add ksh to extensions.
16083         (libc.pot): Work around missing support for .ksh extension in xgettext.
16084
16085         [BZ #12684]
16086         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
16087         if both request failed.
16088         (send_dg): In case of server errors clear resplen or *resplen2.
16089
16090         [BZ #12454]
16091         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
16092         when there are multiple maps.
16093         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
16094         (_dl_fini): Remove test here.
16095
16096         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
16097
16098 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
16099
16100         [BZ #12350]
16101         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
16102         bit from old_res_options.
16103         (gaih_inet): Likewise.
16104
16105         [BZ #11099]
16106         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
16107         as signed.
16108
16109         * resolv/res_init.c (res_setoptions): Make the code more compact.
16110
16111         [BZ #11558]
16112         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
16113         set RES_USEVC.
16114
16115         [BZ #11634]
16116         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
16117
16118         * malloc/malloc.h: Mark malloc hook variables as deprecated.
16119
16120         [BZ #11781]
16121         * malloc/malloc.h: Declare malloc hook variables as volatile.
16122
16123         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
16124         in last patch.
16125
16126         [BZ #11799]
16127         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
16128         raise in the comment.
16129         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
16130         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
16131         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
16132
16133 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
16134
16135         [BZ #12811]
16136         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
16137         grow the buffers more if it already has to be sufficient.
16138         (build_wcs_upper_buffer): Likewise.
16139         * posix/regexec.c (check_matching): Likewise.
16140         (clean_state_log_if_needed): Likewise.
16141         (extend_buffers): Don't enlarge buffers beyond size of the input
16142         buffer.
16143         Patches mostly by Emil Wojak <emil@wojak.eu>.
16144         * posix/bug-regex32.c: New file.
16145         * posix/Makefile (tests): Add bug-regex32.
16146
16147         * locale/findlocale.c (_nl_find_locale): Return right away if
16148         _nl_explode_name failed.
16149         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
16150
16151         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
16152
16153         * debug/xtrace.sh: Unify messages.
16154         * malloc/memusage.sh: Likewise.
16155
16156         [BZ #12813]
16157         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
16158         time symbol from vDSO.  Substitute with vsyscall if not available.
16159         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
16160         __vdso_time.
16161
16162         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
16163         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
16164         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
16165         Add sendmmsg and internal_sendmmsg.
16166         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
16167         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
16168         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
16169
16170         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
16171         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
16172         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
16173
16174 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
16175
16176         [BZ #12813]
16177         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
16178         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
16179         available.
16180         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
16181         __vdso_getcpu.
16182
16183         [BZ #12814]
16184         * iconvdata/Makefile (tests): Add bug-iconv9.
16185         * iconvdata/bug-iconv9.c: New file.
16186
16187 2011-05-27  Andreas Schwab  <schwab@redhat.com>
16188
16189         [BZ #12814]
16190         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
16191
16192 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
16193
16194         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
16195         (struct user_regs_struct): Change intcs field back to cs.
16196
16197 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
16198
16199         * po/ja.po: Update from translation team.
16200
16201 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
16202
16203         [BZ #12795]
16204         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
16205         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
16206
16207 2011-05-20  Andreas Schwab  <schwab@redhat.com>
16208
16209         * stdlib/longlong.h: Update from GCC.
16210
16211 2011-05-23  Andreas Schwab  <schwab@redhat.com>
16212
16213         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
16214         parameter name.
16215         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
16216         Add parameter name.
16217         (__sysconf): Pass it down.
16218
16219 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
16220
16221         [BZ #12671]
16222         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
16223         some situations.
16224         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
16225         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
16226         add in in __libc_use_alloca calls.  Adjust callers.
16227         (glob): Use malloc in some situations.
16228
16229         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
16230         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
16231         pltexit.
16232
16233 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
16234
16235         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
16236         and CLOCK_BOOTTIME_ALARM.
16237
16238         [BZ #12782]
16239         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
16240         is returned.
16241
16242         * string/_strerror.c (__strerror_r): Print negative errors as signed
16243         numbers.
16244
16245         [BZ #12777]
16246         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
16247         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
16248         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
16249
16250         * configure.in: Fix typo in redirection and correct removal of test
16251         files in two cases.
16252
16253         [BZ #12788]
16254         * locale/setlocale.c (new_composite_name): Fix test to check for
16255         identical name of all categories.
16256
16257         [BZ #12792]
16258         * libio/filedoalloc.c (local_isatty): New function.
16259         (_IO_file_doallocate): Use local_isatty.
16260         * stdio-common/perror.c (perror): In case a new stream is used
16261         forward the stream error.
16262         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
16263         error flag.
16264
16265 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
16266
16267         [BZ #11869]
16268         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
16269         alloca.
16270         * include/alloca.h (extend_alloca_account): Define.
16271
16272         [BZ #11857]
16273         * posix/regex.h: Fix comments with documentation of user-accessible
16274         fields after compilation and describe correct free'ing of pattern
16275         after re_compile_pattern.
16276         Patch by Reuben Thomas <rrt@sc3d.org>.
16277
16278 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
16279
16280         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
16281         and -mno-altivec to prevent the compiler from using Altivec and/or
16282         VSX instructions when the corresponding registers are not available.
16283
16284 2011-05-19  Andreas Schwab  <schwab@redhat.com>
16285
16286         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
16287
16288 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
16289
16290         * libio/freopen.c (freopen): Use __dup2, not dup2.
16291         * libio/freopen64.c (freopen64): Likewise.
16292
16293 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
16294
16295         [BZ #12775]
16296         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
16297         * math/Makefile (tests): Add test-powl.
16298         (CFLAGS-test-powl.c): Define.
16299         * math/test-powl.c: New file.
16300
16301 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
16302
16303         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
16304
16305 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
16306
16307         [BZ #11837]
16308         * iconvdata/gb18030.c: Update to GB18020-2005.
16309
16310 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
16311
16312         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
16313         RE_SYNTAX_POSIX_AWK): Update to match recent development.
16314         Patch by Aharon Robbins <arnold@skeeve.com>.
16315
16316         [BZ #11892]
16317         * stdlib/putenv.c (putenv): Don't always create copy of the variable
16318         on the stack.
16319
16320         [BZ #11895]
16321         * misc/pselect.c (__pselect): Handle timeout value errors hidden
16322         through underflows.
16323
16324         [BZ #12766]
16325         * misc/error.c (error_at_line): Ensure file_name and old_file_name
16326         point to strings before performing equality test for error_one_per_line
16327         mode.
16328
16329         [BZ #11697]
16330         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
16331
16332         [BZ #11820]
16333         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
16334         (struct user_fpregs_struct): Avoid __uint*_t types.
16335
16336         [BZ #6420]
16337         * malloc/mtrace.c (tr_where): Add additional parameter to point to
16338         symbol info.  Use it instead of calling _dl_addr locally.
16339         (lock_and_info): New function.
16340         (tr_freehook): Call lock_and_info and pass symbol info as additional
16341         parameter to tr_where.
16342         (tr_mallochook): Likewise.
16343         (tr_reallochook): Likewise.
16344         (tr_memalignhook): Likewise.
16345
16346         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
16347         used and couldn't be at all thread-safe.
16348
16349 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
16350
16351         * libio/freopen.c (freopen): Don't close old file descriptor
16352         before the new one is opened.  Instead dup the new file descriptor
16353         to the old one after the new stream is created.
16354         * libio/freopen64.c (freopen64): Likewise.
16355         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
16356         * libio/fileops.c (_IO_new_file_close_it): Handle new
16357         _IO_FLAGS2_NOCLOSE flag.
16358         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
16359         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
16360         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
16361         _IO_FLAGS2_NOCLOSE flag.
16362         * include/unistd.h: Add hidden_proto for dup3.
16363         Define __have_dup3.
16364         * io/dup3.c: Define hidden symbol.
16365         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
16366
16367         [BZ #7101]
16368         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
16369         when an incomplete long option is used.
16370         * posix/tst-getopt_long1.c: New file.
16371         * posix/Makefile (tests): Add tst-getopt_long1.
16372
16373         [BZ #10138]
16374         * scripts/config.guess: Update from autoconf-2.68.
16375         * scripts/config.sub: Likewise.
16376
16377         [BZ #10157]
16378         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
16379         tests into ...
16380         (has_cpuclock): ...this.  New function.
16381         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
16382         macro here based on has_cpuclock code.
16383
16384         [BZ #10149]
16385         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
16386         First byte (not low byte) is now always NUL.
16387         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
16388
16389         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
16390         Use non-cancelable interfaces.
16391
16392         [BZ #9809]
16393         * locale/iso-639.def: Add entry for Sorani.
16394
16395         [BZ #11901]
16396         * include/stdlib.h: Move include protection to the right place.
16397         Define abort_msg_s.  Declare __abort_msg with it.
16398         * stdlib/abort.c (__abort_msg): Adjust type.
16399         * assert/assert.c (__assert_fail_base): New function.  Majority
16400         of code from __assert_fail.  Allocate memory for __abort_msg with
16401         mmap.
16402         (__assert_fail): Now call __assert_fail_base.
16403         * assert/assert-perr.c: Remove bulk of implementation.  Use
16404         __assert_fail_base.
16405         * include/assert.hL Declare __assert_fail_base.
16406         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
16407         mmap.
16408         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
16409
16410 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
16411
16412         [BZ #11952]
16413         [BZ #12453]
16414         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
16415         until all modules are registered in the DTV.
16416         * elf/Makefile: Add rules to build and run tst-tls19.
16417         * elf/tst-tls19.c: New file.
16418         * elf/tst-tls19mod1.c: New file.
16419         * elf/tst-tls19mod2.c: New file.
16420         * elf/tst-tls19mod3.c: New file.
16421         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
16422
16423         [BZ #12083]
16424         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
16425         correctly.
16426
16427         [BZ #12601]
16428         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
16429         two-byte sequence errors.
16430         * iconvdata/Makefile (tests): Add bug-iconv8.
16431         * iconvdata/bug-iconv8.c: New file.
16432
16433         [BZ #12626]
16434         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
16435         buf2 definition.
16436
16437         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
16438
16439         [BZ #12432]
16440         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
16441         (dummy_getcfa): New function.
16442         (init): Get _Unwind_GetCFA address, use dummy if not found.
16443         (backtrace_helper): In recursion check, also check whether CFA changes.
16444         (__backtrace): Completely initialize arg.
16445
16446         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
16447         storing incomplete byte sequence in state object.  Avoid testing for
16448         guaranteed too small input if we know there is enough data available.
16449
16450 2011-05-11  Andreas Schwab  <schwab@redhat.com>
16451
16452         * Makeconfig (+link-pie): Indent.
16453         * Rules (binaries-pie): Define if $(have-fpie) and
16454         $(build-shared).
16455         (binaries-shared): Also filter out $(binaries-pie).
16456         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
16457         * nscd/Makefile (others-pie): Add nscd.
16458         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
16459         ($(objpfx)nscd): Remove command override.
16460         * login/Makefile (others-pie): Add pt_chown.
16461         ($(objpfx)pt_chown): Remove command override.
16462         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
16463         remove command overrides.
16464
16465 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
16466
16467         * libio/tst_putwc.c: Fix error messages.
16468
16469         [BZ #12724]
16470         * libio/fileops.c (_IO_new_file_close_it): Always flush when
16471         currently writing and seek to current position when not.
16472         * libio/Makefile (tests): Add bug-fclose1.
16473         * libio/bug-fclose1.c: New file.
16474
16475 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
16476
16477         [BZ #12511]
16478         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
16479         don't set DF_1_NODELETE here.
16480         (do_lookup_x): When entering new entry test for copy relocation
16481         and if necessary set DF_1_NODELETE flag.
16482         * elf/tst-unique4.cc: New file.
16483         * elf/tst-unique4.h: New file.
16484         * elf/tst-unique4lib.cc: New file.
16485         * elf/Makefile: Add rules to build and run tst-unique4.
16486         Patch by Piotr Bury <pbury@goahead.com>.
16487
16488 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
16489
16490         [BZ #12052]
16491         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
16492
16493         [BZ #12625]
16494         * misc/mntent_r.c (addmntent): Flush the stream after the output
16495
16496         [BZ #12393]
16497         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
16498         (is_trusted_path_normalize): Skip initial colon.  Append slash
16499         to empty buffer.  Duplicate is_trusted_path code but allow
16500         constructed patch to be prefix.
16501         (is_dst): Allow $ORIGIN followed by /.
16502         (_dl_dst_substitute): Correct clearing of check_for_trusted.
16503         Correct testing of result of is_trusted_path_normalize
16504         (decompose_rpath): Fix warning.
16505
16506 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
16507
16508         [BZ #11257]
16509         * grp/initgroups.c (internal_getgrouplist): When we found the service
16510         list through the initgroups entry in nsswitch.conf do not always
16511         continue on a successful lookup.  Don't always use the
16512         __nss_group_database value if it is set.
16513         * nss/nsswitch.conf (initgroups): Change action for successful db
16514         lookup to continue for compatibility.
16515
16516 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
16517
16518         [BZ #11532]
16519         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
16520         and CP774 modules.
16521         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
16522         and CP774 modules.
16523         * iconvdata/tst-tables.sh: Likewise.
16524         * iconvdata/cp770.c: New file.
16525         * iconvdata/cp771.c: New file.
16526         * iconvdata/cp772.c: New file.
16527         * iconvdata/cp773.c: New file.
16528         * iconvdata/cp774.c: New file.
16529         * iconvdata/testdata/CP770: New file.
16530         * iconvdata/testdata/CP770..UTF8: New file.
16531         * iconvdata/testdata/CP771: New file.
16532         * iconvdata/testdata/CP771..UTF8: New file.
16533         * iconvdata/testdata/CP772: New file.
16534         * iconvdata/testdata/CP772..UTF8: New file.
16535         * iconvdata/testdata/CP773: New file.
16536         * iconvdata/testdata/CP773..UTF8: New file.
16537         * iconvdata/testdata/CP774: New file.
16538         * iconvdata/testdata/CP774..UTF8: New file.
16539
16540         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
16541         END CHARMAP line.
16542         * iconvdata/gen-8bit-gap.sh: Likewise.
16543         * iconvdata/gen-8bit.sh: Likewise.
16544
16545         * locale/iso-639.def: Add ary entry.
16546
16547         [BZ #11258]
16548         * locale/C-translit.h.in: Add U20A1 transliteration.
16549
16550         [BZ #12178]
16551         * locale/iso-639.def: Add wae entry.
16552         Patch by Kevin Bortis <bortis@translate-wae.ch>.
16553
16554         [BZ #12545]
16555         * locale/programs/localedef.c (construct_output_path): Use ssize_t
16556         for n.
16557
16558         [BZ #12711]
16559         * locale/C-translit.h.in: Add entry for U20B9.
16560         Patch by pravin.d.s@gmail.com.
16561
16562 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
16563
16564         [BZ #12713]
16565         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
16566         ENAMETOOLONG use generic getcwd.
16567         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
16568         in rtld.  Use *stat64.
16569         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
16570         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
16571         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
16572         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
16573         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
16574         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
16575         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
16576         __fstatat64 macros.
16577         * include/dirent.h: Add libc_hidden_proto for rewinddir.
16578         * dirent/rewinddir.c: Add libc_hidden_def.
16579         * sysdeps/mach/hurd/rewinddir.c: Likewise.
16580         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
16581
16582         * include/dirent.h (__alloc_dir): Add flags parameter.
16583         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
16584         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
16585         __alloc_dir.
16586         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
16587         from fdopendir if O_CLOEXEC is already set.
16588
16589 2011-03-15  Alan Modra  <amodra@gmail.com>
16590
16591         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
16592         l_tls_firstbyte_offset non-zero.  Save padding offset in
16593         l_tls_firstbyte_offset for later use.
16594         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
16595         freeing static tls block.
16596
16597 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
16598
16599         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
16600         where #ifdef was intended.  The intent is to prevent ARG_MAX from
16601         being defined by the kernel headers.
16602
16603 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
16604
16605         [BZ #12734]
16606         * resolv/resolv.h: Define RES_NOTLDQUERY.
16607         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
16608         no-tld-query and set RES_NOTLDQUERY.
16609         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
16610         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
16611         modern BIND to search name as TLD unless forbidden.
16612
16613 2011-05-07  Petr Baudis  <pasky@suse.cz>
16614             Ulrich Drepper  <drepper@gmail.com>
16615
16616         [BZ #12393]
16617         * elf/dl-load.c (fillin_rpath): Move trusted path check...
16618         (is_trusted_path): ...to here.
16619         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
16620         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
16621         using is_trusted_path_normalize() in setuid scripts.
16622
16623 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
16624
16625         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
16626         __BEGIN/__END_DECLS.
16627
16628 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
16629
16630         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
16631         NSS_STATUS_NOTFOUND if no record was found.
16632
16633 2011-05-05  Andreas Schwab  <schwab@redhat.com>
16634
16635         * sunrpc/Makefile (headers): Add rpc/netdb.h.
16636         (headers-not-in-tirpc): Remove rpc/netdb.h
16637         * resolv/netdb.h: Revert last change.
16638
16639 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
16640
16641         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
16642         circular dependency between libgcc.a and libc.a.
16643
16644 2011-05-05  Andreas Schwab  <schwab@redhat.com>
16645
16646         * resolv/netdb.h: Don't include <rpc/netdb.h>.
16647         * nis/Makefile: Don't install rpcsvc/*.
16648         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
16649         instead of <rpc/types.h>.
16650         (MAXHOSTNAMELEN): Define.
16651
16652 2011-05-03  Andreas Schwab  <schwab@redhat.com>
16653
16654         * elf/ldconfig.c (add_dir): Don't crash on empty path.
16655
16656 2011-04-28  Maciej Babinski  <mbabinski@google.com>
16657
16658         [BZ #12714]
16659         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
16660         gethostbyname4_r when IPv6 results are possible.
16661
16662 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
16663
16664         [BZ #12723]
16665         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
16666         _PC_PIPE_BUF handling.
16667
16668 2011-04-30  Bruno Haible  <bruno@clisp.org>
16669
16670         [BZ #12717]
16671         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
16672         * resolv/netdb.h (getnameinfo): Change type of flags parameter
16673         to 'int'.
16674         * inet/getnameinfo.c (getnameinfo): Likewise.
16675
16676 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
16677
16678         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
16679         to groups setting in database lookup.
16680         * nss/nsswitch.conf: Add initgroups entry.
16681
16682 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
16683
16684         [BZ #12685]
16685         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
16686         mode string.
16687         Patch by Eric Blake <eblake@redhat.com>.
16688
16689 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
16690
16691         * sunrpc/Makefile (need-export-routines): Add svc_run.
16692         (routines): Remove svc_run.
16693         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
16694         * sunrpc/clnt_perr.c (clnt_perrno): Export.
16695         * sunrpc/svc_run.c (svc_run): Likewise.
16696         * sunrpc/svc_udp.c (svcudp_create): Likewise.
16697
16698 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
16699
16700         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
16701         problem in reallocation in last patch.
16702
16703 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
16704
16705         * sunrpc/Makefile: Move inclusion of Rules.
16706
16707 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
16708
16709         * nss/nss_files/files-initgroups.c: New file.
16710         * nss/Makefile (libnss_files-routines): Add files-initgroups.
16711         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
16712         _nss_files_initgroups_dyn.
16713
16714 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
16715
16716         * elf/elf.h (R_ARM_IRELATIVE): Define.
16717
16718 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
16719
16720         * po/ru.po: Update from translation team.
16721
16722 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
16723
16724         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
16725         dependencies.
16726
16727 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
16728
16729         [BZ #12653]
16730         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
16731         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
16732         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
16733         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
16734         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
16735
16736 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
16737
16738         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
16739         differing bytes.
16740         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
16741         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
16742         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
16743
16744 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
16745
16746         [BZ #12420]
16747         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
16748         storing it.
16749         * stdlib/bug-getcontext.c: New file.
16750         * stdlib/Makefile: Add rules to build and run bug-getcontext.
16751
16752 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16753
16754         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
16755         instructions into .machine "z9-109".
16756         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
16757         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
16758
16759 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16760
16761         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
16762         between environment variables and auxiliary vector.
16763
16764 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
16765
16766         * Makefile: Add rules to build linkobj/libc.so.
16767         * include/libc-symbols.h: Define libc_hidden_nolink.
16768         * include/rpc/auth.h: Mark functions which are to be hidden.
16769         * include/rpc/auth_des.h: Likewise.
16770         * include/rpc/auth_unix.h: Likewise.
16771         * include/rpc/clnt.h: Likewise.
16772         * include/rpc/des_crypt.h: Likewise.
16773         * include/rpc/key_prot.h: Likewise.
16774         * include/rpc/pmap_clnt.h: Likewise.
16775         * include/rpc/pmap_prot.h: Likewise.
16776         * include/rpc/pmap_rmt.h: Likewise.
16777         * include/rpc/rpc_msg.h: Likewise.
16778         * include/rpc/svc.h: Likewise.
16779         * include/rpc/svc_auth.h: Likewise.
16780         * include/rpc/xdr.h: Likewise.
16781         * nis/Makefile: Link all DSOs against linkobj/libc.so.
16782         * nss/Makefile: Likewise.
16783         * sunrpc/Makefile: Don't install headers.  Build library with normal
16784         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
16785         * sunrpc/auth_des.c: Hide exported symbols by default, export some
16786         for the compat linking library.  Remove use of INTDEF/INTUSE.
16787         * sunrpc/auth_none.c: Likewise.
16788         * sunrpc/auth_unix.c: Likewise.
16789         * sunrpc/authdes_prot.c: Likewise.
16790         * sunrpc/authuxprot.c: Likewise.
16791         * sunrpc/clnt_gen.c: Likewise.
16792         * sunrpc/clnt_perr.c: Likewise.
16793         * sunrpc/clnt_raw.c: Likewise.
16794         * sunrpc/clnt_simp.c: Likewise.
16795         * sunrpc/clnt_tcp.c: Likewise.
16796         * sunrpc/clnt_udp.c: Likewise.
16797         * sunrpc/clnt_unix.c: Likewise.
16798         * sunrpc/des_crypt.c: Likewise.
16799         * sunrpc/des_soft.c: Likewise.
16800         * sunrpc/get_myaddr.c: Likewise.
16801         * sunrpc/key_call.c: Likewise.
16802         * sunrpc/key_prot.c: Likewise.
16803         * sunrpc/netname.c: Likewise.
16804         * sunrpc/pm_getmaps.c: Likewise.
16805         * sunrpc/pm_getport.c: Likewise.
16806         * sunrpc/pmap_clnt.c: Likewise.
16807         * sunrpc/pmap_prot.c: Likewise.
16808         * sunrpc/pmap_prot2.c: Likewise.
16809         * sunrpc/pmap_rmt.c: Likewise.
16810         * sunrpc/publickey.c: Likewise.
16811         * sunrpc/rpc_cmsg.c: Likewise.
16812         * sunrpc/rpc_common.c: Likewise.
16813         * sunrpc/rpc_dtable.c: Likewise.
16814         * sunrpc/rpc_prot.c: Likewise.
16815         * sunrpc/rpc_thread.c: Likewise.
16816         * sunrpc/rtime.c: Likewise.
16817         * sunrpc/svc.c: Likewise.
16818         * sunrpc/svc_auth.c: Likewise.
16819         * sunrpc/svc_authux.c: Likewise.
16820         * sunrpc/svc_raw.c: Likewise.
16821         * sunrpc/svc_run.c: Likewise.
16822         * sunrpc/svc_simple.c: Likewise.
16823         * sunrpc/svc_tcp.c: Likewise.
16824         * sunrpc/svc_udp.c: Likewise.
16825         * sunrpc/svc_unix.c: Likewise.
16826         * sunrpc/svcauth_des.c: Likewise.
16827         * sunrpc/xcrypt.c: Likewise.
16828         * sunrpc/xdr.c: Likewise.
16829         * sunrpc/xdr_array.c: Likewise.
16830         * sunrpc/xdr_float.c: Likewise.
16831         * sunrpc/xdr_intXX_t.c: Likewise.
16832         * sunrpc/xdr_mem.c: Likewise.
16833         * sunrpc/xdr_rec.c: Likewise.
16834         * sunrpc/xdr_ref.c: Likewise.
16835         * sunrpc/xdr_sizeof.c: Likewise.
16836         * sunrpc/xdr_stdio.c: Likewise.
16837
16838 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
16839
16840         [BZ #12650]
16841         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
16842         * sysdeps/ia64/dl-tls.h: Likewise.
16843         * sysdeps/powerpc/dl-tls.h: Likewise.
16844         * sysdeps/s390/dl-tls.h: Likewise.
16845         * sysdeps/sh/dl-tls.h: Likewise.
16846         * sysdeps/sparc/dl-tls.h: Likewise.
16847         * sysdeps/x86_64/dl-tls.h: Likewise.
16848         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
16849
16850 2011-03-14  Andreas Schwab  <schwab@redhat.com>
16851
16852         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
16853         rpath element also skip the following colon.
16854         (expand_dynamic_string_token): Add is_path parameter and pass
16855         down to DL_DST_REQUIRED and _dl_dst_substitute.
16856         (decompose_rpath): Call expand_dynamic_string_token with
16857         non-zero is_path.  Ignore empty rpaths.
16858         (_dl_map_object_from_fd): Call expand_dynamic_string_token
16859         with zero is_path.
16860
16861 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
16862
16863         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
16864         Make cancelable.
16865
16866 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
16867
16868         [BZ #12655]
16869         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
16870         Patch by Filipe David Manana <fdmanana@apache.org>.
16871
16872 2011-04-07  Andreas Schwab  <schwab@redhat.com>
16873
16874         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
16875         Maintain aligned stack.
16876         (CHECK_RSP): Remove unused macro.
16877
16878 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
16879
16880         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
16881         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
16882
16883 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
16884
16885         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
16886
16887         * include/features.h: Mention __USE_XOPEN2K8 in comment.
16888
16889 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
16890
16891         [BZ #12518]
16892         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
16893         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
16894         * sysdeps/x86_64/memmove.c: New file.
16895         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
16896         (memcpy): Renamed to ...
16897         (__new_memcpy): This.
16898         (memcpy): Provide GLIBC_2_14 memcpy.
16899         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
16900         (memcpy): Provide GLIBC_2_2_5 memcpy.
16901
16902 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
16903
16904         [BZ #12631]
16905         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
16906
16907 2011-03-30  Andreas Schwab  <schwab@redhat.com>
16908
16909         * misc/syncfs.c: New file.
16910         * misc/Makefile (routines): Add syncfs.
16911         * posix/unistd.h: Declare syncfs.
16912         * sysdeps/unix/syscalls.list: Add syncfs.
16913
16914 2011-04-01  Andreas Schwab  <schwab@redhat.com>
16915
16916         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
16917         open_by_handle_at.
16918         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
16919         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
16920         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
16921         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
16922         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
16923         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
16924         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
16925
16926 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
16927
16928         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
16929         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
16930         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
16931         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
16932         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
16933         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
16934         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
16935
16936         * io/Makefile: Compile fallocate.c, fallocate64.c, and
16937         sync_file_range.c with -fexceptions.
16938         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
16939         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
16940         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
16941         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
16942         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
16943         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
16944         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
16945         sync_file_range as cancellation point
16946         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
16947         now a wrapper around __call_sync_file_range with cancellation handling.
16948         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
16949         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
16950         function name to __call_sync_file_range.
16951         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
16952         Add call_sync_file_range.
16953
16954 2011-04-01  Andreas Schwab  <schwab@redhat.com>
16955
16956         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
16957         bits/timex.h.
16958
16959 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
16960
16961         * iconv/iconv.h: Fix typo in comment.
16962         * io/fcntl.h: Likewise.
16963         * libio/stdio.h: Likewise.
16964         * posix/spawn.h: Likewise.
16965         * posix/unistd.h: Likewise.
16966         * stdlib/stdlib.h: Likewise.
16967         * time/time.h: Likewise.
16968         * wcsmbs/wchar.h: Likewise.
16969
16970         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
16971         open_by_handle): Add.
16972         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
16973         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
16974         Augment a few comments.
16975         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
16976         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
16977         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
16978         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
16979         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
16980         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
16981         open_by_handle.
16982
16983         * io/fcntl.h (AT_EMPTY_PATH): Define.
16984
16985 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
16986
16987         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
16988         * sysdeps/unix/sysv/linux/bits/time.h: New file.
16989         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
16990         to...
16991         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
16992         * Versions.def: Add GLIBC_2.14.
16993         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
16994         Export.
16995
16996 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
16997
16998         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
16999         round counter.
17000         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
17001
17002 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
17003
17004         [BZ #12597]
17005         * string/test-strncmp.c (do_page_test): New function.
17006         (check2): Likewise.
17007         (test_main): Call check2.
17008         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
17009
17010 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
17011
17012         [BZ #12587]
17013         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
17014         Handle cache information in CPU leaf 4.
17015         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
17016
17017 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
17018
17019         [BZ #12583]
17020         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
17021         character representation.
17022         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
17023
17024 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
17025
17026         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
17027         END(__isnan) to END(__isnanf) to match function entry point/label
17028         EALIGN(__isnanf,...).
17029
17030 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
17031
17032         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
17033
17034 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
17035
17036         [BZ #12510]
17037         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
17038         copy from the symbol referenced in the relocation to initialize the
17039         used variable.
17040         Patch by Piotr Bury <pbury@goahead.com>.
17041         * elf/Makefile: Add rules to build and tst-unique3.
17042         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
17043         * elf/tst-unique3.cc: New file.
17044         * elf/tst-unique3.h: New file.
17045         * elf/tst-unique3lib.cc: New file.
17046         * elf/tst-unique3lib2.cc: New file.
17047
17048         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
17049
17050 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
17051
17052         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
17053         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
17054         to _start.
17055
17056 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
17057
17058         * elf/dl-load.c (_dl_map_object): If we are looking for the first
17059         to-be-loaded object along a path to loader is ld.so.
17060
17061 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
17062             Ulrich Drepper  <drepper@gmail.com>
17063
17064         * sysdeps/x86_64/memset.S: After aligning destination, code
17065         branches to different locations depending on the value of
17066         misalignment, when multiarch is enabled. Fix this.
17067
17068 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
17069
17070         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
17071         Set _x86_64_preferred_memory_instruction for AMD processsors.
17072         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17073         Set bit_Prefer_SSE_for_memop for AMD processors.
17074
17075 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
17076
17077         * libio/fmemopen.c (fmemopen): Optimize a bit.
17078
17079 2011-03-03  Andreas Schwab  <schwab@redhat.com>
17080
17081         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
17082
17083 2011-03-03  Roland McGrath  <roland@redhat.com>
17084
17085         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
17086
17087 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
17088
17089         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
17090         __bzero_ultra1 instead of __memset_ultra1.
17091
17092 2011-02-23  Andreas Schwab  <schwab@redhat.com>
17093             Ulrich Drepper  <drepper@gmail.com>
17094
17095         [BZ #12509]
17096         * include/link.h (struct link_map): Add l_orig_initfini.
17097         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
17098         returning unsuccessfully.
17099         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
17100         close of a file loaded at startup, restore the original l_initfini
17101         list.
17102         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
17103         list, store the pointer.
17104         * elf/Makefile ($(objpfx)noload-mem): New rule.
17105         (noload-ENV): Define.
17106         (tests): Add $(objpfx)noload-mem.
17107         * elf/noload.c: Include <memcheck.h>.
17108         (main): Call mtrace.  Close all opened handles.
17109
17110 2011-02-17  Andreas Schwab  <schwab@redhat.com>
17111
17112         [BZ #12454]
17113         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
17114         dependencies are missing.
17115
17116 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17117
17118         Fix __if_freereq crash: Unlike the generic version which uses free,
17119         Hurd needs munmap.
17120         * sysdeps/mach/hurd/ifreq.h: New file.
17121
17122 2011-01-27  Petr Baudis  <pasky@suse.cz>
17123             Ulrich Drepper  <drepper@gmail.com>
17124
17125         [BZ 12445]#
17126         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
17127         to extend_alloca().
17128         * stdio-common/bug23.c: New file.
17129         * stdio-common/Makefile (tests): Add bug23.
17130
17131 2010-09-28  Andreas Schwab  <schwab@redhat.com>
17132             Ulrich Drepper  <drepper@gmail.com>
17133
17134         [BZ #12489]
17135         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
17136         before performing relro protection.  At old place add assertion
17137         to make sure nothing changed.
17138
17139 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
17140             Glauber de Oliveira Costa  <glommer@gmail.com>
17141
17142         * elf/elf.h: Add new ARM TLS relocs.
17143
17144 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
17145
17146         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
17147         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
17148         cast from r3.
17149         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
17150         'tests' variable.
17151         * sysdeps/wordsize-64/tst-writev.c: New file.
17152
17153 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
17154
17155         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
17156         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
17157         insns in _dl_start to prevent a TOC reference before relocs are
17158         resolved.
17159
17160 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
17161
17162         [BZ #12469]
17163         * Makeconfig: Remove RANLIB definition.
17164         * Makerules: Don't use RANLIB.
17165         * aclocal.m4: Remove ranlib test.
17166         * configure.in: No need to check for ranlib.
17167         * elf/rtld-Rules: Don't use RANLIB.
17168
17169 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17170
17171         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
17172         protection macro.
17173         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
17174         inclusion protection macro.
17175
17176         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
17177         SIGRTMIN and SIGRTMAX and print information in that case only when
17178         SIGRTMIN is defined.
17179
17180 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
17181
17182         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
17183         arginfo fn returning -1.
17184
17185         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
17186         and thousands string is zero terminated.
17187
17188 2011-02-03  Andreas Schwab  <schwab@redhat.com>
17189
17190         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
17191         sysdeps/unix/sysv/linux/bits/socket.h.
17192
17193 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17194
17195         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
17196         (__CPU_COUNT): Remove old macros.
17197         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
17198         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
17199         (__CPU_ALLOC, __CPU_FREE): Add macros.
17200         (__sched_cpualloc, __sched_cpufree): Add declarations.
17201
17202 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
17203
17204         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
17205         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
17206         * nscd/aicache.c (addhstaiX): Return timeout of added value.
17207         (readdhstai): Return value of addhstaiX call.
17208         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
17209         (addgrbyX): Return value returned by cache_addgr.
17210         (readdgrbyname): Return value returned by addgrbyX.
17211         (readdgrbygid): Likewise.
17212         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
17213         (addpwbyX): Return value returned by cache_addpw.
17214         (readdpwbyname): Return value returned by addhstbyX.
17215         (readdpwbyuid): Likewise.
17216         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
17217         (addservbyX): Return value returned by cache_addserv.
17218         (readdservbyname): Return value returned by addservbyX:
17219         (readdservbyport): Likewise.
17220         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
17221         (addhstbyX): Return value returned by cache_addhst.
17222         (readdhstbyname): Return value returned by addhstbyX.
17223         (readdhstbyaddr): Likewise.
17224         (readdhstbynamev6): Likewise.
17225         (readdhstbyaddrv6): Likewise.
17226         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
17227         (readdinitgroups): Return value returned by addinitgroupsX.
17228         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
17229         (prune_cache): Keep track of timeout value of re-added entries.
17230         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
17231         * nscd/nscd.h: Adjust prototypes of readd* functions.
17232
17233 2011-02-04  Roland McGrath  <roland@redhat.com>
17234
17235         * nis/nis_server.c (nis_servstate): Use the right name for 0.
17236         (nis_stats): Likewise.
17237         * nis/nis_modify.c (nis_modify): Likewise.
17238         * nis/nis_remove.c (nis_remove): Likewise.
17239         * nis/nis_add.c (nis_add): Likewise.
17240
17241         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
17242
17243         * posix/fnmatch_loop.c: Add some consts.
17244
17245         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
17246
17247 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
17248
17249         [BZ #12460]
17250         * config.make.in (config-cflags-novzeroupper): Define.
17251         * configure.in: Substitute libc_cv_cc_novzeroupper.
17252         * elf/Makefile (AVX-CFLAGS): Define.
17253         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
17254         (CFLAGS-tst-auditmod4a.c): Likewise.
17255         (CFLAGS-tst-auditmod4b.c): Likewise.
17256         (CFLAGS-tst-auditmod6b.c): Likewise.
17257         (CFLAGS-tst-auditmod6c.c): Likewise.
17258         (CFLAGS-tst-auditmod7b.c): Likewise.
17259         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
17260
17261 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
17262
17263         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
17264         function to the callback.
17265         Patch partly by Jiri Olsa <jolsa@redhat.com>.
17266
17267 2011-02-02  Andreas Schwab  <schwab@redhat.com>
17268
17269         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
17270         of errno.
17271
17272 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
17273
17274         [BZ #11724]
17275         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
17276         of constructors.
17277         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
17278         of destructors.
17279         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
17280
17281         [BZ #11724]
17282         * elf/Makefile: Add rules to build and run new test.
17283         * elf/tst-initorder.c: New file.
17284         * elf/tst-initorder.exp: New file.
17285         * elf/tst-initordera1.c: New file.
17286         * elf/tst-initordera2.c: New file.
17287         * elf/tst-initordera3.c: New file.
17288         * elf/tst-initordera4.c: New file.
17289         * elf/tst-initorderb1.c: New file.
17290         * elf/tst-initorderb2.c: New file.
17291         * elf/tst-order-a1.c: New file.
17292         * elf/tst-order-a2.c: New file.
17293         * elf/tst-order-a3.c: New file.
17294         * elf/tst-order-a4.c: New file.
17295         * elf/tst-order-b1.c: New file.
17296         * elf/tst-order-b2.c: New file.
17297         * elf/tst-order-main.c: New file.
17298         New test case by George Gensure <werkt0@gmail.com>.
17299
17300 2010-10-01  Andreas Schwab  <schwab@redhat.com>
17301
17302         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
17303         decoding ACE if AI_CANONIDN.
17304
17305 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
17306
17307         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
17308
17309 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
17310
17311         * version.h (RELEASE): Bump for 2.13 release.
17312         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
17313
17314         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
17315
17316         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
17317         MADV_NOHUGEPAGE.
17318         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
17319         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
17320         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
17321         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
17322         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
17323         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
17324
17325         * posix/getconf.c: Update copyright year.
17326         * catgets/gencat.c: Likewise.
17327         * csu/version.c: Likewise.
17328         * debug/catchsegv.sh: Likewise.
17329         * debug/xtrace.sh: Likewise.
17330         * elf/ldconfig.c: Likewise.
17331         * elf/ldd.bash.in: Likewise.
17332         * elf/sprof.c (print_version): Likewise.
17333         * iconv/iconv_prog.c: Likewise.
17334         * iconv/iconvconfig.c: Likewise.
17335         * locale/programs/locale.c: Likewise.
17336         * locale/programs/localedef.c: Likewise.
17337         * malloc/memusage.sh: Likewise.
17338         * malloc/mtrace.pl: Likewise.
17339         * nscd/nscd.c (print_version): Likewise.
17340         * nss/getent.c: Likewise.
17341
17342         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
17343         PF_CAIF, and PF_ALG.
17344         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
17345
17346 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
17347
17348         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
17349         (modules-names): Use them.
17350         (ifunc-test-modules, ifunc-pie-tests): Define.
17351         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
17352         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
17353         (test-extras): Likewise.
17354         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
17355         $(compile-command.c).
17356         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
17357         (all-built-dso): Define.
17358         (check-textrel.out, check-execstack.out): Depend on it.
17359
17360         * configure.in: Don't override --enable-multi-arch.
17361
17362 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
17363
17364         [BZ #6812]
17365         * nscd/hstcache.c (tryagain): Define.
17366         (cache_addhst): Return tryagain not notfound for temporary errors.
17367         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
17368         failed.
17369
17370 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
17371
17372         [BZ #10563]
17373         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
17374         to make the syscall.
17375         * sysdeps/unix/sysv/linux/setgroups.c: New file.
17376
17377         [BZ #12378]
17378         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
17379         and fall back to matching as normal character if the string ends before
17380         the matching ']' is found.  This is what POSIX requires.
17381         * posix/testfnm.c: Adjust test result.
17382         * posix/globtest.sh: Adjust test result.  Add new test.
17383         * posix/tst-fnmatch.input: Likewise.
17384         * posix/tst-fnmatch2.c: Add new test.
17385
17386 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
17387
17388         * elf/Makefile (check-execstack): Revert last change.  Depend on
17389         check-execstack.h.
17390         (check-execstack.h): New target.
17391         (generated): Add check-execstack.h.
17392         * elf/check-execstack.c: Include "check-execstack.h".
17393         (main): Revert last change.
17394         (handle_file): Return zero if GNU_STACK is absent and
17395         DEFAULT_STACK_PERMS doesn't include PF_X.
17396
17397 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
17398
17399         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
17400         in child fails because the descriptor is already closed.
17401         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
17402         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
17403         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
17404
17405         [BZ #12397]
17406         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
17407         syscall.
17408
17409         [BZ #10484]
17410         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
17411         temporary buffer used to handle multi lookups locally.
17412         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
17413
17414 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
17415
17416         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
17417         loader is ld.so.
17418
17419 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
17420
17421         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
17422         alignment for SSE2.
17423
17424 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
17425
17426         [BZ #12394]
17427         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
17428         characters.  When rounding increased number of integer digits recompute
17429         number of groups.
17430         * stdio-common/tst-grouping.c: New file.
17431         * stdio-common/Makefile: Add rules to build and run tst-grouping.
17432
17433 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
17434
17435         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
17436         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
17437
17438         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
17439         void.
17440         * bits/select.h: Likewise.
17441
17442 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
17443
17444         * po/ja.po: Update from translation team.
17445
17446 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
17447
17448         [BZ #11155]
17449         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
17450         implementation just like for lxstat, fxstatat, et al.
17451
17452 2010-12-27  Jim Meyering  <meyering@redhat.com>
17453
17454         [BZ #12348]
17455         * posix/regexec.c (build_trtable): Return failure indication upon
17456         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
17457
17458 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
17459
17460         [BZ #12201]
17461         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
17462         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
17463         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
17464         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
17465
17466         [BZ #12207]
17467         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
17468
17469         [BZ #12204]
17470         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
17471         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
17472
17473 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
17474
17475         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
17476         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
17477         script has SORT_BY_INIT_PRIORITY.
17478         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
17479         NO_CTORS_DTORS_SECTIONS is defined.
17480         * elf/soinit.c: Likewise.
17481         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
17482         NO_CTORS_DTORS_SECTIONS is defined.
17483         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
17484         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
17485         * sysdeps/sh/init-first.c: Likewise.
17486         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
17487
17488 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
17489
17490         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
17491         always use the slow path.
17492
17493 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
17494
17495         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
17496         similar rule which adds the sysdep directories to the header search in
17497         order to pick up the correct platform stackinfo.h.
17498         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
17499         perform test if it is, otherwise return successfully without testing.
17500         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
17501         DEFAULT_STACK_PERMS define in stackinfo.h.
17502         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
17503         defined in stackinfo.h.
17504         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
17505         DEFAULT_STACK_PERMS defined in stackinfo.h.
17506         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
17507         * sysdeps/ia64/stackinfo.h: Likewise.
17508         * sysdeps/s390/stackinfo.h: Likewise.
17509         * sysdeps/sh/stackinfo.h: Likewise.
17510         * sysdeps/sparc/stackinfo.h: Likewise.
17511         * sysdeps/x86_64/stackinfo.h: Likewise.
17512         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
17513         PF_X for powerpc64.  Retain PF_X for powerpc32.
17514
17515 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
17516
17517         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
17518         accurately.
17519         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
17520         GETDENTS_64BIT_ALIGNED.
17521
17522 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
17523
17524         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
17525
17526 2010-12-10  Andreas Schwab  <schwab@redhat.com>
17527
17528         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
17529         _GNU_SOURCE.
17530
17531         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
17532         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
17533         Remove __restrict.
17534         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
17535         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
17536
17537 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
17538
17539         [BZ #11655]
17540         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
17541         are initialized.
17542
17543 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
17544
17545         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
17546
17547 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
17548
17549         * po/it.po: Update from translation team.
17550
17551 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
17552
17553         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
17554         unused codes.
17555
17556 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
17557
17558         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
17559
17560 2010-11-24  Andreas Schwab  <schwab@redhat.com>
17561
17562         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
17563         specially.
17564         (gaih_getanswer_slice): Likewise.
17565
17566 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
17567
17568         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
17569
17570 2010-05-31  Petr Baudis  <pasky@suse.cz>
17571
17572         [BZ #11149]
17573         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
17574         silently even in the chroot mode.
17575
17576 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
17577
17578         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
17579         last patch a bit.  Pretty printing
17580
17581 2010-05-31  Petr Baudis <pasky@suse.cz>
17582
17583         [BZ #10085]
17584         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
17585         initialization of skip_initgroups_dyn.
17586
17587 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
17588
17589         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
17590         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
17591
17592 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
17593
17594         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
17595
17596 2010-11-11  Andreas Schwab  <schwab@redhat.com>
17597
17598         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
17599         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
17600         (tst-fnmatch-ENV): Set MALLOC_TRACE.
17601         ($(objpfx)tst-fnmatch-mem): New rule.
17602         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
17603         * posix/tst-fnmatch.c (main): Call mtrace.
17604
17605 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
17606
17607         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17608         Support Intel processor model 6 and model 0x2c.
17609
17610 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
17611
17612         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
17613           signed comparison.
17614
17615 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
17616
17617         [BZ #12205]
17618         * string/test-strncasecmp.c (check_result): New function.
17619         (do_one_test): Use it.
17620         (check1): New function.
17621         (test_main): Use it.
17622         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
17623         Support strcasecmp and strncasecmp.
17624
17625 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
17626
17627         [BZ #12194]
17628         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
17629         * sysdeps/x86_64/bits/byteswap.h: Likewise.
17630
17631 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
17632
17633         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
17634         IFUNC support.
17635         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17636         memset-x86-64.
17637         * sysdeps/x86_64/multiarch/bzero.S: New file.
17638         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
17639         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
17640         * sysdeps/x86_64/multiarch/memset.S: New file.
17641         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
17642         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17643         Set bit_Prefer_SSE_for_memop for Intel processors.
17644         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
17645         Define.
17646         (index_Prefer_SSE_for_memop): Define.
17647         (HAS_PREFER_SSE_FOR_MEMOP): Define.
17648
17649 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
17650
17651         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
17652         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
17653
17654 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
17655
17656         [BZ #12191]
17657         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
17658         (__x86_64_raw_data_cache_size_half): Likewise.
17659         (__x86_64_raw_shared_cache_size): Likewise.
17660         (__x86_64_raw_shared_cache_size_half): Likewise.
17661
17662         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
17663         (__x86_64_raw_data_cache_size_half): Likewise.
17664         (__x86_64_raw_shared_cache_size): Likewise.
17665         (__x86_64_raw_shared_cache_size_half): Likewise.
17666         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
17667         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
17668         and __x86_64_raw_shared_cache_size_half.  Round
17669         __x86_64_data_cache_size_half, __x86_64_data_cache_size
17670         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
17671         to multiple of 256 bytes.
17672
17673 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
17674
17675         [BZ #12167]
17676         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
17677         of inacessible symlinks.  Verify result of symlink before returning it.
17678         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
17679         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
17680
17681 2010-10-28  Erich Ritz  <erichritz@gmail.com>
17682
17683         * math/math.h (isinf): Fix typo in comment.
17684
17685 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
17686
17687         * po/da.po: Update from translation team.
17688
17689 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
17690
17691         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
17692         is added to the list.
17693
17694 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17695             Ulrich Drepper  <drepper@gmail.com>
17696
17697         * elf/dl-object.c (_dl_new_object): Don't append the new object to
17698         the global list here.  Move code to...
17699         (_dl_add_to_namespace_list): ...here.  New function.
17700         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
17701         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
17702         * elf/dl-load.c (lose): Don't remove the element from the list.
17703         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
17704         (_dl_map_object): Likewise.
17705
17706 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
17707
17708         [BZ #12159]
17709         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
17710         into all bytes of SSE register.
17711         Patch by Richard Li <richardpku@gmail.com>.
17712
17713 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
17714
17715         [BZ #12140]
17716         * malloc/malloc.c (_int_free): Fill correct number of bytes when
17717         perturbing.
17718
17719 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
17720
17721         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
17722         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
17723         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
17724         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
17725         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
17726         submachine.
17727         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
17728
17729 2010-10-22  Andreas Schwab  <schwab@redhat.com>
17730
17731         * include/dlfcn.h (__RTLD_SECURE): Define.
17732         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
17733         mode & __RTLD_SECURE instead.
17734         (open_path): Rename preloaded parameter to secure.
17735         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
17736         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
17737         * elf/dl-deps.c (openaux): Likewise.
17738         * elf/rtld.c (struct map_args): Remove is_preloaded.
17739         (map_doit): Don't use it.
17740         (dl_main): Likewise.
17741         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
17742         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
17743
17744 2010-09-09  Andreas Schwab  <schwab@redhat.com>
17745
17746         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
17747         (sysd-rules-targets): Remove duplicates.
17748         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
17749         rtld-%.$o dependency.
17750
17751 2010-10-18  Andreas Schwab  <schwab@redhat.com>
17752
17753         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
17754         _dl_map_object do it.
17755
17756 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
17757
17758         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
17759         fast fma builtins, define the macros in the C99 standard.
17760         (FP_FAST_FMAF): Likewise.
17761         (FP_FAST_FMAL): Likewise.
17762         * sysdeps/x86_64/bits/mathdef.h: Likewise.
17763
17764         * bits/mathdef.h: Update copyright year.
17765         * sysdeps/powerpc/bits/mathdef.h: Likewise.
17766
17767 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
17768
17769         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
17770         builtins, define the macros in the C99 standard.
17771         (FP_FAST_FMAF): Likewise.
17772         (FP_FAST_FMAL): Likewise.
17773         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
17774         multiply/add.
17775         (FP_FAST_FMAF): Likewise.
17776
17777 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
17778
17779         [BZ #3268]
17780         * math/libm-test.inc (fma_test): Some new testcases.
17781         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
17782         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
17783         y and infinite z.  Do multiplication by C already in long double.
17784         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
17785         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
17786         y and infinite z.  Do bitwise or of inexact bit into u.d.
17787         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
17788         * sysdeps/i386/fpu/s_fmaf.S: Removed.
17789         * sysdeps/i386/fpu/s_fma.S: Removed.
17790         * sysdeps/i386/fpu/s_fmal.S: Removed.
17791
17792 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
17793
17794         [BZ #3268]
17795         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
17796         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
17797         computation is not scheduled after fetestexcept.  Fix value
17798         of minimum denormal long double.
17799
17800 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
17801
17802         [BZ #3268]
17803         * math/libm-test.inc (fma_test): Add some more tests.
17804         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
17805         correctly.
17806
17807 2010-10-15  Andreas Schwab  <schwab@redhat.com>
17808
17809         * scripts/data/localplt-s390-linux-gnu.data: New file.
17810         * scripts/data/localplt-s390x-linux-gnu.data: New file.
17811
17812 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
17813
17814         [BZ #3268]
17815         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
17816         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
17817         instead of dbl-64.
17818         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
17819         inlines.
17820         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
17821         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
17822         if one of x and y is very large and the other is subnormal.
17823         * sysdeps/s390/fpu/s_fmaf.c: New file.
17824         * sysdeps/s390/fpu/s_fma.c: New file.
17825         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
17826         * sysdeps/powerpc/fpu/s_fma.S: New file.
17827         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
17828         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
17829         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
17830
17831 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
17832
17833         [BZ #3268]
17834         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
17835         fma tests.
17836         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
17837         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
17838         * sysdeps/i386/i686/multiarch/s_fma.c: Include
17839         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
17840         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
17841         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
17842         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
17843
17844 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
17845
17846         [BZ #12078]
17847         * posix/regcomp.c (parse_branch): One more memory leak plugged.
17848         * posix/bug-regex31.input: Add test case.
17849
17850 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
17851
17852         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
17853         * posix/bug-regex31.input: New file.
17854
17855         [BZ #12078]
17856         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
17857         (parse_sub_exp): Fix last change, use postorder.
17858
17859         * posix/bug-regex31.c: New file.
17860         * posix/Makefile: Add rules to build and run bug-regex31.
17861
17862         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
17863
17864         [BZ #12078]
17865         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
17866
17867         [BZ #12108]
17868         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
17869         to have entries in sys_siglist.
17870
17871         [BZ #12093]
17872         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
17873         be NULL.
17874
17875 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
17876
17877         [BZ #3268]
17878         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
17879         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
17880         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
17881         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
17882         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
17883         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
17884         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
17885         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
17886         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
17887         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
17888         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
17889         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
17890         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
17891         * math/ftestexcept.c (fetestexcept): Likewise.
17892         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
17893         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
17894         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
17895         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
17896         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
17897         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
17898         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
17899
17900 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
17901
17902         [BZ #12107]
17903         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
17904         newline.
17905
17906 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
17907
17908         * string/bug-strstr1.c: New file.
17909         * string/Makefile: Add rules to build and run bug-strstr1.
17910
17911 2010-10-05  Eric Blake  <eblake@redhat.com>
17912
17913         [BZ #12092]
17914         * string/str-two-way.h (two_way_long_needle): Always clear memory
17915         when skipping input due to the shift table.
17916
17917 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
17918
17919         [BZ #12005]
17920         * malloc/mcheck.c: Handle large requests.
17921
17922         [BZ #12077]
17923         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
17924         for strncmp and strncasecmp.
17925         * string/stratcliff.c: Add tests for strcmp and strncmp.
17926         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
17927
17928 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
17929
17930         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
17931         __set_fpscr.
17932
17933 2010-09-30  Andreas Jaeger  <aj@suse.de>
17934
17935         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
17936         (CGROUP_SUPER_MAGIC): Define.
17937         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
17938         Handle btrfs and cgroup file systems.
17939         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
17940         Likewise.
17941
17942 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
17943
17944         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
17945         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
17946
17947 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17948
17949         [BZ #12067]
17950         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
17951         trying to locate the ELF header.
17952
17953 2010-09-27  Andreas Schwab  <schwab@redhat.com>
17954
17955         [BZ #11611]
17956         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
17957         Mask out sign-bit copies when constructing f_fsid.
17958
17959 2010-09-24  Petr Baudis <pasky@suse.cz>
17960
17961         * debug/stack_chk_fail_local.c: Add missing licence exception.
17962         * debug/warning-nop.c: Likewise.
17963
17964 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
17965
17966         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
17967         implementing getdents64 using getdents syscall, set d_type if
17968         __ASSUME_GETDENTS32_D_TYPE.
17969
17970 2010-09-16  Andreas Schwab  <schwab@redhat.com>
17971
17972         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
17973         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
17974
17975 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
17976
17977         [BZ #12037]
17978         * posix/unistd.h: Undo change of feature selection for ftruncate from
17979         2010-01-11.
17980
17981 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
17982
17983         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
17984         detection.
17985
17986 2010-09-20  Andreas Schwab  <schwab@redhat.com>
17987
17988         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
17989         fanotify_mark.
17990         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
17991
17992 2010-09-14  Andreas Schwab  <schwab@redhat.com>
17993
17994         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
17995         variables after CHECK_SP call.
17996         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
17997
17998 2010-09-13  Andreas Schwab  <schwab@redhat.com>
17999             Ulrich Drepper  <drepper@redhat.com>
18000
18001         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
18002         re-relocationg ld.so.
18003         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
18004         _dl_init_paths call.
18005         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
18006         here anymore.
18007
18008 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
18009
18010         * resolv/res_init.c (__res_vinit): Count the default server we added.
18011
18012 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
18013             Ulrich Drepper  <drepper@redhat.com>
18014
18015         [BZ #11968]
18016         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
18017         (____longjmp_chk): Use %ebx for saving value across system call.
18018         Add unwind info.
18019
18020 2010-09-06  Andreas Schwab  <schwab@redhat.com>
18021
18022         * manual/Makefile: Don't mix pattern rules with normal rules.
18023
18024 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
18025
18026         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
18027         operation.
18028         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
18029         * libio/iofopncook.c (_IO_cookie_init): Likewise.
18030         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
18031         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
18032         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
18033         Likewise.
18034
18035 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
18036
18037         [BZ #11979]
18038         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
18039         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
18040
18041 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
18042
18043         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
18044         * sysdeps/x86_64/addmul_1.S: Likewise.
18045         * sysdeps/x86_64/lshift.S: Likewise.
18046         * sysdeps/x86_64/mul_1.S: Likewise.
18047         * sysdeps/x86_64/rshift.S: Likewise.
18048         * sysdeps/x86_64/sub_n.S: Likewise.
18049         * sysdeps/x86_64/submul_1.S: Likewise.
18050
18051 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18052
18053         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
18054         Define __sched_param instead of SCHED_* and sched_param when
18055         <bits/sched.h> is included with __need_schedparam defined.
18056         * bits/sched.h [__need_schedparam]
18057         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
18058         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
18059         (__defined_schedparam): Define to 1.
18060         (__sched_param): New structure, identical to sched_param.
18061         (__need_schedparam): Undefine.
18062
18063 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
18064
18065         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
18066         (epoll_create1): Declare.
18067
18068         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
18069
18070 2010-08-31  Andreas Schwab  <schwab@redhat.com>
18071
18072         [BZ #7066]
18073         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
18074         shifting retval into place.
18075
18076 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
18077
18078         * nis/rpcsvc/nis.h: Update copyright notice.
18079         * nis/rpcsvc/nis.x: Likewise.
18080         * nis/rpcsvc/nis_callback.h: Likewise.
18081         * nis/rpcsvc/nis_callback.x: Likewise.
18082         * nis/rpcsvc/nis_object.x: Likewise.
18083         * nis/rpcsvc/nis_tags.h: Likewise.
18084         * nis/rpcsvc/yp.h: Likewise.
18085         * nis/rpcsvc/yp.x: Likewise.
18086         * nis/rpcsvc/ypupd.h: Likewise.
18087         * nis/yp_xdr.c: Likewise.
18088         * nis/ypupdate_xdr.c: Likewise.
18089
18090         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
18091         mainly the body of pmap_getport.  Add parameters to specify timeouts.
18092         (pmap_getport): Use __libc_rpc_getport.
18093         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
18094         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
18095         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
18096
18097 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
18098
18099         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
18100         fanotify_mark.
18101
18102 2010-08-27  Roland McGrath  <roland@redhat.com>
18103
18104         * sysdeps/i386/i686/multiarch/Makefile
18105         (CFLAGS-varshift.c): New variable.
18106
18107 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
18108
18109         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
18110         * sysdeps/i386/i686/multiarch/varshift.c: New file.
18111
18112         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
18113
18114         * sysdeps/x86_64/strlen.S: Minimal code improvement.
18115
18116 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
18117
18118         * sysdeps/x86_64/strlen.S: Unroll the loop.
18119         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18120         strlen-sse2 strlen-sse2-bsf.
18121         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
18122         __strlen_no_bsf if bit_Slow_BSF is set.
18123         (__strlen_sse42): Removed.
18124         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
18125         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
18126
18127 2010-08-25  Roland McGrath  <roland@redhat.com>
18128
18129         * sysdeps/x86_64/multiarch/varshift.S: File removed.
18130         * sysdeps/x86_64/multiarch/varshift.c: New file.
18131         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
18132         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
18133         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
18134         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
18135
18136 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
18137
18138         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
18139         strlen-sse2 strlen-sse2-bsf.
18140         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
18141         __strlen_sse2_bsf if bit_Slow_BSF is unset.
18142         (__strlen_sse2): Removed.
18143         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
18144         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
18145         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
18146         bit_Slow_BSF for Atom.
18147         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
18148         (index_Slow_BSF): Define.
18149         (HAS_SLOW_BSF): Define.
18150
18151 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
18152
18153         [BZ #10851]
18154         * resolv/res_init.c (__res_vinit): When no server address at all
18155         is given default to loopback.
18156
18157 2010-08-24  Roland McGrath  <roland@redhat.com>
18158
18159         * configure.in: Remove config-name.h generation.
18160         * configure: Regenerated.
18161         * config-name.in: File removed.
18162         * scripts/config-uname.sh: New file.
18163         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
18164         ($(objdir)config-name.h): New target.
18165
18166         * sunrpc/rpc_parse.h: Avoid nested comment.
18167
18168 2010-08-24  Richard Henderson  <rth@redhat.com>
18169             Ulrich Drepper  <drepper@redhat.com>
18170             H.J. Lu  <hongjiu.lu@intel.com>
18171
18172         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
18173         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
18174         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
18175         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
18176         _mm_alignr_epi8 with _mm_loadu_si128.
18177         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
18178         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
18179         (__m128i_shift_right): Removed.
18180         * sysdeps/i386/i686/multiarch/varshift.h: New file.
18181         * sysdeps/i386/i686/multiarch/varshift.S: New file.
18182         * sysdeps/x86_64/multiarch/varshift.h: New file.
18183         * sysdeps/x86_64/multiarch/varshift.S: New file.
18184
18185 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
18186
18187         * configure.in: Move assembler checks to before sysdep dir checking.
18188
18189 2010-08-20  Petr Baudis  <pasky@suse.cz>
18190
18191         * LICENSES: Sync the sunrpc license.
18192
18193 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
18194
18195         * sunrpc/auth_des.c: Update copyright notice once again.
18196         * sunrpc/auth_none.c: Likewise.
18197         * sunrpc/auth_unix.c: Likewise.
18198         * sunrpc/authdes_prot.c: Likewise.
18199         * sunrpc/authuxprot.c: Likewise.
18200         * sunrpc/bindrsvprt.c: Likewise.
18201         * sunrpc/clnt_gen.c: Likewise.
18202         * sunrpc/clnt_perr.c: Likewise.
18203         * sunrpc/clnt_raw.c: Likewise.
18204         * sunrpc/clnt_simp.c: Likewise.
18205         * sunrpc/clnt_tcp.c: Likewise.
18206         * sunrpc/clnt_udp.c: Likewise.
18207         * sunrpc/clnt_unix.c: Likewise.
18208         * sunrpc/des_crypt.c: Likewise.
18209         * sunrpc/des_soft.c: Likewise.
18210         * sunrpc/get_myaddr.c: Likewise.
18211         * sunrpc/getrpcport.c: Likewise.
18212         * sunrpc/key_call.c: Likewise.
18213         * sunrpc/key_prot.c: Likewise.
18214         * sunrpc/openchild.c: Likewise.
18215         * sunrpc/pm_getmaps.c: Likewise.
18216         * sunrpc/pm_getport.c: Likewise.
18217         * sunrpc/pmap_clnt.c: Likewise.
18218         * sunrpc/pmap_prot.c: Likewise.
18219         * sunrpc/pmap_prot2.c: Likewise.
18220         * sunrpc/pmap_rmt.c: Likewise.
18221         * sunrpc/rpc/auth.h: Likewise.
18222         * sunrpc/rpc/auth_unix.h: Likewise.
18223         * sunrpc/rpc/clnt.h: Likewise.
18224         * sunrpc/rpc/des_crypt.h: Likewise.
18225         * sunrpc/rpc/key_prot.h: Likewise.
18226         * sunrpc/rpc/netdb.h: Likewise.
18227         * sunrpc/rpc/pmap_clnt.h: Likewise.
18228         * sunrpc/rpc/pmap_prot.h: Likewise.
18229         * sunrpc/rpc/pmap_rmt.h: Likewise.
18230         * sunrpc/rpc/rpc.h: Likewise.
18231         * sunrpc/rpc/rpc_des.h: Likewise.
18232         * sunrpc/rpc/rpc_msg.h: Likewise.
18233         * sunrpc/rpc/svc.h: Likewise.
18234         * sunrpc/rpc/svc_auth.h: Likewise.
18235         * sunrpc/rpc/types.h: Likewise.
18236         * sunrpc/rpc/xdr.h: Likewise.
18237         * sunrpc/rpc_clntout.c: Likewise.
18238         * sunrpc/rpc_cmsg.c: Likewise.
18239         * sunrpc/rpc_common.c: Likewise.
18240         * sunrpc/rpc_cout.c: Likewise.
18241         * sunrpc/rpc_dtable.c: Likewise.
18242         * sunrpc/rpc_hout.c: Likewise.
18243         * sunrpc/rpc_main.c: Likewise.
18244         * sunrpc/rpc_parse.c: Likewise.
18245         * sunrpc/rpc_parse.h: Likewise.
18246         * sunrpc/rpc_prot.c: Likewise.
18247         * sunrpc/rpc_sample.c: Likewise.
18248         * sunrpc/rpc_scan.c: Likewise.
18249         * sunrpc/rpc_scan.h: Likewise.
18250         * sunrpc/rpc_svcout.c: Likewise.
18251         * sunrpc/rpc_tblout.c: Likewise.
18252         * sunrpc/rpc_util.c: Likewise.
18253         * sunrpc/rpc_util.h: Likewise.
18254         * sunrpc/rpcinfo.c: Likewise.
18255         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
18256         * sunrpc/rpcsvc/key_prot.x: Likewise.
18257         * sunrpc/rpcsvc/klm_prot.x: Likewise.
18258         * sunrpc/rpcsvc/mount.x: Likewise.
18259         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
18260         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
18261         * sunrpc/rpcsvc/rex.x: Likewise.
18262         * sunrpc/rpcsvc/rstat.x: Likewise.
18263         * sunrpc/rpcsvc/rusers.x: Likewise.
18264         * sunrpc/rpcsvc/sm_inter.x: Likewise.
18265         * sunrpc/rpcsvc/spray.x: Likewise.
18266         * sunrpc/rpcsvc/yppasswd.x: Likewise.
18267         * sunrpc/rtime.c: Likewise.
18268         * sunrpc/svc.c: Likewise.
18269         * sunrpc/svc_auth.c: Likewise.
18270         * sunrpc/svc_authux.c: Likewise.
18271         * sunrpc/svc_raw.c: Likewise.
18272         * sunrpc/svc_run.c: Likewise.
18273         * sunrpc/svc_simple.c: Likewise.
18274         * sunrpc/svc_tcp.c: Likewise.
18275         * sunrpc/svc_udp.c: Likewise.
18276         * sunrpc/svc_unix.c: Likewise.
18277         * sunrpc/svcauth_des.c: Likewise.
18278         * sunrpc/xcrypt.c: Likewise.
18279         * sunrpc/xdr.c: Likewise.
18280         * sunrpc/xdr_array.c: Likewise.
18281         * sunrpc/xdr_float.c: Likewise.
18282         * sunrpc/xdr_mem.c: Likewise.
18283         * sunrpc/xdr_rec.c: Likewise.
18284         * sunrpc/xdr_ref.c: Likewise.
18285         * sunrpc/xdr_sizeof.c: Likewise.
18286         * sunrpc/xdr_stdio.c: Likewise.
18287
18288         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
18289         handling.
18290
18291 2010-08-19  Andreas Schwab  <schwab@redhat.com>
18292
18293         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
18294
18295 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
18296
18297         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
18298         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
18299         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
18300         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
18301         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
18302         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
18303         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
18304         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
18305         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
18306         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
18307         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
18308         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
18309         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
18310         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
18311
18312 2010-07-26  Anton Blanchard  <anton@samba.org>
18313
18314         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
18315         * malloc/arena.c (heap_trim): Likewise.
18316
18317 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
18318
18319         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
18320         here.  Not...
18321         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
18322         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
18323
18324 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
18325
18326         * sysdeps/i386/elf/Makefile: New file.
18327
18328 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
18329
18330         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
18331         from fanotify_init.
18332         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
18333         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
18334
18335 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
18336
18337         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
18338         of strncasecmp_l.
18339         * sysdeps/multiarch/strcmp.S: Likewise.
18340
18341 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
18342
18343         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
18344         strncase_l-nonascii.
18345         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
18346         Add strncase_l-ssse3.
18347         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
18348         * sysdeps/x86_64/strcmp.S: Likewise.
18349         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
18350         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
18351         * sysdeps/x86_64/strncase.S: New file.
18352         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
18353         * sysdeps/x86_64/strncase_l.S: New file.
18354         * string/Makefile (strop-tests): Add strncasecmp.
18355         * string/test-strncasecmp.c: New file.
18356
18357         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
18358         warning.
18359
18360         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
18361         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
18362
18363 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
18364
18365         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
18366
18367 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
18368
18369         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
18370         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
18371         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
18372
18373 2010-05-01  Alan Modra  <amodra@gmail.com>
18374
18375         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
18376         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
18377         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
18378         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
18379         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
18380         tidying.  Don't tail-call __sigjmp_save for static lib.
18381         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
18382         save location.
18383         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
18384         (CALL_MCOUNT): Add eh info, and nop after bl.
18385         (TAIL_CALL_SYSCALL_ERROR): New macro.
18386         (PSEUDO_RET): Use it.
18387         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
18388         Correct save location of integer regs and cr.
18389         (_dl_profile_resolve): Correct cr save location.  Delete nops
18390         after bl when SHARED.  Reduce cfi size a little by better
18391         placement of cfi directives.
18392         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
18393         make a stack frame.  Instead use parm save area as a temp.
18394         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
18395         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
18396         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
18397         Don't make a stack frame for parent, use parm save area.
18398         Increase child stack frame to 112 bytes.  Don't save unused reg,
18399         and adjust reg usage.  Set up cfi on error recovery and
18400         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
18401         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
18402         (__makecontext): Add dummy nop after jump to exit.
18403         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
18404         Use correct parm save area and cr save, reduce stack frame.
18405         Correct cfi for possible PSEUDO_RET frame setup.
18406         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
18407         Branch to local label emitted by PSEUDO_RET rather than
18408         __syscall_error.
18409
18410 2010-08-12  Andreas Schwab  <schwab@redhat.com>
18411
18412         [BZ #11904]
18413         * locale/programs/locale.c (print_assignment): New function.
18414         (show_locale_vars): Use it.
18415
18416 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
18417
18418         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
18419         field.
18420         (struct statfs64): Likewise.
18421         (_STATFS_F_FLAGS): Define.
18422         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
18423         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
18424         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
18425         (ST_VALID): Define locally.
18426         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
18427         __statvfs_getflags, use the provided value.
18428         * sysdeps/unix/sysv/linux/kernel-features.h: Define
18429         __ASSUME_STATFS_F_FLAGS.
18430
18431         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
18432
18433         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
18434         Add sys/fanotify.h.
18435         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
18436         fanotify_mask for GLIBC_2.13.
18437         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
18438         fanotify_init and fanotify_mark.
18439         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
18440         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
18441
18442         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
18443         Add prlimit.
18444         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
18445         prlimit64 for GLIBC_2.13.
18446         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
18447         prlimit64.
18448         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
18449         syscall.
18450         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
18451         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
18452         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
18453         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
18454         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
18455         add prlimit alias.
18456         * sysdeps/unix/sysv/linux/prlimit.c: New file.
18457
18458         [BZ #11903]
18459         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
18460         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
18461
18462         * nss/Makefile: Add rules to build and run tst-nss-test1.
18463         * shlib-versions: Add entry for libnss_test1.
18464         * nss/nss_test1.c: New file.
18465         * nss/tst-nss-test1.c: New file.
18466
18467         * nss/nsswitch.c (__nss_database_custom): Define new variable.
18468         (__nss_configure_lookup): Set appropriate entry in
18469         __nss_configure_lookup to true.
18470         * nss/nsswitch.h: Define enum with indeces of databases in
18471         databases and __nss_database_custom arrays.  Declare
18472         __nss_database_custom.
18473         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
18474         to avoid using nscd when custom rules are installed.
18475         * nss/getXXbyYY_r.c: Likewise.
18476         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
18477
18478         * nss/nss_files/files-parse.c: Whitespace fixes.
18479
18480 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
18481
18482         [BZ #11883]
18483         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
18484         * posix/fnmatch_loop.c: Likewise.
18485
18486 2010-07-17  Andi Kleen  <ak@linux.intel.com>
18487
18488         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
18489         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
18490         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
18491         * Versions.def [GLIBC_2.13]: Add.
18492
18493 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
18494
18495         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
18496         Also fail if tpwd after pwuid call is NULL.
18497
18498 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18499
18500         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
18501         when converting to ms.
18502
18503 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18504
18505         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
18506         EOPNOTSUPP errors with ENOTTY.
18507         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
18508         EOPNOTSUPP errors with ENOTTY.
18509
18510 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
18511
18512         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
18513         Add strcasecmp_l-ssse3.
18514         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
18515         strcasecmp.
18516         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
18517         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
18518         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
18519
18520 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
18521
18522         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
18523
18524         * string/Makefile (strop-tests): Add strcasecmp.
18525         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
18526         strcasecmp_l-nonascii.
18527         (gen-as-const-headers): Add locale-defines.sym.
18528         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
18529         * sysdeps/x86_64/strcasecmp.S: New file.
18530         * sysdeps/x86_64/strcasecmp_l.S: New file.
18531         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
18532         * sysdeps/x86_64/locale-defines.sym: New file.
18533         * string/test-strcasecmp.c: New file.
18534
18535         * string/test-strcasestr.c: Test both ends of the range of characters.
18536         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
18537
18538 2010-07-29  Roland McGrath  <roland@redhat.com>
18539
18540         [BZ #11856]
18541         * manual/locale.texi (Yes-or-No Questions): Fix example code.
18542
18543 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
18544
18545         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
18546         for ld.so.
18547
18548 2010-07-27  Andreas Schwab  <schwab@redhat.com>
18549
18550         * manual/memory.texi (Malloc Tunable Parameters): Document
18551         M_PERTURB.
18552
18553 2010-07-26  Roland McGrath  <roland@redhat.com>
18554
18555         [BZ #11840]
18556         * configure.in (-fgnu89-inline check): Set and substitute
18557         gnu89_inline, not libc_cv_gnu89_inline.
18558         * configure: Regenerated.
18559         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
18560
18561 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
18562
18563         * string/test-strnlen.c: New file.
18564         * string/Makefile (strop-tests): Add strnlen.
18565         * string/tester.c (test_strnlen): Add a few more test cases.
18566         * string/tst-strlen.c: Better error reporting.
18567
18568         * sysdeps/x86_64/strnlen.S: New file.
18569
18570 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
18571
18572         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
18573         lower-latency instructions.
18574
18575 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
18576
18577         * string/test-strcasestr.c: New file.
18578         * string/test-strstr.c: New file.
18579         * string/Makefile (strop-tests): Add strstr and strcasestr.
18580         * string/str-two-way.h: Don't undefine MAX.
18581         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
18582
18583 2010-07-21  Andreas Schwab  <schwab@redhat.com>
18584
18585         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
18586         strcasestr-nonascii.
18587         (CFLAGS-strcasestr-nonascii.c): Define.
18588         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
18589         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
18590         Remove unused attribute.
18591
18592 2010-07-20  Roland McGrath  <roland@redhat.com>
18593
18594         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
18595         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
18596         ld.so.cache was broken.  With it, there is no way to disable dsocaps
18597         like LD_HWCAP_MASK can disable hwcaps.
18598
18599 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
18600
18601         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
18602
18603 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
18604
18605         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
18606         call in strcasestr.
18607         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
18608         __strcasestr_sse42_nonascii.
18609         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
18610         strcasestr-nonascii.c.
18611         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
18612
18613 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
18614
18615         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
18616         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
18617         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
18618         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
18619
18620 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
18621
18622         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
18623         fcntl.
18624
18625 2010-07-06  Andreas Schwab  <schwab@redhat.com>
18626
18627         [BZ #11577]
18628         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
18629         dl_signal_cerror.
18630
18631 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
18632
18633         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
18634         _PC_PIPE_BUF using F_GETPIPE_SZ.
18635
18636 2010-07-05  Roland McGrath  <roland@redhat.com>
18637
18638         * manual/arith.texi (Rounding Functions): Fix rint description
18639         implicit in round description.
18640
18641 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
18642
18643         * elf/Makefile: Fix linking for a few tests to make recent linker
18644         happy.
18645
18646 2010-06-30  Andreas Schwab  <schwab@redhat.com>
18647
18648         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
18649         $(common-objpfx)libc_nonshared.a.
18650
18651 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
18652
18653         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
18654         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
18655         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
18656         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
18657         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
18658         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
18659         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
18660         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
18661         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
18662         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
18663         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
18664         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
18665         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
18666         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
18667         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
18668         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
18669         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
18670         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
18671         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
18672         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
18673         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
18674         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
18675         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
18676         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
18677         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
18678         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
18679         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
18680         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
18681         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
18682         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
18683         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
18684         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
18685         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
18686         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
18687         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
18688         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
18689         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
18690         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
18691         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
18692         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
18693         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
18694         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
18695         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
18696         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
18697         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
18698         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
18699         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
18700         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
18701
18702 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
18703
18704         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
18705         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
18706         * string/memmove.c (memmove): Renamed to ...
18707         (MEMMOVE): ...this.  Default to memmove.
18708         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
18709         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
18710         (END_CHK): Define.
18711         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18712         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
18713         mempcpy-ssse3-back memmove-ssse3-back.
18714         * sysdeps/x86_64/multiarch/bcopy.S: New file .
18715         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
18716         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
18717         * sysdeps/x86_64/multiarch/memcpy.S: New file.
18718         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
18719         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
18720         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
18721         * sysdeps/x86_64/multiarch/memmove.c: New file.
18722         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
18723         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
18724         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
18725         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
18726         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
18727         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
18728         Define.
18729         (index_Fast_Copy_Backward): Define.
18730         (HAS_ARCH_FEATURE): Define.
18731         (HAS_FAST_REP_STRING): Define.
18732         (HAS_FAST_COPY_BACKWARD): Define.
18733
18734 2010-06-21  Andreas Schwab  <schwab@redhat.com>
18735
18736         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
18737         Restore proper fallback handling.
18738
18739 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
18740
18741         [BZ #11701]
18742         * posix/group_member.c (__group_member): Correct checking loop.
18743
18744         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
18745         OOM in getpwuid_r correctly.  Return error number when the caller
18746         should return, otherwise -1.
18747         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
18748         call returning > 0 value.
18749         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
18750
18751 2010-06-07  Andreas Schwab  <schwab@redhat.com>
18752
18753         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
18754         libc_nonshared.a from targets in modules-names.
18755
18756 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
18757
18758         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
18759         requires it.
18760
18761 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
18762
18763         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
18764         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
18765         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
18766         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
18767
18768 2010-06-02  Andreas Schwab  <schwab@redhat.com>
18769
18770         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
18771
18772 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
18773
18774         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
18775         and F_GETPIPE_SZ.
18776         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
18777         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
18778         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
18779         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
18780         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
18781         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
18782
18783 2010-06-14  Roland McGrath  <roland@redhat.com>
18784
18785         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
18786
18787 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
18788
18789         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
18790         __REDIRECT followed by __THROW.
18791         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
18792         * posix/getopt.h (getopt): Likewise.
18793
18794 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
18795
18796         * hurd/lookup-at.c (__file_name_lookup_at): Accept
18797         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
18798         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
18799         in AT_FLAGS.
18800         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
18801         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
18802
18803 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
18804
18805         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
18806
18807 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
18808
18809         [BZ #11640]
18810         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18811         Properly check family and model.
18812
18813 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
18814
18815         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
18816
18817 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
18818
18819         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
18820
18821 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
18822
18823         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
18824         symbol reference.
18825
18826 2010-05-19  Andreas Schwab  <schwab@redhat.com>
18827
18828         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
18829         symbol reference.
18830
18831 2010-05-21  Andreas Schwab  <schwab@redhat.com>
18832
18833         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
18834         and internal_recvmmsg.
18835         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
18836         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
18837         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
18838         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
18839
18840         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
18841         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
18842         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
18843
18844 2010-05-20  Andreas Schwab  <schwab@redhat.com>
18845
18846         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
18847
18848 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
18849
18850         POWER7 optimizations.
18851         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
18852         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
18853
18854 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
18855
18856         * version.h: Update for 2.13 development version.
18857
18858 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
18859
18860         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
18861         exceptions.  Return 0.
18862
18863 2010-05-07  Roland McGrath  <roland@redhat.com>
18864
18865         * elf/ldconfig.c (main): Add a const.
18866
18867 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
18868
18869         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
18870         (args_options): Add no-idn option.
18871         (ahosts_keys_int): Add idn_flags to ai_flags.
18872         (parse_option): Handle 'i' option to clear idn_flags.
18873
18874         * malloc/malloc.c (_int_free): Possible race in the most recently
18875         added check.  Only act on the data if no current modification
18876         happened.
18877
18878 See ChangeLog.17 for earlier changes.