Use sparcv8 GMP routines when building 32-bit sparcv9.
[jlayton/glibc.git] / ChangeLog
1 2012-09-04  David S. Miller  <davem@davemloft.net>
2
3         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
4         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
5         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
6
7 2012-09-04  Florian Weimer  <fweimer@redhat.com>
8
9         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
10         failures.
11
12         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
13
14 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
15
16         [BZ #9914]
17         * libio/iogetdelim.c: Include <limits.h>.
18         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
19         + len + 1 would overflow.
20
21 2012-09-03  Andreas Jaeger  <aj@suse.de>
22
23         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
24         * sysdeps/i386/fpu/libm-test-ulps: Update.
25
26 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
27
28         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
29         Add s_sinf-sse2, s_conf-sse2.
30
31         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
32         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
33         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
34         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
35
36         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
37         for using routine as __sinf_ia32.
38         Use macro for function declaration and weak_alias.
39         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
40         for using routine as __cosf_ia32.
41         Use macro for function declaration and weak_alias.
42
43         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
44         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
45
46         * sysdeps/x86_64/fpu/s_sinf.S: New file.
47         * sysdeps/x86_64/fpu/s_cosf.S: New file.
48         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
49
50         * math/libm-test.inc (cos_test): Add more test cases.
51         (sin_test): Likewise.
52         (sincos_test): Likewise.
53
54 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
55
56         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
57         (IFUNC_RESOLVE): Make pointers to the specialized implementations
58         hidden.
59         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
60
61 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
62
63         [BZ #14538]
64         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
65         first element of the GOT.
66         (elf_machine_load_address): Return the difference between
67         the runtime address of _DYNAMIC and elf_machine_dynamic ().
68
69 2012-09-01  Allan McRae  <allan@archlinux.org>
70
71         [BZ #13412]
72         * configure.in (AWK): Require gawk version 3.0 or later.
73         * configure: Regenerated.
74
75 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
76
77         * sysdeps/unix/sysv/linux/kernel-features.h
78         (__ASSUME_POSIX_CPU_TIMERS): Remove.
79         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
80         [__NR_clock_getres]: Make code unconditional.
81         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
82         (clock_getcpuclockid): Remove code left unreachable by removal of
83         conditionals.
84         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
85         code unconditional.
86         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
87         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
88         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
89         Make code unconditional.
90         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
91         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
92         * sysdeps/unix/sysv/linux/clock_settime.c
93         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
94         conditional code.
95         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
96         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
97
98 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
99
100         [BZ #14476]
101         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
102         scripts/test-installation.pl.
103
104         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
105         and $ld_so_version if it is set.
106
107 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
108
109         [BZ #14516]
110         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
111         failure if reading from procfs failed.
112         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
113
114 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
115
116         * sysdeps/unix/sysv/linux/kernel-features.h
117         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
118         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
119         Remove conditional code.
120         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
121         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
122         Remove conditional code.
123         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
124         * sysdeps/unix/sysv/linux/i386/fxstat.c
125         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
126         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
127         * sysdeps/unix/sysv/linux/i386/fxstatat.c
128         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
129         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
130         * sysdeps/unix/sysv/linux/i386/lxstat.c
131         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
132         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
133         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
134         Remove conditional code.
135         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
136         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
137         Remove conditional code.
138         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
139         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
140         <kernel-features.h>.
141         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
142         Remove.
143         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
144         Remove conditional code.
145         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
146         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
147         Remove conditional.
148
149 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
150
151         [BZ #5400]
152         * NEWS: Add fixed bug number.
153
154 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
155
156         [BZ #14519]
157         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
158         underflowing exponent in case of negative sign.
159         * stdlib/tst-strtod-round-data: Add more tests.
160         * stdlib/tst-strtod-round.c (tests): Regenerated.
161
162         [BZ #3479]
163         * stdlib/strtod_l.c (NDIG): Remove.
164         (HEXNDIG): Likewise.
165         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
166         smallest representable value.
167         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
168         lie within an exact representation of 1/2 ulp of the result.
169         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
170         unconditionally.
171         (TENS_P9_IDX): Define unconditionally.
172         (TENS_P9_SIZE): Likewise.
173         (TENS_P10_IDX): Likewise.
174         (TENS_P10_SIZE): Likewise.
175         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
176         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
177         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
178         entries for 10^2^13 and 10^2^14.
179         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
180         (TENS_P13_IDX): Define.
181         (TENS_P13_SIZE): Likewise.
182         (TENS_P14_IDX): Likewise.
183         (TENS_P14_SIZE): Likewise.
184         (_fpioconst_pow10): Change array size to
185         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
186         unconditional.
187         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
188         1024]: Add entries for 10^2^13 and 10^2^14.
189         [LAST_POW10 > _LAST_POW10]: Remove #error.
190         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
191         (_fpioconst_pow10): Change array size to
192         FPIOCONST_POW10_ARRAY_SIZE.
193         * stdlib/gen-fpioconst.c: New file.
194         * stdlib/gen-tst-strtod-round.c: Likewise.
195         * stdlib/tst-strtod-round-data: Likewise.
196         * stdlib/tst-strtod-round.c: Likewise.
197         * stdlib/Makefile (tests): Add tst-strtod-round.
198
199         [BZ #14459]
200         * stdlib/strtod_l.c: Include <stdint.h>.
201         (NDEBUG): Do not define.
202         (round_and_return): Change EXPONENT parameter to type intmax_t.
203         Rearrange calculations to avoid internal overflow possibilities.
204         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
205         Rearrange calculations to avoid internal overflow possibilities.
206         Assert that number fits inside MPNSIZE limbs.
207         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
208         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
209         calculations and add assertions to avoid internal overflow
210         possibilities.  Add casts to avoid signed/unsigned operations.
211         * stdlib/tst-strtod-overflow.c: New file.
212         * stdlib/Makefile (tests): Add tst-strtod-overflow.
213
214 2012-08-25  Marek Polacek  <polacek@redhat.com>
215
216         * time/time.h: Fix some typos in comments.
217
218 2012-08-23  Roland McGrath  <roland@hack.frob.com>
219
220         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
221         * posix/tst-rfc3484-2.c: Likewise.
222         * posix/tst-rfc3484-3.c: Likewise.
223
224 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
225
226         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
227         (EF_ARM_ABI_FLOAT_HARD): Likewise.
228
229 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
230
231         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
232         #include of fxstatat64.c.
233
234 2012-08-22  Roland McGrath  <roland@hack.frob.com>
235
236         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
237         * shadow/getspent_r.c: Likewise.
238         * shadow/getspnam.c: Likewise.
239         * shadow/getspnam_r.c: Likewise.
240         * gshadow/getsgent.c: Likewise.
241         * gshadow/getsgent_r.c: Likewise.
242         * gshadow/getsgnam.c: Likewise.
243         * gshadow/getsgnam_r.c: Likewise.
244         * inet/getnetbyad.c: Likewise.
245         * inet/getnetbyad_r.c: Likewise.
246         * inet/getnetbynm.c: Likewise.
247         * inet/getnetbynm_r.c: Likewise.
248         * inet/getnetent.c: Likewise.
249         * inet/getnetent_r.c: Likewise.
250         * inet/getproto.c: Likewise.
251         * inet/getproto_r.c: Likewise.
252         * inet/getprtent.c: Likewise.
253         * inet/getprtent_r.c: Likewise.
254         * inet/getprtname.c: Likewise.
255         * inet/getprtname_r.c: Likewise.
256         * inet/getrpcbyname.c: Likewise.
257         * inet/getrpcbyname_r.c: Likewise.
258         * inet/getrpcbynumber.c: Likewise.
259         * inet/getrpcbynumber_r.c: Likewise.
260         * inet/getrpcent.c: Likewise.
261         * inet/getrpcent_r.c: Likewise.
262         * inet/getaliasent.c: Likewise.
263         * inet/getaliasent_r.c: Likewise.
264         * inet/getaliasname.c: Likewise.
265         * inet/getaliasname_r.c: Likewise.
266         * nscd/getgrgid_r.c: Likewise.
267         * nscd/getgrnam_r.c: Likewise.
268         * nscd/gethstbyad_r.c: Likewise.
269         * nscd/gethstbynm3_r.c: Likewise.
270         * nscd/getpwnam_r.c: Likewise.
271         * nscd/getpwuid_r.c: Likewise.
272         * nscd/getsrvbynm_r.c: Likewise.
273         * nscd/getsrvbypt_r.c: Likewise.
274         * nscd/gai.c: Likewise.
275
276         * configure.in (build_nscd): New substituted variable, set
277         by --disable-build-nscd and defaults to $use_nscd.
278         * configure: Regenerated.
279         * config.make.in (build-nscd): New substituted variable.
280         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
281         Change conditional to require [$(build-nscd) = yes] as well.
282         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
283
284         [BZ# 13696]
285         * configure.in (use_nscd): New substituted variable, set by
286         --disable-nscd.  If enabled, define USE_NSCD.
287         * configure: Regenerated.
288         * config.h.in: Add USE_NSCD.
289         * config.make.in (use-nscd): New substituted variable.
290         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
291         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
292         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
293         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
294         (CFLAGS-getgrnam_r.c): Likewise.
295         (CFLAGS-initgroups.c): Likewise.
296         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
297         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
298         Variables removed.
299         * inet/getnetgrent_r.c
300         (nscd_setnetgrent): New function, broken out of ...
301         (setnetgrent): ... here.  Call it.
302         (innetgr): Conditionalize nscd bits on [USE_NSCD].
303         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
304         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
305         * nscd/Makefile (routines, aux): Move definitions after include of
306         Makeconfig.  Conditionalize on [$(use-nscd) != no].
307         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
308         Conditionalize on [USE_NSCD].
309         (is_nscd, nscd_init_cb): Likewise.
310         (nss_load_library): Conditionalize init callback on [USE_NSCD].
311         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
312         * nss/nss_db/db-init.c: Likewise.
313         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
314         [USE_NSCD].
315         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
316         (make_request): Use it.
317         (cache_valid_p): New function.
318         (__check_pf): Use it.
319         * NEWS: Add item for --disable-nscd.
320
321 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
322
323         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
324         to support sed >= 4.2.1-20-ga9bf076.
325         * configure: Regenerated.
326
327 2012-08-22  Roland McGrath  <roland@hack.frob.com>
328
329         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
330         Conditionalize whole body on [IREL].
331
332 2012-08-22  Jeff Law <law@redhat.com>
333
334         [BZ #14505]
335         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
336         if the family is PF_UNSPEC.
337
338 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
339
340         * Makerules (lib-version): Rename from V.
341         (install-lib-nosubdir): Change V to lib-version.
342
343 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
344
345         [BZ #14252]
346         * powerpc32/power6/wcschr.c: New file.
347         * powerpc32/power6/wcscpy.c: New file.
348         * powerpc32/power6/wcsrchr.c: New file.
349         * powerpc64/power6/wcschr.c: New file.
350         * powerpc64/power6/wcscpy.c: New file.
351         * powerpc64/power6/wcsrchr.c: New file.
352
353 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
354
355         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
356         (two_way_short_needle): Use it.
357         * string/strstr.c (AVAILABLE1_USES_J): Define.
358         * string/strcasestr.c: Likewise.
359
360         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
361         array references.
362         * string/strcasestr.c (TOLOWER): Make side-effect safe.
363
364         [BZ #11607]
365         * NEWS: Add an entry.
366         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
367         define their defaults.
368         (two_way_short_needle): Detect end-of-string on-the-fly.
369         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
370         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
371         * string/bug-strcasestr1.c: New test.
372         * string/Makefile: Run it.
373
374 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
375
376         [BZ #11607]
377         * string/str-two-way.h (two_way_short_needle): Optimize matching of
378         the first character.
379
380 2012-08-21  Roland McGrath  <roland@hack.frob.com>
381
382         * csu/elf-init.c (__libc_csu_irel): Function removed.
383         * csu/libc-start.c (apply_irel): New function.
384         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
385
386 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
387
388         * sysdeps/unix/sysv/linux/kernel-features.h
389         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
390         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
391         <kernel-features.h>.
392         [__NR_fadvise64_64]: Make code unconditional.
393         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
394         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
395         !__NR_fadvise64_64)]: Likewise.
396         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
397         !__NR_fadvise64_64))]: Likewise.
398         [__NR_fadvise64]: Make code unconditional.
399         [!__NR_fadvise64]: Remove conditional code.
400         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
401         <kernel-features.h>.
402         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
403         unconditional.
404         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
405         conditional code.
406         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
407         not include <kernel-features.h>.
408         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
409         unconditional.
410         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
411         conditional code.
412         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
413         include <kernel-features.h>.
414         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
415         unconditional.
416         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
417         conditional code.
418
419 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
420
421         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
422         slight instruction rearrangements per scrollpipe analysis.
423         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
424
425 2012-08-20  Roland McGrath  <roland@hack.frob.com>
426
427         * manual/syslog.texi (syslog; vsyslog, closelog):
428         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
429         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
430
431         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
432         DSOCAPS to match condition on defining it.
433
434 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
435
436         * sysdeps/unix/sysv/linux/kernel-features.h
437         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
438         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
439         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
440         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
441         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
442         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
443         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
444         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
445         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
446         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
447
448         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
449         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
450
451         * sysdeps/unix/sysv/linux/kernel-features.h
452         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
453         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
454         unconditional.
455         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
456         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
457         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
458         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
459         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
460         Make code unconditional.
461         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
462         (__mmap64) [!__NR_mmap2]: Likewise.
463         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
464         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
465         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
466         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
467         [__NR_mmap2]: Make code unconditional.
468         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
469         (__mmap64) [!__NR_mmap2]: Likewise.
470
471 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
472
473         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
474
475 2012-08-18  Andreas Jaeger  <aj@suse.de>
476
477         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
478
479 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
480
481         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
482         * include/unistd.h (__have_sock_cloexec): Likewise.
483         (__have_pipe2): Likewise.
484         (__have_dup3): Likewise.
485
486 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
487
488         [BZ #9685]
489         * include/unistd.h (__have_pipe2): Change define into an extern int.
490         (__have_dup3): Likewise.
491         * socket/have_sock_cloexec.c: Include fcntl.h.
492         (__have_pipe2): New variable.
493         (__have_dup3): Likewise.
494
495 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
496
497         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
498
499 2012-08-17  Marek Polacek  <polacek@redhat.com>
500
501         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
502         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
503
504 2012-08-17  Roland McGrath  <roland@hack.frob.com>
505
506         * configure.in: Add AC_SUBST for sysheaders.
507         * configure: Regenerated.
508         * config.make.in (sysheaders): New substituted variable.
509
510         * sysdeps/unix/mkfifo.c: Moved ...
511         * sysdeps/posix/mkfifo.c: ... here.
512         * sysdeps/unix/mkfifoat.c: Moved ...
513         * sysdeps/posix/mkfifoat.c: ... here.
514
515         * sysdeps/unix/utime.c: Moved ...
516         * sysdeps/posix/utime.c: ... here.
517
518         * sysdeps/unix/time.c: Moved ...
519         * sysdeps/posix/time.c: ... here.
520         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
521         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
522
523         * sysdeps/unix/nice.c: Moved ...
524         * sysdeps/posix/nice.c: ... here.
525
526         * sysdeps/unix/alarm.c: Moved ...
527         * sysdeps/posix/alarm.c: ... here.
528
529         * intl/Makefile ($(codeset_mo)): Depend on the input file.
530
531 2012-08-17  Jeff Law <law@redhat.com>
532
533         * intl/Makefile (codeset_mo): New variable.
534         ($(codeset_mo)): New target.
535         (tst-codeset.out): Depend on that.  Remove explicit rule.
536         (tst-gettext3.out, tst-gettext5.out): Likewise.
537         (LOCPATH-ENV, tst-codeset-ENV): New variables.
538         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
539         * intl/tst-codeset.sh: Remove.
540         * intl/tst-gettext3.sh: Likewise.
541         * intl/tst-gettext5.sh: Likewise.
542
543 2012-08-17  Roland McGrath  <roland@hack.frob.com>
544
545         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
546         * sysdeps/unix/syscalls.list: ... here.
547
548         * sysdeps/posix/getaddrinfo.c
549         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
550         (gaiconf_init, gaiconf_reload): Use them.
551         [!_STATBUF_ST_NSEC]
552         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
553         Define using time_t rather than struct timespec.
554
555         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
556         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
557         Macros removed.
558         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
559         [!NO_THREADS].
560         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
561         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
562         Likewise.
563
564         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
565         __libc_cleanup_push argument.
566
567         * bits/param.h: New file.
568         * misc/sys/param.h: New file.
569         * include/sys/param.h: New file.
570         * misc/Makefile (headers): Add bits/param.h.
571         * sysdeps/generic/sys/param.h: File removed.
572         * sysdeps/unix/sysv/linux/bits/param.h: New file.
573         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
574         * sysdeps/mach/hurd/bits/param.h: New file.
575         * sysdeps/mach/hurd/sys/param.h: New file.
576
577         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
578         last change.
579
580         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
581         [_IO_MTSAFE_IO].
582         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
583         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
584         New macros.
585
586         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
587         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
588         rather than -D_IO_MTSAFE_IO conditionally.
589         * stdio-common/Makefile (CPPFLAGS): Likewise.
590         * wcsmbs/Makefile (CPPFLAGS): Likewise.
591         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
592         Use $(libio-mtsafe).
593         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
594         of -D_IO_MTSAFE_IO.
595         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
596         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
597         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
598         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
599         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
600         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
601         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
602         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
603         (CFLAGS-fread_u_chk.c): Likewise.
604         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
605         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
606         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
607         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
608         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
609         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
610         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
611         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
612         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
613
614         * libio/Makefile: Test [$(libc-reentrant) = yes]
615         instead of [$(filter %REENTRANT, $(defines)) nonempty].
616
617         * Makeconfig
618         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
619         * sysdeps/pthread/configure: File removed.
620         * sysdeps/pthread/Makeconfig: New file.
621         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
622         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
623
624 2012-08-16  Gary Benson  <gbenson@redhat.com>
625
626         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
627         unmapping the first object in a namespace.
628
629 2012-08-16  Roland McGrath  <roland@hack.frob.com>
630
631         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
632         (__internal_setnetgrent): ... this.  Add internal_function to
633         definition.  Add libc_hidden_def.
634         (setnetgrent): Update caller.
635         (internal_endnetgrent): Renamed to ...
636         (__internal_endnetgrent): ... this.  Add internal_function to
637         definition.  Add libc_hidden_def.
638         (endnetgrent): Update caller.
639         (internal_getnetgrent_r): Renamed to ...
640         (__internal_getnetgrent_r): ... this.  Add internal_function to
641         definition.  Add libc_hidden_def.
642         (__getnetgrent_r): Update caller.
643         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
644
645 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
646
647         * stdlib/longlong.h: Update from GCC.
648
649 2012-08-16  Roland McGrath  <roland@hack.frob.com>
650
651         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
652         on _QL, which is set by umul_ppmm but never used.
653         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
654         variables, which are set by GMP macros but never used.
655         * stdio-common/_itowa.c (_itowa): Likewise.
656         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
657         * stdlib/mod_1.c (mpn_mod_1): Likewise.
658
659 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
660
661         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
662         struct La_sh_regs is not constant.
663         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
664         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
665         and struct La_sparc64_regs are not constant.
666
667 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
668
669         * sysdeps/unix/sysv/linux/kernel-features.h
670         (__ASSUME_POSIX_TIMERS): Remove.
671         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
672         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
673         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
674         Make code unconditional.
675         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
676         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
677         Make code unconditional.
678         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
679         * sysdeps/unix/sysv/linux/clock_nanosleep.c
680         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
681         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
682         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
683         Make code unconditional.
684         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
685         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
686         (__libc_missing_posix_timers): Remove.
687
688 2012-08-15  Roland McGrath  <roland@hack.frob.com>
689
690         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
691         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
692
693         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
694
695         * elf/dl-sym.c: Include <stdlib.h>.
696
697         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
698         constants, which avoids warnings in 32-bit builds.
699
700         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
701         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
702
703         * misc/lseek.c: File moved to ...
704         * io/lseek.c: ... here.
705
706         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
707
708         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
709         shifting LEN more than 31 bits at once.
710
711 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
712
713         [BZ #14195]
714         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
715         segmentation fault for a case of two empty input strings.
716         * string/test-strncasecmp.c (check1): Renamed to...
717         (bz12205): ...this.
718         (bz14195): Add new testcase for two empty input strings and N > 0.
719         (test_main): Call new testcase, adapt for renamed function.
720
721 2012-08-15  Andreas Jaeger  <aj@suse.de>
722
723         [BZ #14090]
724         * crypt/md5test2.c: New test, based on test supplied by Serge
725         Belyshev <belyshev@depni.sinp.msu.ru>.
726         * crypt/Makefile (xtests): Add md5test-giant..
727         * crypt/Makefile ($(objpfx)md5test-giant): Add.
728
729 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
730
731         [BZ #14090]
732         * crypt/md5.c (md5_process_block): Don't assume the buffer
733         length is less than 2**32.
734         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
735         length is less than 2**64.
736
737 2012-08-15  Roland McGrath  <roland@hack.frob.com>
738
739         * string/str-two-way.h: Include <sys/param.h>.
740         (MAX): Macro removed.
741
742         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
743         Move #define and #undef of memmove to just before and after
744         including <string.h>.
745
746         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
747         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
748         and after including <string.h>.  Move declarations of
749         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
750         to before #include "string/memmove.c".
751
752         * include/dirent.h: Declare __getdirentries.
753
754         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
755         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
756
757 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
758
759         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
760         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
761         * sysdeps/i386/configure: Regenerated.
762         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
763         STABS_CURRENT_FILE, and STABS_FUN.
764         (END): Remove call to STABS_FUN_END.
765         (STABS_CURRENT_FILE1): Delete.
766         (STABS_CURRENT_FILE): Likewise.
767         (STABS_FUN): Likewise.
768         (STABS_FUN_END): Likewise.
769         (STABS_FUN2): Likewise.
770         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
771         * sysdeps/x86_64/configure: Regenerated.
772
773 2012-08-14  Roland McGrath  <roland@hack.frob.com>
774
775         * elf/dl-open.c: Include <atomic.h>.
776         * elf/dl-lookup.c: Likewise.
777
778 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
779
780         * sysdeps/unix/sysv/linux/kernel-features.h
781         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
782         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
783         unconditionally.
784         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
785         unconditionally.
786         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
787         condition on __ASSUME_CLONE_THREAD_FLAGS.
788
789 2012-08-14  Andreas Jaeger  <aj@suse.de>
790
791         * sysdeps/i386/fpu/libm-test-ulps: Update.
792
793 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
794
795         * include/atomic.h (atomic_exchange_and_add): Split into ...
796         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
797         New atomic macros.
798
799 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
800
801         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
802
803 2012-08-13  Jeff Law <law@redhat.com>
804
805         * manual/stdio.texi (snprintf): Clarify handling of the trailing
806         null byte in the output string.
807
808 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
809
810         * sysdeps/unix/sysv/linux/kernel-features.h
811         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
812         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
813         (__ASSUME_ARG_MAX_STACK_BASED): Define.
814         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
815         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
816         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
817         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
818
819 2012-08-09  Jeff Law <law@redhat.com>
820
821         [BZ #13939]
822         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
823         When avoid_arena is set, don't retry in the that arena.  Pick the
824         next one, whatever it might be.
825         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
826         (arena_lock): Pass in new parameter to arena_get2.
827         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
828         arena_get2.
829         (__libc_malloc): Unify retrying after main arena failure with
830         __libc_memalign version.
831         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
832
833 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
834
835         [BZ #14166]
836         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
837         to __redirect_strstr.
838         (__strstr_sse42): Use typeof __redirect_strstr.
839         (__strstr_ia32): Likewise.
840         (__libc_strstr): New prototype.
841         (strstr): Renamed to ...
842         (__libc_strstr): This.
843         (strstr): New strong alias of __libc_strstr.
844         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
845         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
846         __redirect_time.
847         Include <time.h>.
848         (__libc_time): New prototype.
849         (time_ifunc): Replace time with __libc_time.
850         (time): New strong alias and hidden definition of __libc_time.
851         (__GI_time): Remove strong alias.
852         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
853         Include <stddef.h>.
854         (memmove): Redefined to __redirect_memmove.
855         (__memmove_sse2): Use typeof __redirect_memmove.
856         (__memmove_ssse3): Likewise.
857         (__memmove_ssse3_back): Likewise.
858         (__libc_memmove): New prototype.
859         (memmove): Renamed to ...
860         (__libc_memmove): This.
861         (memmove): New strong alias of __libc_memmove.
862
863 2012-08-08  Mark Salter  <msalter@redhat.com>
864
865         * elf/elf.h
866         (R_MN10300_TLS_GD): Define.
867         (R_MN10300_TLS_LD): Likewise.
868         (R_MN10300_TLS_LDO): Likewise.
869         (R_MN10300_TLS_GOTIE): Likewise.
870         (R_MN10300_TLS_IE): Likewise.
871         (R_MN10300_TLS_LE): Likewise.
872         (R_MN10300_TLS_DTPMOD): Likewise.
873         (R_MN10300_TLS_DTPOFF): Likewise.
874         (R_MN10300_TLS_TPOFF): Likewise.
875         (R_MN10300_SYM_DIFF): Likewise.
876         (R_MN10300_ALIGN): Likewise.
877         (R_MN10300_NUM): Update.
878
879 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
880
881         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
882         Remove.
883
884 2012-08-08  Roland McGrath  <roland@hack.frob.com>
885
886         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
887
888         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
889         sysdeps/unix -> sysdeps/posix move.
890         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
891
892 2012-08-07      Allan McRae     <allan@archlinux.org>
893
894         [BZ #14303]
895         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
896         (SUNOS_CPP): Likewise.
897         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
898         not found.
899         (open_input): Call CPP using execvp.
900
901 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
902
903         * sysdeps/unix/sysv/linux/kernel-features.h
904         (__ASSUME_PROT_GROWSUPDOWN): Remove.
905         (__ASSUME_NO_CLONE_DETACHED): Likewise.
906         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
907         (__ASSUME_WAITID_SYSCALL): Likewise.
908         * sysdeps/unix/sysv/linux/dl-execstack.c
909         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
910         code unconditional.
911         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
912         conditional code.
913         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
914         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
915         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
916         code.
917         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
918         unconditional.
919         [__ASSUME_WAITID_SYSCALL]: Likewise.
920         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
921
922 2012-08-07  Roland McGrath  <roland@hack.frob.com>
923
924         * sysdeps/unix/closedir.c: Renamed to ...
925         * sysdeps/posix/closedir.c: ... here.
926         * sysdeps/unix/dirfd.c: Renamed to ...
927         * sysdeps/posix/dirfd.c: ... here.
928         * sysdeps/unix/dirstream.h: Renamed to ...
929         * sysdeps/posix/dirstream.h: ... here.
930         * sysdeps/unix/fdopendir.c: Renamed to ...
931         * sysdeps/posix/fdopendir.c: ... here.
932         * sysdeps/unix/opendir.c: Renamed to ...
933         * sysdeps/posix/opendir.c: ... here.
934         * sysdeps/unix/readdir.c: Renamed to ...
935         * sysdeps/posix/readdir.c: ... here.
936         * sysdeps/unix/readdir_r.c: Renamed to ...
937         * sysdeps/posix/readdir_r.c: ... here.
938         * sysdeps/unix/rewinddir.c: Renamed to ...
939         * sysdeps/posix/rewinddir.c: ... here.
940         * sysdeps/unix/seekdir.c: Renamed to ...
941         * sysdeps/posix/seekdir.c: ... here.
942         * sysdeps/unix/telldir.c: Renamed to ...
943         * sysdeps/posix/telldir.c: ... here.
944         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
945         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
946         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
947         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
948
949         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
950         * bits/fcntl.h: ... here.
951
952         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
953         not 0.
954         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
955         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
956         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
957         (struct flock): Move l_start, l_len to the beginning.
958         Use __pid_t for l_pid.
959         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
960         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
961         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
962         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
963         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
964         [__USE_LARGEFILE64] (struct flock64): New type.
965         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
966
967         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
968         * bits/dirent.h: ... here.
969
970         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
971         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
972
973 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
974
975         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
976         Change from 2.6.0 to 2.6.16.
977         * sysdeps/unix/sysv/linux/configure: Regenerated.
978         * sysdeps/unix/sysv/linux/kernel-features.h
979         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
980         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
981         version.
982         (__ASSUME_UTIMES): Likewise.
983         (__ASSUME_CLONE_STOPPED): Remove.
984         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
985         architectures, not kernel version.
986         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
987         (__ASSUME_NO_CLONE_DETACHED): Likewise.
988         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
989         (__ASSUME_WAITID_SYSCALL): Likewise.
990         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
991         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
992         * README: State 2.6.16 as minimum Linux kernel version.  Do not
993         refer to older versions.
994
995 2012-08-06  Roland McGrath  <roland@hack.frob.com>
996
997         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
998         Define alphasort64 as an alias.
999         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
1000         Define versionsort64 as an alias.
1001         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
1002         Define scandir64 as an alias.
1003         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
1004         Define scandirat64 as an alias.
1005         * dirent/alphasort64.c (alphasort64):
1006         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
1007         * dirent/versionsort64.c: Likewise.
1008         * dirent/scandir64.c: Likewise.
1009         * dirent/scandirat64.c: Likewise.
1010         * sysdeps/wordsize-64/alphasort.c: File removed.
1011         * sysdeps/wordsize-64/alphasort64.c: File removed.
1012         * sysdeps/wordsize-64/scandir.c: File removed.
1013         * sysdeps/wordsize-64/scandir64.c: File removed.
1014         * sysdeps/wordsize-64/scandirat.c: File removed.
1015         * sysdeps/wordsize-64/scandirat64.c: File removed.
1016         * sysdeps/wordsize-64/versionsort.c: File removed.
1017         * sysdeps/wordsize-64/versionsort64.c: File removed.
1018         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
1019         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
1020         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
1021         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
1022         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
1023         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
1024         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
1025         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
1026
1027         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
1028         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
1029         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
1030         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1031         [defined __arch64__ || defined __sparcv9]
1032         (__INO_T_MATCHES_INO64_T): New macro.
1033         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
1034         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
1035         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
1036         * sysdeps/unix/sysv/linux/bits/dirent.h
1037         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
1038         (_DIRENT_MATCHES_DIRENT64): New macro.
1039
1040         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
1041         Define lockf64 as an alias.
1042         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
1043         Define fseeko64 as an alias.
1044         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
1045         Define ftello64 as an alias.
1046         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
1047         Define _IO_fgetpos64 and fgetpos64 as aliases.
1048         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
1049         Define _IO_fsetpos64 and fsetpos64 as aliases.
1050         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
1051         Conditionalize body on this.
1052         * libio/fseeko64.c: Likewise.
1053         * libio/ftello64.c: Likewise.
1054         * libio/iofgetpos64.c: Likewise.
1055         * libio/iofsetpos64.c: Likewise.
1056         * sysdeps/wordsize-64/lockf.c: File removed.
1057         * sysdeps/wordsize-64/lockf64.c: File removed.
1058         * sysdeps/wordsize-64/fseeko.c: File removed.
1059         * sysdeps/wordsize-64/fseeko64.c: File removed.
1060         * sysdeps/wordsize-64/ftello.c: File removed.
1061         * sysdeps/wordsize-64/ftello64.c: File removed.
1062         * sysdeps/wordsize-64/iofgetpos.c: File removed.
1063         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
1064         * sysdeps/wordsize-64/iofsetpos.c: File removed.
1065         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
1066         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
1067         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
1068         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
1069         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
1070         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
1071         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
1072         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
1073         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
1074         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
1075         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
1076
1077         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
1078         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
1079         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
1080         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1081         [defined __arch64__ || defined __sparcv9]
1082         (__OFF_T_MATCHES_OFF64_T): New macro.
1083         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
1084         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
1085         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
1086         (__OFF_T_MATCHES_OFF64_T): New macro.
1087
1088 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
1089
1090         * stdlib/secure-getenv.c (__secure_getenv): Replace
1091         GLIBC_2_16 with GLIBC_2_17.
1092
1093 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
1094
1095         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
1096         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
1097
1098 2012-08-03  David S. Miller  <davem@davemloft.net>
1099
1100         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1101
1102 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
1103
1104         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
1105         Remove.
1106         (__ASSUME_CORRECT_SI_PID): Likewise.
1107         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
1108         (__ASSUME_TMPFS_NAME): Likewise.
1109         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
1110         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
1111         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
1112         (HAVE_AUX_SECURE): Make definition unconditional.
1113         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
1114         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
1115
1116 2012-08-03  Roland McGrath  <roland@hack.frob.com>
1117
1118         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
1119         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
1120         * sysdeps/mach/hurd/eloop-threshold.h: New file.
1121         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
1122         __eloop_threshold instead of SYMLOOP_MAX.
1123
1124         * sysdeps/generic/eloop-threshold.h: New file.
1125         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
1126         of MAXSYMLINKS.
1127         * elf/chroot_canon.c (chroot_canon): Likewise.
1128
1129 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
1130
1131         [BZ #13717]
1132         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
1133         Change to 2.6.0 everywhere.
1134         * sysdeps/unix/sysv/linux/configure: Regenerated.
1135         * sysdeps/unix/sysv/linux/kernel-features.h
1136         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
1137         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
1138         kernel versions.
1139         (__ASSUME_POSIX_TIMERS): Define unconditionally.
1140         (__ASSUME_FUTEX_REQUEUE): Remove.
1141         (__ASSUME_STATFS64): Define unconditionally.
1142         (__ASSUME_AT_SECURE): Likewise.
1143         (__ASSUME_CORRECT_SI_PID): Likewise.
1144         (__ASSUME_TGKILL): Define without depending on kernel version for
1145         i386.
1146         (__ASSUME_UTIMES): Likewise.
1147         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
1148         kernel version.
1149         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
1150         (__ASSUME_TMPFS_NAME): Likewise.
1151         * README: Update reference to Linux kernel versions.
1152
1153 2012-08-02  Marek Polacek  <polacek@redhat.com>
1154
1155         [BZ# 14150]
1156         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
1157         libc_cv_asm_type_prefix with %.
1158         * configure: Regenerated.
1159         * include/libc-symbols.h: Remove comment about
1160         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
1161         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
1162         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
1163         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
1164         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
1165         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
1166         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
1167         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
1168         * elf/tst-unique2mod1.c: Likewise.
1169         * elf/tst-unique1mod2.c: Likewise.
1170         * elf/tst-unique1mod1.c: Likewise.
1171         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
1172         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
1173         Replace ASM_TYPE_DIRECTIVE with .type.
1174         * sysdeps/s390/s390-64/sysdep.h: Likewise.
1175         * sysdeps/i386/sysdep.h: Likewise.
1176         * sysdeps/x86_64/sysdep.h: Likewise.
1177         * sysdeps/sh/sysdep.h: Likewise.
1178         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
1179         Do not define ASM_TYPE_DIRECTIVE.
1180         * sysdeps/powerpc/sysdep.h: Likewise.
1181         * sysdeps/powerpc/powerpc32/sysdep.h:
1182         Replace ASM_TYPE_DIRECTIVE with .type.
1183         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
1184         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
1185         * sysdeps/i386/fpu/e_powf.S: Likewise.
1186         * sysdeps/i386/fpu/e_expl.S: Likewise.
1187         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
1188         * sysdeps/i386/fpu/e_acosh.S: Likewise.
1189         * sysdeps/i386/fpu/e_pow.S: Likewise.
1190         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
1191         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
1192         * sysdeps/i386/fpu/s_expm1.S: Likewise.
1193         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
1194         * sysdeps/i386/fpu/e_log2.S: Likewise.
1195         * sysdeps/i386/fpu/e_log2l.S: Likewise.
1196         * sysdeps/i386/fpu/e_scalb.S: Likewise.
1197         * sysdeps/i386/fpu/e_powl.S: Likewise.
1198         * sysdeps/i386/fpu/e_log10f.S: Likewise.
1199         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
1200         * sysdeps/i386/fpu/e_logl.S: Likewise.
1201         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
1202         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
1203         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
1204         * sysdeps/i386/fpu/e_log2f.S: Likewise.
1205         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
1206         * sysdeps/i386/fpu/e_log.S: Likewise.
1207         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
1208         * sysdeps/i386/fpu/e_logf.S: Likewise.
1209         * sysdeps/i386/fpu/e_log10l.S: Likewise.
1210         * sysdeps/i386/fpu/e_atanh.S: Likewise.
1211         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
1212         * sysdeps/i386/fpu/e_log10.S: Likewise.
1213         * sysdeps/i386/fpu/s_frexp.S: Likewise.
1214         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
1215         * sysdeps/i386/fpu/s_asinh.S: Likewise.
1216         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
1217         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
1218         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
1219         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
1220         * sysdeps/i386/i686/strtok.S: Likewise.
1221         * sysdeps/i386/i386-mcount.S: Likewise.
1222         * sysdeps/i386/strtok.S: Likewise.
1223         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
1224         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
1225         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
1226         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
1227         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
1228         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
1229         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
1230         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
1231         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
1232         * sysdeps/x86_64/_mcount.S: Likewise.
1233         * sysdeps/x86_64/strtok.S: Likewise.
1234         * sysdeps/sh/_mcount.S: Likewise.
1235
1236 2012-08-01  Roland McGrath  <roland@hack.frob.com>
1237
1238         * libio/iofopen.c: Include <fcntl.h>.
1239         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
1240         (_IO_fopen64, fopen64): Define as aliases.
1241         * libio/iofopen64.c: Include <fcntl.h>.
1242         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
1243         Conditionalize body on this.
1244         * sysdeps/wordsize-64/iofopen.c: File removed.
1245         * sysdeps/wordsize-64/iofopen64.c: File removed.
1246
1247 2012-08-01  Marek Polacek  <polacek@redhat.com>
1248
1249         * libc/Makeconfig: Use elf in place of binfmt-subdir.
1250         Use dlfcn directly instead of a variable.
1251         (binfmt-subdir): Do not define.
1252         (dlfcn): Likewise.
1253
1254 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
1255
1256         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
1257         Remove all definitions.
1258         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
1259         <kernel-features.h>.
1260         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
1261         (miss_F_GETOWN_EX): Remove all definitions.
1262         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
1263         macro definition.
1264         [!__ASSUME_FCNTL64]: Remove conditional code.
1265         [__ASSUME_FCNTL64]: Make code unconditional.
1266         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
1267         <kernel-features.h>.
1268         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
1269         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
1270         (lockf64) [__NR_fcntl64]: Make code unconditional.
1271         (lockf64) [__ASSUME_FCNTL64]: Likewise.
1272
1273         * sysdeps/unix/sysv/linux/kernel-features.h
1274         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
1275         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
1276         Make code unconditional.
1277         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
1278         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
1279         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
1280         [__NR_vfork]: Make code unconditional.
1281         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
1282         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
1283         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
1284         [__NR_vfork]: Make code unconditional.
1285         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
1286         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
1287
1288 2012-08-01  Roland McGrath  <roland@hack.frob.com>
1289
1290         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
1291         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
1292
1293         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
1294         Define mkstemp64 as an alias.
1295         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
1296         Define mkstemps64 as an alias.
1297         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
1298         Define mkostemp64 as an alias.
1299         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
1300         Define mkostemps64 as an alias.
1301         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
1302         Conditionalize body on this.
1303         * misc/mkostemp64.c: Likewise.
1304         * misc/mkostemps64.c: Likewise.
1305         * misc/mkstemps64.c: Likewise.
1306         * sysdeps/wordsize-64/mkstemp64.c: File removed.
1307         * sysdeps/wordsize-64/mkostemp64.c: File removed.
1308         * sysdeps/wordsize-64/mkostemp.c: File removed.
1309         * sysdeps/wordsize-64/mkstemp.c: File removed.
1310         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
1311         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
1312         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
1313         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
1314
1315         [BZ #14138]
1316         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
1317         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
1318         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
1319         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
1320
1321         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
1322         compat_symbol macros from <shlib-compat.h> rather than the underlying
1323         default_symbol_version and symbol_version macros, so that DEFAULT
1324         lines in shlib-versions are respected.
1325         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
1326
1327 2012-08-01  Florian Weimer  <fweimer@redhat.com>
1328
1329         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
1330         Declare with warn_unused_result.
1331         (setgid, setregid, setegid, setresgid): Likewise.
1332         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
1333         Likewise.
1334         * WUR-REPORT: Remove set*id functions.
1335
1336 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
1337
1338         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
1339
1340 2012-07-31  Roland McGrath  <roland@hack.frob.com>
1341
1342         * include/sys/socket.h (__libc_accept, __libc_accept4):
1343         Add attribute_hidden.
1344         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
1345
1346         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
1347         use of PTR_MANGLE.
1348         * inet/getnetgrent_r.c (setup): Likewise.
1349
1350         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
1351
1352 2012-07-31  David S. Miller  <davem@davemloft.net>
1353
1354         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1355
1356 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
1357
1358         [BZ #13629]
1359         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
1360         value between 1.0 and 2.0 and smaller part has absolute value less
1361         than 1.0.
1362         * math/s_clog10.c (__clog10): Likewise.
1363         * math/s_clog10f.c (__clog10f): Likewise.
1364         * math/s_clog10l.c (__clog10l): Likewise.
1365         * math/s_clogf.c (__clogf): Likewise.
1366         * math/s_clogl.c (__clogl): Likewise.
1367         * math/libm-test.inc (clog_test): Add more tests.
1368         (clog10_test): Likewise.
1369         * sysdeps/i386/fpu/libm-test-ulps: Update.
1370         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1371
1372 2012-07-31  Florian Weimer  <fweimer@redhat.com>
1373
1374         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
1375         Exit with zero in case no suitable GID is found, and write a
1376         message to standard error.
1377
1378 2012-07-30  Roland McGrath  <roland@hack.frob.com>
1379
1380         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
1381         rather than to 1.
1382         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
1383         (MAXPATHLEN): Removed.
1384         (NOGROUP, NODEV): New macros.
1385         (setbit, clrbit, isset, isclr): New macros.
1386         (howmany, roundup, powerof2): New macros.
1387         (DEV_BSIZE): New macro.
1388
1389         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
1390         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
1391
1392         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
1393         definition on [!__NO_LONG_DOUBLE_MATH].
1394
1395         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
1396         PTR_MANGLE and PTR_DEMANGLE.
1397
1398         * socket/accept4.c (accept4): Rename to __libc_accept4.
1399         Define accept4 as a weak alias.
1400
1401         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
1402         on [_DIRENT_HAVE_D_TYPE].
1403         * io/ftw.c (ftw_dir): Likewise.
1404
1405         * io/xmknod.c (__xmknod): Don't check PATH for being null.
1406
1407         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
1408
1409         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
1410         Use the BSD numbers rather than the arbitrary ones we had.
1411         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
1412         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
1413         (SIGXCPU, SIGXFSZ): New macros.
1414         (_NSIG): Now 32.
1415
1416         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
1417         initializer on [_LIBC_REENTRANT].
1418
1419         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
1420         definitions inside [_POSIX_MAPPED_FILES].
1421
1422         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
1423
1424         * dirent/opendir.c: Include <fcntl.h>.
1425
1426         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
1427         (__libc_getspecific): Likewise.
1428         (__libc_key_create): Likewise.
1429
1430         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
1431         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
1432         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
1433         (tmpfile64): Define as alias.
1434         * sysdeps/wordsize-64/tmpfile.c: File removed.
1435         * sysdeps/wordsize-64/tmpfile64.c: File removed.
1436         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
1437         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
1438
1439         * stdio-common/vfscanf.c: Include <stdbool.h>.
1440         * nss/makedb.c: Likewise.
1441         * stdio-common/_i18n_number.h: Likewise.
1442         * argp/argp-help.c: Likewise.
1443         * posix/wordexp.c: Likewise.
1444         * sysdeps/posix/spawni.c: Likewise.
1445         * nss/nss_files/files-initgroups.c: Likewise.
1446         * stdio-common/reg-modifier.c: Include <stdlib.h>.
1447         * nss/nss_files/files-initgroups.c: Likewise.
1448         * nss/nss_db/db-netgrp.c: Likewise.
1449         * nss/nss_db/db-initgroups.c: Likewise.
1450         * io/fchmodat.c: Include <sys/stat.h>.
1451
1452         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
1453         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
1454
1455         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
1456         [HAVE_MMAP].
1457
1458         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
1459         Add multiple inclusion protection.
1460
1461 2012-07-27  David S. Miller  <davem@davemloft.net>
1462
1463         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1464
1465 2012-07-27  Gary Benson  <gbenson@redhat.com>
1466
1467         [BZ #14298]
1468         * elf/rtld.c: Include <stap-probe.h>.
1469         (dl_main): Added static probes "init_start" and "init_complete".
1470         * elf/dl-load.c: Include <stap-probe.h>.
1471         (lose): Take new parameter "nsid".
1472         Added static probe "map_failed".
1473         (_dl_map_object_from_fd): Pass namespace id to lose.
1474         Added static probe "map_start".
1475         (open_verify): Pass namespace id to lose.
1476         * elf/dl-open.c: Include <stap-probe.h>.
1477         (dl_open_worker) Added static probes "map_complete", "reloc_start"
1478         and "reloc_complete".
1479         * elf/dl-close.c: Include <stap-probe.h>.
1480         (_dl_close_worker): Added static probes "unmap_start" and
1481         "unmap_complete".
1482         * elf/rtld-debugger-interface.txt: New file documenting the above.
1483
1484 2012-07-26  Roland McGrath  <roland@hack.frob.com>
1485
1486         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
1487         rather than a string variable.
1488         * sunrpc/rpc_main.c (h_output): Likewise.
1489         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
1490
1491 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
1492
1493         * inet/check_native.c: New file.
1494
1495 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
1496
1497         [BZ #13629]
1498         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
1499         if larger part has absolute value 1.0.
1500         * math/s_clog10.c (__clog10): Likewise.
1501         * math/s_clog10f.c (__clog10f): Likewise.
1502         * math/s_clog10l.c (__clog10l): Likewise.
1503         * math/s_clogf.c (__clogf): Likewise.
1504         * math/s_clogl.c (__clogl): Likewise.
1505         * math/libm-test.inc (clog_test): Add more tests.
1506         (clog10_test): Likewise.
1507         * sysdeps/i386/fpu/libm-test-ulps: Update.
1508         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1509
1510         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
1511         (pltexit): Likewise.
1512         (La_regs): Likewise.
1513         (La_retval): Likewise.
1514         (int_retval): Likewise.
1515         Update #error for removed macros to refer only to definitions in
1516         tst-audit.h.
1517         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
1518         macro.
1519         (pltexit): Likewise.
1520         (La_regs): Likewise.
1521         (La_retval): Likewise.
1522         (int_retval): Likewise.
1523         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
1524         macro.
1525         (pltexit): Likewise.
1526         (La_regs): Likewise.
1527         (La_retval): Likewise.
1528         (int_retval): Likewise.
1529         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
1530         macro.
1531         (pltexit): Likewise.
1532         (La_regs): Likewise.
1533         (La_retval): Likewise.
1534         (int_retval): Likewise.
1535         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
1536         macro.
1537         (pltexit): Likewise.
1538         (La_regs): Likewise.
1539         (La_retval): Likewise.
1540         (int_retval): Likewise.
1541         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
1542         macro.
1543         (pltexit): Likewise.
1544         (La_regs): Likewise.
1545         (La_retval): Likewise.
1546         (int_retval): Likewise.
1547         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
1548         macro.
1549         (pltexit): Likewise.
1550         (La_regs): Likewise.
1551         (La_retval): Likewise.
1552         (int_retval): Likewise.
1553         * sysdeps/generic/tst-audit.h: Update comment to refer only to
1554         macro definitions in tst-audit.h.
1555         * sysdeps/i386/tst-audit.h: New file.
1556         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
1557         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
1558         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
1559         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
1560         * sysdeps/sh/tst-audit.h: Likewise.
1561         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
1562         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
1563         * sysdeps/x86_64/tst-audit.h: Likewise.
1564
1565 2012-07-26  Andreas Jaeger  <aj@suse.de>
1566
1567         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
1568         ptrace.
1569
1570         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
1571         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
1572         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
1573         PTRACE_O_MASK.
1574         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
1575         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
1576         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
1577
1578         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
1579         value.
1580
1581         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
1582         _sigsys.
1583         (si_call_addr, si_syscall, si_arch): Define new macro.
1584         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
1585         _sigsys.
1586         (si_call_addr, si_syscall, si_arch): Define new marcro.
1587         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
1588         _sigsys.
1589         (si_call_addr, si_syscall, si_arch): Define new macro.
1590         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
1591         _sigsys.
1592         (si_call_addr, si_syscall, si_arch): Define new macro.
1593
1594 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
1595
1596         [BZ #13717]
1597         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
1598         Change to 2.4.21 where previously 2.4.1.
1599         * sysdeps/unix/sysv/linux/configure: Regenerated.
1600         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
1601         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
1602         Linux kernel version.
1603         (__ASSUME_STD_AUXV): Remove.
1604         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
1605         kernel version.
1606         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
1607         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
1608         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
1609         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
1610         (__ASSUME_NETLINK_SUPPORT): Likewise.
1611         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
1612         (__no_netlink_support): Remove conditional definition.
1613         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
1614         Remove.
1615         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
1616         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
1617         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
1618         (if_nameindex_ioctl): Remove.
1619         (if_nameindex_netlink): Do not handle __no_netlink_support.
1620         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
1621         code.
1622         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
1623         Remove conditional code.
1624         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
1625         code.
1626         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
1627         unconditional.
1628         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
1629         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
1630         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
1631         Remove.
1632         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
1633         [!__ASSUME_STD_AUXV]: Remove conditional code.
1634         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
1635         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
1636         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
1637         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
1638         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
1639         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
1640         code.
1641         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
1642         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
1643         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
1644         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
1645         conditional code.
1646         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
1647         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
1648         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
1649         code.
1650         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
1651         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
1652         conditional code.
1653         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
1654         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
1655         code unconditional.
1656         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
1657         conditional code.
1658         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
1659         unconditional.
1660         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
1661         conditional code.
1662         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
1663         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
1664         unconditional.
1665         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
1666         conditional code.
1667         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
1668         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
1669         code unconditional.
1670         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
1671         conditional code.
1672         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
1673         unconditional.
1674         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
1675         conditional code.
1676         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
1677         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
1678         code unconditional.
1679         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
1680         conditional code.
1681         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
1682         unconditional.
1683         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
1684         conditional code.
1685
1686 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
1687
1688         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
1689         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
1690         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
1691         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
1692         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
1693         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
1694         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
1695         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
1696         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
1697         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
1698         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
1699         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
1700         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
1701         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
1702         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
1703         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
1704         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
1705         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
1706         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
1707         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
1708         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
1709         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
1710         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
1711
1712 2012-07-25  Florian Weimer  <fweimer@redhat.com>
1713
1714         * Versions.def: Add GLIBC_2.17.
1715         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
1716         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
1717         Introduce __libc_secure_getenv.
1718         * stdlib/Versions (2.17): Add secure_getenv
1719         (GLIBC_PRIVATE): Add __libc_secure_getenv.
1720         * stdlib/secure-getenv.c: Rename __secure_getenv to
1721         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
1722         symbol __secure_getenv for GLIBC_2.0.
1723         * stdlib/tst-secure-getenv.c: New.
1724         * stdlib/Makefile (tests): Add testcase.
1725         * manual/startup.texi (Environment Access): Document
1726         secure_getenv.
1727         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
1728         __libc_secure_getenv.
1729         * inet/ruserpass.c (ruserpass): Likewise.
1730         * malloc/mtrace.c (mtrace): Likewise.
1731         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
1732         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
1733         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
1734         * sysdeps/posix/tempname.c: Likewise.  Evaluate
1735         HAVE_SECURE_GETENV.
1736         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
1737         __secure_getenv to __libc_secure_getenv.
1738         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
1739         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
1740         Likewise.
1741         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
1742         Likewise.
1743         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
1744         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
1745         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
1746         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
1747         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
1748         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
1749         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
1750
1751 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
1752
1753         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
1754         (struct La_i86_retval): Likewise.
1755         (struct La_x86_64_regs): Likewise.
1756         (struct La_x86_64_retval): Likewise.
1757         (struct La_x32_regs): Likewise.
1758         (struct La_x32_retval): Likewise.
1759         (struct La_ppc32_regs): Likewise.
1760         (struct La_ppc32_retval): Likewise.
1761         (struct La_ppc64_regs): Likewise.
1762         (struct La_ppc64_retval): Likewise.
1763         (struct La_sh_regs): Likewise.
1764         (struct La_sh_retval): Likewise.
1765         (struct La_s390_32_regs): Likewise.
1766         (struct La_s390_32_retval): Likewise.
1767         (struct La_s390_64_regs): Likewise.
1768         (struct La_s390_64_retval): Likewise.
1769         (struct La_sparc32_regs): Likewise.
1770         (struct La_sparc32_retval): Likewise.
1771         (struct La_sparc64_regs): Likewise.
1772         (struct La_sparc64_retval): Likewise.
1773         (struct audit_ifaces): Remove architecture-specific pltenter and
1774         pltexit members.
1775         * sysdeps/i386/ldsodefs.h: New file.
1776         * sysdeps/powerpc/ldsodefs.h: Likewise.
1777         * sysdeps/s390/ldsodefs.h: Likewise.
1778         * sysdeps/sh/ldsodefs.h: Likewise.
1779         * sysdeps/sparc/ldsodefs.h: Likewise.
1780         * sysdeps/x86_64/ldsodefs.h: Likewise.
1781
1782 2012-07-25  Marek Polacek  <polacek@redhat.com>
1783
1784         [BZ #6808]
1785         * math/libm-test.inc (yn_test): Add another test.
1786         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
1787         to ERANGE when the result is +-Inf.
1788         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
1789         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
1790         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
1791         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
1792
1793 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
1794
1795         * conform/data/time.h-data (NULL): Use macro-constant.  Require
1796         equal to 0.
1797         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
1798         clock_t.
1799         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
1800
1801 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
1802
1803         * configure.in <sysdeps resolving>: Correct printing
1804         Implies_before.
1805         * configure: Regenerate.
1806
1807 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
1808
1809         * math/w_ilogb.c: Include <limits.h>.
1810         * math/w_ilogbl.c: Likewise.
1811
1812 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
1813
1814         * manual/lang.texi (__va_copy): Document primarily as ISO C99
1815         va_copy.  Document allowing for unavailable va_copy only as
1816         pre-C99 compatibility.
1817         * manual/string.texi (Copying and Concatenation): Use va_copy
1818         instead of __va_copy in concat example.
1819
1820 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
1821
1822         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
1823         (__sendto): Use create_address_port.  Initialize APORT and deallocate
1824         it if not null.
1825
1826         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
1827         with O_NOLINK passed to __file_name_lookup.
1828
1829         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
1830         with O_NOLINK passed to __file_name_lookup.
1831
1832         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
1833         negative N or less than NGIDS.
1834
1835         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
1836         type to string_t.  Set ERANGE as errno and return it if NAME is not big
1837         enough.  Use memcpy instead of strncpy.
1838
1839 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
1840
1841         * elf/Makefile (check-data): Remove.
1842         (localplt.data): New vpath directive.
1843         ($(objpfx)check-localplt.out): Use localplt.data from vpath
1844         instead of $(check-data).
1845         * scripts/data/localplt-generic.data: Move to ...
1846         * sysdeps/generic/localplt.data: ... here.
1847         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
1848         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
1849         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
1850         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
1851         ... here.
1852         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
1853         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
1854         ... here.
1855         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
1856         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
1857         ... here.
1858         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
1859         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
1860         ... here.
1861         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
1862         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
1863         ... here.
1864         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
1865         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
1866         ... here.
1867
1868 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1869
1870         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
1871         PPC32 and PPC64 files.
1872         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
1873         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
1874
1875 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1876
1877         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
1878         __makecontext_ret to ...
1879         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
1880         ... here and call exit if uc_link is NULL.  New file.
1881         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
1882         __makecontext_ret.S.
1883         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
1884         __makecontext_ret to ...
1885         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
1886         ... here and call exit if uc_link is NULL.  New file.
1887         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
1888         __makecontext_ret.S.
1889
1890 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1891
1892         * elf/elf.h (R_390_IRELATIVE): New definition.
1893         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
1894         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
1895         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
1896         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
1897         (elf_machine_lazy_rel): Likewise.
1898         * sysdeps/s390/dl-irel.h: New file.
1899         * sysdeps/s390/s390-64/memcpy.S: New asm code.
1900         * sysdeps/s390/s390-64/memset.S: New asm code.
1901         * sysdeps/s390/s390-64/memcmp.S: New asm code.
1902         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
1903         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
1904         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
1905         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
1906         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
1907         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
1908         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
1909         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
1910         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
1911         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
1912         * sysdeps/s390/s390-32/memcpy.S: New asm code.
1913         * sysdeps/s390/s390-32/memset.S: New asm code.
1914         * sysdeps/s390/s390-32/memcmp.S: New asm code.
1915
1916 2012-07-17  Marek Polacek  <polacek@redhat.com>
1917
1918         [BZ #14349]
1919         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
1920         * sysdeps/s390/s390-64/configure.in: Likewise.
1921         * sysdeps/sparc/configure.in: Likewise.
1922         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
1923         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
1924         * sysdeps/i386/configure.in: Likewise.
1925         * sysdeps/x86_64/configure.in: Likewise.
1926         * sysdeps/sh/configure.in: Likewise.
1927         * sysdeps/s390/s390-32/configure: Regenerated.
1928         * sysdeps/s390/s390-64/configure: Likewise.
1929         * sysdeps/x86_64/configure: Likewise.
1930         * sysdeps/sh/configure: Likewise.
1931         * sysdeps/powerpc/powerpc64/configure: Likewise.
1932         * sysdeps/powerpc/powerpc32/configure: Likewise.
1933         * sysdeps/sparc/configure: Likwise.
1934         * sysdeps/i386/configure: Likewise.
1935
1936         * elf/dl-open.c: Comment fixes.
1937
1938 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
1939
1940         * Makefile [CXX] (check-data): Remove.
1941         [CXX] (c++-types.data): New vpath directive.
1942         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
1943         vpath.  Do not allow for C++ type data being missing.
1944         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
1945         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
1946         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
1947         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
1948         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
1949         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
1950         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
1951         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
1952         ... here.
1953         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
1954         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
1955         ... here.
1956         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
1957         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
1958         ... here.
1959         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
1960         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
1961         ... here.
1962         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
1963         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
1964         ... here.
1965         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
1966         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
1967         ... here.
1968         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
1969         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
1970         ... here.
1971         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
1972         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
1973
1974         * elf/tls-macros.h (TLS_LE): Move architecture-specific
1975         definitions to architecture-specific files.
1976         (TLS_IE): Likewise.
1977         (TLS_LD): Likewise.
1978         (TLS_GD): Likewise.
1979         * sysdeps/i386/tls-macros.h: New file.
1980         * sysdeps/powerpc/tls-macros.h: Likewise.
1981         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
1982         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
1983         * sysdeps/sh/tls-macros.h: Likewise.
1984         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
1985         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
1986         * sysdeps/x86_64/tls-macros.h: Likewise.
1987
1988 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
1989
1990         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
1991         zero value for regular exit case.
1992
1993         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
1994         (__start_context): Preserve zero value for regular exit case.
1995
1996 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
1997             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1998
1999         * manual/setjmp.texi (setcontext): Clarify normal process
2000         termination when uc_link is the null pointer.
2001         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
2002         exit call.
2003
2004 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
2005
2006         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
2007         preprocessor.  Test for each exception mask separately.
2008
2009 2012-07-16  Andreas Jaeger  <aj@suse.de>
2010
2011         * po/ru.po: Update from translation team.
2012
2013 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
2014
2015         * conform/data/string.h-data (NULL): Use macro-constant.  Require
2016         equal to 0.
2017         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
2018         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
2019         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
2020         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
2021         [ISO || ISO99 || ISO11] (*_t): Do not allow.
2022
2023 2012-07-13  Andreas Jaeger  <aj@suse.de>
2024
2025         * po/fr.po: Update from translation team.
2026
2027 2012-07-12  Marek Polacek  <polacek@redhat.com>
2028
2029         [BZ #14173]
2030         * math/libm-test.inc (yn_test): Add test for BZ #14173.
2031         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
2032         loop condition.
2033
2034 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
2035
2036         [BZ #13717]
2037         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
2038         Change to 2.4.1 where previously 2.4.0.
2039         * sysdeps/unix/sysv/linux/configure: Regenerated.
2040         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
2041         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
2042         version.
2043         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
2044         (__ASSUME_AT_CLKTCK): Remove.
2045         (__ASSUME_AT_PAGESIZE): Likewise.
2046         (__ASSUME_AT_XID): Likewise.
2047         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
2048         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
2049         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
2050         unconditionally.
2051         (HAVE_AUX_PAGESIZE): Likewise.
2052         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
2053         [__ASSUME_AT_CLKTCK]: Make code unconditional.
2054         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
2055
2056 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
2057
2058         [BZ #14307]
2059         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
2060         the temporary buffer used to invoke __gethostbyname2_r,
2061         __gethostbyaddr_r and gethostbyname4_r to make room for struct
2062         host_data / struct gaih_addrtuple.
2063         * resolv/nss_dns/dns-host.c (global scope): Move definition of
2064         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
2065         header file nss/nsswitch.h.
2066         * nss/nsswitch.h (global scope): Add definition of implementation
2067         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
2068         resolv/nss_dns/dns-host.c).
2069
2070 2012-07-11  Andreas Jaeger  <aj@suse.de>
2071
2072         * po/fr.po: Update from translation team.
2073
2074         * po/sv.po: Update from translation team
2075         * po/fr.po: Another update from translation team.
2076
2077 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2078
2079         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
2080         for subnormals or multiply small sinh result by itself.
2081         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
2082         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2083
2084 2012-07-11  David S. Miller  <davem@davemloft.net>
2085
2086         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2087
2088 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
2089
2090         [BZ #14347]
2091         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
2092         (INTERNAL_MARK): Shift it here.
2093
2094 2012-07-10  Marek Polacek  <polacek@redhat.com>
2095
2096         [BZ #14151]
2097         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
2098         libc_cv_asm_global_directive with .globl.
2099         * configure: Regenerated.
2100         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
2101         with .globl.
2102         * sysdeps/i386/configure: Regenerated.
2103         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
2104         with .globl.
2105         * sysdeps/x86_64/configure: Regenerated.
2106         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
2107         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
2108         * elf/tst-unique2mod2.c: Likewise.
2109         * elf/tst-unique2mod1.c: Likewise.
2110         * elf/tst-unique1mod2.c: Likewise.
2111         * elf/tst-unique1mod1.c: Likewise.
2112         * sysdeps/s390/s390-32/sysdep.h: Likewise.
2113         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
2114         * sysdeps/s390/s390-64/sysdep.h: Likewise.
2115         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
2116         * sysdeps/mach/sysdep.h: Likewise.
2117         * sysdeps/i386/sysdep.h: Likewise.
2118         * sysdeps/i386/i386-mcount.S: Likewise.
2119         * sysdeps/x86_64/_mcount.S: Likewise.
2120         * sysdeps/x86_64/sysdep.h: Likewise.
2121         * sysdeps/sh/_mcount.S: Likewise.
2122         * sysdeps/sh/sysdep.h: Likewise.
2123         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
2124         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
2125         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
2126         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
2127         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
2128         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
2129         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
2130         * locale/localeinfo.h: Likewise.
2131         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
2132         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
2133
2134 2012-07-09  Roland McGrath  <roland@hack.frob.com>
2135
2136         [BZ #14336]
2137         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
2138         system".
2139         * manual/message.texi (The Uniforum approach): Likewise.
2140         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
2141         (glibc iconv Implementation): Likewise.
2142
2143 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
2144
2145         [BZ #14337]
2146         * math/s_clog.c (__clog): Avoid scaling a value down where that
2147         could result in underflow.
2148         * math/s_clog10.c (__clog10): Likewise.
2149         * math/s_clog10f.c (__clog10f): Likewise.
2150         * math/s_clog10l.c (__clog10l): Likewise.
2151         * math/s_clogf.c (__clogf): Likewise.
2152         * math/s_clogl.c (__clogl): Likewise.
2153         * math/libm-test.inc (clog_test): Add more tests.
2154         (clog10_test): Likewise.
2155         * sysdeps/i386/fpu/libm-test-ulps: Update.
2156         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2157
2158 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
2159
2160         [BZ #14283]
2161         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
2162         by 7 not 8 to examine high bit of fractional part.
2163
2164         [BZ #14042]
2165         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
2166         for call to __mcount_internal.
2167         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
2168         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
2169         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
2170
2171 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
2172
2173         [BZ #14154]
2174         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
2175         approximation for values within 0x1p-13f of an odd multiple of
2176         pi/4.
2177         * math/libm-test.inc (tan_test): Do not allow spurious underflow
2178         exception.  Add more tests.
2179         * sysdeps/i386/fpu/libm-test-ulps: Update.
2180
2181         [BZ #6778]
2182         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
2183         inputs and return -1 for them.  Do not check for +Inf in case not
2184         reachable for +Inf.
2185         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
2186         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
2187         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
2188         and return -1 for them.  Do not check for +Inf in case not
2189         reachable for +Inf.
2190         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
2191         define.
2192         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
2193         and return -1 for them.  Do not check for +Inf in case not
2194         reachable for +Inf.
2195         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
2196         spurious underflow.
2197         * sysdeps/i386/fpu/libm-test-ulps: Update.
2198         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2199
2200 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
2201
2202         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
2203
2204 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
2205
2206         [BZ #14157]
2207         [BZ #14331]
2208         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
2209         could result in spurious underflow.  Scale down values above
2210         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
2211         * math/s_csqrtf.c (__csqrtf): Likewise.
2212         * math/s_csqrtl.c (__csqrtl): Likewise.
2213         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
2214         spurious underflow.
2215         * sysdeps/i386/fpu/libm-test-ulps: Update.
2216         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2217
2218 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
2219
2220         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
2221         xopen-msg.sed.
2222         * catgets/xopen-msg.awk: New file.
2223         * catgets/xopen-msg.sed: Removed.
2224
2225         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
2226         po2text.sed.
2227         * intl/po2test.awk: New file.
2228         * intl/po2test.sed: Removed.
2229
2230 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
2231
2232         [BZ #14328]
2233         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
2234         or multiply small sinh result by itself.
2235         * math/s_ctanf.c (__ctanf): Likewise.
2236         * math/s_ctanh.c (__ctanh): Likewise.
2237         * math/s_ctanhf.c (__ctanhf): Likewise.
2238         * math/s_ctanhl.c (__ctanhl): Likewise.
2239         * math/s_ctanl.c (__ctanl): Likewise.
2240         * math/libm-test.inc (ctan_test_tonearest): New function.
2241         (ctan_test_towardzero): Likewise.
2242         (ctan_test_downward): Likewise.
2243         (ctan_test_upward): Likewise.
2244         (ctanh_test_tonearest): Likewise.
2245         (ctanh_test_towardzero): Likewise.
2246         (ctanh_test_downward): Likewise.
2247         (ctanh_test_upward): Likewise.
2248         (main): Call these new functions.
2249         * sysdeps/i386/fpu/libm-test-ulps: Update.
2250         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2251
2252 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
2253
2254         * .gitignore: Delete /ports entry.
2255
2256 2012-07-03  Andreas Jaeger  <aj@suse.de>
2257
2258         * po/bg.po: Update from translation team.
2259         * po/cs.po: Likewise.
2260         * po/de.po: Likewise.
2261         * po/hr.po: Likewise.
2262         * po/nl.pl: Likewise.
2263         * po/pl.po: Likewise.
2264         * po/vi.po: Likewise.
2265
2266 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
2267
2268         * Makeconfig [!+link] (+link-before-libc): New variable.
2269         [!+link] (+link-after-libc): Likewise.
2270         [!+link] (+link-tests): Likewise.
2271         [!+link] (+link): Define in terms of $(+link-before-libc) and
2272         $(+link-after-libc).
2273         [!+link-static] (+link-static-before-libc): New variable.
2274         [!+link-static] (+link-static-after-libc): Likewise.
2275         [!+link-static] (+link-static-tests): Likewise.
2276         [!+link-static] (+link-static): Define in terms of
2277         $(+link-static-before-libc) and $(+link-static-after-libc).
2278         [build-shared] (link-libc-before-gnulib): New variable.
2279         [build-shared] (link-libc-tests): Likewise.
2280         [build-shared] (link-libc): Define in terms of
2281         $(link-libc-before-gnulib).
2282         [!build-shared] (link-libc-tests): New variable.
2283         (link-libc-static-tests): New variable.
2284         [!gnulib] (gnulib-arch): New variable.
2285         [!gnulib] (gnulib-tests): Likewise.
2286         [!gnulib] (static-gnulib-arch): Likewise.
2287         [!gnulib] (static-gnulib-tests): Likewise.
2288         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
2289         Define with "=" instead of ":=".
2290         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
2291         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
2292         * Rules (binaries-all-notests): New variable.
2293         (binaries-all-tests): Likewise.
2294         (binaries-static-notests): Likewise.
2295         (binaries-static-tests): Likewise.
2296         (binaries-all): Define using $(binaries-all-notests) and
2297         $(binaries-all-tests).
2298         (binaries-static): Define using $(binaries-static-notests) and
2299         $(binaries-static-tests).
2300         (binaries-shared-tests): New variable.
2301         (binaries-shared-notests): Likewise.
2302         (binaries-shared): Remove variable.
2303         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
2304         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
2305         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
2306         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
2307         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
2308         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
2309         * elf/Makefile (sln-modules): New variable.
2310         (extra-objs): Add $(sln-modules:=.o).
2311         (ldconfig-modules): Add static-stubs.
2312         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
2313         * elf/static-stubs.c: New file.
2314
2315         [BZ #14283]
2316         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
2317         by 7 not 8 to examine high bit of fractional part.  Use volatile
2318         variables when splitting into final array of floats if
2319         __FLT_EVAL_METHOD__ != 0.
2320         * math/libm-test.inc (cos_test): Add another test.
2321         (sin_test): Likewise.
2322         * sysdeps/i386/fpu/libm-test-ulps: Update.
2323
2324         [BZ #14273]
2325         * math/libm-test.inc (cosh_test): Add more tests.
2326
2327         * version.h (RELEASE): Set to "development".
2328         (VERSION): Set to "2.16.90".
2329
2330 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
2331
2332         * NEWS: Update copyright. Remove last-updated date.
2333         Mention math library bug fixes and timezone data changes.
2334         * README: Mention GNU/Hurd, x32, and HPPA support status.
2335
2336 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
2337
2338         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
2339
2340 2012-06-27  Andreas Jaeger  <aj@suse.de>
2341
2342         * manual/contrib.texi (Contributors): Add Samuel Thibault.
2343
2344 2012-06-25  Andreas Jaeger  <aj@suse.de>
2345
2346         * sysdeps/s390/fpu/libm-test-ulps: Update.
2347
2348 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
2349             Thomas Schwinge  <thomas@codesourcery.com>
2350
2351         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
2352         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
2353         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
2354         fanotify_mark.
2355
2356 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
2357
2358         * sysdeps/mach/start.c: Remove file.
2359         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
2360         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
2361         * sysdeps/sh/init-first.c: Likewise.
2362
2363         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
2364         registers for frame unwinding purposes, add CFI directives.
2365         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
2366         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
2367         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
2368         Likewise.
2369
2370         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
2371         __fortify_fail returning.
2372         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
2373
2374         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
2375         sysdeps/sh/____longjmp_chk.S.
2376         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
2377         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
2378         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
2379         (gen-as-const-headers): Append sigaltstack-offsets.sym.
2380
2381         * sysdeps/sh/abort-instr.h: New file.
2382         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
2383         process in case exit returns.
2384
2385         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
2386         initialize the GOT register before use.
2387
2388         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
2389         calculation of ARGC > 4.
2390
2391         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
2392         meaningful names to some local labels.
2393
2394 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
2395             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2396
2397         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
2398         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
2399         (__arch_compare_and_exchange_val_16_acq): Likewise.
2400         (__arch_compare_and_exchange_val_32_acq): Likewise.
2401         (atomic_exchange_and_add): Fix gUSA sequence.
2402         (atomic_add): Likewise.
2403         (atomic_add_negative): Likewise.
2404         (atomic_add_zero): Likewise.
2405         (atomic_bit_test_set): Likewise.
2406
2407 2012-06-22  Andreas Schwab  <schwab@redhat.com>
2408
2409         [BZ #13579]
2410         * include/link.h (struct link_map): Add l_free_initfini.
2411         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
2412         l_initfini.
2413         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
2414         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
2415         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
2416         set.
2417
2418 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
2419
2420         * configure.in: Use AC_LANG_SOURCE.
2421         * configure: Regenerate.
2422
2423 2012-06-22  Roland McGrath  <roland@hack.frob.com>
2424
2425         * configure.in (libc_cv_localstatedir): New substituted variable.
2426         * configure: Regenerated.
2427         * config.make.in (localstatedir): New variable, substituted from
2428         libc_cv_localstatedir.
2429         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
2430         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
2431         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
2432         * sysdeps/gnu/configure: Regenerated.
2433
2434 2012-06-21  Jeff Law  <law@redhat.com>
2435
2436         [BZ #14277]
2437         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
2438         free.  Simplify list management for _LIBC case.
2439
2440 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
2441
2442         [BZ #14273]
2443         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
2444         Clear sign bit of 64-bit integer value before comparing against
2445         overflow value.
2446
2447         * sysdeps/mach/configure: Regenerated.
2448
2449 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
2450
2451         [BZ #14278]
2452         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
2453
2454 2012-06-21  Jeff Law  <law@redhat.com>
2455
2456         [BZ #13882]
2457         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
2458         uint16_t for elements in the "seen" array to avoid char overflows.
2459         * elf/dl-fini.c (_dl_sort_fini): Likewise.
2460         * elf/dl-open.c (dl_open_worker): Likewise.
2461
2462 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
2463
2464         * scripts/list-sources.sh: Scan PORTS for translations.
2465         * po/libc.pot: Regenerated.
2466
2467 2012-06-21  Andreas Jaeger  <aj@suse.de>
2468
2469         [BZ #12194]
2470         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
2471         warning.
2472         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
2473         * bits/byteswap-16.h (__bswap_16): Likewise.
2474         * bits/byteswap.h (__bswap_constant_16): Likewise.
2475
2476 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
2477
2478         [BZ #14117]
2479         * sysdeps/i386/fpu_control.h: Removed.
2480         * sysdeps/x86_64/fpu_control.h: Moved to ...
2481         * sysdeps/x86/fpu_control.h: Here.
2482
2483         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
2484         (_FPU_SETCW): Likewise.
2485
2486 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
2487
2488         [BZ #14117]
2489         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
2490         * sysdeps/x86/fpu/bits/mathinline.h: This.
2491         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
2492
2493         [BZ #14050]
2494         [BZ #14117]
2495         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
2496         functions if __x86_64__ is defined.
2497
2498 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
2499
2500         * string/endian.h: Add !__ASSEMBLER__ condition for including
2501         conversion interfaces.
2502
2503 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
2504
2505         [BZ #14241]
2506         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
2507         of ABS(x) in calculating zero to negative powers other than odd
2508         integers.
2509         * math/libm-test.inc (pow_test): Add more tests.
2510
2511 2012-06-15  Andreas Jaeger  <aj@suse.de>
2512
2513         * manual/contrib.texi (Contributors): Update entry of Liubov
2514         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
2515         Machado Filho.
2516
2517 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
2518
2519         * string/string.h: Add __wur to GNU version of strerror_r.
2520
2521 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
2522
2523         [BZ #14229]
2524         * string/Makefile (tests): Add tst-strtok_r.
2525         * string/tst-strtok_r.c: New file.
2526         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
2527         RAX_LP/RDX_LP on SAVE_PTR.
2528
2529 2012-06-14  Roland McGrath  <roland@hack.frob.com>
2530
2531         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
2532
2533 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
2534
2535         * libm_test.inc (csqrt_test): Allow more spurious underflow
2536         exceptions.
2537         (j0_test): Likewise.
2538         (j1_test): Likewise.
2539         (y0_test): Likewise.
2540         (y1_test): Likewise.
2541
2542 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
2543
2544         * po/Makefile (libc.pot): Use UTF-8 charset.
2545
2546 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
2547
2548         [BZ #14210]
2549         Suppress sign-conversion warning from FD_SET.
2550         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
2551         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
2552         not unsigned long int.
2553         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
2554
2555 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
2556
2557         [BZ #14050]
2558         [BZ #14117]
2559         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
2560         __extern_always_inline instead of __extern_inline.
2561         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
2562         (__signbit): Likewise.
2563         (__signbitl): Support C++ namespace.
2564         (lrintf): New inline function.
2565         (lrint): Likewise.
2566         (llrintf): Likewise.
2567         (llrint): Likewise.
2568         (fmaxf): Likewise.
2569         (fmax): Likewise.
2570         (fminf): Likewise.
2571         (fmin): Likewise.
2572         (rint): Likewise.
2573         (rintf): Likewise.
2574         (ceil): Likewise.
2575         (ceilf): Likewise.
2576         (floor): Likewise.
2577         (floorf): Likewise.
2578         (nearbyint): Likewise.
2579         (nearbyintf): Likewise.
2580
2581 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
2582
2583         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
2584         non-default versions.
2585
2586 2012-06-11  Roland McGrath  <roland@hack.frob.com>
2587
2588         [BZ #14218]
2589         * manual/argp.texi (Argp): Reword argp_parse description slightly.
2590
2591 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
2592
2593         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
2594         (FE_UPWARD, FE_DOWNWARD): Don't define.
2595         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
2596         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
2597
2598         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
2599         reading it.
2600         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
2601         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
2602
2603 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2604
2605         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
2606         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
2607         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
2608         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
2609
2610 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
2611
2612         [BZ #14117]
2613         * sysdeps/i386/fpu/bits/fenv.h: Removed.
2614         * sysdeps/i386/fpu/Implies: New file.
2615         * sysdeps/x86_64/fpu/Implies: Likewise.
2616         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
2617         * sysdeps/x86/fpu/bits/fenv.h: This.
2618
2619         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
2620         __SSE_MATH__.
2621
2622 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
2623
2624         [BZ #14134]
2625         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
2626         character 0xffff that matches the last element of the
2627         conversion table.
2628
2629 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2630
2631         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
2632         fmodl commit.
2633
2634 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2635
2636         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
2637         values higher than 25.6283.
2638
2639 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2640
2641         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
2642         subnormal exponent extraction and add some __builtin_expect.
2643         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
2644         Fix for subnormal mantissa calculation.
2645
2646 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
2647
2648         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
2649         cpu2 is -1 and errno is not ENOSYS.
2650
2651 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
2652
2653         [BZ #14117]
2654         * sysdeps/i386/i486/bits/string.h: Renamed to ...
2655         * sysdeps/x86/bits/string.h: This.
2656         * sysdeps/x86_64/bits/string.h: Removed.
2657
2658         * sysdeps/i386/i486/bits/string.h: Define inline functions only
2659         if not compiling for x86-64, but compiling for >= i486.
2660
2661         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
2662         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
2663
2664         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
2665         New macro from Linux kernel 3.4.0.
2666         (FP_XSTATE_MAGIC2): Likewise.
2667         (FP_XSTATE_MAGIC2_SIZE): Likewise.
2668         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
2669         (struct _fpx_sw_bytes): New struct.
2670         (struct _xsave_hdr): Likewise.
2671         (struct _ymmh_state): Likewise.
2672         (struct _xstate): Likewise.
2673
2674         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
2675         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
2676         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
2677         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
2678         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
2679         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
2680
2681         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
2682         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
2683         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
2684         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
2685         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
2686         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
2687
2688 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2689
2690         [BZ #13743]
2691         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
2692         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
2693         (sysdep_headers): Include sys/platform/ppc.h.
2694         * sysdeps/powerpc/test-gettimebase.c: Test for
2695         __ppc_get_timebase() to catch future ISA opcode/insn changes.
2696         * manual/Makefile (appendices): Include platform.texi.
2697         * manual/contrib.texi (Contributors): Update @node pointers.
2698         * manual/maint.texi (Maintenance): Likewise.
2699         (Platform): New node.
2700         * manual/platform.texi: New file.  Document the new features.
2701
2702 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
2703             Jakub Jelinek  <jakub@redhat.com>
2704
2705         [BZ #14188]
2706         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
2707         where __builtin_expect is unavailable.
2708
2709 2012-06-03  David S. Miller  <davem@davemloft.net>
2710
2711         * stdlib/longlong.h: Updated from GCC.
2712
2713 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
2714
2715         [BZ #14042]
2716         * sysdeps/powerpc/powerpc32/mcount.c: New file.
2717         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
2718         __mcount_internal.
2719         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
2720         (GLIBC_2.16): Likewise.
2721
2722 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
2723
2724         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
2725
2726 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
2727
2728         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
2729         (default-abi): New variable.
2730         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
2731         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
2732         variable.
2733         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
2734         Likewise.
2735         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
2736         Likewise.
2737         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
2738         Likewise.
2739
2740         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
2741         definition.  Document in comment.
2742
2743 2012-06-01  David S. Miller  <davem@davemloft.net>
2744
2745         * stdlib/longlong.h: Updated from GCC.
2746
2747 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
2748
2749         [BZ #14117]
2750         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
2751         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
2752         sys/debugreg.h sys/io.h here.
2753         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
2754         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
2755         sys/io.h.
2756         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
2757         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
2758         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
2759         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
2760         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
2761         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
2762
2763         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
2764         Define only if __x86_64__ is defined.
2765
2766 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
2767
2768         [BZ #14048]
2769         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
2770         Use int64_t for variable i.
2771         * math/libm-test.inc (fmod_test): Add more tests.
2772
2773         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
2774         z computation is not scheduled after fetestexcept.
2775         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
2776         Use math_force_eval instead of asm to ensure calculation scheduled
2777         before exception test.
2778         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
2779         Ensure a1 + u.d computation is not scheduled after fetestexcept.
2780
2781 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
2782
2783         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
2784         computation is not scheduled after fetestexcept.
2785
2786 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
2787
2788         [BZ #14117]
2789         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
2790         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
2791
2792 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2793
2794         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
2795         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
2796
2797 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
2798
2799         [BZ #14117]
2800         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
2801         <bits/wordsize.h>.
2802         (__WCHAR_MIN): Support __WORDSIZE == 64.
2803         (__WCHAR_MAX): Likewise.
2804
2805         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
2806         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
2807
2808         [BZ #14183]
2809         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
2810         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
2811
2812         [BZ #14117]
2813         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
2814         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
2815
2816         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
2817         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
2818
2819         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
2820         Defined to 1 if __x86_64__ isn't defined.
2821         (_STAT_VER_LINUX_OLD): New.
2822         (st_atime): Remove duplicate.
2823         (st_mtime): Likewise.
2824         (st_ctime): Likewise.
2825
2826 2012-05-31  David S. Miller  <davem@davemloft.net>
2827
2828         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
2829         entries.
2830
2831 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
2832
2833         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
2834         gen-libm-test.pl.
2835
2836         [BZ #14132]
2837         * elf/dl-reloc.c: Include <_itoa.h>.
2838         (_dl_reloc_bad_type): Remove use of INTUSE.
2839         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
2840         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
2841         * stdio-common/psiginfo.c (psiginfo): Likewise.
2842         * stdio-common/psignal.c (psignal): Likewise.
2843         * string/strsignal.c (strsignal): Likewise.
2844         * include/signal.h (_sys_siglist): Declare hidden proto.
2845         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
2846         INTVARDEF with libc_hidden_data_def.
2847         * stdio-common/itoa-udigits.c: Likewise.
2848         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
2849         (_itoa_lower_digits_internal): Remove declaration.
2850         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
2851         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
2852         (_sys_sigabbrev_internal): Remove aliases.
2853         (_sys_siglist): Define hidden alias.
2854
2855 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
2856
2857         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2858         bits/sysctl.h.
2859
2860 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
2861
2862         [BZ #14117]
2863         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
2864         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
2865
2866         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
2867         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
2868         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
2869         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
2870         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
2871         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
2872
2873         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
2874         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
2875         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
2876
2877         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
2878         with __addr.
2879         (insw): Likewise.
2880         (insl): Likewise.
2881         (outsb): Likewise.
2882         (outsw): Likewise.
2883         (outsl): Likewise.
2884
2885         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
2886         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
2887         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
2888
2889         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
2890         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
2891         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
2892         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
2893         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
2894         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
2895
2896         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
2897         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
2898
2899         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
2900         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
2901
2902         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
2903         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
2904         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
2905
2906         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
2907         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
2908         to ...
2909         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
2910
2911         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
2912         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
2913         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
2914
2915         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
2916         for x86-64.
2917         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
2918
2919 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
2920
2921         * math/math.h (M_El): Use two more decimal places.
2922         (M_LOG2El): Likewise.
2923         (M_LOG10El): Likewise.
2924         (M_LN2l): Likewise.
2925         (M_LN10l): Likewise.
2926         (M_PIl): Likewise.
2927         (M_PI_2l): Likewise.
2928         (M_PI_4l): Likewise.
2929         (M_1_PIl): Likewise.
2930         (M_2_PIl): Likewise.
2931         (M_2_SQRTPIl): Likewise.
2932         (M_SQRT2l): Likewise.
2933         (M_SQRT1_2l): Likewise.
2934
2935 2012-05-31  David S. Miller  <davem@davemloft.net>
2936
2937         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
2938         values between float registers.
2939         * sysdeps/sparc/sparc64/memset.S: Likewise.
2940         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
2941
2942 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
2943
2944         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
2945         -D_FORTIFY_SOURCE=1.
2946         (CPPFLAGS-tst-longjmp_chk.c): Define.
2947         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
2948         (CPPFLAGS-tst-longjmp_chk2.c): Define.
2949         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
2950         CFLAGS-tst-wchar-h.c.
2951
2952 2012-05-31  Marek Polacek  <polacek@redhat.com>
2953
2954         [BZ #14132]
2955         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
2956         __endmntent_internal): Remove declaration.
2957         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
2958         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
2959         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
2960
2961 2012-05-30  David S. Miller  <davem@davemloft.net>
2962
2963         * sysdeps/sparc/sparc32/soft-fp/q_util.c
2964         (___Q_simulate_exceptions): Use real FP ops rather than writing
2965         into the %fsr.
2966         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
2967         Likewise.
2968
2969 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
2970
2971         [BZ #14117]
2972         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
2973         * sysdeps/x86/bits/xtitypes.h: This.
2974
2975         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
2976         * sysdeps/x86/bits/wordsize.h: This.
2977
2978         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
2979         * sysdeps/x86/bits/huge_vall.h: This.
2980
2981         * sysdeps/i386/bits/select.h: Removed.
2982         * sysdeps/x86_64/bits/select.h: Renamed to ...
2983         * sysdeps/x86/bits/select.h: This.
2984
2985         * sysdeps/i386/bits/setjmp.h: Removed.
2986         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
2987         * sysdeps/x86/bits/setjmp.h: This.
2988
2989         * sysdeps/i386/bits/mathdef.h: Removed.
2990         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
2991         * sysdeps/x86/bits/mathdef.h: This.
2992
2993 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
2994
2995         [BZ #14132]
2996         * include/sys/socket.h (__connect_internal)
2997         (__libc_sa_len_internal): Remove declaration.
2998         (__connect, __libc_sa_len): Declare hidden_proto.
2999         (SA_LEN): Remove use of INTUSE.
3000         * socket/connect.c: Add libc_hidden_def.
3001         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
3002         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
3003         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
3004         alias.
3005         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3006         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3007         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
3008         of adding _internal alias.
3009
3010 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3011
3012         [BZ #14117]
3013         * sysdeps/i386/bits/link.h: Removed.
3014         * sysdeps/i386/bits/linkmap.h: Likewise.
3015         * sysdeps/x86_64/bits/link.h: Renamed to ...
3016         * sysdeps/x86/bits/link.h: This.
3017         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
3018         * sysdeps/x86/bits/linkmap.h: This.
3019
3020         * sysdeps/i386/bits/endian.h: Removed.
3021         * sysdeps/x86_64/bits/endian.h: Renamed to ...
3022         * sysdeps/x86/bits/endian.h: This.
3023
3024         * sysdeps/i386/bits/byteswap.h: Removed.
3025         * sysdeps/i386/bits/byteswap-16.h: Likewise.
3026         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
3027         * sysdeps/x86/bits/byteswap.h: This.
3028         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
3029         * sysdeps/x86/bits/byteswap-16.h: This.
3030         * sysdeps/i386/Implies: Add x86.
3031         * sysdeps/x86_64/Implies: Likewise.
3032
3033 2012-05-30  David S. Miller  <davem@davemloft.net>
3034
3035         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
3036         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
3037         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
3038         (FP_TRAPPING_EXCEPTIONS): Define.
3039         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
3040         (FP_TRAPPING_EXCEPTIONS): Define.
3041         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
3042         subnormals only when inexact has been signalled or underflow
3043         exceptions are enabled.
3044         (_FP_PACK_CANONICAL): Likewise.
3045
3046 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3047
3048         [BZ #14183]
3049         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
3050         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
3051
3052 2012-05-30  Richard Henderson  <rth@twiddle.net>
3053
3054         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
3055         with #ifndef NOT_IN_libc.
3056
3057         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
3058         marked to avoid plt entry.
3059
3060 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3061
3062         [BZ #14112]
3063         * Makeconfig (default-abi): New macro.
3064         (abi-includes): Likewise.
3065         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
3066         $(abi-$(default-abi)-lib-soname) for soname if defined.
3067         ($(common-objpfx)gnu/lib-names.stmp): Generate from
3068         abi-variants.
3069         * Makefile (installed-stubs): Likewise.
3070         * include/stubs-biarch.h: Removed.
3071         * scripts/lib-names.awk: Only handle one library at a time.
3072         * scripts/soversions.awk: Remove WORDSIZE support.
3073         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
3074         entries.
3075         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
3076         Removed.
3077         (syscall-list-default-condition): Likewise.
3078         (syscall-list-default-condition): Likewise.
3079         (syscall-list-includes): Likewise.
3080         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
3081         syscall-list-* with abi-*.  Handle undefined abi-variants.
3082         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
3083         * sysdeps/unix/sysv/linux/i386/Implies: New file.
3084         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
3085         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
3086         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
3087         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
3088         Removed.
3089         (syscall-list-32-options): Likewise.
3090         (syscall-list-32-condition): Likewise.
3091         (syscall-list-64-options): Likewise.
3092         (syscall-list-64-condition): Likewise.
3093         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
3094         macro.
3095         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
3096         Renamed to ...
3097         (abi-*): This.
3098         (abi-64-ld-soname): New macro.
3099         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
3100         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
3101         Renamed to ...
3102         (abi-*): This.
3103         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
3104         * sysdeps/x86_64/x32/shlib-versions: Likewise.
3105
3106 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
3107
3108         * sysdeps/unix/sysv/linux/kernel-features.h
3109         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
3110         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
3111         include <kernel-features.h>.
3112         [!__NR_ftruncate64]: Remove conditional code.
3113         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3114         [__NR_ftruncate64]: Make code unconditional.
3115         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3116         * sysdeps/unix/sysv/linux/truncate64.c: Do not
3117         include <kernel-features.h>.
3118         [!__NR_ftruncate64]: Remove conditional code.
3119         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3120         [__NR_ftruncate64]: Make code unconditional.
3121         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3122         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
3123         include <kernel-features.h>.
3124         [!__NR_ftruncate64]: Remove conditional code.
3125         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3126         [__NR_ftruncate64]: Make code unconditional.
3127         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3128         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
3129         include <kernel-features.h>.
3130         [!__NR_ftruncate64]: Remove conditional code.
3131         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3132         [__NR_ftruncate64]: Make code unconditional.
3133         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3134
3135         * configure.in (libc_cv_fpie): Weaken to a compile test using
3136         LIBC_TRY_CC_OPTION.
3137         * configure: Regenerated.
3138
3139 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3140
3141         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
3142         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
3143         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
3144         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
3145         Refreshed.
3146         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
3147         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
3148         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
3149         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
3150         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
3151         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
3152         Refreshed.
3153
3154 2012-05-27  David S. Miller  <davem@davemloft.net>
3155
3156         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
3157         (___Q_zero): New.
3158         (__Q_simulate_exceptions): Return void.  Change to simulate
3159         exceptions by writing into the %fsr.
3160         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
3161         (__Qp_handle_exceptions): Likewise.
3162         (numbers): Delete.
3163         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
3164         __Qp_handle_exceptions.
3165         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
3166         __Qp_handle_exceptions.
3167         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
3168         as unused and give dummy FP_RND_NEAREST initializer.
3169         (FP_INHIBIT_RESULTS): Define.
3170         (___Q_simulate_exceptions): Update declaration.
3171         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
3172         formatting.
3173         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
3174         as unused and give dummy FP_RND_NEAREST initializer.
3175         (__Qp_handle_exceptions): Update declaration.
3176         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
3177         formatting.
3178
3179 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
3180
3181         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
3182         the temporary FPU control word.
3183         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
3184         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
3185         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
3186         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
3187         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
3188         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
3189         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
3190         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
3191         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
3192         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
3193         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
3194
3195 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3196
3197         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
3198         fields.
3199
3200 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
3201
3202         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
3203         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
3204         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
3205         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
3206         Likewise.
3207         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
3208         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
3209         Likewise.
3210
3211 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
3212
3213         * po/h.po: Update from translation team.
3214
3215 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
3216
3217         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
3218
3219         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
3220         handling of denormals.
3221         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
3222         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
3223         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
3224         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
3225         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
3226         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
3227         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
3228         Likewise.
3229
3230 2012-05-26  Marek Polacek  <polacek@redhat.com>
3231
3232         [BZ #14152]
3233         * math/libm-test.inc (fma_test): Don't always expect underflow
3234         exception.
3235
3236 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
3237
3238         [BZ #12416]
3239         * elf/tst-execstack.c: Include stackinfo.h.
3240         (do_test): Adjust test case to ensure that pthread_getattr_np
3241         behaviour remains the same after marking stack executable.
3242
3243 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
3244
3245         * sysdeps/unix/sysv/linux/kernel-features.h
3246         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
3247         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
3248         kernel-features.h.
3249         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
3250         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
3251         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
3252         kernel-features.h.
3253         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
3254         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
3255
3256 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
3257
3258         * configure.in: Define the default includes to being none.
3259         * configure: Regenerated.
3260
3261 2012-05-25  Roland McGrath  <roland@hack.frob.com>
3262
3263         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
3264         * sysdeps/x86_64/setjmp.S: Likewise.
3265         * sysdeps/i386/bsd-setjmp.S: Likewise.
3266         * sysdeps/i386/bsd-_setjmp.S: Likewise.
3267         * sysdeps/i386/setjmp.S: Likewise.
3268         * sysdeps/i386/__longjmp.S: Likewise.
3269         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
3270         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
3271
3272         * include/stap-probe.h: New file.
3273         * configure.in: Handle --enable-systemtap.
3274         * configure: Regenerated.
3275         * config.h.in (USE_STAP_PROBE): New #undef.
3276         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
3277         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
3278         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
3279
3280 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
3281
3282         [BZ #13717]
3283         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
3284         to 2.4.0 where earlier.
3285         * sysdeps/unix/sysv/linux/configure: Regenerated.
3286         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
3287         <kernel-features.h>.
3288         [__ASSUME_32BITUIDS]: Make code unconditional.
3289         [!__ASSUME_32BITUIDS]: Remove conditional code.
3290         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
3291         <kernel-features.h>.
3292         [__ASSUME_32BITUIDS]: Make code unconditional.
3293         [!__ASSUME_32BITUIDS]: Remove conditional code.
3294         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
3295         [__ASSUME_32BITUIDS]: Make code unconditional.
3296         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
3297         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
3298         <kernel-features.h>.
3299         [__ASSUME_32BITUIDS]: Make code unconditional.
3300         [!__ASSUME_32BITUIDS]: Remove conditional code.
3301         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
3302         <kernel-features.h>.
3303         [__ASSUME_32BITUIDS]: Make code unconditional.
3304         [!__ASSUME_32BITUIDS]: Remove conditional code.
3305         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
3306         <kernel-features.h>.
3307         [__ASSUME_32BITUIDS]: Make code unconditional.
3308         [!__ASSUME_32BITUIDS]: Remove conditional code.
3309         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
3310         <kernel-features.h>.
3311         [__ASSUME_32BITUIDS]: Make code unconditional.
3312         [!__ASSUME_32BITUIDS]: Remove conditional code.
3313         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
3314         <kernel-features.h>.
3315         [__ASSUME_32BITUIDS]: Make code unconditional.
3316         [!__ASSUME_32BITUIDS]: Remove conditional code.
3317         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
3318         <kernel-features.h>.
3319         [__ASSUME_32BITUIDS]: Make code unconditional.
3320         [!__ASSUME_32BITUIDS]: Remove conditional code.
3321         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
3322         <kernel-features.h>.
3323         [__ASSUME_32BITUIDS]: Make code unconditional.
3324         [!__ASSUME_32BITUIDS]: Remove conditional code.
3325         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
3326         <kernel-features.h>.
3327         [__ASSUME_32BITUIDS]: Make code unconditional.
3328         [!__ASSUME_32BITUIDS]: Remove conditional code.
3329         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
3330         <kernel-features.h>.
3331         [__ASSUME_32BITUIDS]: Make code unconditional.
3332         [!__ASSUME_32BITUIDS]: Remove conditional code.
3333         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
3334         <kernel-features.h>.
3335         [__ASSUME_32BITUIDS]: Make code unconditional.
3336         [!__ASSUME_32BITUIDS]: Remove conditional code.
3337         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
3338         <kernel-features.h>.
3339         [__NR_setresgid] (__setresgid): Do not declare.
3340         [__ASSUME_32BITUIDS]: Make code unconditional.
3341         [!__ASSUME_32BITUIDS]: Remove conditional code.
3342         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
3343         <kernel-features.h>.
3344         [__NR_setresuid] (__setresuid): Do not declare.
3345         [__ASSUME_32BITUIDS]: Make code unconditional.
3346         [!__ASSUME_32BITUIDS]: Remove conditional code.
3347         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
3348         <kernel-features.h>.
3349         [__ASSUME_32BITUIDS]: Make code unconditional.
3350         [!__ASSUME_32BITUIDS]: Remove conditional code.
3351         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
3352         <kernel-features.h>.
3353         [__ASSUME_32BITUIDS]: Make code unconditional.
3354         [!__ASSUME_32BITUIDS]: Remove conditional code.
3355         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
3356         <kernel-features.h>.
3357         [__ASSUME_32BITUIDS]: Make code unconditional.
3358         [!__ASSUME_32BITUIDS]: Remove conditional code.
3359         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
3360         <kernel-features.h>.
3361         [__ASSUME_32BITUIDS]: Make code unconditional.
3362         [!__ASSUME_32BITUIDS]: Remove conditional code.
3363         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
3364         <kernel-features.h>.
3365         [__ASSUME_32BITUIDS]: Make code unconditional.
3366         [!__ASSUME_32BITUIDS]: Remove conditional code.
3367         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
3368         <kernel-features.h>.
3369         [__ASSUME_32BITUIDS]: Make code unconditional.
3370         [!__ASSUME_32BITUIDS]: Remove conditional code.
3371         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
3372         <kernel-features.h>.
3373         [__ASSUME_32BITUIDS]: Make code unconditional.
3374         [!__ASSUME_32BITUIDS]: Remove conditional code.
3375         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
3376         <kernel-features.h>.
3377         [__ASSUME_32BITUIDS]: Make code unconditional.
3378         [!__ASSUME_32BITUIDS]: Remove conditional code.
3379         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
3380         <kernel-features.h>.
3381         [__ASSUME_32BITUIDS]: Make code unconditional.
3382         [!__ASSUME_32BITUIDS]: Remove conditional code.
3383         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
3384         <kernel-features.h>.
3385         [__ASSUME_32BITUIDS]: Make code unconditional.
3386         [!__ASSUME_32BITUIDS]: Remove conditional code.
3387         * sysdeps/unix/sysv/linux/kernel-features.h
3388         (__ASSUME_SETRESUID_SYSCALL): Remove.
3389         (__ASSUME_SETRESGID_SYSCALL): Likewise.
3390         (__ASSUME_32BITUIDS): Likewise.
3391         (__ASSUME_LDT_WORKS): Likewise.
3392         (__ASSUME_O_DIRECTORY): Likewise.
3393         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
3394         architecture but not kernel version.
3395         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
3396         (__ASSUME_MMAP2_SYSCALL): Likewise.
3397         (__ASSUME_STAT64_SYSCALL): Likewise.
3398         (__ASSUME_IPC64): Likewise.
3399         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
3400         <kernel-features.h>.
3401         [__ASSUME_32BITUIDS]: Make code unconditional.
3402         [!__ASSUME_32BITUIDS]: Remove conditional code.
3403         * sysdeps/unix/sysv/linux/opendir.c: Do not include
3404         <kernel-features.h>.
3405         [__ASSUME_O_DIRECTORY]: Make code unconditional.
3406         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
3407         132096]: Remove conditional code.
3408         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
3409         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
3410         <kernel-features.h>.
3411         [__ASSUME_32BITUIDS]: Make code unconditional.
3412         [!__ASSUME_32BITUIDS]: Remove conditional code.
3413         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
3414         <kernel-features.h>.
3415         [__ASSUME_32BITUIDS]: Make code unconditional.
3416         [!__ASSUME_32BITUIDS]: Remove conditional code.
3417         * sysdeps/unix/sysv/linux/setegid.c: Do not include
3418         <kernel-features.h>.
3419         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
3420         unconditional.
3421         (__setresgid): Do not declare.
3422         [__ASSUME_32BITUIDS]: Make code unconditional.
3423         [!__ASSUME_32BITUIDS]: Remove conditional code.
3424         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
3425         <kernel-features.h>.
3426         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
3427         unconditional.
3428         (__setresuid): Do not declare.
3429         [__ASSUME_32BITUIDS]: Make code unconditional.
3430         [!__ASSUME_32BITUIDS]: Remove conditional code.
3431         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
3432         <kernel-features.h>.
3433         [__ASSUME_32BITUIDS]: Make code unconditional.
3434         [!__ASSUME_32BITUIDS]: Remove conditional code.
3435         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
3436         <kernel-features.h>.
3437         [__ASSUME_32BITUIDS]: Make code unconditional.
3438         [!__ASSUME_32BITUIDS]: Remove conditional code.
3439
3440 2012-05-25  Richard Henderson  <rth@twiddle.net>
3441
3442         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
3443         dl_hwcap to ifunc resolver.
3444         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
3445         elf_ifunc_invoke.
3446         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
3447         dl_hwcap to ifunc resolver.
3448         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
3449
3450 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
3451
3452         [BZ #14153]
3453         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
3454         for |x| <= 2**-26, not 2**-57.
3455         * math/libm-test.inc (acos_test): Do not allow spurious underflow
3456         exception.
3457
3458 2012-05-24  Jeff Law  <law@redhat.com>
3459
3460         * stdio-common/Makefile (tests): Add bug25.
3461         * stdio-common/bug25.c: New test.
3462
3463 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
3464
3465         [BZ #13576]
3466         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
3467         multiple of MALLOC_ALIGNMENT in size.
3468         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
3469
3470 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
3471
3472         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
3473         Require >= 256.
3474         (FILENAME_MAX): Use macro-int-constant.
3475         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
3476         (_IOFBF): Use macro-int-constant.
3477         (_IOLBF): Likewise.
3478         (_IONBF): Likewise.
3479         (SEEK_CUR): Likewise.
3480         (SEEK_END): Likewise.
3481         (SEEK_SET): Likewise.
3482         (TMP_MAX): Likewise.
3483         (EOF): Use macro-int-constant.  Require < 0.
3484         (NULL): Use macro-constant.  Require == 0.
3485         (stdin): Require type to be FILE *.
3486         (stdout): Likewise.
3487         (stderr): Likewise.
3488         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
3489         macro-int-constant.
3490         (EXIT_SUCCESS): Likewise.
3491         (NULL): Use macro-constant.  Require == 0.
3492         (RAND_MAX): Use macro-int-constant.
3493         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
3494         [C99-based standards] (strtof): Require function.
3495         [C99-based standards] (strtold): Likewise.
3496         [C99-based standards] (strtoll): Likewise.
3497         [C99-based standards] (strtoull): Likewise.
3498         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
3499         [ISO || ISO99 || ISO11] (limits.h): Likewise.
3500         [ISO || ISO99 || ISO11] (math.h): Likewise.
3501         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
3502         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
3503         [ISO || ISO99 || ISO11] (*_t): Do not allow.
3504
3505 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
3506
3507         [BZ #14132]
3508         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
3509         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
3510         * intl/dgettext.c (DCGETTEXT): Likewise.
3511         * intl/gettext.c (DCGETTEXT): Likewise.
3512         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
3513         * posix/regex_internal.h (gettext): Likewise.
3514         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
3515         Remove declaration.
3516         * include/argz.h (__argz_count_internal)
3517         (__argz_stringify_internal): Remove declaration.
3518         (__argz_count, __argz_stringify): Declare hidden proto.
3519         * intl/dcgettext.c: Remove use of INTDEF.
3520         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
3521         * string/argz-stringify.c: Likewise.
3522         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
3523         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
3524         Declare hidden proto.
3525         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
3526         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
3527         Declare hidden proto.
3528         * include/stdio.h (__asprintf_internal): Don't declare.
3529         (__asprintf): Don't define as macro.  Declare hidden proto.
3530         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
3531         (__fsetlocking): Declare hidden proto.
3532         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
3533         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
3534         hidden proto.
3535         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
3536         (_IO_setlinebuf): Remove use of INTUSE.
3537         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
3538         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
3539         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
3540         Remove declaration.
3541         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
3542         (_IO_do_flush): Remove use of INTUSE.
3543         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
3544         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
3545         (_IO_adjust_column, _IO_least_wmarker)
3546         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
3547         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
3548         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
3549         (_IO_default_doallocate, _IO_wdefault_doallocate)
3550         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
3551         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
3552         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
3553         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
3554         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
3555         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
3556         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
3557         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
3558         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
3559         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
3560         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
3561         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
3562         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
3563         proto.
3564         (_IO_flush_all_internal, _IO_adjust_column_internal)
3565         (_IO_default_uflow_internal, _IO_default_finish_internal)
3566         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
3567         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
3568         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
3569         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
3570         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
3571         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
3572         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
3573         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
3574         (_IO_file_close_internal, _IO_file_close_it_internal)
3575         (_IO_file_underflow_internal, _IO_file_overflow_internal)
3576         (_IO_file_init_internal, _IO_file_attach_internal)
3577         (_IO_file_fopen_internal, _IO_file_read_internal)
3578         (_IO_file_sync_internal, _IO_file_seek_internal)
3579         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
3580         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
3581         (_IO_str_underflow_internal, _IO_str_overflow_internal)
3582         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
3583         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
3584         (_IO_list_all_internal, _IO_link_in_internal)
3585         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
3586         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
3587         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
3588         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
3589         (_IO_do_write_internal, _IO_padn_internal)
3590         (_IO_getline_info_internal, _IO_getline_internal)
3591         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
3592         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
3593         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
3594         (_IO_vfscanf_internal, _IO_vfprintf_internal)
3595         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
3596         (_IO_init_internal, _IO_un_link_internal): Don't declare.
3597         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
3598         with libc_hidden_ver, remove use of INTUSE.
3599         * libio/genops.c: Likewise.
3600         * libio/freopen.c: Likewise.
3601         * libio/freopen64.c: Likewise.
3602         * libio/iofclose.c: Likewise.
3603         * libio/iofdopen.c: Likewise.
3604         * libio/iofflush.c: Likewise.
3605         * libio/iofflush_u.c: Likewise.
3606         * libio/iofgets.c: Likewise.
3607         * libio/iofgets_u.c: Likewise.
3608         * libio/iofopen.c: Likewise.
3609         * libio/iofopncook.c: Likewise.
3610         * libio/iofread.c: Likewise.
3611         * libio/iofread_u.c: Likewise.
3612         * libio/ioftell.c: Likewise.
3613         * libio/iofwrite.c: Likewise.
3614         * libio/iogetline.c: Likewise.
3615         * libio/iogets.c: Likewise.
3616         * libio/iogetwline.c: Likewise.
3617         * libio/iopadn.c: Likewise.
3618         * libio/iopopen.c: Likewise.
3619         * libio/ioseekoff.c: Likewise.
3620         * libio/ioseekpos.c: Likewise.
3621         * libio/iosetbuffer.c: Likewise.
3622         * libio/iosetvbuf.c: Likewise.
3623         * libio/ioungetc.c: Likewise.
3624         * libio/ioungetwc.c: Likewise.
3625         * libio/iovdprintf.c: Likewise.
3626         * libio/iovsprintf.c: Likewise.
3627         * libio/iovsscanf.c: Likewise.
3628         * libio/memstream.c: Likewise.
3629         * libio/obprintf.c: Likewise.
3630         * libio/oldfileops.c: Likewise.
3631         * libio/oldiofclose.c: Likewise.
3632         * libio/oldiofdopen.c: Likewise.
3633         * libio/oldiofopen.c: Likewise.
3634         * libio/oldiopopen.c: Likewise.
3635         * libio/oldstdfiles.c: Likewise.
3636         * libio/putc.c: Likewise.
3637         * libio/setbuf.c: Likewise.
3638         * libio/setlinebuf.c: Likewise.
3639         * libio/stdfiles.c: Likewise.
3640         * libio/strops.c: Likewise.
3641         * libio/vasprintf.c: Likewise.
3642         * libio/vscanf.c: Likewise.
3643         * libio/vsnprintf.c: Likewise.
3644         * libio/vswprintf.c: Likewise.
3645         * libio/wfiledoalloc.c: Likewise.
3646         * libio/wfileops.c: Likewise.
3647         * libio/wgenops.c: Likewise.
3648         * libio/wmemstream.c: Likewise.
3649         * libio/wstrops.c: Likewise.
3650         * libio/__fpurge.c: Likewise.
3651         * libio/__fsetlocking.c: Likewise.
3652         * assert/assert.c: Likewise.
3653         * debug/fgets_chk.c: Likewise.
3654         * debug/fgets_u_chk.c: Likewise.
3655         * debug/fread_chk.c: Likewise.
3656         * debug/fread_u_chk.c: Likewise.
3657         * debug/gets_chk.c: Likewise.
3658         * debug/obprintf_chk.c: Likewise.
3659         * debug/vasprintf_chk.c: Likewise.
3660         * debug/vdprintf_chk.c: Likewise.
3661         * debug/vsnprintf_chk.c: Likewise.
3662         * debug/vsprintf_chk.c: Likewise.
3663         * malloc/mtrace.c: Likewise.
3664         * misc/error.c: Likewise.
3665         * misc/syslog.c: Likewise.
3666         * stdio-common/asprintf.c: Likewise.
3667         * stdio-common/fxprintf.c: Likewise.
3668         * stdio-common/getw.c: Likewise.
3669         * stdio-common/isoc99_fscanf.c: Likewise.
3670         * stdio-common/isoc99_scanf.c: Likewise.
3671         * stdio-common/isoc99_vfscanf.c: Likewise.
3672         * stdio-common/isoc99_vscanf.c: Likewise.
3673         * stdio-common/isoc99_vsscanf.c: Likewise.
3674         * stdio-common/printf-prs.c: Likewise.
3675         * stdio-common/printf_fp.c: Likewise.
3676         * stdio-common/printf_fphex.c: Likewise.
3677         * stdio-common/printf_size.c: Likewise.
3678         * stdio-common/putw.c: Likewise.
3679         * stdio-common/scanf.c: Likewise.
3680         * stdio-common/sprintf.c: Likewise.
3681         * stdio-common/tmpfile.c: Likewise.
3682         * stdio-common/vfprintf.c: Likewise.
3683         * stdio-common/vfscanf.c: Likewise.
3684         * stdlib/strfmon_l.c: Likewise.
3685         * sunrpc/openchild.c: Likewise.
3686         * sunrpc/xdr_stdio.c: Likewise.
3687         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
3688         * sysdeps/mach/hurd/tmpfile.c: Likewise.
3689
3690 2012-05-24  Roland McGrath  <roland@hack.frob.com>
3691
3692         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
3693
3694         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
3695         in the third column, to generate for the shared library an IFUNC
3696         that uses _dl_vdso_vsym.
3697         * Makerules (COMPILE.c, compile-stdin.c): New variables.
3698         * Makeconfig (object-suffixes-noshared): New variable.
3699
3700         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
3701         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
3702         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
3703         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
3704
3705         [BZ #14132]
3706         * include/sys/time.h (__gettimeofday): Remove macro.
3707         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
3708         * time/gettimeofday.c (__gettimeofday): Remove #undef.
3709         Remove INTDEF.
3710         (__gettimeofday): Add libc_hidden_def.
3711         (gettimeofday): Add libc_hidden_weak.
3712         * sysdeps/mach/gettimeofday.c: Likewise.
3713         * sysdeps/posix/gettimeofday.c: Likewise.
3714         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
3715         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
3716         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
3717         (__gettimeofday_internal): Remove strong_alias.
3718         (__gettimeofday): Add libc_hidden_def.
3719         (gettimeofday): Add libc_hidden_weak.
3720         * sysdeps/unix/syscalls.list (gettimeofday):
3721         Remove __gettimeofday_internal alias.
3722
3723 2012-05-24  Daniel Jacobowitz  <drow@false.org>
3724             H.J. Lu  <hongjiu.lu@intel.com>
3725
3726         [BZ #12495]
3727         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
3728         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
3729         (largebin_index_32_big): New.
3730         (largebin_index): Use it for 16-byte alignment.
3731         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
3732         correction with front_misalign.
3733
3734 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
3735
3736         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
3737         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
3738         Likewise.
3739         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
3740         Likewise.
3741         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
3742         Likewise.
3743         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
3744         Likewise.
3745         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
3746         Likewise.
3747         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
3748         Likewise.
3749         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
3750         Likewise.
3751         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
3752         Likewise.
3753         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
3754         Likewise.
3755         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
3756         Likewise.
3757         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
3758         Likewise.
3759         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
3760         Likewise.
3761
3762         * scripts/data/c++-types-x32-linux-gnu.data: New file.
3763         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
3764
3765 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
3766
3767         [BZ #10846]
3768         [BZ #14036]
3769         * math/libm-test.inc (exp_test): Add test from bug 14036.
3770         (pow_test): Add test from bug 10846.
3771
3772         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
3773         and other flags.
3774         (special_function): Do not include flags in test name.
3775         (parse_args): Likewise.
3776         * sysdeps/i386/fpu/libm-test-ulps: Update.
3777         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
3778         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
3779         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
3780         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3781
3782         * math/gen-libm-test.pl (%beautify): Add entries for underflow
3783         exceptions.
3784         * math/libm-test.inc ("Philosophy"): Update comment about
3785         exception testing.
3786         (UNDERFLOW_EXCEPTION): New macro.
3787         (UNDERFLOW_EXCEPTION_OK): Likewise.
3788         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
3789         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
3790         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
3791         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
3792         (INVALID_EXCEPTION_OK): Update value.
3793         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
3794         (OVERFLOW_EXCEPTION_OK): Likewise.
3795         (IGNORE_ZERO_INF_SIGN): Likewise.
3796         (test_exceptions): Handle underflow exceptions.
3797         (acos_test): Update for underflow exception expectations.
3798         (cexp_test): Likewise.
3799         (clog_test): Likewise.
3800         (clog10_test): Likewise.
3801         (csqrt_test): Likewise.
3802         (ctan_test): Likewise.
3803         (ctanh_test): Likewise.
3804         (exp_test): Likewise.
3805         (exp10_test): Likewise.
3806         (exp2_test): Likewise.
3807         (expm1_test): Likewise.
3808         (fma_test): Likewise.
3809         (j0_test): Likewise.
3810         (jn_test): Likewise.
3811         (nexttoward_test): Likewise.
3812         (pow_test): Likewise.
3813         (scalbn_test): Likewise.
3814         (scalbln_test): Likewise.
3815         (tan_test): Likewise.
3816         (y1_test): Likewise.
3817         * sysdeps/i386/fpu/libm-test-ulps: Update.
3818         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3819
3820 2012-05-23  David S. Miller  <davem@davemloft.net>
3821
3822         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
3823         (__libc_sigaction): Remove unused local variables.
3824
3825 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
3826
3827         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
3828
3829 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
3830
3831         mktime: avoid signed integer overflow
3832         * time/mktime.c (__mktime_internal): Do not mishandle the case
3833         where diff == INT_MIN.
3834
3835         mktime: simplify computation of average
3836         * time/mktime.c (ranged_convert): Use new time_t_avg function
3837         instead of rolling our own (probably-slower) code.
3838
3839         mktime: do not assume signed right shift propagates sign bit
3840         * time/mktime.c (isdst_differ): New static function.
3841         (__mktime_internal): No need to normalize tm_isdst now.
3842         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
3843         tm_isdst values.
3844
3845         mktime: merge another wrapv change from gnulib
3846         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
3847         from some compilers.
3848
3849         mktime: remove incorrect attempt at unusual arithmetics
3850         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
3851         The code didn't really work on such machines anyway.
3852         (TYPE_MINIMUM): Assume two's complement.
3853         (twos_complement_arithmetic): Verify that long_int and time_t
3854         are two's complement (or unsigned, in the latter case).
3855
3856         mktime: check signed shifts on long_int and time_t, too
3857         * time/mktime.c (SHR): Check that shifts work as desired
3858         on the types long_int and time_t too, as SHR is used on
3859         such types.
3860
3861         mktime: do not assume 'long' is wide enough
3862         * time/mktime.c (verify): Move decl up.
3863         (long_int): New type.
3864         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
3865         to remove assumption in the code that 'long' is wide enough to
3866         store year values.  This assumption is not true on x32 and on
3867         some non-glibc platforms.
3868
3869         mktime: merge wrapv change from gnulib
3870         * time/mktime.c (WRAPV): New macro.
3871         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
3872         (guess_time_tm, __mktime_internal): Do not assume that signed
3873         integer overflow wraps around; modern compilers generate code
3874         where this assumption is no longer valid.
3875
3876 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
3877
3878         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
3879         Replace "jmp L(pseudo_end)" with "ret".
3880         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
3881         Likewise.
3882
3883 2012-05-23  Andreas Jaeger  <aj@suse.de>
3884
3885         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
3886         * sysdeps/unix/sysv/linux/poll.c: Remove file.
3887
3888 2012-05-23  Andreas Jaeger  <aj@suse.de>
3889             Maximilian Attems  <max@stro.at>
3890
3891         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
3892         New macros.
3893
3894 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
3895
3896         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
3897         code so that pseudo_end is just ret and the stack pointer is
3898         correct also for static library in error case.
3899
3900 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
3901
3902         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
3903         move to syscalls.list.
3904         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
3905         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
3906         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
3907         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
3908
3909         * manual/install.texi (Running make install): Do not mention Linux
3910         kernel version for which pt_chown is not needed.
3911         (Linux): Do not mention problems with nscd with 2.0 kernels.
3912         * INSTALL: Regenerated.
3913
3914 2012-05-23  Andreas Jaeger  <aj@suse.de>
3915
3916         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
3917         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
3918         macro.
3919         * sysdeps/unix/sysv/linux/s390/bits/mman.h
3920         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
3921         * sysdeps/unix/sysv/linux/sh/bits/mman.h
3922         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
3923         * sysdeps/unix/sysv/linux/i386/bits/mman.h
3924         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
3925         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
3926         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
3927         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
3928         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
3929         * sysdeps/unix/sysv/linux/bits/in.h
3930         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
3931
3932 2012-05-22  Roland McGrath  <roland@hack.frob.com>
3933
3934         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
3935         (PREPARE_VERSION): Just use assert instead, it will be elided
3936         under [NDEBUG] anyway.
3937
3938 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
3939
3940         * sysdeps/unix/sysv/linux/Makefile: Include
3941         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
3942         (sysdep_routines): Remove sysctl.
3943         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
3944         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
3945         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
3946         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
3947         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
3948
3949 2012-05-22  Andreas Jaeger  <aj@suse.de>
3950
3951         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
3952         that pseudo_end is just ret and the stack pointer is correct also
3953         for static library in error case.
3954
3955 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
3956
3957         [BZ #14122]
3958         * nss/nsswitch.c (defconfig_entries): New variable.
3959         (__nss_database_lookup): Don't leak defconfig entries.
3960         (nss_parse_service_list): Don't leak on error paths.
3961         (free_database_entries): New function.
3962         (free_defconfig): New function.
3963         (free_mem): Move common code to free_database_entries.
3964
3965 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
3966
3967         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
3968         Add arch_prctl.
3969         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
3970
3971         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
3972         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
3973         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
3974         New macro.
3975         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
3976         (INTERNAL_SYSCALL_TYPES): Likewise.
3977         (LOAD_ARGS_TYPES_[1-6]): Likewise.
3978         (LOAD_REGS_TYPES_[1-6]): Likewise.
3979         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
3980         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
3981
3982 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3983
3984         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
3985         copysignl for GLIBC_2_0.
3986         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
3987         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
3988         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
3989         logbl for GLIBC_2_0.
3990         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
3991         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
3992
3993 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
3994
3995         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
3996         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
3997
3998         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
3999         Use "neg %eax".
4000
4001         * time/mktime.c: Update copyright years.
4002
4003 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
4004
4005         mktime: merge comment-quoting-style change from gnulib
4006         * time/mktime.c: Quote 'like this' in comments.
4007         The GNU coding standards suggest that we no longer quote `like this',
4008         as "`" and "'" are typically rendered asymmetrically nowadays.
4009         The typical gnulib style is to quote 'like this' when quoting
4010         code, and "like this" when quoting English.
4011
4012         * time/mktime.c (compile-command): Add "-I.".
4013
4014         mktime: merge mktime-internal.h change from gnulib
4015         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
4016
4017         mktime: merge time_r change from gnulib
4018         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
4019
4020         mktime: merge DEBUG change from gnulib
4021         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
4022         case system <time.h> has a #define.
4023
4024         mktime: merge <sys/types.h> change from gnulib
4025         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
4026         since <time.t> is now guaranteed to define time_t.
4027
4028         mktime: merge HAVE_CONFIG_H change from gnulib
4029         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
4030
4031 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4032
4033         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
4034         Use "neg %eax".
4035
4036         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
4037         __rlim_t cast.
4038         (struct rusage): Use anonymous union to pad each field to
4039         __syscall_slong_t.
4040
4041 2012-05-21  David S. Miller  <davem@davemloft.net>
4042
4043         * Makefules (o-iterator): Remove .s cases.
4044         (compile-command.s): Delete.
4045         (COMPILE.s): Delete.
4046         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
4047
4048 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
4049
4050         * configure.in (libc_cv_predef_stack_protector): Only consider
4051         "foobar" and "__stack_chk_fail" lines in libc_undefs.
4052         * configure: Regenerated.
4053
4054 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4055
4056         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
4057         New macro.  Use R*LP on int and pointer.
4058         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
4059         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
4060         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
4061         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
4062
4063         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
4064         [__WORDSIZE_TIME64_COMPAT32] instead of
4065         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
4066         (struct utmp): Likewise.
4067         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
4068         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
4069         Renamed to ...
4070         (__WORDSIZE_TIME64_COMPAT32): This.
4071         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
4072         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
4073         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
4074         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
4075         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
4076         (__WORDSIZE_TIME64_COMPAT32): New macro.
4077
4078 2012-05-21  Andreas Jaeger  <aj@suse.de>
4079
4080         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
4081         only if [SHARED]. Add prototype for __wcschr_ia32.
4082
4083 2012-05-21  Roland McGrath  <roland@hack.frob.com>
4084
4085         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
4086         of %rbp unmolested in the jmp_buf while mangling the low bits.
4087         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
4088         unmolested high bits of %rbp while demangling the low bits.
4089         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
4090
4091 2012-05-21  Andreas Jaeger  <aj@suse.de>
4092
4093         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
4094         * sunrpc/svc_simple.c: Use it for registerrpc.
4095         * sunrpc/xcrypt.c: Use it for passwd2des.
4096
4097         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
4098
4099 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4100
4101         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
4102         Don't define if [__SYSCALL_WORDSIZE != 32].
4103         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
4104         New macro.
4105
4106 2012-05-21  Bruno Haible  <bruno@clisp.org>
4107             Andreas Jaeger  <aj@suse.de>
4108
4109         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
4110         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
4111         inptr and inend for must_buffer_ch.
4112         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
4113         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
4114         * stdio-common/Makefile (tests): Remove bug15.
4115         (bug15-ENV): Remove macro.
4116         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
4117         anymore.
4118
4119 2012-05-19  Andreas Jaeger  <aj@suse.de>
4120             Roland McGrath  <roland@hack.frob.com>
4121
4122         * manual/contrib.texi: Completely rewritten. It contains now an
4123         alphabetical list of contributors and their contributions.
4124
4125 2012-05-21  Richard Henderson  <rth@twiddle.net>
4126
4127         * misc/getauxval.c (__getauxval): Use unsigned long int.
4128         * misc/sys/auxv.h: Include <sys/cdefs.h>.
4129         (getauxval): Use unsigned long int.
4130
4131 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4132
4133         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
4134
4135 2012-05-21  Roland McGrath  <roland@hack.frob.com>
4136
4137         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
4138         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
4139         __alignof__ (long double).
4140
4141 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4142
4143         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4144
4145 2012-05-20  Richard Henderson  <rth@twiddle.net>
4146
4147         * misc/getauxval.c: New file.
4148         * misc/sys/auxv.h: New file.
4149         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
4150         (routines): Add getauxval.
4151         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
4152         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
4153         * elf/dl-sysdep.c (_dl_auxv): Remove.
4154         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
4155         * elf/dl-support.c (_dl_auxv): New variable.
4156         (_dl_aux_init): Initialize it.
4157         * manual/startup.texi (Auxiliary Vector): New node.
4158         * sysdeps/generic/bits/hwcap.h: New file.
4159         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
4160         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
4161         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
4162         * sysdeps/sparc/sysdep.h: ... here.  Include it.
4163         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
4164         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
4165         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
4166         Update.
4167         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
4168         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
4169         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
4170         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
4171         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
4172         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
4173         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
4174         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
4175
4176 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4177
4178         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4179
4180 2012-05-19  David S. Miller  <davem@davemloft.net>
4181
4182         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4183
4184 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
4185
4186         [BZ #14123]
4187         * math/s_ccosh.c: Include <float.h>
4188         (__ccosh): Avoid internal overflow calculating sinh and cosh
4189         values before multiplying by sin and cos values.
4190         * math/s_ccoshf.c: Likewise.
4191         * math/s_ccoshl.c: Likewise.
4192         * math/s_csin.c: Likewise.
4193         * math/s_csinf.c: Likewise.
4194         * math/s_csinl.c: Likewise.
4195         * math/s_csinh.c: Likewise.
4196         * math/s_csinhf.c: Likewise.
4197         * math/s_csinhl.c: Likewise.
4198         * math/libm-test.inc (ccos_test): Add more tests.
4199         (ccosh_test): Likewise.
4200         (csin_test): Likewise.
4201         (csinh_test): Likewise.
4202         * sysdeps/i386/fpu/libm-test-ulps: Update.
4203         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4204
4205 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
4206
4207         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
4208         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
4209
4210         * sysdeps/x86_64/x32/_itoa.h: Add comment.
4211
4212 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
4213
4214         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
4215         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
4216         * sysdeps/powerpc/soft-fp/Versions: Likewise.
4217         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
4218         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
4219         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
4220         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
4221         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
4222         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
4223         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
4224         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
4225         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
4226         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
4227         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
4228         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
4229         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
4230         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
4231         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
4232         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
4233         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
4234         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
4235         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
4236         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
4237         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
4238         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
4239         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
4240         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
4241         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
4242         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
4243         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
4244         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
4245
4246 2012-05-18  Andreas Jaeger  <aj@suse.de>
4247
4248         * csu/.gitignore: Delete.
4249
4250 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
4251
4252         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
4253         (timex): Use __syscall_slong_t.
4254
4255 2012-05-18  Andreas Jaeger  <aj@suse.de>
4256             Carlos O'Donell  <carlos_odonell@mentor.com>
4257
4258         * manual/install.texi (Configuring and compiling): Update
4259         description about files modified in the source directory.
4260         * INSTALL: Regenerated.
4261
4262 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
4263
4264         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
4265         value.  Use "or" to set return value to -1.
4266         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
4267         negate return value.
4268
4269 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4270
4271         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
4272         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
4273         failure if the compiler has Graphite support disabled.
4274         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
4275         Likewise.
4276         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
4277         CFLAGS-memmove.c): Likewise.
4278         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
4279         Likewise.
4280
4281 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
4282
4283         * sysdeps/x86_64/x32/_itoa.h: New file.
4284
4285         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
4286         getdents system call only if kernel and user dirents have the
4287         same d_ino and d_off.
4288
4289         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
4290         LLONG_MAX != LONG_MAX.
4291         (_itoa_word): Use _ITOA_WORD_TYPE on value.
4292         (_fitoa_word): Likewise.
4293
4294         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
4295         years.
4296         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
4297         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
4298         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
4299
4300         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
4301         include <bits/wordsize.h>.  Check __x86_64__ instead of
4302         __WORDSIZE.
4303         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
4304         if __x86_64__ is defined.  Use anonymous union on fpstate.
4305
4306         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
4307         anonymous union.
4308
4309 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
4310
4311         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
4312         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
4313         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
4314         Refer to _rtld_local_ro instead of _rtld_global_ro.
4315         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
4316         Likewise.
4317         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
4318         Likewise.
4319         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
4320         Likewise.
4321         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
4322         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
4323         of _rtld_global, and rtld_progname instead of _dl_argv[0].
4324
4325         * sysdeps/powerpc/powerpc32/dl-machine.c
4326         (__elf_machine_runtime_setup) [PROF]: Don't reference
4327         _dl_prof_resolve.
4328
4329 2012-05-18  Andreas Jaeger  <aj@suse.de>
4330
4331         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
4332         function only available for GCCs before 3.4 since GCC 3.4
4333         introduced a builtin.
4334         (lrint): Likewise.
4335         (llrintf): Likewise.
4336         (llrint): Likewise.
4337         (fmaxf): Likewise.
4338         (fmax): Likewise.
4339         (fminf): Likewise.
4340         (fmin): Likewise.
4341         (rint): Likewise.
4342         (rintf): Likewise.
4343         (nearbyint): Likewise.
4344         (nearbyintf): Likewise.
4345         (ceil): Likewise.
4346         (ceilf): Likewise.
4347         (floor): Likewise.
4348         (floorf): Likewise.
4349
4350 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
4351
4352         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
4353         on both fields and cast pointer to __syscall_ulong_t.
4354
4355         * bits/types.h (__fsword_t): New type.
4356         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
4357         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
4358         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
4359         (__FSWORD_T_TYPE): Likewise.
4360         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
4361         (__FSWORD_T_TYPE): Likewise.
4362         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
4363         (__FSWORD_T_TYPE): Likewise.
4364         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
4365         (__FSWORD_T_TYPE): Likewise.
4366         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
4367         __SWORD_TYPE with __fsword_t.
4368         (statfs64): Likewise.
4369
4370 2012-05-17  David S. Miller  <davem@davemloft.net>
4371
4372         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
4373
4374 2012-05-17  Andreas Jaeger  <aj@suse.de>
4375
4376         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
4377         warning.
4378
4379 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
4380
4381         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
4382
4383 2012-05-17  Andreas Jaeger  <aj@suse.de>
4384
4385         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
4386         when it is used.
4387
4388 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
4389
4390         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
4391
4392 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
4393
4394         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
4395         * sysdeps/x86_64/tst-mallocalign1.c: New file.
4396
4397 2012-05-17  Andreas Jaeger  <aj@suse.de>
4398             Carlos O'Donell  <carlos_odonell@mentor.com>
4399
4400         [BZ #14059]
4401         * sysdeps/x86_64/multiarch/init-arch.h
4402         (bit_YMM_Usable): Rename to...
4403         (bit_AVX_Usable): ... this.
4404         (bit_FMA4_Usable): New macro.
4405         (bit_XMM_state): New macro.
4406         (bit_YMM_state): New macro.
4407         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
4408         [__ASSEMBLER__] (index_AVX_Usable): ... this.
4409         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
4410         (CPUID_OSXSAVE): New macro.
4411         (CPUID_AVX): New macro.
4412         (CPUID_FMA4): New macro.
4413         (index_YMM_Usable): Rename to...
4414         (index_AVX_Usable): ... this.
4415         (HAS_AVX): Use HAS_ARCH_FEATURE.
4416         (HAS_FMA4): Likewise.
4417         (HAS_YMM_USABLE): Remove.
4418         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
4419         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
4420         are present.
4421         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
4422         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
4423         * sysdeps/x86_64/multiarch/Makefile: Likewise.
4424         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
4425         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
4426
4427 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
4428
4429         * math/libm-test.c: Support platforms without multiple rounding modes.
4430         * math/bug-nextafter.c: Support platforms without FP exceptions.
4431         * math/bug-nexttoward.c: Likewise.
4432         * math/test-fenv.c: Likewise.
4433         * math/test-misc.c: Likewise.
4434         * stdlib/bug-getcontext.c: Likewise.
4435
4436 2012-05-17  Andreas Jaeger  <aj@suse.de>
4437
4438         * manual/examples/search.c (critter_cmp): Change signature to
4439         avoid warnings.
4440         * manual/string.texi (Collation Functions): Likewise.
4441
4442 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
4443
4444         * bits/types.h: Fold copyright years.
4445         * bits/typesizes.h: Likewise.
4446         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
4447         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
4448         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
4449         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
4450         * time/time.h: Likewise.
4451
4452 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
4453
4454         [BZ #208]
4455         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
4456         in instead of returning them.  Return void.
4457         (__libc_mallinfo): Accumulate over all arenas.
4458         (__malloc_stats): Adjust for change in int_mallinfo interface.
4459
4460 2012-05-16  Roland McGrath  <roland@hack.frob.com>
4461
4462         [BZ #10375]
4463         * configure.in (NM): Add AC_CHECK_TOOL for it.
4464         (libc_extra_cflags): New substituted variable.
4465         Check for -fstack-protector being used implicitly.
4466         * configure: Regenerated.
4467         * config.make.in (config-extra-cflags): New variable,
4468         gets @libc_extra_cflags@.
4469         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
4470
4471         [BZ #10375]
4472         * configure.in: Check for _FORTIFY_SOURCE being predefined.
4473         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
4474         * configure: Regenerated.
4475         * config.make.in (CPPUNDEFS): New substituted variable.
4476         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
4477         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
4478         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
4479
4480 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
4481
4482         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
4483         (mq_attr): Use __syscall_slong_t.
4484
4485 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
4486
4487         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
4488         Check __x86_64__ instead of __WORDSIZE.
4489         (_STAT_VER_LINUX): Likewise.
4490         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
4491         __syscall_ulong_t and __syscall_slong_t.
4492         (stat64): Likewise.
4493
4494 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
4495
4496         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
4497
4498 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
4499
4500         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
4501
4502 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
4503
4504         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
4505         __syscall_ulong_t.
4506
4507         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
4508         include <bits/wordsize.h>.  Check __x86_64__ instead of
4509         __WORDSIZE.
4510         (greg_t): Use "__extension__ long long int" if __x86_64__ is
4511         defined.
4512         (mcontext_t): Replace "unsigned long" with "unsigned long long".
4513
4514         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
4515         include <bits/wordsize.h>.  Check __x86_64__ instead of
4516         __WORDSIZE.
4517         (user_regs_struct): Use "__extension__ unsigned long long"
4518         instead of "unsigned long" if __x86_64__ is defined.
4519         (user): Likewise.  Pad after pointer field if __ILP32__ is
4520         defined.
4521
4522 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
4523
4524         * configure.in (makeinfo): Require version 4.5 or later.  Allow
4525         versions 5 to 9.
4526         * configure: Regenerated.
4527         * manual/install.texi (texinfo): Increase version requirement to
4528         4.5 or later.
4529         * INSTALL: Regenerated.
4530
4531         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
4532
4533 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
4534
4535         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
4536
4537         * sysdeps/x86_64/x32/ffs.c: New file.
4538
4539         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
4540         __syscall_ulong_t.
4541         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
4542         defined.  Use __syscall_ulong_t.
4543         (shminfo): Use __syscall_ulong_t.
4544         (shm_info): Likewise.
4545
4546         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
4547         __syscall_ulong_t.
4548
4549         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
4550         <bits/wordsize.h>.
4551         (msgqnum_t): Use __syscall_ulong_t.
4552         (msglen_t): Likewise.
4553         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
4554         __syscall_ulong_t.
4555
4556         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
4557         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
4558
4559         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
4560
4561         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
4562         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
4563
4564         * sysvipc/sys/msg.h (msgbuf): Replace long int with
4565         __syscall_slong_t.
4566
4567         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
4568         include <bits/wordsize.h>.  Check __x86_64__ instead of
4569         __WORDSIZE.
4570
4571         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
4572         "unsigned long long int" if __x86_64__ is defined.
4573         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
4574
4575         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
4576         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
4577         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
4578
4579         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
4580         <stdint.h>.
4581         (GET_PC): Cast to uintptr_t first.
4582         (GET_FRAME): Likewise.
4583         (GET_STACK): Likewise.
4584
4585         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
4586         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
4587         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
4588         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
4589         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
4590         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
4591         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
4592         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
4593         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
4594         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
4595         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
4596         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
4597         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
4598         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
4599         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
4600         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
4601         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
4602         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
4603         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
4604         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
4605         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
4606         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
4607         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
4608         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
4609         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
4610         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
4611         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
4612         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
4613         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
4614
4615 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
4616
4617         * Makerules (+depfiles): Also collect depfiles from .oS in
4618         $(extra-objs).
4619         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
4620         .oS, $(libnldbl-routines)).
4621
4622         * Makerules (native-compile-mkdep-flags): Define.
4623         * sunrpc/Makefile (extra-objs): Add $(addprefix
4624         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
4625         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
4626         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
4627         calling $(make-target-directory).
4628
4629 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4630
4631         * bits/types.h (__snseconds_t): Removed.
4632         * time/time.h (struct timespec): Replace __snseconds_t with
4633         __syscall_slong_t.
4634         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
4635         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
4636         Likewise.
4637         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
4638         (__SNSECONDS_T_TYPE): Likewise.
4639         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
4640         (__SNSECONDS_T_TYPE): Likewise.
4641         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
4642         (__SNSECONDS_T_TYPE): Likewise.
4643
4644 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4645
4646         * sysdeps/mach/hurd/bits/typesizes.h
4647         (__SYSCALL_SLONG_TYPE): New macro.
4648         (__SYSCALL_ULONG_TYPE): Likewise.
4649
4650 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4651
4652         * bits/types.h (__syscall_slong_t): New type.
4653         (__syscall_ulong_t): Likewise.
4654
4655         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
4656         (__SYSCALL_ULONG_TYPE): Likewise.
4657         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
4658         (__SYSCALL_SLONG_TYPE): Likewise.
4659         (__SYSCALL_ULONG_TYPE): Likewise.
4660         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
4661         (__SYSCALL_SLONG_TYPE): Likewise.
4662         (__SYSCALL_ULONG_TYPE): Likewise.
4663         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
4664         (__SYSCALL_SLONG_TYPE): Likewise.
4665         (__SYSCALL_ULONG_TYPE): Likewise.
4666
4667 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4668
4669         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
4670         Add sigaltstack-offsets.sym.
4671         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
4672         <sigaltstack-offsets.h>.
4673         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
4674         longjmp_msg pointer.
4675         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
4676         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
4677         signal stack.
4678         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
4679
4680 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
4681
4682         * elf/stackguard-macros.h: Remove file.
4683         * sysdeps/generic/stackguard-macros.h: New file.
4684         * sysdeps/i386/stackguard-macros.h: Likewise.
4685         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
4686         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
4687         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
4688         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
4689         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
4690         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
4691         * sysdeps/x86_64/stackguard-macros.h: Likewise.
4692         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
4693         <elf/stackguard-macros.h>.
4694
4695         [BZ #14109]
4696         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
4697         __aligned__ in attribute.
4698         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
4699         (gregset_t): Likewise.
4700
4701 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4702
4703         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
4704         * sysdeps/x86_64/64/Implies-after: Here.  New file.
4705         * sysdeps/x86_64/x32/Implies-after: New file.
4706
4707 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4708
4709         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
4710         and access return value for _dl_profile_fixup.  Use R10_LP to
4711         load frame size.
4712
4713 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4714
4715         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
4716
4717 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4718
4719         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
4720         * sysdeps/x86_64/x32/sysdep.h: New file.
4721
4722 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4723
4724         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
4725         * sysdeps/x86_64/setjmp.S: Likewise.
4726
4727 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4728
4729         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
4730         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
4731         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
4732         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
4733         remove unused global constant.
4734
4735 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
4736
4737         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
4738         include of <not-cancel.h>.
4739
4740 2012-05-15  Roland McGrath  <roland@hack.frob.com>
4741
4742         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
4743
4744 2012-05-15  Jeff Law  <law@redhat.com>
4745             Andreas Jaeger  <aj@suse.de>
4746
4747         [BZ #13594]
4748         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
4749         out from...
4750         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
4751         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
4752         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
4753         code changing __hst_map_handle.map.
4754
4755 2012-05-15  Roland McGrath  <roland@hack.frob.com>
4756
4757         * configure.in (sysnames): Look for Implies-before and Implies-after
4758         files.
4759         * configure: Regenerated.
4760
4761 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4762
4763         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
4764         8-byte data alignment with LP_SIZE alignment.
4765
4766 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4767
4768         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
4769         into R10_LP.
4770
4771 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4772
4773         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
4774
4775 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4776
4777         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
4778         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
4779         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
4780         Likewise.
4781         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
4782
4783 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4784
4785         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
4786         (stackinfo_sub_sp): Likewise.
4787
4788 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4789
4790         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
4791         RAX_LP.
4792
4793 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4794
4795         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
4796         into R*_LP.
4797
4798 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4799
4800         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
4801         sizes into R*_LP.
4802
4803 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4804
4805         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
4806
4807 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4808
4809         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
4810         into R11_LP and load __x86_64_shared_cache_size_half into
4811         R8_LP.
4812
4813 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4814
4815         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
4816         R8_LP.
4817
4818 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4819
4820         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
4821         logb for POWER7.
4822         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
4823         logbf for POWER7.
4824         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
4825         logbl for POWER7.
4826         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
4827         powerpc32/power7/fpu/s_logb.c via #include.
4828         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
4829         powerpc32/power7/fpu/s_logbf.c via #include.
4830         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
4831         powerpc32/power7/fpu/s_logbl.c via #include.
4832
4833 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
4834
4835         * README.libm: Remove file.
4836
4837 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
4838
4839         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
4840         count for x32.  Use R*_LP and omit operand-size suffix.
4841
4842 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
4843
4844         * shlib-versions: Move x86_64-.*-linux.* entries to ...
4845         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
4846         * sysdeps/x86_64/x32/shlib-versions: New file.
4847
4848 2012-05-14  Roland McGrath  <roland@hack.frob.com>
4849
4850         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
4851         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
4852         Use _dl_fatal_printf instead.
4853
4854 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
4855
4856         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
4857         set if not set by the user.  Do not allow for being unset.
4858         * sysdeps/unix/sysv/linux/configure: Regenerated.
4859
4860 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
4861
4862         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
4863         the `q' suffix from lea and replace .quad with ASM_ADDR.
4864
4865 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
4866
4867         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
4868         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
4869         instead of $17.
4870         (PTR_DEMANGLE): Likewise.
4871
4872 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
4873
4874         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
4875         (LP_OP): Likewise.
4876         (ASM_ADDR): Likewise.
4877         (RAX_LP): Likewise.
4878         (RBP_LP): Likewise.
4879         (RBX_LP): Likewise.
4880         (RCX_LP): Likewise.
4881         (RDI_LP): Likewise.
4882         (RSI_LP): Likewise.
4883         (RSP_LP): Likewise.
4884         (R8_LP): Likewise.
4885         (R9_LP): Likewise.
4886         (R10_LP): Likewise.
4887         (R10_LP): Likewise.
4888         (R11_LP): Likewise.
4889         (R12_LP): Likewise.
4890         (R13_LP): Likewise.
4891         (R14_LP): Likewise.
4892         (R15_LP): Likewise.
4893
4894 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
4895
4896         * sysdeps/x86_64/x32/dl-machine.h: New file.
4897
4898 2012-05-14  Andreas Jaeger  <aj@suse.de>
4899
4900         * manual/Makefile (subdir): Remove export of subdir.
4901         (all): Remove target.
4902         (.PHONY): Remove all from list.
4903         (mkinstalldirs): Remove.
4904         (.PHONY): Remove installdirs from list.
4905         ($(inst_infodir)/libc.info): Use make-target-directory.
4906         (installdirs): Remove.
4907         (subdir_%): Remove.
4908         (glibc-targets): Remove.
4909         (lib): Remove.
4910         (stubs): Remove.
4911         ($(objpfx)stubs ../po/manual.pot): Remove.
4912         ($(objpfx)stamp%): Remove.
4913         (make-target-directory): Remove.
4914         (subdir_install): Remove.
4915         (routines): Remove.
4916         (aux): Remove.
4917         (sources): Remove.
4918         (objects): Remove.
4919         (headers): Remove.
4920
4921         [BZ #13750]
4922         * manual/.gitignore: Remove, it's not needed anymore.
4923         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
4924         all files in it.
4925         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
4926         directory.
4927         (texis): Renamed to $(objpfx)texis.
4928         (texis-path): New, contains path to generated files.
4929         (chapters.%): Use texis-path for complete path, add extra argument
4930         libc-texinfo.sh.
4931         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
4932         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
4933         (summary,texi, stamp-summary): Use complete path of
4934         files. Generate files in build dir.
4935         (dir-add.texi): Build in build dir.
4936         (libm-err.texi,stamp-libm-err): Likewise.
4937         (version.texi, stamp-version): Likewise.
4938         (.%c.texi): Likewise.
4939         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
4940         (mostlyclean): Remove target.
4941         (realclean): Remove target.
4942         (generated): Add new variable with contents from mostlyclean and
4943         realclean, remove entries duplicated in common-mostlyclean, add
4944         stamp-libm-err and stamp-version.
4945         (generated-dirs): Add libc directory.
4946         ($(inst_infodir)/libc.info): Install files from build dir.
4947
4948         * manual/install.texi (Configuring and compiling): Adjust since
4949         the info files are not part of the tar ball anymore.
4950
4951 2012-05-14  Andreas Jaeger  <aj@suse.de>
4952
4953         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
4954         variable.
4955
4956 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
4957
4958         [BZ #13717]
4959         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
4960         to 2.2.0 where earlier.
4961         * sysdeps/unix/sysv/linux/configure: Regenerated.
4962         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
4963         Remove conditional code.
4964         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
4965         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
4966         Remove conditional code.
4967         [!__NR_lchown]: Likewise.
4968         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
4969         [__NR_lchown]: Likewise.
4970         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
4971         comment referencing __ASSUME_LCHOWN_SYSCALL.
4972         * sysdeps/unix/sysv/linux/i386/sigaction.c
4973         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
4974         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
4975         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
4976         Remove conditional code.
4977         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
4978         (__protocol_available): Remove #if 0 code.
4979         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
4980         conditional code.
4981         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
4982         * sysdeps/unix/sysv/linux/kernel-features.h
4983         (__ASSUME_GETCWD_SYSCALL): Don't define.
4984         (__ASSUME_REALTIME_SIGNALS): Likewise.
4985         (__ASSUME_PREAD_SYSCALL): Likewise.
4986         (__ASSUME_PWRITE_SYSCALL): Likewise.
4987         (__ASSUME_POLL_SYSCALL): Likewise.
4988         (__ASSUME_LCHOWN_SYSCALL): Likewise.
4989         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
4990         non-SPARC.
4991         (__ASSUME_SIOCGIFNAME): Don't define.
4992         (__ASSUME_MSG_NOSIGNAL): Likewise.
4993         (__ASSUME_SENDFILE): Define unconditionally.
4994         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
4995         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
4996         conditional code.
4997         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
4998         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
4999         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
5000         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
5001         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
5002         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
5003         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
5004         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
5005         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5006         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5007         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
5008         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5009         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5010         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
5011         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5012         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5013         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
5014         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5015         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5016         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
5017         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5018         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5019         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
5020         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5021         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5022         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
5023         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5024         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5025         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
5026         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5027         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5028         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
5029         Remove conditional code.
5030         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5031         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
5032         Remove conditional code.
5033         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5034         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
5035         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
5036         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
5037         Remove conditional code.
5038         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5039         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
5040         Remove conditional code.
5041         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5042         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
5043         Remove conditional code.
5044         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5045         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
5046         Remove conditional code.
5047         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5048         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
5049         Remove conditional code.
5050         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5051         * sysdeps/unix/sysv/linux/sh/pwrite64.c
5052         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5053         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5054         * sysdeps/unix/sysv/linux/sigaction.c
5055         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5056         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5057         * sysdeps/unix/sysv/linux/sigpending.c
5058         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5059         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5060         * sysdeps/unix/sysv/linux/sigprocmask.c
5061         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5062         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5063         * sysdeps/unix/sysv/linux/sigsuspend.c
5064         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5065         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5066         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
5067         (__libc_missing_rt_sigs): Remove.
5068         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
5069         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
5070         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
5071         Remove conditional code.
5072         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
5073         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
5074         return 1.
5075         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
5076         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
5077         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
5078         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
5079
5080 2012-05-14  Andreas Jaeger  <aj@suse.de>
5081
5082         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
5083         it's not used in glibc.
5084         (__coshm1): Likewise.
5085         (__acosh1p): Likewise.
5086         (__sgn): Likewise.
5087
5088         * manual/string.texi (Copying and Concatenation): Add missing
5089         variable in concat example.
5090         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
5091
5092 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5093
5094         [BZ #14103]
5095         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
5096         __builtin_clzl with __builtin_clzll.
5097
5098 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5099
5100         [BZ #14104]
5101         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
5102         libc_freeres_ptr.
5103
5104 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5105
5106         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
5107         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
5108         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
5109         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
5110
5111 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
5112
5113         * NEWS: Update ia64 info.
5114
5115 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
5116
5117         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
5118         used as bcopy.
5119
5120 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
5121
5122         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
5123         * sysdeps/unix/syscalls.list (dup3): Likewise.
5124         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
5125         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
5126
5127 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5128
5129         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
5130         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
5131
5132 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5133
5134         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
5135         thread pointer.
5136         (TLS_IE): Use mov/add instead of movq/addq to load thread
5137         pointer.
5138         (TLS_GD_PREFIX): New.
5139         (TLS_GD): Use it.
5140
5141 2012-05-11  David S. Miller  <davem@davemloft.net>
5142
5143         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
5144         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
5145         (_FPU_SETCW): Likewise.
5146
5147 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
5148
5149         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
5150         is 32-byte aligned.
5151
5152 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
5153
5154         [BZ #11837]
5155         * iconvdata/gb18030.c: Update tables.
5156         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
5157         characters specially.
5158         (BODY for TO_LOOP): Add encoding of missing ranges.
5159
5160 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
5161
5162         [BZ #13673]
5163         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
5164         * sysdeps/mach/hurd/dup3.c: Likewise.
5165         * sysdeps/mach/hurd/readlinkat.c: Likewise.
5166         * sysdeps/powerpc/memmove.c:: Likewise.
5167
5168 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
5169
5170         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
5171         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
5172
5173 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
5174
5175         * elf/elf.h (R_X86_64_RELATIVE64): New.
5176         (R_X86_64_NUM): Updated.
5177         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
5178         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
5179         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
5180         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
5181         tst-quad1pie tst-quad2pie
5182         (modules-names): Add tst-quadmod1 tst-quadmod2.
5183         ($(objpfx)tst-quad1): New dependency.
5184         ($(objpfx)tst-quad2): Likewise.
5185         ($(objpfx)tst-quad1pie): Likewise.
5186         ($(objpfx)tst-quad2pie): Likewise.
5187         * sysdeps/x86_64/tst-quad1.c: New file.
5188         * sysdeps/x86_64/tst-quad1pie.c: New file.
5189         * sysdeps/x86_64/tst-quad2.c: Likewise.
5190         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
5191         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
5192         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
5193         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
5194         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
5195
5196 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5197
5198         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
5199         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
5200         * streams/stropts.h (t_scalar_t): Define type.
5201
5202         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
5203         (_PATH_PRESERVE): Set to "/var/lib".
5204         (_PATH_RWHODIR): Set to "/var/spool/rwho".
5205
5206         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
5207         instead of int.
5208
5209         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
5210         if __dir_mkfile succeeded.
5211
5212         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
5213         checking for _hurd_dtablesize.  Unlock it right after having
5214         finished _hurd_dtable allocation.
5215
5216 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5217
5218         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
5219         * sysdeps/mach/hurd/configure: Regenerated.
5220         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
5221         special-casing to...
5222         * sysdeps/gnu/configure.in: ... this new file.
5223         * sysdeps/unix/sysv/linux/configure: Regenerated.
5224         * sysdeps/gnu/configure: New generated file.
5225
5226         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
5227         for Linux: use nsec instead of usec, as well as:
5228         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
5229         members of type struct timespec.
5230         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
5231         New macros.
5232         (struct stat64): Likewise.
5233         (_STATBUF_ST_NSEC): New macro.
5234         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
5235
5236         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
5237         __strtoul_internal rather than strtoul.
5238
5239 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
5240
5241         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
5242         and reject them.
5243
5244 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5245
5246         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
5247         which preserves existing values.
5248         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
5249
5250 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
5251
5252         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
5253         TIMEOUT values.  Return EINVAL for NFDS values either negative or
5254         greater than FD_SETSIZE.
5255
5256 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5257
5258         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
5259         allocated, call __vm_protect to finish enabling the existing space, and
5260         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
5261         allocate the remainder.
5262
5263 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
5264
5265         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
5266         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
5267
5268 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5269
5270         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
5271         sysdeps/mach/hurd/readlink.c.
5272
5273         * posix/tst-sysconf.c (posix_options): Only use
5274         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
5275         _POSIX_SYNCHRONIZED_IO when they are defined
5276         * sysdeps/mach/hurd/bits/posix_opt.h:
5277         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
5278         (_XOPEN_REALTIME): Undefine macro.
5279         (_XOPEN_REALTIME_THREADS): Undefine macro.
5280         (_XOPEN_SHM): Undefine macro.
5281         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
5282         macro to -1.
5283         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
5284         macro to -1.
5285         (_POSIX_ASYNC_IO): Undefine macro.
5286         (_POSIX_PRIORITIZED_IO): Undefine macro.
5287         (_POSIX_SPIN_LOCKS): Define macro to -1.
5288
5289         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
5290         SA_NODEFER, SA_RESETHAND.
5291         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
5292         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
5293         F_DUPFD_CLOEXEC.
5294
5295 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5296
5297         * elf/Makefile (pldd-modules): Define unconditionally.
5298
5299 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5300
5301         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
5302
5303 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5304
5305         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
5306         Return ENOENT when name is empty.
5307         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
5308
5309 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5310
5311         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
5312
5313         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
5314
5315 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5316
5317         Fix mlock in all cases except non-readable pages.
5318         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
5319         instead of VM_PROT_ALL as parameter to __vm_wire function.
5320
5321         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
5322         (__mkdir): When path is `/', just fail with EEXIST.
5323         * sysdeps/mach/hurd/mkdirat.c: Likewise.
5324
5325 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5326
5327         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
5328         <sys/uio.h> (for writev).
5329         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
5330         and <sys/param.h> (for MIN).
5331
5332 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
5333
5334         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
5335         REQUESTED_TIME.  Properly set the remaining time and return EINTR
5336         if interrupted.
5337
5338 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5339
5340         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
5341         Depend on against $(link-rpcuserlibs).
5342
5343 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5344
5345         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
5346         (__libc_stack_end): Do not use attribute_relro.
5347         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
5348         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
5349         to libthread-provided value.
5350         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
5351         attribute_relro.
5352
5353 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5354
5355         [BZ #3748]
5356         * bits/libc-lock.h (__libc_once_get): New macro.
5357         * sysdeps/mach/bits/libc-lock.h: Likewise.
5358         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
5359         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
5360         instead of using implementation details.
5361
5362         * libio/fileops.c: Unconditionally include <kernel-features.h>.
5363         * libio/freopen.c: Likewise.
5364         * libio/freopen64.c: Likewise.
5365         * misc/syslog.c: Likewise.
5366         * nscd/connections.c: Likewise.
5367         * nscd/netgroupcache.c: Likewise.
5368         * sysdeps/posix/getcwd.c: Likewise.
5369
5370 2012-05-10  Roland McGrath  <roland@hack.frob.com>
5371
5372         * math/w_ilogbf.c: Add #include <limits.h>.
5373
5374 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5375
5376         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
5377         path instead of returning without unlocking.
5378
5379         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
5380         immediate-write ioctls.
5381         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
5382
5383 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5384
5385         * sysdeps/mach/hurd/i386/init-first.c (init): Use
5386         __builtin_frame_address instead of making assumptions about the
5387         location of the return address relative to DATA.  Force early load of
5388         the return address.
5389         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
5390         __builtin_frame_address.
5391
5392         dup3 for GNU Hurd.
5393         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
5394         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
5395         implement dup3 and do some further code clean-ups.
5396         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
5397         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
5398
5399 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5400
5401         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
5402
5403         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
5404         HURD_CRITICAL_END around holding _hurd_dtable_lock.
5405         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
5406         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
5407         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
5408         d->port.lock.
5409
5410         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
5411         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
5412         when handler == SIG_ERR, not when handler != SIG_ERR.
5413
5414 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5415
5416         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
5417         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
5418         definitions.
5419
5420         accept4 for GNU Hurd.
5421         * include/sys/socket.h (__libc_accept4): New prototype.
5422         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
5423         to implement __libc_accept4.
5424         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
5425         __libc_accept4.
5426         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
5427
5428         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
5429         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
5430         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
5431         signal-defines.sym.
5432
5433 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5434
5435         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
5436
5437 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5438
5439         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
5440         assertion on O_CLOEXEC flag.
5441         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
5442         * hurd/intern-fd.c: Likewise.
5443         * hurd/port2fd.c: Likewise.
5444
5445 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5446
5447         [BZ #3906]
5448         * bits/in.h (IPV6_PKTINFO): Define new macro.
5449         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
5450
5451 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5452
5453         [BZ #13954]
5454         [BZ #13955]
5455         [BZ #13956]
5456         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
5457         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
5458         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
5459         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
5460         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
5461         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
5462         * math/libm-test.inc (logb_test) : Additional logb tests.
5463
5464 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
5465             Andreas Jaeger  <aj@suse.de>
5466
5467         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
5468         * configure: Regenerated.
5469         * config.h.in (LINK_OBSOLETE_RPC): New macro.
5470         * config.make.in (link-obsolete-rpc): New substituted variable.
5471         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
5472         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
5473         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
5474         (shared-only-routines): Don't set it under [link-obsolete-rpc],
5475         so that libc.a contains the symbols.
5476         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
5477         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
5478         * sunrpc/auth_none.c: Likewise.
5479         * sunrpc/auth_unix.c: Likewise.
5480         * sunrpc/authdes_prot.c: Likewise.
5481         * sunrpc/authuxprot.c: Likewise.
5482         * sunrpc/clnt_gen.c: Likewise.
5483         * sunrpc/clnt_perr.c: Likewise.
5484         * sunrpc/clnt_raw.c: Likewise.
5485         * sunrpc/clnt_simp.c: Likewise.
5486         * sunrpc/clnt_tcp.c: Likewise.
5487         * sunrpc/clnt_udp.c: Likewise.
5488         * sunrpc/clnt_unix.c: Likewise.
5489         * sunrpc/des_crypt.c: Likewise.
5490         * sunrpc/des_soft.c: Likewise.
5491         * sunrpc/get_myaddr.c: Likewise.
5492         * sunrpc/key_call.c: Likewise.
5493         * sunrpc/key_prot.c: Likewise.
5494         * sunrpc/netname.c: Likewise.
5495         * sunrpc/pm_getmaps.c: Likewise.
5496         * sunrpc/pm_getport.c: Likewise.
5497         * sunrpc/pmap_clnt.c: Likewise.
5498         * sunrpc/pmap_prot.c: Likewise.
5499         * sunrpc/pmap_prot2.c: Likewise.
5500         * sunrpc/pmap_rmt.c: Likewise.
5501         * sunrpc/publickey.c: Likewise.
5502         * sunrpc/rpc_cmsg.c: Likewise.
5503         * sunrpc/rpc_common.c: Likewise.
5504         * sunrpc/rpc_dtable.c: Likewise.
5505         * sunrpc/rpc_prot.c: Likewise.
5506         * sunrpc/rpc_thread.c: Likewise.
5507         * sunrpc/rtime.c: Likewise.
5508         * sunrpc/svc.c: Likewise.
5509         * sunrpc/svc_auth.c: Likewise.
5510         * sunrpc/svc_raw.c: Likewise.
5511         * sunrpc/svc_run.c: Likewise.
5512         * sunrpc/svc_tcp.c: Likewise.
5513         * sunrpc/svc_udp.c: Likewise.
5514         * sunrpc/svc_unix.c: Likewise.
5515         * sunrpc/svcauth_des.c: Likewise.
5516         * sunrpc/xcrypt.c: Likewise.
5517         * sunrpc/xdr.c: Likewise.
5518         * sunrpc/xdr_array.c: Likewise.
5519         * sunrpc/xdr_float.c: Likewise.
5520         * sunrpc/xdr_intXX_t.c: Likewise.
5521         * sunrpc/xdr_mem.c: Likewise.
5522         * sunrpc/xdr_rec.c: Likewise.
5523         * sunrpc/xdr_ref.c: Likewise.
5524         * sunrpc/xdr_sizeof.c: Likewise.
5525         * sunrpc/xdr_stdio.c: Likewise.
5526
5527 2012-05-10  Roland McGrath  <roland@hack.frob.com>
5528
5529         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
5530         change.  Update copyright years.
5531
5532 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
5533
5534         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
5535
5536 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
5537             Joseph Myers  <joseph@codesourcery.com>
5538             Paul Pluzhnikov  <ppluzhnikov@google.com>
5539
5540         [BZ #14012]
5541         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
5542         requiring rpcgen.
5543         [cross-compiling] (extra-libs): Likewise.
5544         [cross-compiling] (extra-libs-others): Likewise.
5545         [cross-compiling] (librpcsvc-routines): Likewise.
5546         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
5547         [cross-compiling] (omit-deps): Likewise.
5548         (sunrpc-CPPFLAGS): New variable.
5549         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
5550         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
5551         (cross-rpcgen-objs): New variable.
5552         (extra-objs): Append $(cross-rpcgen-objs).
5553         ($(cross-rpcgen-objs)): New rule.
5554         ($(objpfx)cross-rpcgen): Likewise.
5555         (rpcgen-cmd): Define to use $(built-program-file).  Expand
5556         comment.
5557         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
5558         ($(objpfx)x%.stmp): Likewise.
5559         * sunrpc/proto.h [IS_IN_build] (_): Define.
5560         [IS_IN_build] (_libc_intl_domainname): Likewise.
5561
5562 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
5563
5564         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
5565         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
5566         and R_X86_64_TPOFF64.
5567
5568 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
5569
5570         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
5571         sysdeps/unix/sysv/syscalls.list.
5572         (stime): Likewise.
5573         (utime): Likewise.
5574         * sysdeps/unix/sysv/syscalls.list: Remove file.
5575
5576 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
5577
5578         [BZ #3440]
5579         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
5580         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
5581         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
5582         (__LC_IDENTIFICATION): Make these macros useful in #if
5583         expressions, as required by C99.
5584
5585 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
5586
5587         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
5588         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
5589         after this.
5590
5591 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
5592
5593         * stdlib/longlong.h: Updated from GCC.
5594
5595 2012-05-09  Andreas Jaeger  <aj@suse.de>
5596
5597         * nscd/nscd.c (run_modes): Make named enum, reorder so that
5598         default is first entry.
5599         (run_mode): Set type.
5600         (main): Remove informal message about syslog.
5601         (options): Fix typo.
5602
5603         [BZ #14053]
5604         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
5605         to asm.
5606         (lrint): Likewise.
5607         (llrintf): Likewise.
5608         (llrint): Likewise.
5609         (rint): Likewise.
5610         (rintf): Likewise.
5611         (nearbyint): Likewise.
5612         (nearbyintf): Likewise.
5613
5614 2012-05-09  Andreas Jaeger  <aj@suse.de>
5615             Pedro Alves  <palves@redhat.com>
5616
5617         * nscd/nscd.c (run_mode): Use enum.
5618         (main): Cleanup coding style issue.
5619
5620 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
5621             Andreas Jaeger  <aj@suse.de>
5622
5623         * nscd/nscd.c (go_background): Replaced with...
5624         (run_mode): ... this.
5625         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
5626         (options): Add -F --foreground.
5627         (main): Implement it.
5628         (parse_opt): Parse it.
5629
5630 2012-05-09  Andreas Jaeger  <aj@suse.de>
5631
5632         [BZ #14083]
5633         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
5634         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
5635         -Wconversion warning.
5636         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
5637         Likewise.
5638
5639 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
5640
5641         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
5642         == 0.
5643         (LC_ALL): Use macro-int-constant.
5644         (LC_COLLATE): Likewise.
5645         (LC_CTYPE): Likewise.
5646         (LC_MESSAGES): Likewise.
5647         (LC_MONETARY): Likewise.
5648         (LC_NUMERIC): Likewise.
5649         (LC_TIME): Likewise.
5650         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
5651         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
5652         [ISO || ISO99 || ISO11] (*_t): Do not allow.
5653         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
5654         Specify type.
5655         [C99-based standards] (float_t): Expect type.
5656         [C99-based standards] (double_t): Expect type.
5657         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
5658         type.
5659         [C99-based standards] (HUGE_VALL): Likewise.
5660         [C99-based standards] (INFINITY): Likewise.
5661         [C99-based standards] (NAN): Likewise.
5662         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
5663         [C99-based standards] (FP_NAN): Likewise.
5664         [C99-based standards] (FP_NORMAL): Likewise.
5665         [C99-based standards] (FP_SUBNORMAL): Likewise.
5666         [C99-based standards] (FP_ZERO): Likewise.
5667         [C99-based standards] (FP_FAST_FMA): Use
5668         optional-macro-int-constant.  Specify type.  Require == 1.
5669         [C99-based standards] (FP_FAST_FMAF): Likewise.
5670         [C99-based standards] (FP_FAST_FMAL): Likewise.
5671         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
5672         [C99-based standards] (FP_ILOGBNAN): Likewise.
5673         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
5674         Specify type.
5675         [C99-based standards] (MATH_ERREXCEPT): Likewise.
5676         [C99-based standards] (math_errhandling): Specify type.
5677         [ISO99 || ISO11] (signgam): Do not allow.
5678         [non-C99-based standards] (copysignf): Do not allow.
5679         [non-C99-based standards] (exp2f): Likewise.
5680         [non-C99-based standards] (log2f): Likewise.
5681         [non-C99-based standards] (modff): Allow.
5682         [non-C99-based standards] (erff): Do not allow.
5683         [non-C99-based standards] (erfcf): Likewise.
5684         [non-C99-based standards] (gammaf): Likewise.
5685         [non-C99-based standards] (hypotf): Likewise.
5686         [non-C99-based standards] (j0f): Likewise.
5687         [non-C99-based standards] (j1f): Likewise.
5688         [non-C99-based standards] (jnf): Likewise.
5689         [non-C99-based standards] (lgammaf): Likewise.
5690         [non-C99-based standards] (tgammaf): Likewise.
5691         [non-C99-based standards] (y0f): Likewise.
5692         [non-C99-based standards] (y1f): Likewise.
5693         [non-C99-based standards] (ynf): Likewise.
5694         [non-C99-based standards] (isnanf): Likewise.
5695         [non-C99-based standards] (acoshf): Likewise.
5696         [non-C99-based standards] (asinhf): Likewise.
5697         [non-C99-based standards] (atanhf): Likewise.
5698         [non-C99-based standards] (cbrtf): Likewise.
5699         [non-C99-based standards] (expm1f): Likewise.
5700         [non-C99-based standards] (ilogbf): Likewise.
5701         [non-C99-based standards] (log1pf): Likewise.
5702         [non-C99-based standards] (logbf): Likewise.
5703         [non-C99-based standards] (nextafterf): Likewise.
5704         [non-C99-based standards] (remainderf): Likewise.
5705         [non-C99-based standards] (rintf): Likewise.
5706         [non-C99-based standards] (scalbf): Likewise.
5707         [non-C99-based standards] (copysignl): Likewise.
5708         [non-C99-based standards] (exp2l): Likewise.
5709         [non-C99-based standards] (log2l): Likewise.
5710         [non-C99-based standards] (modfl): Allow.
5711         [non-C99-based standards] (erfl): Do not allow.
5712         [non-C99-based standards] (erfcl): Likewise.
5713         [non-C99-based standards] (gammal): Likewise.
5714         [non-C99-based standards] (hypotl): Likewise.
5715         [non-C99-based standards] (j0l): Likewise.
5716         [non-C99-based standards] (j1l): Likewise.
5717         [non-C99-based standards] (jnl): Likewise.
5718         [non-C99-based standards] (lgammal): Likewise.
5719         [non-C99-based standards] (tgammal): Likewise.
5720         [non-C99-based standards] (y0l): Likewise.
5721         [non-C99-based standards] (y1l): Likewise.
5722         [non-C99-based standards] (ynl): Likewise.
5723         [non-C99-based standards] (isnanl): Likewise.
5724         [non-C99-based standards] (acoshl): Likewise.
5725         [non-C99-based standards] (asinhl): Likewise.
5726         [non-C99-based standards] (atanhl): Likewise.
5727         [non-C99-based standards] (cbrtl): Likewise.
5728         [non-C99-based standards] (expm1l): Likewise.
5729         [non-C99-based standards] (ilogbl): Likewise.
5730         [non-C99-based standards] (log1pl): Likewise.
5731         [non-C99-based standards] (logbl): Likewise.
5732         [non-C99-based standards] (nextafterl): Likewise.
5733         [non-C99-based standards] (remainderl): Likewise.
5734         [non-C99-based standards] (rintl): Likewise.
5735         [non-C99-based standards] (scalbl): Likewise.
5736         [ISO || ISO99 || ISO11] (*_t): Do not allow.
5737         [non-C99-based standards] (FP_*): Do not allow.
5738         [C99-based standards] (FP_*): Change to
5739         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
5740         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
5741         allow.
5742         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
5743         (SIG_ERR): Likewise.
5744         [X/Open-based standards] (SIG_HOLD): Likewise.
5745         (SIG_IGN): Likewise.
5746         (SIGABRT): Use macro-int-constant.  Specify type.  Require
5747         positive value.
5748         (SIGFPE): Likewise.
5749         (SIGILL): Likewise.
5750         (SIGINT): Likewise.
5751         (SIGSEGV): Likewise.
5752         (SIGTER): Likewise.
5753         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
5754         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
5755         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
5756         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
5757         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
5758         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
5759         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
5760         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
5761         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
5762         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
5763         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
5764         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
5765         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
5766         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
5767         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
5768         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
5769         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
5770         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
5771         [X/Open-based standards] (SIGTRAP): Likewise.
5772         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
5773         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
5774         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
5775         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
5776         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
5777         allow.
5778
5779 2012-05-08  Ian Wienand  <ianw@vmware.com>
5780
5781         [BZ #14080]
5782         * time/tzset.c (__tzset_parse_tz): Update default rules for
5783         daylight time changes in the Energy Policy Act of 2005.
5784
5785 2012-05-09  Andreas Jaeger  <aj@suse.de>
5786
5787         [BZ #13983]
5788         * elf/ldconfig.c (parse_conf): Change string to make clear that
5789         ldconfig only issued a warning if ld.so.conf does not exist.
5790
5791 2012-05-08  David S. Miller  <davem@davemloft.net>
5792
5793         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
5794         movxtod instead of popping the value on the stack.
5795
5796         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5797
5798 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
5799
5800         * config.h.in: Add HAVE_ARM_PCS_VFP.
5801
5802 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
5803
5804         [BZ #13979]
5805         * include/features.h: Warn if user requests __FORTIFY_SOURCE
5806         checking but the checks are disabled for any reason.
5807
5808 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
5809
5810         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
5811         and ELF64_R_TYPE with ELFW(R_TYPE).
5812
5813 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
5814
5815         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
5816         (ulimit): Likewise.
5817
5818         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
5819         (settimeofday): Likewise.
5820
5821 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
5822
5823         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
5824         a struct th_u2 inside the union, and move tu_block/tu_code into
5825         a new th_u3 union of tu_block/tu_code inside of that.  Move
5826         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
5827         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
5828         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
5829         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
5830         (th_stuff): Change to th_u1.tu_stuff.
5831         (th_data): Define.
5832         (th_msg): Change to th_u1.th_u2.tu_data.
5833
5834 2012-05-07  David S. Miller  <davem@davemloft.net>
5835
5836         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5837
5838         [BZ #14074]
5839         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
5840         (SETUP_PIC_REG): Use it.
5841         (SETUP_PIC_REG_LEAF): Use it.
5842
5843 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
5844
5845         [BZ #13885]
5846         [BZ #13923]
5847         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
5848         USE_AS_EXPM1L.
5849         (EXPL_FINITE): Likewise.
5850         (FLDLOG): Likewise.
5851         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
5852         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
5853         e_expl.S.
5854         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
5855         USE_AS_EXPM1L.
5856         (EXPL_FINITE): Likewise.
5857         (FLDLOG): Likewise.
5858         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
5859         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
5860         e_expl.S.
5861         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
5862         test of -max_value argument for long double.
5863         * sysdeps/i386/fpu/libm-test-ulps: Update.
5864         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5865
5866 2012-05-06  David S. Miller  <davem@davemloft.net>
5867
5868         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
5869         quad soft-float symbols whose references which are compiler
5870         generated.
5871         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
5872
5873 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
5874
5875         [BZ #13884]
5876         [BZ #13914]
5877         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
5878         USE_AS_EXP10L.
5879         (EXPL_FINITE): Likewise.
5880         (FLDLOG): Likewise.
5881         (c0): Likewise.
5882         (c1): Likewise.
5883         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
5884         Adjust comments for base varying.
5885         (__expl_finite): Change alias to EXPL_FINITE.
5886         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
5887         e_expl.S.
5888         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
5889         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
5890         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
5891         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
5892         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
5893         USE_AS_EXP10L.
5894         (EXPL_FINITE): Likewise.
5895         (FLDLOG): Likewise.
5896         (c0): Likewise.
5897         (c1): Likewise.
5898         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
5899         Adjust comments for base varying.
5900         (__expl_finite): Change alias to EXPL_FINITE.
5901         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
5902         tests for bugs.
5903         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
5904
5905         [BZ #14064]
5906         * math/libm-test.inc (check_float_internal): Correct ulp
5907         calculation for subnormal expected results.
5908
5909 2012-05-06  Andreas Jaeger  <aj@suse.de>
5910
5911         * Makeconfig (+math-flags): New, set to -frounding-math.
5912         (+cflags): Add +math-flags so that all of glibc gets compiled with
5913         it.
5914
5915         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
5916
5917 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
5918
5919         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
5920         Disable one test.
5921
5922         [BZ #13787]
5923         [BZ #13922]
5924         [BZ #14036]
5925         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
5926         (__ieee754_expl): Allow for and saturate large arguments.
5927         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
5928         (u_threshold): Likewise.
5929         (__exp): Call __ieee754_exp before checking for overflow and
5930         underflow.
5931         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
5932         (u_threshold): Likewise.
5933         (__expf): Call __ieee754_expf before checking for overflow and
5934         underflow.
5935         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
5936         (u_threshold): Likewise.
5937         (__expl): Call __ieee754_expl before checking for overflow and
5938         underflow.
5939         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
5940         (__ieee754_expl): Allow for and saturate large arguments.
5941         * math/libm-test.inc (exp_test): Add another test.  Do not allow
5942         missing overflow exception on overflow.
5943         (expm1_test): Do not allow missing overflow exception on overflow.
5944
5945         * sysdeps/i386/fpu/e_expl.c: Move to ...
5946         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
5947         rather than using inline asm.
5948         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
5949         * sysdeps/x86_64/fpu/e_expl.S: Copy from
5950         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
5951
5952         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
5953         (nice): Likewise.
5954         (poll): Likewise.
5955         (signal): Likewise.
5956         (time): Likewise.
5957         (times): Likewise.
5958
5959 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
5960
5961         * sysdeps/unix/syscalls.list (adjtime): Add entry from
5962         sysdeps/unix/common/syscalls.list.
5963         (fchmod): Likewise.
5964         (fchown): Likewise.
5965         (ftruncate): Likewise.
5966         (getrusage): Likewise.
5967         (gettimeofday): Likewise.
5968         (setpgid): Likewise.
5969         (setregid): Likewise.
5970         (setreuid): Likewise.
5971         (sigaction): Likewise.
5972         (truncate): Likewise.
5973         (vhangup): Likewise.
5974         * sysdeps/unix/common/syscalls.list: Remove file.
5975         * sysdeps/unix/bsd/Implies: Don't include unix/common.
5976         * sysdeps/unix/sysv/linux/Implies: Likewise.
5977
5978 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
5979
5980         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
5981         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
5982         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
5983         Moved to ...
5984         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
5985         Here.
5986         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
5987         to ...
5988         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
5989         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
5990         to ...
5991         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
5992         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
5993         to ...
5994         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
5995         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
5996         to ...
5997         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
5998         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
5999         to ...
6000         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
6001         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
6002         to ...
6003         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
6004         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
6005         to ...
6006         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
6007         Here.
6008         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
6009         to ...
6010         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
6011         Here.
6012         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
6013         to ...
6014         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
6015         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
6016         Moved to ...
6017         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
6018         Here.
6019         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
6020         to ...
6021         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
6022
6023 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
6024
6025         * sysdeps/unix/common/bits/dirent.h: Remove file.
6026         * sysdeps/unix/common/bits/fcntl.h: Likewise.
6027
6028         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
6029         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
6030         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
6031         * sysdeps/unix/bsd/isatty.c: Likewise.
6032         * sysdeps/unix/bsd/tcdrain.c: Likewise.
6033         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
6034         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
6035
6036 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6037
6038         [BZ #13563]
6039         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
6040         long double comparison inaccuracies.
6041         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
6042         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6043
6044 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
6045
6046         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
6047         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
6048
6049 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
6050
6051         [BZ #14049]
6052         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
6053         nonzero digits before rounding a hex value.
6054         * stdlib/tst-strtod.c (tests): Add another test.
6055
6056 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6057
6058         * sysdeps/s390/fpu/libm-test-ulps: Update.
6059
6060 2012-05-03  Andreas Jaeger  <aj@suse.de>
6061
6062         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
6063         does not get optimized out.
6064         (malloc_opt_barrier): New.
6065
6066 2012-05-03  Andreas Jaeger  <aj@suse.de>
6067             Roland McGrath  <roland@hack.frob.com>
6068
6069         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
6070         intermediate file deletion.
6071         (generated): Add .symlist files.
6072
6073 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
6074
6075         [BZ #13775]
6076         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
6077         Redirect under this condition.
6078         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
6079         [__USE_GNU] (__dprintf_chk): Not under this condition.
6080         [__USE_GNU] (__vdprintf_chk): Likewise.
6081         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
6082         under this condition.
6083         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
6084         [__USE_XOPEN2K8] (dprintf): Define under this condition.
6085         [__USE_XOPEN2K8] (vdprintf): Likewise.
6086         [__USE_GNU] (__dprintf_chk): Not under this condition.
6087         [__USE_GNU] (__vdprintf_chk): Likewise.
6088         [__USE_GNU] (dprintf): Likewise.
6089         [__USE_GNU] (vdprintf): Likewise.
6090
6091 2012-05-03  Roland McGrath  <roland@hack.frob.com>
6092
6093         * elf/Makefile (common-generated): Set this instead of generated for
6094         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
6095         $(all-built-dso)-derived lists.
6096
6097 2012-05-03  Andreas Jaeger  <aj@suse.de>
6098
6099         * sysdeps/i386/fpu/libm-test-ulps: Update.
6100
6101         * FAQ: Removed.
6102         * FAQ.in: Likewise.
6103         * scripts/gen-FAQ.pl: Likewise.
6104         * manual/install.texi (Installation): Point to online location of
6105         FAQ.
6106         * Makefile (files-for-dist): Remove FAQ.
6107         (FAQ): Remove.
6108
6109 2012-05-02  Allan McRae  <allan@archlinux.org>
6110
6111         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
6112         (LDFLAGS-reldepmod5.so): Likewise.
6113         (LDFLAGS-reldep6mod1.so): Likewise.
6114         (LDFLAGS-reldep6mod4.so): Likewise.
6115         (LDFLAGS-reldep8mod3.so): Likewise.
6116         (LDFLAGS-unload4mod1.so): Likewise.
6117         (LDFLAGS-unload4mod2.so): Likewise.
6118         (LDFLAGS-tst-initorder): Likewise.
6119         (LDFLAGS-tst-initordera2.so): Likewise.
6120         (LDFLAGS-tst-initordera3.so): Likewise.
6121         (LDFLAGS-tst-initordera4.so): Likewise.
6122         (LDFLAGS-tst-initorderb2.so): Likewise.
6123         (LDFLAGS-noload): Likewise.
6124         (LDFLAGS-next): Likewise.
6125         (LDFLAGS-order2mod1.so): Likewise.
6126         (LDFLAGS-order2mod2.so): Likewise.
6127         (LDFLAGS-tst-initorder2): Likewise.
6128         (LDFLAGS-tst-initorder2a.so): Likewise.
6129         (LDFLAGS-tst-initorder2b.so): Likewise.
6130         (LDFLAGS-tst-initorder2c.so): Likewise.
6131         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
6132
6133 2012-05-02  David S. Miller  <davem@davemloft.net>
6134
6135         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6136
6137 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
6138
6139         [BZ #14055]
6140         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
6141
6142 2012-05-02  Andreas Jaeger  <aj@suse.de>
6143
6144         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
6145         since we manipulate rounding mode.
6146         (CPPFLAGS-test-idouble.c): Likewise.
6147         (CPPFLAGS-test-ifloat.c): Likewise.
6148         (CFLAGS-test-ldouble.c): Likewise.
6149         (CFLAGS-test-double.c): Likewise.
6150         (CFLAGS-test-float.c): Likewise.
6151         (CFLAGS-test-misc.c): Likewise.
6152         (CFLAGS-test-test-fenv.c): Likewise.
6153
6154 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6155
6156         [BZ #2550]
6157         [BZ #2570]
6158         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
6159         comparisons to determine direction to adjust input.
6160
6161 2012-05-01  Roland McGrath  <roland@hack.frob.com>
6162
6163         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
6164         output to the target.
6165
6166         * scripts/localplt.awk: New file.
6167         * elf/Makefile ($(objpfx)check-localplt): Target removed.
6168         (check-localplt-CFLAGS): Variable removed.
6169         ($(all-built-dso:=.jmprel)): New static pattern rule.
6170         (generated): Add those targets.
6171         (localplt-built-dso): New variable.
6172         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
6173
6174         * elf/check-localplt.c: File removed.
6175
6176         * scripts/check-execstack.awk: New file.
6177         * elf/Makefile ($(objpfx)check-execstack): Target removed.
6178         (check-execstack-CFLAGS): Variable removed.
6179         ($(objpfx)check-execstack.h): Target removed.
6180         ($(objpfx)execstack-default): New target.
6181         (generated): Add that instead of check-execstack.h.
6182         ($(all-built-dso:=.phdr)): New static pattern rule.
6183         (generated): Add those targets.
6184         * elf/check-execstack.c: File removed.
6185
6186         * scripts/check-textrel.awk: New file.
6187         * elf/Makefile ($(objpfx)check-textrel): Target removed.
6188         (check-textrel-CFLAGS): Variable removed.
6189         (all-built-dso): Use := to define.o
6190         ($(all-built-dso:=.dyn)): New static pattern rule.
6191         (generated): Add those targets.
6192         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
6193         * config.make.in (READELF): New substituted variable.
6194         * elf/check-textrel.c: File removed.
6195
6196 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
6197
6198         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
6199         allow.
6200         * conform/data/ctype.h-data [C99-based standards] (isblank):
6201         Expect function.
6202         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
6203         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
6204         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6205         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
6206         Specify type.  Require positive value.
6207         (EILSEQ): Likewise.
6208         (ERANGE): Likewise.
6209         [ISO || POSIX] (EILSEQ): Do not expect.
6210         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
6211         Specify type.  Require positive value.
6212         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
6213         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
6214         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
6215         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
6216         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
6217         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
6218         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
6219         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
6220         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
6221         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
6222         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
6223         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
6224         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
6225         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
6226         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
6227         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
6228         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
6229         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
6230         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
6231         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
6232         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
6233         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
6234         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
6235         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
6236         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
6237         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
6238         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
6239         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
6240         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
6241         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
6242         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
6243         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
6244         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
6245         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
6246         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
6247         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
6248         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
6249         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
6250         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
6251         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
6252         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
6253         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
6254         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
6255         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
6256         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
6257         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
6258         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
6259         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
6260         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
6261         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
6262         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
6263         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
6264         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
6265         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
6266         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
6267         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
6268         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
6269         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
6270         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
6271         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
6272         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
6273         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
6274         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
6275         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
6276         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
6277         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
6278         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
6279         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
6280         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
6281         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
6282         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
6283         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
6284         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
6285         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
6286         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
6287         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
6288         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
6289         Require >= 2.
6290         (FLT_ROUNDS): Expect as macro, not constant.
6291         (FLT_MANT_DIG): Use macro-int-constant.
6292         (DBL_MANT_DIG): Likewise.
6293         (LDBL_MANT_DIG): Likewise.
6294         (FLT_DIG): Likewise.
6295         (DBL_DIG): Likewise.
6296         (LDBL_DIG): Likewise.
6297         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
6298         (DBL_MIN_EXP): Likewise.
6299         (LDBL_MIN_EXP): Likewise.
6300         (FLT_MAX_EXP): Use macro-int-constant.
6301         (DBL_MAX_EXP): Likewise.
6302         (LDBL_MAX_EXP): Likewise.
6303         (FLT_MAX_10_EXP): Likewise.
6304         (DBL_MAX_10_EXP): Likewise.
6305         (LDBL_MAX_10_EXP): Likewise.
6306         (FLT_MAX): Use macro-constant.
6307         (DBL_MAX): Likewise.
6308         (LDBL_MAX): Likewise.
6309         (FLT_EPSILON): Use macro-constant.  Give upper bound.
6310         (DBL_EPSILON): Likewise.
6311         (LDBL_EPSILON): Likewise.
6312         (FLT_MIN): Likewise.
6313         (DBL_MIN): Likewise.
6314         (LDBL_MIN): Likewise.
6315         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
6316         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
6317         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
6318         [ISO11] (FLT_HAS_SUBNORM): Likewise.
6319         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
6320         [ISO11] (DBL_DECIMAL_DIG): Likewise.
6321         [ISO11] (FLT_DECIMAL_DIG): Likewise.
6322         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
6323         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
6324         [ISO11] (FLT_TRUE_MIN): Likewise.
6325         [ISO11] (LDBL_TRUE_MIN): Likewise.
6326         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6327         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
6328         (SCHAR_MIN): Use macro-int-constant.  Specify type.
6329         (SCHAR_MAX): Likewise.
6330         (UCHAR_MAX): Likewise.
6331         (CHAR_MIN): Likewise.
6332         (CHAR_MAX): Likewise.
6333         (MB_LEN_MAX): Use macro-int-constant.
6334         (SHRT_MIN): Use macro-int-constant.  Specify type.
6335         (SHRT_MAX): Likewise.
6336         (USHRT_MAX): Likewise.
6337         (INT_MAX): Likewise.
6338         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
6339         bound negative.
6340         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
6341         bound with "U".
6342         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
6343         bound with "L".
6344         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
6345         bound negative.  Suffix upper bound with "L".
6346         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
6347         bound with "UL".
6348         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
6349         Specify type.
6350         [C99-based standards] (LLONG_MAX): Likewise.
6351         [C99-based standards] (ULLONG_MAX): Likewise.
6352         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
6353         == 0.
6354         [ISO11] (max_align_t): Require type.
6355         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6356
6357         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
6358         from $CFLAGS, without defining away __attribute__ calls.
6359         (checknamespace): Use $CFLAGS_namespace.
6360
6361         * conform/conformtest.pl (@keywords): Only include C99 keywords
6362         for standards based on C99 or C11.
6363
6364         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
6365         Disable tests.
6366         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
6367         UNIX98]: Likewise.
6368
6369         * conform/conformtest.pl: Handle "macro-int-constant" and test for
6370         usability of symbols in #if.
6371
6372         * conform/conformtest.pl: If macro or constant types start
6373         "promoted:", expect the symbol to be of the following type
6374         promoted by the integer promotions.
6375
6376         * conform/conformtest.pl: Parse all "constant" and "macro" lines
6377         in one place.  Also handle "macro-constant".
6378
6379         * conform/conformtest.pl: Only accept expected macro values with
6380         "==".  Parse all "macro" lines in one place.
6381         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
6382
6383         * conform/conformtest.pl: Handle braced types on "constant" lines
6384         instead of handling "typed-constant".
6385         * conform/data/signal.h-data: Use "constant" instead of
6386         "typed-constant".
6387
6388         * conform/conformtest.pl: Handle "optional-" at start of lines in
6389         one place rather than duplicating several cases.  Handle each
6390         format of "macro" line with initial "optional-".
6391
6392         * conform/conformtest.pl: Only accept expected constant or
6393         optional-constant values with "==".  Parse all "constant" lines in
6394         one place.  Parse all "optional-constant" lines in one place.
6395         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
6396         * conform/data/fmtmsg.h-data: Likewise.
6397         * conform/data/netinet/in.h-data: Likewise.
6398         * conform/data/tar.h-data: Likewise.
6399         * conform/data/limits.h-data: Use "==" form on "constant" and
6400         "optional-constant" lines.
6401
6402         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
6403         Use -std=c99 for XOPEN2K.
6404         (@knownproblems): Remove.
6405         (newtoken): Don't check %isknown.
6406
6407         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
6408         Do not expect macro.
6409         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
6410         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
6411         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
6412         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
6413         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
6414         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
6415         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
6416         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
6417         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
6418         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
6419         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
6420         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
6421         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
6422         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
6423         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
6424         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
6425         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
6426         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
6427         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
6428         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
6429         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
6430         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
6431         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
6432         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
6433         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
6434         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
6435         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
6436         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
6437         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
6438         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
6439         [XPG3] (acosh): Likewise.
6440         [XPG3] (asinh): Likewise.
6441         [XPG3] (atanh): Likewise.
6442         [XPG3] (cbrt): Likewise.
6443         [XPG3] (expm1): Likewise.
6444         [XPG3] (ilogb): Likewise.
6445         [XPG3] (log1p): Likewise.
6446         [XPG3] (logb): Likewise.
6447         [XPG3] (nextafter): Likewise.
6448         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
6449         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
6450         [XPG3] (remainder): Likewise.
6451         [XPG3] (rint): Likewise.
6452         [XPG3 || XPG4 || UNIX98] (round): Likewise.
6453         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
6454         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
6455         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
6456         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
6457         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
6458         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
6459         [UNIX98 || XOPEN2K] (scalb): Expect.
6460         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
6461         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
6462         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
6463         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
6464         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
6465         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
6466         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
6467         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
6468         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
6469         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
6470         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
6471         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
6472         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
6473         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
6474         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
6475         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
6476         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
6477         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
6478         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
6479         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
6480         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
6481         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
6482         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
6483         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
6484         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
6485         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
6486         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
6487         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
6488         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
6489         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
6490         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
6491         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
6492         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
6493         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
6494         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
6495         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
6496         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
6497         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
6498         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
6499         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
6500         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
6501         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
6502         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
6503         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
6504         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
6505         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
6506         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
6507         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
6508         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
6509         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
6510         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
6511         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
6512         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
6513         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
6514         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
6515         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
6516         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
6517         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
6518         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
6519         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
6520         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
6521         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
6522         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
6523         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
6524         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
6525         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
6526         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
6527         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
6528         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
6529         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
6530         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
6531         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
6532         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
6533         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
6534         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
6535         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
6536         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
6537         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
6538         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
6539         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
6540         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
6541         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
6542         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
6543         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
6544         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
6545         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
6546         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
6547         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
6548         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
6549         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
6550         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
6551         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
6552         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
6553         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
6554         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
6555         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
6556         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
6557         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
6558         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
6559         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
6560         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
6561         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
6562         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
6563         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
6564         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
6565         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
6566         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
6567         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
6568         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
6569         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
6570         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
6571         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
6572         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
6573         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
6574         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
6575         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
6576         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
6577         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
6578         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
6579         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
6580         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
6581         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
6582         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
6583         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
6584         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
6585         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
6586         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
6587         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
6588         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
6589         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
6590         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
6591         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
6592         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
6593         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
6594         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
6595         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
6596         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
6597
6598         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
6599         _XOPEN_SOURCE_EXTENDED for XPG4.
6600
6601         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
6602
6603         * Makeconfig (localtime): Remove variable.
6604         (inst_localtime-file): Likewise.
6605
6606 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
6607
6608         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
6609         Update.
6610         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
6611         Update.
6612         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
6613         Update.
6614         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
6615         Update.
6616         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
6617         Update.
6618         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
6619         Update.
6620         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
6621         Update.
6622         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
6623         Update.
6624         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
6625         Update.
6626
6627 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
6628
6629         [BZ #2550]
6630         [BZ #2570]
6631         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
6632         comparisons to determine direction to adjust input.
6633         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
6634         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
6635         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
6636         Likewise.
6637         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
6638         Likewise.
6639         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
6640         Likewise.
6641         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
6642         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
6643         Likewise.
6644         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
6645         Likewise.
6646         * math/libm-test.inc (nexttoward_test): Add more tests.
6647
6648 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
6649
6650         [BZ #14040]
6651         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
6652         in version GLIBC_2.1, not GLIBC_2.0.
6653         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
6654         Likewise.
6655
6656 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
6657
6658         [BZ #13942]
6659         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
6660         (1 - x) * (1 + x).
6661         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
6662         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
6663         * math/libm-test.inc (acos_test): Add more tests.
6664         (asin_test): Likewise.
6665         * sysdeps/i386/fpu/libm-test-ulps: Update.
6666         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6667
6668         [BZ #14034]
6669         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
6670         of square root.
6671         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
6672         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
6673         * math/libm-test.inc (acos_test_tonearest): New function.
6674         (acos_test_towardzero): Likewise.
6675         (acos_test_downward): Likewise.
6676         (acos_test_upward): Likewise.
6677         (asin_test_tonearest): Likewise.
6678         (asin_test_towardzero): Likewise.
6679         (asin_test_downward): Likewise.
6680         (asin_test_upward): Likewise.
6681         (main): Call the new functions.
6682         * sysdeps/i386/fpu/libm-test-ulps: Update.
6683         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6684
6685         [BZ #13884]
6686         [BZ #13924]
6687         * math/e_exp10.c: Include <float.h>.
6688         (__ieee754_exp10): Handle underflow here rather than multiplying
6689         large negative argument by M_LN10.
6690         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
6691         of __ieee754_expf.
6692         * math/e_exp10l.c: Include <float.h>.
6693         (__ieee754_exp10l): Handle underflow here rather than multiplying
6694         large negative argument by M_LN10l.
6695         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
6696         spurious overflow exception on underflow.
6697
6698 2012-04-29  Marek Polacek  <polacek@redhat.com>
6699
6700         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
6701         (__fortify_function): New macro.
6702         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
6703         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
6704         __extern_always_inline.
6705         * libio/bits/stdio2.h: Likewise.
6706         * libio/bits/stdio.h: Likewise.
6707         * string/string.h: Likewise.
6708         * string/bits/string3.h: Likewise.
6709         * include/stdio.h: Likewise.
6710         * stdlib/bits/stdlib.h: Likewise.
6711         * stdlib/stdlib.h: Likewise.
6712         * rt/bits/mqueue2.h: Likewise.
6713         * rt/mqueue.h: Likewise.
6714         * posix/bits/unistd.h: Likewise.
6715         * posix/unistd.h: Likewise.
6716         * io/bits/poll2.h: Likewise.
6717         * io/bits/fcntl2.h: Likewise.
6718         * io/fcntl.h: Likewise.
6719         * io/sys/poll.h: Likewise.
6720         * misc/bits/syslog.h: Likewise.
6721         * misc/bits/syslog-ldbl.h: Likewise.
6722         * misc/sys/syslog.h: Likewise.
6723         * socket/bits/socket2.h: Likewise.
6724         * socket/sys/socket.h: Likewise.
6725         * debug/tst-chk1.c: Likewise.
6726         * wcsmbs/bits/wchar2.h: Likewise.
6727         * wcsmbs/bits/wchar-ldbl.h: Likewise.
6728         * wcsmbs/wchar.h: Likewise.
6729
6730 2012-04-29  Andreas Jaeger  <aj@suse.de>
6731
6732         * Makerules (tests): Remove enable-check-abi protection.
6733         (check-abi-warn): Remove.
6734         (check-abi-%): Remove check-abi-warn usage.
6735
6736         * configure.in: Remove check-abi configure option.
6737         * configure: Regenerated.
6738         * config.make.in (enable-check-abi): Remove.
6739
6740 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
6741
6742         [BZ #14033]
6743         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
6744         double functions to double *_finite functions.
6745
6746         [BZ #13941]
6747         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
6748         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
6749         LDBL_MIN_EXP.
6750         * stdio-common/Makefile (tests): Add tst-sprintf3.
6751         * stdio-common/tst-sprintf3.c: New file.
6752
6753         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
6754         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
6755
6756 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
6757
6758         * conform/conformtest.pl: Remove duplicate typed-constant
6759         handling.
6760
6761 2012-04-28  David S. Miller  <davem@davemloft.net>
6762
6763         * Makerules (%.abilist): Add vpath on sysdep_dirs.
6764         (check-abi-%): Remove AWK script prerequisite and explicit
6765         abilist directory.
6766         (check-abi): Rewrite to just diff the symlist with the abilist.
6767         (config-tls, config-abi-config): Delete, no longer used.
6768         (update-abi-%): Remove AWK script and explicit abilist directory.
6769         (update-abi): Rewrite to simply compare and conditionally copy the
6770         symlist and the sysdep abilist file.  Remove update-abi-config
6771         checks.
6772         * abilist/ld.abilist: Remove.
6773         * abilist/libBrokenLocale.abilist: Remove.
6774         * abilist/libanl.abilist: Remove.
6775         * abilist/libcrypt.abilist: Remove.
6776         * abilist/libdl.abilist: Remove.
6777         * abilist/librt.abilist: Remove.
6778         * abilist/libthread_db.abilist: Remove.
6779         * abilist/libutil.abilist: Remove.
6780         * scripts/extract-abilist.awk: Remove.
6781         * scripts/merge-abilist.awk: Remove.
6782         * sysdeps/generic/libcidn.abilist: New file.
6783         * sysdeps/generic/libnss_compat.abilist: New file.
6784         * sysdeps/generic/libnss_db.abilist: New file.
6785         * sysdeps/generic/libnss_dns.abilist: New file.
6786         * sysdeps/generic/libnss_files.abilist: New file.
6787         * sysdeps/generic/libnss_hesiod.abilist: New file.
6788         * sysdeps/generic/libnss_nis.abilist: New file.
6789         * sysdeps/generic/libnss_nisplus.abilist: New file.
6790         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
6791         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
6792         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
6793         file.
6794         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
6795         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
6796         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
6797         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
6798         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
6799         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
6800         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
6801         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
6802         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
6803         file.
6804         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
6805         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
6806         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
6807         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
6808         file.
6809         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
6810         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
6811         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
6812         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
6813         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
6814         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
6815         file.
6816         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
6817         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
6818         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
6819         file.
6820         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
6821         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
6822         New file.
6823         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
6824         New file.
6825         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
6826         New file.
6827         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
6828         New file.
6829         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
6830         New file.
6831         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
6832         New file.
6833         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
6834         New file.
6835         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
6836         New file.
6837         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
6838         New file.
6839         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
6840         New file.
6841         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
6842         New file.
6843         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
6844         New file.
6845         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
6846         New file.
6847         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
6848         file.
6849         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
6850         New file.
6851         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
6852         New file.
6853         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
6854         file.
6855         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
6856         New file.
6857         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
6858         New file.
6859         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
6860         file.
6861         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
6862         New file.
6863         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
6864         New file.
6865         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
6866         New file.
6867         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
6868         New file.
6869         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
6870         New file.
6871         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
6872         New file.
6873         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
6874         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
6875         file.
6876         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
6877         New file.
6878         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
6879         file.
6880         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
6881         file.
6882         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
6883         file.
6884         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
6885         file.
6886         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
6887         file.
6888         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
6889         New file.
6890         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
6891         file.
6892         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
6893         file.
6894         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
6895         New file.
6896         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
6897         file.
6898         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
6899         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
6900         file.
6901         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
6902         New file.
6903         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
6904         file.
6905         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
6906         file.
6907         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
6908         file.
6909         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
6910         file.
6911         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
6912         file.
6913         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
6914         New file.
6915         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
6916         file.
6917         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
6918         file.
6919         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
6920         New file.
6921         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
6922         file.
6923         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
6924         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
6925         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
6926         file.
6927         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
6928         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
6929         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
6930         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
6931         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
6932         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
6933         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
6934         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
6935         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
6936         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
6937         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
6938         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
6939         file.
6940         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
6941         New file.
6942         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
6943         file.
6944         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
6945         file.
6946         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
6947         file.
6948         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
6949         file.
6950         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
6951         file.
6952         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
6953         New file.
6954         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
6955         New file.
6956         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
6957         file.
6958         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
6959         New file.
6960         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
6961         file.
6962         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
6963         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
6964         file.
6965         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
6966         New file.
6967         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
6968         file.
6969         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
6970         file.
6971         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
6972         file.
6973         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
6974         file.
6975         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
6976         file.
6977         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
6978         New file.
6979         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
6980         New file.
6981         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
6982         file.
6983         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
6984         New file.
6985         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
6986         file.
6987
6988 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
6989
6990         * conform/conformtest.pl: Fix typo in handling typed-constant from
6991         allow-header.
6992
6993 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
6994
6995         * README: Cut down references to pre-2.6 Linux kernels and
6996         Linuxthreads.  Update lists of configurations in libc and ports
6997         and sort alphabetically.  Say "or newer" with Linux kernel version
6998         requirements.
6999
7000         * config.h.in [IS_IN_build]: Allow compiling without optimization.
7001
7002 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
7003
7004         [BZ #887]
7005         * math/libm-test.inc (logb_test_downward): New test to expose
7006         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
7007         rounding mode.
7008
7009 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
7010
7011         [BZ #14027]
7012         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
7013         to be done.
7014         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
7015         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
7016
7017 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
7018
7019         * sysdeps/unix/i386/brk.S: Remove file.
7020         * sysdeps/unix/i386/dl-brk.S: Likewise.
7021         * sysdeps/unix/i386/pipe.S: Likewise.
7022         * sysdeps/unix/i386/sigreturn.S: Likewise.
7023         * sysdeps/unix/i386/syscall.S: Likewise.
7024         * sysdeps/unix/i386/vfork.S: Likewise.
7025         * sysdeps/unix/i386/wait.S: Likewise.
7026
7027         * sysdeps/unix/common/tcsendbrk.c: Move to ...
7028         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
7029
7030         * configure.in (arm*-none*): Do not allow without
7031         --enable-hacker-mode.
7032         (netbsd*): Remove case setting base_os.
7033         (386bsd*): Likewise.
7034         (freebsd*): Likewise.
7035         (bsdi*): Likewise.
7036         (osf*): Likewise.
7037         (sunos*): Likewise.
7038         (ultrix*): Likewise.
7039         (newsos*): Likewise.
7040         (dynix*): Likewise.
7041         (*bsd*): Likewise.
7042         (sysv*): Likewise.
7043         (isc*): Likewise.
7044         (esix*): Likewise.
7045         (sco*): Likewise.
7046         (minix*): Likewise.
7047         (irix4*): Likewise.
7048         (irix6*): Likewise.
7049         (solaris[2-9]*): Likewise.
7050         (none): Likewise.
7051         * configure: Regenerated.
7052
7053 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7054
7055         [BZ #11521]
7056         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
7057         overflow or cancellation in calculating denominator.
7058         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
7059         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
7060         down expression to avoid unexpected rounding in newer GCCs.
7061         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
7062
7063 2012-04-26  David S. Miller  <davem@davemloft.net>
7064
7065         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
7066         long-double compat symbols.
7067         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
7068         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
7069         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
7070         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
7071         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
7072         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
7073         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
7074         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
7075         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
7076         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
7077         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
7078         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
7079         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
7080
7081 2012-04-25  David S. Miller  <davem@davemloft.net>
7082
7083         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
7084         HWCAP_* values only after the memory barriers have been defined.
7085         (atomic_full_barrier): Define.
7086         (atomic_read_barrier): Define.
7087         (atomic_write_barrier): Define.
7088
7089 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
7090
7091         * shlib-versions: Add libgcc_s version information.
7092         * sysdeps/generic/libgcc_s.h: Remove.
7093         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
7094         libgcc_s.h.
7095         * sysdeps/gnu/unwind-resume.c: Likewise.
7096         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
7097
7098 2012-04-25  David S. Miller  <davem@davemloft.net>
7099
7100         * sysdeps/unix/sparc/brk.S: Delete.
7101         * sysdeps/unix/sparc/dl-brk.S: Delete.
7102         * sysdeps/unix/sparc/pipe.S: Delete.
7103         * sysdeps/unix/sparc/sysdep.S: Delete.
7104         * sysdeps/unix/sparc/sysdep.h: Delete.
7105         * sysdeps/unix/sparc/vfork.S: Delete.
7106         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
7107         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
7108         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
7109         ret_ERRVAL, r0, r1, MOVE): Define.
7110         (JUMPTARGET): Remove.
7111         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
7112         sysdeps/unix/sparc/sysdep.h
7113         (ENTRY, END): Remove.
7114         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
7115
7116 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
7117
7118         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
7119         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
7120         -DIS_IN_build.
7121
7122         * timezone/README: Update upstream location and email address for
7123         tzcode and tzdata.
7124         * timezone/zdump.c: Update from tzcode 2012b.
7125         * timezone/zic.c: Likewise.
7126
7127         * configure.in (libc_cv_as_needed): Remove test.
7128         * configure: Regenerated.
7129         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
7130         conditional definition.
7131         [$(have-as-needed) != yes] (no-as-needed): Likewise.
7132         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
7133         * config.make.in (have-as-needed): Remove variable.
7134
7135 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
7136             Paul Pluzhnikov  <ppluzhnikov@google.com>
7137
7138         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
7139         strings correctly.
7140
7141 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
7142
7143         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
7144         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
7145         * sysdeps/sh/strlen.S: Likewise.
7146
7147 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
7148
7149         * sysdeps/unix/fork.S: Remove file.
7150         * sysdeps/unix/i386/fork.S: Likewise.
7151         * sysdeps/unix/sparc/fork.S: Likewise.
7152
7153         * sysdeps/unix/system.c: Remove file.
7154         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
7155
7156         * sysdeps/unix/getegid.S: Remove file.
7157         * sysdeps/unix/geteuid.S: Likewise.
7158
7159 2012-04-24  Roland McGrath  <roland@hack.frob.com>
7160
7161         * scripts/check-localplt.awk: New file.
7162         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
7163         of diff.
7164         * scripts/data/localplt-generic.data: Add a comment.
7165
7166         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
7167         NODE when __dir_mkfile failed.
7168         * sysdeps/mach/hurd/symlinkat.c: Likewise.
7169         Reported by Ludovic Courtès <ludo@gnu.org>.
7170
7171 2012-04-24  Andreas Jaeger  <aj@suse.de>
7172
7173         * Makerules (common-clean): Also remove gen-as-const-headers
7174         files.
7175
7176 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
7177
7178         * Makerules (native-compile): Do not change working directory for
7179         build.  Use $(OUTPUT_OPTION) in command.
7180         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
7181
7182 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7183
7184         [BZ #13886]
7185         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
7186         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
7187         * math/libm-test.inc (floor_test): Add more tests.
7188         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
7189
7190 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
7191
7192         * sysdeps/unix/getdents.c: Remove file.
7193         * sysdeps/unix/sysv/getdents.c: Likewise.
7194         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
7195
7196         * sysdeps/unix/syscalls.list (madvise): Add syscall from
7197         sysdeps/unix/mman/syscalls.list.
7198         (mmap): Likewise.
7199         (mprotect): Likewise.
7200         (msync): Likewise.
7201         (munmap): Likewise.
7202         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
7203         * sysdeps/unix/mman/syscalls.list: Remove.
7204         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
7205
7206         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
7207         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
7208         * configure: Regenerated.
7209         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
7210         $(libgcc_s_suffix).
7211         * config.make.in (libgcc_s_suffix): Remove variable.
7212
7213 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
7214
7215         * sysdeps/unix/sysv/gethostname.c: Move to ...
7216         * sysdeps/posix/gethostname.c: ... here.
7217
7218         * sysdeps/unix/execve.S: Remove file.
7219
7220         * sysdeps/unix/_exit.S: Remove file.
7221
7222 2012-04-23  Andreas Jaeger  <aj@suse.de>
7223
7224         [BZ #13739]
7225         * manual/Makefile: Remove make dist support, there's no
7226         need for a stand-alone documentation tar ball.
7227         (TEXI2DVI): Define always, it's not in Makeconfig.
7228         (dist): Removed.
7229         (tar-it): Removed.
7230         (edition): Removed.
7231         (glibc-doc-$(edition).tar): Removed
7232         (%.Z): Removed.
7233         (%.gz): Removed.
7234         (%.uu): Removed.
7235         (ETAGS): Remove, it's in Makeconfig.
7236         (move-if-change): Remove, it's in Makeconfig.
7237
7238 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
7239
7240         [BZ #13970]
7241         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
7242         (strtod, strtof, strtold, strtol, strtoul, strtoq)
7243         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
7244         (strtod_l, strtof_l, strtold_l): Remove __wur.
7245         It is not necessarily an error to ignore strtol's return value.
7246         One can reliably look at the stored endptr to decide whether
7247         the number had valid syntax.
7248
7249 2012-04-21  Andreas Jaeger  <aj@suse.de>
7250
7251         [BZ #13739]
7252         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
7253
7254 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
7255
7256         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
7257         * sysdeps/unix/sysv/Versions: Remove file.
7258
7259 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
7260
7261         [BZ #13927]
7262         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7263
7264 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
7265
7266         [BZ #7064]
7267         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
7268         version from __vm86.
7269
7270 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
7271
7272         * sysdeps/unix/common/lxstat.c: Remove file.
7273         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
7274
7275         * sysdeps/unix/sysv/Makefile: Remove file.
7276
7277         * sysdeps/unix/sysv/direct.h: Remove file.
7278
7279         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
7280         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
7281         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
7282         * sysdeps/unix/sysv/bits/signum.h: Likewise.
7283         * sysdeps/unix/sysv/bits/stat.h: Likewise.
7284         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
7285         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
7286
7287         * sysdeps/unix/sysv/setrlimit.c: Remove file.
7288
7289         * sysdeps/unix/xmknod.c: Remove file.
7290         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
7291
7292         * sysdeps/unix/sysv/settimeofday.c: Remove file.
7293
7294         * sysdeps/unix/sysv/i386/time.S: Remove file.
7295
7296         * sysdeps/unix/fxstat.c: Remove file.
7297         * sysdeps/unix/xstat.c: Likewise.
7298         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
7299
7300         * sysdeps/unix/sysv/sigaction.c: Remove file.
7301
7302         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
7303         (sysdep_headers): Remove variable.
7304         [termio.h not in sysdep_headers] (generated): Likewise.
7305         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
7306         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
7307         * sysdeps/unix/sysv/tcdrain.c: Likewise.
7308         * sysdeps/unix/sysv/tcflow.c: Likewise.
7309         * sysdeps/unix/sysv/tcflush.c: Likewise.
7310         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
7311         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
7312         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
7313         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
7314         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
7315
7316         * sysdeps/unix/siglist.c: Remove file.
7317
7318         * sysdeps/unix/getppid.S: Remove file.
7319
7320         * sysdeps/unix/mkdir.c: Remove file.
7321         * sysdeps/unix/rmdir.c: Likewise.
7322
7323 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
7324
7325         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
7326         ERR_MAX value.
7327         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
7328         errlist-compat value.
7329
7330 2012-04-18  David S. Miller  <davem@davemloft.net>
7331
7332         * sysdeps/generic/memcopy.h (reg_char): Delete.
7333         * debug/strcat_chk.c: Use char, not reg_char.
7334         * debug/strcpy_chk.c: Likewise.
7335         * debug/strncat_chk.c: Likewise.
7336         * debug/strncpy_chk.c: Likewise.
7337         * string/memchr.c: Likewise.
7338         * string/memrchr.c: Likewise.
7339         * string/rawmemchr.c: Likewise.
7340         * string/strcat.c: Likewise.
7341         * string/strchr.c: Likewise.
7342         * string/strchrnul.c: Likewise.
7343         * string/strcmp.c: Likewise.
7344         * string/strcpy.c: Likewise.
7345         * string/strncat.c: Likewise.
7346         * string/strncmp.c: Likewise.
7347         * string/strncpy.c: Likewise.
7348
7349 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
7350
7351         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
7352         __builtin_memcopy is called when src and dest ranges are known to not
7353         overlap.
7354
7355 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
7356
7357         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
7358         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
7359         fwd_align_merge macro call.
7360         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
7361         bwd_align_merge macro call.
7362         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
7363
7364 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
7365
7366         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
7367         bwd_align_merge macros.
7368         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
7369         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
7370         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
7371
7372 2012-04-18  David S. Miller  <davem@davemloft.net>
7373
7374         * sysdeps/sparc/sparc64/memcopy.h: Delete.
7375
7376 2012-04-18  Andreas Jaeger  <aj@suse.de>
7377
7378         [BZ# 6794]
7379         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
7380         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
7381         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
7382
7383         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
7384         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
7385         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
7386
7387         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
7388         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
7389         Adjust for changed ldbl-128 files.
7390
7391         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
7392         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
7393         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
7394
7395 2012-04-17  David S. Miller  <davem@davemloft.net>
7396
7397         * sysdeps/sparc/sparc32/memcopy.h: Delete.
7398
7399 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
7400
7401         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
7402         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
7403         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
7404         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
7405         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
7406         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
7407
7408 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7409
7410         [BZ #6794]
7411         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
7412         * math/libm-test.inc: Add ilogb errno and exception tests.
7413         * math/w_ilogb.c: New file: ilogb wrapper.
7414         * math/w_ilogbf.c: New file: ilogbf wrapper.
7415         * math/w_ilogbl.c: New file: ilogbl wrapper.
7416         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
7417         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
7418         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
7419         exception being thrown with 0.0 as argument.
7420         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
7421         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
7422         exception being thrown with 0.0 as argument.
7423         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
7424         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
7425         exception being thrown with 0.0 as argument.
7426         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
7427         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
7428         exception being thrown with 0.0 as argument.
7429         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
7430         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
7431         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
7432         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
7433         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
7434         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
7435         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
7436         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
7437         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
7438
7439 2012-04-17  Petr Baudis  <pasky@ucw.cz>
7440
7441         * include/sys/uio.h: Change __vector to __iovec to avoid clash
7442         with altivec.
7443
7444 2012-04-16  Marek Polacek  <polacek@redhat.com>
7445
7446         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
7447
7448 2012-04-16  Marek Polacek  <polacek@redhat.com>
7449
7450         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
7451         operands of fdivp instruction.
7452
7453 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
7454
7455         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
7456         * elf/tst-auditmod3b.c: Likewise.
7457         * elf/tst-auditmod4b.c: Likewise.
7458         * elf/tst-auditmod5b.c: Likewise.
7459         * elf/tst-auditmod6b.c: Likewise.
7460         * elf/tst-auditmod6c.c: Likewise.
7461         * elf/tst-auditmod7b.c: Likewise.
7462         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
7463         * sysdeps/x86_64/preconfigure.in: Likewise.
7464         * sysdeps/x86_64/preconfigure: Regenerated.
7465
7466 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
7467
7468         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
7469         __ILP32__.
7470
7471 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
7472
7473         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
7474         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
7475
7476 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
7477
7478         [BZ #13973]
7479         * locale/iso-639.def: Fix gl language name. Spotted by
7480         Yaron Shahrabani.
7481
7482 2012-04-12  Roland McGrath  <roland@hack.frob.com>
7483
7484         [BZ #2074]
7485         * libio/libio.h (__io_write_fn): Update comment.
7486
7487 2012-04-12  Petr Baudis  <pasky@ucw.cz>
7488
7489         [BZ #2074]
7490         * stdio.texi (Hook Functions): The user provided writer function
7491         is not allowed to return -1.
7492
7493 2012-04-11  David S. Miller  <davem@davemloft.net>
7494
7495         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7496
7497 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
7498
7499         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
7500         Add a leading slash to rtkaio.
7501
7502 2012-04-11  Jim Meyering  <meyering@redhat.com>
7503
7504         [BZ #11959]
7505         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
7506         It is not necessarily an error to ignore fwrite's return
7507         value.  One can reliably use ferror to test for errors after
7508         the fact.
7509
7510 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
7511
7512         * bits/types.h (__snseconds_t): New type.
7513         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
7514
7515         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
7516         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
7517         (__SNSECONDS_T_TYPE): Likewise.
7518         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
7519         (__SNSECONDS_T_TYPE): Likewise.
7520         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
7521         (__SNSECONDS_T_TYPE): Likewise.
7522
7523 2012-04-10  Andreas Jaeger  <aj@suse.de>
7524
7525         [BZ #2636]
7526         * manual/time.texi (Processor Time): Return type of times is
7527         elapsed real time since an arbitrary point in the past.
7528         (CPU Time): Move CLK_TCK from here...
7529         (Processor Time): ...to here.  Correct description.
7530         * manual/conf.texi (Constants for Sysconf): Correct description of
7531         _SC_CLK_TCK.
7532
7533 2012-04-10  David S. Miller  <davem@davemloft.net>
7534
7535         [BZ #13967]
7536         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
7537         where the is a gap between DT_REL(A) and DT_JMPREL.
7538
7539 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
7540
7541         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
7542         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
7543         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
7544
7545 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
7546
7547         * elf/dl-support.c (_dl_inhibit_cache): New variable.
7548         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
7549         (dl_main): Handle --inhibit-cache.
7550         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
7551         _dl_inhibit_cache.
7552         * elf/dl-load.c (_dl_map_object): Use it.
7553         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
7554
7555 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
7556
7557         [BZ #13872]
7558         * sysdeps/i386/fpu/e_powl.S (p78): New object.
7559         (__ieee754_powl): Saturate large exponents rather than testing for
7560         overflow of y*log2(x).
7561         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
7562         * math/libm-test.inc (pow_test): Do not permit spurious overflow
7563         exceptions.
7564
7565         [BZ #11521]
7566         * math/s_ctan.c: Include <float.h>.
7567         (__ctan): Avoid internal overflow or cancellation in calculating
7568         denominator.
7569         * math/s_ctanf.c: Likewise.
7570         * math/s_ctanl.c: Likewise.
7571         * math/s_ctanh.c: Likewise.
7572         * math/s_ctanhf.c: Likewise.
7573         * math/s_ctanhl.c: Likewise.
7574         * math/libm-test.inc (ctan_test): Add more tests.
7575         (ctanh_test): Likewise.
7576         * sysdeps/i386/fpu/libm-test-ulps: Update.
7577         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7578
7579 2012-04-09  Andreas Jaeger  <aj@suse.de>
7580
7581         [BZ #6894]
7582         * manual/filesys.texi (Directory Entries): Mention that d_namlen
7583         is an optional BSD extension.
7584
7585         [BZ #10254]
7586         * manual/stdio.texi (Opening Streams): Document additional fopen
7587         parameters.
7588
7589 2012-04-09  Roland McGrath  <roland@hack.frob.com>
7590
7591         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
7592         %eax without telling the compiler.
7593
7594 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
7595
7596         [BZ # 13963]
7597         * manual/install.texi: Use sourceware.org.
7598
7599 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
7600
7601         [BZ #13873]
7602         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
7603         (__ieee754_pow): Generate overflow and underflow using huge*huge
7604         and tiny*tiny rather than just returning constant infinity or zero
7605         for large exponents.
7606         * math/libm-test.inc (pow_test): Require overflow exceptions for
7607         applicable cases of large exponents.
7608
7609         [BZ #706]
7610         * sysdeps/i386/fpu/e_pow.S (p10): New object.
7611         (__ieee754_pow): Use iterative multiplication algorithm only for
7612         integer exponents with absolute value below 1024.  Check for odd
7613         integer exponents when using algorithm for real exponents.
7614         * math/libm-test.inc (pow_test): Add more tests.
7615         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7616
7617 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
7618
7619         [BZ #13705]
7620         * math/libm-test.inc (exp_test): Do not allow overflow exception
7621         on underflow test.
7622
7623 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
7624
7625         [BZ #13705]
7626         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
7627         instead of __kernel_standard_f.
7628
7629 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
7630
7631         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
7632         * sysdeps/x86_64/memset_chk.S: Likewise.
7633
7634 2012-04-08  Andreas Jaeger  <aj@suse.de>
7635
7636         [BZ #10153]
7637         * manual/startup.texi (Environment Access): Describe return value
7638         for putenv and setenv.
7639
7640         [BZ #6895]
7641         * manual/filesys.texi (Directory Entries): Add description for
7642         DT_LNK.
7643
7644         [BZ #6890]
7645         * manual/filesys.texi (Directory Entries): Clarify that it's file
7646         system not operating system in the description of DT_UNKNOWN.
7647
7648         [BZ #6578]
7649         * manual/syslog.texi (closelog): Fix reference, it's openlog.
7650
7651 2012-04-08  Stephen Compall  <s11@member.fsf.org>
7652
7653         [BZ #6649]
7654         * manual/llio.texi (Opening and Closing Files): Add cross
7655         reference to explain mode argument.
7656
7657 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
7658
7659         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
7660         * sysdeps/x86_64/memset_chk.S: Likewise.
7661
7662 2012-04-07  David S. Miller  <davem@davemloft.net>
7663
7664         * elf/elf.h (R_SPARC_WDISP10): Define.
7665         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
7666         R_SPARC_SIZE32.
7667         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
7668         R_SPARC_SIZE64 and R_SPARC_H34.
7669
7670 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
7671
7672         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
7673         conditions and remove no longer applicable assertion.
7674
7675 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
7676
7677         * bits/byteswap.h: Include <features.h>.
7678         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
7679         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
7680
7681 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
7682
7683         * bits/byteswap.h (__bswap_16): Removed.
7684         Include <bits/byteswap-16.h> to get __bswap_16.
7685         * sysdeps/i386/bits/byteswap.h: Likewise.
7686         * sysdeps/s390/bits/byteswap.h: Likewise.
7687         * sysdeps/x86_64/bits/byteswap.h: Likewise.
7688         * bits/byteswap-16.h: New file.
7689         * sysdeps/i386/bits/byteswap-16.h: Likewise.
7690         * sysdeps/s390/bits/byteswap-16.h: Likewise.
7691         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
7692         * string/Makefile (headers): Add bits/byteswap-16.h.
7693
7694 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
7695
7696         [BZ #13895]
7697         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
7698         extra indirection.
7699         * nss/Makefile (tests-static, tests): Add tst-nss-static.
7700         * nss/tst-nss-static.c: New.
7701
7702 2012-04-06  Robert Millan  <rmh@gnu.org>
7703
7704         [BZ #6486]
7705         * manual/llio.texi (File Position Primitive): lseek
7706         refers to WHENCE when it really means OFFSET.
7707
7708 2012-04-06  Andreas Jaeger  <aj@suse.de>
7709
7710         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
7711         strncmp declarations.
7712
7713         * abilist/libc.abilist: Add __poll and __ppoll.
7714
7715 2012-04-05  David S. Miller  <davem@davemloft.net>
7716
7717         * scripts/check-local-headers.sh: Accept a host triplet in the
7718         path matched by the exclude regexp.
7719
7720         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
7721         definition.
7722         * sysdeps/powerpc/powerpc32/dl-machine.h
7723         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
7724         * sysdeps/s390/s390-32/dl-machine.h
7725         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
7726         * sysdeps/sparc/sparc32/dl-machine.h
7727         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
7728         * sysdeps/sparc/sparc64/dl-machine.h
7729         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
7730
7731         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
7732         lazy binding.
7733         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
7734         undefined symbol errors.
7735
7736         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
7737         DT_NEEDED entries.
7738
7739 2012-04-05  Michael Matz  <matz@suse.de>
7740
7741         [BZ #13592]
7742         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
7743
7744 2012-04-05  Andreas Jaeger  <aj@suse.de>
7745
7746         [BZ #13908]
7747         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
7748         comment.
7749
7750 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
7751
7752         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
7753         which ROUND is no valid rounding mode.
7754
7755 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
7756
7757         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
7758         read again.
7759         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
7760
7761 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
7762
7763         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
7764         an exception using FPU order intentionally.
7765
7766 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
7767
7768         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
7769         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
7770         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
7771         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
7772
7773 2012-04-05  Simon Josefsson  <simon@josefsson.org>
7774
7775         [BZ #12340]
7776         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
7777         EINVAL when BUFLEN is too smal.
7778
7779 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
7780
7781         [BZ #13553]
7782         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
7783         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
7784
7785 2012-04-03  Andreas Jaeger  <aj@suse.de>
7786
7787         [BZ #13938]
7788         * manual/setjmp.texi (System V contexts): Fix sentence.
7789
7790         [BZ #13926]
7791         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
7792         New macro for this case.
7793         [!__GNUC__] (__bswap_64): New inline function for this case.
7794         * sysdeps/x86_64/bits/byteswap.h: Likewise.
7795         * bits/byteswap.h: Likewise.
7796         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
7797         ull, guard with __GLIBC_HAVE_LONG_LONG.
7798
7799         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
7800         __GLIBC_HAVE_LONG_LONG.
7801
7802         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
7803         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
7804
7805 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
7806
7807         [BZ #13691]
7808         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
7809         inptr and inend, rather than using last_ch.
7810
7811 2012-04-02  David S. Miller  <davem@davemloft.net>
7812
7813         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
7814         * stdio-common/printf-parse.h (read_int): Change return type to
7815         'int', return -1 on INT_MAX overflow.
7816         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
7817         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
7818         overflows INT_MAX.  Check for overflow of in-format-string precision
7819         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
7820         SIZE_MAX not INT_MAX for integer overflow test.
7821         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
7822         skip the construct in the format string but do not record anything.
7823         * stdio-common/bug22.c: Adjust to test both width/prevision
7824         INT_MAX overflow as well as total length INT_MAX overflow.  Check
7825         explicitly for proper errno values.
7826
7827 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
7828
7829         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
7830         CHAR_MAX.
7831         * string/test-strcmp.c [! WIDE]: Likewise.
7832         * time/tst-mktime2.c: Likewise for INT_MAX.
7833         * string/test-string.h: #include <sys/param.h> for MIN.
7834
7835         * csu/init-first.c (__libc_init_first): Call __ctype_init.
7836         * sysdeps/i386/init-first.c (init): Likewise.
7837         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
7838         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
7839         * sysdeps/sh/init-first.c (init): Likewise.
7840
7841 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
7842
7843         * po/ru.po: Update from translation team.
7844         * po/vi.po: Likewise.
7845
7846 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
7847
7848         * resolv/nss_dns/dns-host.c: Merge copyright years.
7849
7850 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7851
7852         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
7853         Optimize memcpy with prefetch if
7854         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
7855         src, dst pointers have unequal 16 byte alignments.
7856
7857 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
7858
7859         [BZ #13928]
7860         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
7861         from a CNAME entry and return the minimum ttl for the query.
7862         (gaih_getanswer_slice): Likewise.
7863
7864 2012-03-30  Jeff Law  <law@redhat.com>
7865
7866         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
7867         due to long keys.
7868         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
7869         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
7870
7871         * resolv/nss_dns/dns-host.c: Update copyright year.
7872
7873 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
7874
7875         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
7876         requests to save a system call.  Fix check that all bytes are sent.
7877
7878         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
7879         comments for sendmmsg.
7880
7881 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
7882
7883         [BZ #13691]
7884         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
7885         with only 1 character between 0x0041 and 0x01b0.
7886         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
7887         * wcsmbs/tst-mbsnrtowcs.c: New file.
7888
7889 2012-03-29  David S. Miller  <davem@davemloft.net>
7890
7891         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
7892         small copies by hand.
7893
7894 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
7895
7896         [BZ #13761]
7897         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
7898         _nss_compat_initgroups_dyn): Fall back to malloc/free
7899         for large group memberships.
7900
7901 2012-03-28  David S. Miller  <davem@davemloft.net>
7902
7903         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
7904         that branches into memcpy.
7905         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
7906         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
7907         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
7908         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
7909         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
7910         bits.
7911         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
7912         implementation too.
7913         * sysdeps/sparc/mempcpy.S: New file.
7914
7915         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
7916         the IFUNC routine in the libc case.
7917         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
7918
7919         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
7920         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
7921         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
7922         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
7923         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
7924         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
7925         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
7926         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
7927
7928         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
7929         loop to 256 bytes instead of 64 bytes and fix test signedness.
7930
7931         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
7932         * sysdeps/sparc/sparc32/Makefile: rather than here...
7933         * sysdeps/sparc/sparc64/Makefile: and here.
7934
7935 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
7936
7937         * malloc/mallocbug.c: Avoid warnings about unused variables.
7938
7939 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
7940
7941         [BZ #13760]
7942         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
7943         in the right place. Discard and retry query if response is
7944         larger than input buffer size.
7945
7946 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
7947
7948         [BZ #369]
7949         [BZ #2678]
7950         [BZ #3866]
7951         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
7952         x for large integer exponent.
7953         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
7954         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
7955         sign of result as needed afterwards.
7956         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
7957         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
7958         result for underflowing pow the same as for overflow.
7959         (__kernel_standard_l): Handle powl overflow and underflow here
7960         rather than calling __kernel_standard.
7961         * math/libm-test.inc (pow_test): Add more tests.
7962
7963         [BZ #3868]
7964         [BZ #13879]
7965         [BZ #13910]
7966         [BZ #13911]
7967         [BZ #13912]
7968         [BZ #13913]
7969         [BZ #13915]
7970         [BZ #13916]
7971         [BZ #13917]
7972         [BZ #13918]
7973         [BZ #13919]
7974         [BZ #13920]
7975         [BZ #13921]
7976         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
7977         * sysdeps/ieee754/k_standard.c: Include <float.h>.
7978         (__kernel_standard_l): New function.
7979         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
7980         __kernel_standard.
7981         * math/w_acosl.c (__acosl): Likewise.
7982         * math/w_asinl.c (__asinl): Likewise.
7983         * math/w_atan2l.c (__atan2l): Likewise.
7984         * math/w_atanhl.c (__atanhl): Likewise.
7985         * math/w_coshl.c (__coshl): Likewise.
7986         * math/w_exp10l.c (__exp10l): Likewise.
7987         * math/w_exp2l.c (__exp2l): Likewise.
7988         * math/w_fmodl.c (__fmodl): Likewise.
7989         * math/w_hypotl.c (__hypotl): Likewise.
7990         * math/w_j0l.c (__j0l, __y0l): Likewise.
7991         * math/w_j1l.c (__j1l, __y1l): Likewise.
7992         * math/w_jnl.c (__jnl, __ynl): Likewise.
7993         * math/w_lgammal.c (__lgammal): Likewise.
7994         * math/w_log10l.c (__log10l): Likewise.
7995         * math/w_log2l.c (__log2l): Likewise.
7996         * math/w_logl.c (__logl): Likewise.
7997         * math/w_powl.c (__powl): Likewise.
7998         * math/w_remainderl.c (__remainderl): Likewise.
7999         * math/w_scalbl.c (sysv_scalbl): Likewise.
8000         * math/w_sinhl.c (__sinhl): Likewise.
8001         * math/w_sqrtl.c (__sqrtl): Likewise.
8002         * math/w_tgammal.c (__tgammal): Likewise.
8003         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
8004         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
8005         * math/libm-test.inc (acos_test): Add more tests.
8006         (acosh_test): Likewise.
8007         (asin_test): Likewise.
8008         (atanh_test): Likewise.
8009         (exp_test): Likewise.
8010         (exp10_test): Likewise.
8011         (exp2_test): Likewise.
8012         (expm1_test): Likewise.
8013         (lgamma_test): Likewise.
8014         (log_test): Likewise.
8015         (log10_test): Likewise.
8016         (log1p_test): Likewise.
8017         (log2_test): Likewise.
8018         (pow_test): Do not allow some spurious overflow exceptions.
8019         (sqrt_test): Add more tests.
8020         (tgamma_test): Likewise.
8021         (y0_test): Likewise.
8022         (y1_test): Likewise.
8023         (yn_test): Likewise.
8024
8025 2012-03-27  Anton Blanchard  <anton@samba.org>
8026
8027         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
8028         MAP_HUGETLB.
8029         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
8030         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
8031         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
8032
8033 2012-03-27  David S. Miller  <davem@davemloft.net>
8034
8035         * conform/Makefile: Run run-conformtest.sh using $(BASH).
8036
8037         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
8038         have-as-vis3 check.
8039
8040 2012-03-27  Andreas Jaeger  <aj@suse.de>
8041
8042         * sysdeps/x86_64/elf/configure.in: Moved to ...
8043         * sysdeps/x86_64/configure.in: ... here.
8044         * sysdeps/x86_64/elf/start.S: Moved to ...
8045         * sysdeps/x86_64/start.S: ... here.
8046         * sysdeps/x86_64/elf/configure: Delete.
8047
8048         * sysdeps/x86_64/configure.in: Merge contents from
8049         sysdeps/i386/configure.in (without i686 check).
8050
8051         * sysdeps/i386/elf/Versions: Merge into ...
8052         * sysdeps/i386/Versions: ... this.
8053         * sysdeps/i386/elf/Versions: Delete file.
8054         * sysdeps/i386/elf/start.S: Moved to ...
8055         * sysdeps/i386/start.S: ...here.
8056         * sysdeps/i386/elf/configure.in: Merge into...
8057         * sysdeps/i386/configure.in: ...here.
8058         * sysdeps/i386/elf/configure.in: Delete file.
8059         * sysdeps/i386/elf/configure: Delete file.
8060
8061         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
8062         * debug/backtracesyms.c: ... here.
8063         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
8064         * debug/backtracesymsfd.c: ... here.
8065         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
8066         * sysdeps/generic/ifunc-sel.h: ... here.
8067
8068         * sysdeps/unix/i386/start.c: Delete file.
8069         * sysdeps/unix/sparc/start.c: Delete file.
8070         * sysdeps/unix/start.c: Delete file.
8071
8072         * sysdeps/sh/elf/configure.in: Moved to ...
8073         * sysdeps/sh/configure.in: ... here.
8074         * sysdeps/sh/elf/start.S: Moved to ...
8075         * sysdeps/sh/start.S: ... here.
8076         * sysdeps/sh/elf/configure: Delete file.
8077
8078         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
8079         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
8080         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
8081         * sysdeps/powerpc/powerpc64/entry.h: ... here.
8082         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
8083         * sysdeps/powerpc/powerpc64/start.S: here.
8084         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
8085         * sysdeps/powerpc/powerpc64/Makefile: ... this.
8086         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
8087         * sysdeps/powerpc/powerpc64/configure.in: ... this.
8088         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
8089
8090         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
8091         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
8092         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
8093         * sysdeps/powerpc/powerpc32/start.S: ... here.
8094         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
8095         * sysdeps/powerpc/powerpc32/configure.in: ... this.
8096         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
8097
8098         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
8099         * sysdeps/powerpc/ifunc-sel.h: ... here.
8100         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
8101         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
8102
8103         * sysdeps/sparc/elf/configure.in: Moved to ...
8104         * sysdeps/sparc/configure.in: ... here.
8105         * sysdeps/sparc/elf/configure: Delete file.
8106         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
8107         * sysdeps/sparc/sparc32/start.S: ... here.
8108         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
8109         * sysdeps/sparc/sparc64/start.S: ... here.
8110         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
8111         * sysdeps/sparc/sparc32/Makefile: ... this.
8112         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
8113         * sysdeps/sparc/sparc64/Makefile: ... this.
8114
8115         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
8116         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
8117         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
8118         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
8119         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
8120         * sysdeps/s390/s390-32/setjmp.S: ... here.
8121         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
8122         * sysdeps/s390/s390-32/configure.in: ... here.
8123         * sysdeps/s390/s390-32/elf/configure: Delete file.
8124         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
8125         * sysdeps/s390/s390-32/start.S: ... here.
8126
8127         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
8128         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
8129         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
8130         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
8131         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
8132         * sysdeps/s390/s390-64/setjmp.S: ... here.
8133         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
8134         * sysdeps/s390/s390-64/configure.in: ... here
8135         * sysdeps/s390/s390-64/elf/configure: Delete file.
8136         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
8137         * sysdeps/s390/s390-64/start.S: ... here.
8138         * sysdeps/s390/s390-64/elf/configure: Delete.
8139
8140         * configure.in: Remove support for elf directories in sysdeps.
8141
8142         * configure: Regenerated.
8143         * sysdeps/i386/configure: Regenerated.
8144         * sysdeps/powerpc/powerpc32/configure: Regenerated.
8145         * sysdeps/powerpc/powerpc64/configure: Regenerated.
8146         * sysdeps/s390/s390-32/configure: Regenerated.
8147         * sysdeps/s390/s390-64/configure: Regenerated.
8148         * sysdeps/sh/configure: Regenerated.
8149         * sysdeps/sparc/configure: Regenerated.
8150         * sysdeps/x86_64/configure: Regenerated.
8151
8152 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
8153
8154         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8155
8156         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
8157         denormal result into account.
8158
8159 2012-03-25  Roland McGrath  <roland@hack.frob.com>
8160
8161         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
8162         Reported by Allan McRae <allan@archlinux.org>.
8163
8164 2012-03-23  Jeff Law  <law@redhat.com>
8165
8166         * nss/getnssent.c (__nss_getent): Fix typo.
8167
8168 2012-03-23  David S. Miller  <davem@davemloft.net>
8169
8170         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8171
8172 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
8173
8174         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
8175         to pad to uint64_t for each field.
8176         (dl_tls_index): Replace unsigned long with uint64_t.
8177
8178 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
8179         Paul Pluzhnikov  <ppluzhnikov@google.com>
8180
8181         [BZ #6528]
8182         * grp/Makefile (otherlibs): Don't set it.
8183         * inet/Makefile (otherlibs): Likewise.
8184         * login/Makefile (otherlibs): Likewise.
8185         * nscd/Makefile (otherlibs): Likewise.
8186         * posix/Makefile (otherlibs): Likewise.
8187         * pwd/Makefile (otherlibs): Likewise.
8188         * rt/Makefile (otherlibs): Likewise.
8189         * sunrpc/Makefile (otherlibs): Likewise.
8190         * nss/Makefile (otherlibs): Likewise.
8191         Add libnss_files to routines and static-only-routines.
8192         ($(objpfx)getent): Remove rule.
8193         * resolv/Makefile: Add libnss_dns and libresolv to routines and
8194         static-only-routines.
8195
8196 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
8197
8198         [BZ #13892]
8199         * math/s_cexp.c: Include <float.h>.
8200         (__cexp): Handle exp result overflowing not necessarily
8201         overflowing both real and imaginary parts of result.
8202         * math/s_cexpf.c: Likewise.
8203         * math/s_cexpl.c: Likewise.
8204         * math/libm-test.inc (cexp_test): Add more tests.
8205         * sysdeps/i386/fpu/libm-test-ulps: Update.
8206         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8207
8208 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
8209
8210         * include/link.h (ELFW): New macro.
8211         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
8212         Replace ELF64_R_TYPE with ELFW(R_TYPE).
8213
8214 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
8215
8216         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
8217         with uint64_t.
8218
8219 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
8220
8221         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
8222         declaration.
8223         (struct La_x32_retval): Likewise.
8224
8225 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
8226
8227         * sysdeps/x86_64/preconfigure.in: New file.
8228         * sysdeps/x86_64/preconfigure: New generated file.
8229
8230 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
8231
8232         [BZ #13824]
8233         * math/e_exp2l.c: Include <float.h>.
8234         (__ieee754_exp2l): Handle overflow and underflow cases
8235         separately.  Only pass fractional part of argument to
8236         __ieee754_expl.
8237         * math/libm-test.inc (exp2_test): Add more tests.
8238
8239         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
8240         negating x to take absolute value.
8241         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
8242         Likewise.
8243         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
8244         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
8245         Likewise.
8246         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
8247         computing low part if x was negated.
8248         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
8249
8250 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
8251
8252         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
8253         la_x32_gnu_pltexit.
8254         (pltexit): Cast int_retval to ptrdiff_t.
8255         * elf/tst-auditmod3b.c: Likewise.
8256         * elf/tst-auditmod4b.c: Likewise.
8257         * elf/tst-auditmod5b.c: Likewise.
8258         * elf/tst-auditmod6b.c: Likewise.
8259         * elf/tst-auditmod6c.c: Likewise.
8260         * elf/tst-auditmod7b.c: Likewise.
8261
8262         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
8263         and x32_gnu_pltexit.
8264
8265         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
8266         __ELF_NATIVE_CLASS.
8267         (La_x32_regs): New macro.
8268         (La_x32_retval): Likewise.
8269         (la_x32_gnu_pltenter): New function prototype.
8270         (la_x32_gnu_pltexit): Likewise.
8271
8272 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
8273
8274         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
8275         exponent.
8276
8277         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8278
8279         * configure.in (libc_cv_cc_nofma): Check for option to disable
8280         generation of FMA instructions.
8281         * configure: Regenerate.
8282         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
8283         * sysdeps/ieee754/dbl-64/Makefile: New file.
8284         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
8285         Remove brandred-fma4.
8286         (CFLAGS-brandred-fma4.c): Remove.
8287         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
8288         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
8289         define.
8290         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
8291         define.
8292
8293 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
8294
8295         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
8296         LLONG_MAX != LONG_MAX.
8297         (_itoa_word): Use _ITOA_WORD_TYPE on value.
8298         (_fitoa_word): Likewise.
8299         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
8300         LLONG_MAX != LONG_MAX.
8301         * stdio-common/_itowa.h: Include <_itoa.h>.
8302         (_itowa_word): Use _ITOA_WORD_TYPE on value.
8303         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
8304         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
8305         only if not defined.
8306         (_ITOA_WORD_TYPE): Likewise.
8307         (_itoa_word): Use _ITOA_WORD_TYPE on value.
8308         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
8309
8310 2012-03-21  David S. Miller  <davem@davemloft.net>
8311
8312         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8313
8314 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
8315
8316         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
8317         of x86_64 when setting libc_cv_slibdir, libdir and
8318         libc_cv_localedir.
8319         * sysdeps/unix/sysv/linux/configure: Regenerated.
8320
8321 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
8322
8323         * manual/lang.texi (Old Varargs): Remove section.
8324         (How Variadic): Update menu.
8325         (va_start): Do not mention varargs.h.
8326
8327 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
8328             Joseph Myers  <joseph@codesourcery.com>
8329
8330         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
8331         link test.
8332         * configure: Regenerated.
8333
8334 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
8335
8336         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
8337         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
8338         conformtest.pl
8339
8340 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
8341
8342         * NOTES: Remove.
8343         * Makefile (files-for-dist): Remove NOTES.
8344         (NOTES): Remove rule.
8345         * README: Don't refer to NOTES.
8346         * manual/creature.texi: Don't include macros.texi.
8347         * manual/intro.texi (creature.texi): Remove comment referring to
8348         NOTES.
8349
8350         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
8351         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
8352         * configure: Regenerated.
8353         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
8354         LIBC_TRY_CC_OPTION.
8355         (libc_cv_as_i686): Likewise.
8356         (libc_cv_cc_avx): Likewise.
8357         (libc_cv_cc_sse2avx): Likewise.
8358         (libc_cv_cc_fma4): Likewise.
8359         (libc_cv_cc_novzeroupper): Likewise.
8360         * sysdeps/i386/configure: Regenerated.
8361
8362         [BZ #13883]
8363         * sysdeps/i386/fpu/s_cexp.S: Remove.
8364         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
8365         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
8366         * math/libm-test.inc (cexp_test): Add more tests.
8367         * sysdeps/i386/fpu/libm-test-ulps: Update.
8368         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8369
8370 2012-03-21  Allan McRae  <allan@archlinux.org>
8371
8372         * timezone/Makefile: Do not install iso3166.tab and zone.tab
8373
8374 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
8375
8376         [BZ #13871]
8377         * math/w_exp2.c: Do not include <float.h>.
8378         (o_threshold, u_threshold): Remove.
8379         (__exp2): Calculate result before checking finiteness and calling
8380         __kernel_standard.
8381         * math/w_exp2f.c: Likewise.
8382         * math/w_exp2l.c: Likewise.
8383         * math/libm-test.inc (exp2_test): Require overflow exception for
8384         1e6 input.
8385
8386         [BZ #3866]
8387         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
8388         range of signed 64-bit integers before using fistpll.  Remove
8389         checks for whether integers fit in mantissa bits.
8390         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
8391         the range of signed 32-bit integers before using fistpl.  Remove
8392         checks for whether integers fit in mantissa bits.
8393         * sysdeps/i386/fpu/e_powl.S (p64): New object.
8394         (__ieee754_powl): Test for y outside the range of signed 64-bit
8395         integers before using fistpll.  Reduce 64-bit values to 63-bit
8396         ones as needed.
8397         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
8398         divide-by-zero is raised for zero to large negative powers.
8399         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
8400         (__ieee754_powl): Test for y outside the range of signed 64-bit
8401         integers before using fistpll.  Reduce 64-bit values to 63-bit
8402         ones as needed.
8403         * math/libm-test.inc (pow_test): Add more tests.
8404
8405 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
8406
8407         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
8408         <stdio-common/_itoa.h>.
8409         * debug/segfault.c: Likewise.
8410         * elf/dl-cache.c: Likewise.
8411         * elf/dl-minimal.c: Likewise.
8412         * elf/dl-misc.c: Likewise.
8413         * elf/dl-sysdep.c: Likewise.
8414         * elf/dl-version.c: Likewise.
8415         * elf/rtld.c: Likewise.
8416         * hurd/hurdsock.c: Likewise.
8417         * hurd/lookup-retry.c: Likewise.
8418         * malloc/malloc.c: Likewise.
8419         * malloc/mtrace.c: Likewise.
8420         * nscd/nscd_getgr_r.c: Likewise.
8421         * nscd/nscd_getpw_r.c: Likewise.
8422         * nscd/nscd_getserv_r.c: Likewise.
8423         * posix/getopt_init.c: Likewise.
8424         * posix/wordexp.c: Likewise.
8425         * stdio-common/_itoa.c: Likewise.
8426         * stdio-common/printf_fphex.c: Likewise.
8427         * stdio-common/vfprintf.c: Likewise.
8428         * string/_strerror.c: Likewise.
8429         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
8430         * sysdeps/i386/i686/hp-timing.h: Likewise.
8431         * sysdeps/mach/_strerror.c: Likewise.
8432         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
8433         * sysdeps/mach/hurd/sethostid.c: Likewise.
8434         * sysdeps/mach/hurd/xmknodat.c: Likewise.
8435         * sysdeps/mach/xpg-strerror.c: Likewise.
8436         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
8437         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
8438         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
8439         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
8440         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
8441         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
8442         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
8443         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
8444         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
8445         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
8446         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
8447         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
8448         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
8449         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
8450         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
8451         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
8452         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
8453         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
8454         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
8455         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
8456         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
8457
8458         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
8459
8460         * stdio-common/_itoa.h: Moved to ...
8461         * sysdeps/generic/_itoa.h: Here.
8462
8463         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
8464
8465         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
8466         instead of "_itoa.h" and "_itowa.h".
8467         * stdio-common/vfprintf.: Likewise.
8468
8469 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
8470
8471         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
8472         <bits/wordsize.h>.
8473         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
8474         (__signbit): Likwise.
8475         (llrintf): Likwise.
8476         (llrint): Likwise.
8477
8478 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
8479
8480         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
8481         __WORDSIZE != 64.
8482
8483 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
8484
8485         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
8486         OVERFLOW_EXCEPTION_OK.
8487         * math/libm-test.inc ("Philosophy"): Update comment about
8488         exception testing.
8489         (OVERFLOW_EXCEPTION): Define.
8490         (OVERFLOW_EXCEPTION_OK): Likewise.
8491         (INVALID_EXCEPTION_OK): Renumber.
8492         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
8493         (IGNORE_ZERO_INF_SIGN): Likewise.
8494         (test_exceptions): Handle FE_OVERFLOW.
8495         (exp10_test): Expect overflow exceptions.
8496         (exp2_test): Likewise.
8497         (expm1_test): Likewise.
8498         (nextafter_test): Likewise.
8499         (pow_test): Likewise.
8500         (scalbn_test): Likewise.
8501         (scalbln_test): Likewise.
8502
8503 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
8504
8505         * sysdeps/x86_64/bits/atomic.h
8506         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
8507         64bit integer.
8508         (atomic_exchange_acq): Likewise.
8509         (__arch_exchange_and_add_body): Likewise.
8510         (__arch_add_body): Likewise.
8511         (atomic_add_negative): Likewise.
8512         (atomic_add_zero): Likewise.
8513
8514 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
8515
8516         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
8517         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
8518
8519 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
8520
8521         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
8522         Check __x86_64__ instead of __WORDSIZE.
8523
8524 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
8525
8526         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
8527
8528 2012-03-19  David S. Miller  <davem@davemloft.net>
8529
8530         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8531
8532         * sysdeps/sparc/fpu/fenv_private.h: New file.
8533         * sysdeps/sparc/fpu/math_private.h: Use it.
8534         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
8535         Remove.
8536         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
8537         (libc_feholdexcept_setroundl): Remove.
8538         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
8539         Remove.
8540         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
8541         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
8542
8543 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
8544
8545         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
8546         int64_t instead of long int.
8547         (INSERT_WORDS64): Likwise.
8548
8549 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
8550
8551         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
8552         _Unwind_GetCFA return to _Unwind_Ptr first.
8553
8554 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
8555
8556         [BZ #13629]
8557         * math/s_clog.c: Include <float.h>.
8558         (__clog): Scale large or subnormal inputs.
8559         * math/s_clogf.c: Likewise.
8560         * math/s_clogl.c: Likewise.
8561         * math/s_clog10.c: Include <float.h>.
8562         (M_LOG10_2): Define.
8563         (__clog10): Scale large or subnormal inputs.
8564         * math/s_clog10f.c: Likewise.
8565         * math/s_clog10l.c: Likewise.
8566         * math/libm-test.inc (clog_test): Add more tests.
8567         (clog10_test): Likewise.
8568         * sysdeps/i386/fpu/libm-test-ulps: Update.
8569         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8570
8571         [BZ #11451]
8572         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
8573         x and y.
8574         * math/libm-test.inc (atan2_test): Add another test.
8575
8576         * Makerules (common-objdir-compile): Remove.
8577         * sysdeps/unix/Makefile (config-generated): Do not add
8578         $(unix-generated) to variable.
8579         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
8580         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
8581         Remove rule.
8582         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
8583         Likewise.
8584         [generic bits/local_lim.h] (before-compile): Do not append to
8585         variable.
8586         [generic bits/local_lim.h] (common-generated): Likewise.
8587         [generic sys/param.h] (before-compile): Do not append to variable.
8588         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
8589         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
8590         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
8591         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
8592         include.
8593         [generic sys/param.h] (sys/param.h-includes): Remove variable.
8594         [generic sys/param.h] (sys/param.h-includes): Remove rule.
8595         [generic sys/param.h] ($(addprefix
8596         $(common-objpfx),$(sys/param.h-includes))): Likewise.
8597         [generic sys/param.h] (common-generated): Do not append to
8598         variable.
8599         [generic sys/param.h] (sysdep_headers): Likewise.
8600         [generic bits/errno.h] (before-compile): Do not append to
8601         variable.
8602         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
8603         rule.
8604         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
8605         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
8606         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
8607         [generic bits/errno.h] (common-generated): Do not append to
8608         variable.
8609         [generic bits/ioctls.h] (before-compile): Do not append to
8610         variable.
8611         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
8612         rule.
8613         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
8614         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
8615         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
8616         rule.
8617         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
8618         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
8619         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
8620         [generic bits/ioctls.h] (common-generated): Do not append to
8621         variable.
8622         [generic sys/syscall.h] (syscall.h): Remove variable.
8623         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
8624         rule.
8625         [generic sys/syscall.h] (before-compile): Do not append to
8626         variable.
8627         [generic sys/syscall.h] (common-generated): Likewise.
8628         * sysdeps/unix/errnos-tmpl.c: Remove file.
8629         * sysdeps/unix/errnos.awk: Likewise.
8630         * sysdeps/unix/ioctls-tmpl.c: Likewise.
8631         * sysdeps/unix/ioctls.awk: Likewise.
8632         * sysdeps/unix/mk-local_lim.c: Likewise.
8633         * sysdeps/unix/snarf-ioctls: Likewise.
8634
8635 2012-03-19  Richard Henderson  <rth@twiddle.net>
8636
8637         * sysdeps/i386/fpu/fenv_private.h: New file.
8638         * sysdeps/i386/fpu/math_private.h: Use it.
8639         (math_opt_barrier, math_force_eval): Remove.
8640         (libc_feholdexcept_setround_53bit): Remove.
8641         (libc_feupdateenv_53bit): Remove.
8642         * sysdeps/x86_64/fpu/math_private.h: Likewise.
8643         (math_opt_barrier, math_force_eval): Remove.
8644         (libc_feholdexcept): Remove.
8645         (libc_feholdexcept_setround): Remove.
8646         (libc_fetestexcept, libc_fesetenv): Remove.
8647         (libc_feupdateenv_test): Remove.
8648         (libc_feupdateenv, libc_feholdsetround): Remove.
8649         (libc_feresetround): Remove.
8650
8651         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
8652         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
8653
8654         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
8655         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
8656         (libc_feupdateenv_testl): New.
8657         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
8658         (libc_feupdateenv_testf): New.
8659         (libc_feupdateenv): Use libc_feupdateenv_test.
8660         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
8661         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
8662
8663         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
8664         (libc_feholdsetroundf, libc_feholdsetroundl): New.
8665         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
8666         (libc_feresetround_noex): New.
8667         (libc_feresetround_noexf): New.
8668         (libc_feresetround_noexl): New.
8669         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
8670         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
8671         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
8672         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
8673         SET_RESTORE_ROUND.
8674         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
8675         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
8676         (__cos): Likewise.
8677         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
8678         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
8679         SET_RESTORE_ROUND_NOEX.
8680         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
8681         SET_RESTORE_ROUND_NOEXF.
8682         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
8683         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
8684         (libc_feholdsetroundf): New.
8685         (libc_feresetround, libc_feresetroundf): New.
8686
8687         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
8688         (libc_feholdexcept_setround_53bit): Convert from macro to function.
8689         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
8690
8691         * sysdeps/generic/math_private.h: Include <fenv.h>.
8692         (default_libc_feholdexcept): New.
8693         (default_libc_feholdexcept_setround): New.
8694         (default_libc_fesetenv, default_libc_feupdateenv): New.
8695         (libc_feholdexcept): Only define if undefined.
8696         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
8697         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
8698         (libc_feholdexcept_setroundl): Likewise.
8699         (libc_feholdexcept_setround_53bit): Likewise.
8700         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
8701         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
8702         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
8703         (libc_feupdateenv_53bit): Likewise.
8704         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
8705         (libc_feholdexcept): Convert from macro to inline function.
8706         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
8707         (libc_fesetenv, libc_feupdateenv): Likewise.
8708
8709         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
8710         not previously defined.
8711         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
8712         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
8713         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
8714         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
8715         * sysdeps/ieee754/flt-32/math_private.h: New file.
8716         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
8717         math_private.h below SET_FLOAT_WORD.
8718         (__isnan, __isinf_ns, __finite): Remove.
8719         (__isnanf, __isinf_nsf, __finitef): Remove.
8720
8721 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
8722
8723         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8724
8725 2012-03-17  David S. Miller  <davem@davemloft.net>
8726
8727         [BZ #6471]
8728         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
8729         for 2.16.
8730
8731 2012-03-16  David S. Miller  <davem@davemloft.net>
8732
8733         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
8734         warnings.
8735
8736         [BZ #6471]
8737         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
8738         properly.
8739         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
8740         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
8741         sysdep_routines when subdir is sysvipc.
8742         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
8743         __getshmlba helper.
8744
8745         * sysdeps/sparc/fpu/libm-test/ulps: Update.
8746
8747 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
8748
8749         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
8750         [__LP64__].
8751
8752 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
8753
8754         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
8755         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
8756         (__lround): Renamed to ...
8757         (__llround): This.  Replace long int with long long int.
8758         Define lround functions as aliases of llround functions.
8759         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
8760
8761 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
8762
8763         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
8764         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
8765         adresses to uintptr_t.  Replace "long int" and "unsigned long
8766         int" with "greg_t" on va_arg.
8767
8768 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
8769
8770         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
8771         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
8772
8773         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
8774         Move e_machine check before EI_CLASS check.  Handle x32
8775         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
8776         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
8777         SKIP_EM_IA_64 and include
8778         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
8779
8780         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
8781         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
8782         (add_system_dir): New macro.
8783
8784         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
8785         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
8786
8787 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
8788
8789         [BZ #2551]
8790         [BZ #2552]
8791         [BZ #2553]
8792         [BZ #2554]
8793         [BZ #2562]
8794         [BZ #2563]
8795         [BZ #2565]
8796         [BZ #2566]
8797         [BZ #2576]
8798         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
8799         (y0): Likewise.
8800         * math/w_j0f.c (j0f): Likewise.
8801         (y0f): Likewise.
8802         * math/w_j0l.c (__j0l): Likewise.
8803         (__y0l): Likewise.
8804         * math/w_j1.c (j1): Likewise.
8805         (y1): Likewise.
8806         * math/w_j1f.c (j1f): Likewise.
8807         (y1f): Likewise.
8808         * math/w_j1l.c (__j1l): Likewise.
8809         (__y1l): Likewise.
8810         * math/w_jn.c (jn): Likewise.
8811         (yn): Likewise.
8812         * math/w_jnf.c (jnf): Likewise.
8813         (ynf): Likewise.
8814         * math/w_jnl.c (__jnl): Likewise.
8815         (__ynl): Likewise.
8816         * math/libm-test.inc (j0_test): Add more tests.
8817         (j1_test): Likewise.
8818         (jn_test): Likewise.  Add trailing semicolon to existing test.
8819         (y0_test): Likewise.
8820         (y1_test): Likewise.
8821         * sysdeps/i386/fpu/libm-test-ulps: Update.
8822         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8823
8824         [BZ #13851]
8825         [BZ #13854]
8826         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
8827         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
8828         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
8829         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
8830         (__tanl): Set errno for infinite argument.
8831         * sysdeps/i386/fpu/mptan.c: Remove.
8832         * sysdeps/i386/fpu/s_tan.S: Likewise.
8833         * sysdeps/i386/fpu/s_tanl.S: Likewise.
8834         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
8835         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
8836         * math/libm-test.inc (tan_test): Add more tests and enable more
8837         tests for double and long double.
8838         * sysdeps/i386/fpu/libm-test-ulps: Update.
8839         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8840
8841 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8842
8843         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
8844         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
8845
8846 2012-03-16  Roland McGrath  <roland@hack.frob.com>
8847
8848         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
8849         * configure.in: Use it for both main tree and add-ons.
8850         * configure: Regenerated.
8851
8852 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
8853
8854         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
8855
8856 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
8857
8858         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
8859         in comment.
8860
8861         [BZ #13851]
8862         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
8863         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
8864         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
8865         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
8866         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
8867         infinite argument.
8868         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
8869         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
8870         != 0 for prec == 2.
8871         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
8872         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
8873         * sysdeps/i386/fpu/s_cosl.S: Likewise.
8874         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
8875         * sysdeps/i386/fpu/s_sinl.S: Likewise.
8876         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
8877         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
8878         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
8879         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
8880         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
8881         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
8882         * math/libm-test.inc (cos_test): Add more tests and enable more
8883         tests for long double.
8884         (sin_test): Likewise.
8885         (sincos_test): Likewise.
8886         * sysdeps/i386/fpu/libm-test-ulps: Update.
8887         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8888
8889 2012-03-16  David S. Miller  <davem@davemloft.net>
8890
8891         * sysdeps/sparc/fpu/math_private.h: New file.
8892
8893 2012-03-15  David S. Miller  <davem@davemloft.net>
8894
8895         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
8896         file.
8897         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
8898         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
8899         file.
8900         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
8901         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
8902         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
8903         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
8904         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
8905         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
8906         sysdep routines.
8907         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
8908
8909         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
8910         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
8911
8912         * sysdeps/sparc/sparc-ifunc.h: New file.
8913         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
8914         sparc-ifunc.h
8915         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
8916         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
8917         Likewise.
8918         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
8919         Likewise.
8920         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
8921         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
8922         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
8923         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
8924         Likewise.
8925         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
8926         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
8927         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
8928         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
8929         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
8930         Likewise.
8931         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
8932         Likewise.
8933         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
8934         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
8935         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
8936         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
8937         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
8938         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
8939         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
8940         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
8941         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
8942         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
8943         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
8944         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
8945         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
8946         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
8947         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
8948         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
8949         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
8950         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
8951         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
8952         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
8953         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
8954         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
8955         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
8956         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
8957
8958 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
8959
8960         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
8961         scaling.
8962         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8963
8964 2012-03-15  Andreas Jaeger  <aj@suse.de>
8965
8966         [BZ #13852]
8967         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
8968         ieee754/flt-32 implementation for sin, cos and sincos.
8969         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
8970         * sysdeps/i386/fpu/s_cosf.S: Likewise.
8971         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
8972         * sysdeps/i386/fpu/s_sinf.S: Likewise.
8973         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
8974         ieee754/flt-32 implementation for tan.
8975
8976         * math/libm-test.inc (cos_test): Enable some large input tests for
8977         float as well
8978         (sin_test): Likewise.
8979         (sincos_test): Likewise.
8980         (tan_test): Add tests for large input.
8981
8982         * sysdeps/i386/fpu/libm-test-ulps: Update.
8983
8984 2012-03-15  Andreas Jaeger  <aj@suse.de>
8985
8986         [BZ #13658]
8987         * math/libm-test.inc (cos_test): Add more test cases.
8988         (sin_test): Likewise.
8989         (sincos_test): Likewise.
8990
8991 2012-03-15  Andreas Jaeger  <aj@suse.de>
8992
8993         [BZ #13837]
8994         * math/libm-test.inc (cos_test): Add a test case for large input
8995         value.
8996         (sin_test): Likewise.
8997         (sincos_test): Likewise.
8998
8999 2012-03-15  Andreas Jaeger  <aj@suse.de>,
9000         Joseph Myers  <joseph@codesourcery.com>
9001
9002         [BZ #13658]
9003         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
9004         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
9005         * sysdeps/i386/fpu/branred.c: Likewise.
9006         * sysdeps/i386/fpu/dosincos.c: Likewise.
9007         * sysdeps/i386/fpu/mpa.c: Likewise.
9008         * sysdeps/i386/fpu/s_cos.S: Likewise.
9009         * sysdeps/i386/fpu/s_sin.S: Likewise.
9010         * sysdeps/i386/fpu/s_sincos.S: Likewise.
9011         * sysdeps/i386/fpu/sincos32.c: Likewise.
9012
9013         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
9014         Define.
9015         (libc_feupdateenv_53bit): Define.
9016         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
9017         Define.
9018         (libc_feupdateenv_53bit): Define.
9019
9020         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
9021         53 bit (without extend i386 double precision).
9022
9023         * math/libm-test.inc (sincos_test): Add tests for large input.
9024         (sin): Likewise.
9025         (cos): Likewise.
9026
9027         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
9028
9029 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
9030
9031         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9032
9033 2012-03-15  David S. Miller  <davem@davemloft.net>
9034
9035         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
9036         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
9037         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
9038         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
9039         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
9040         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
9041         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
9042         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
9043         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
9044         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
9045         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
9046         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
9047         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
9048         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
9049         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
9050         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
9051         file.
9052         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
9053         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
9054         file.
9055         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
9056         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
9057         file.
9058         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
9059         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
9060         file.
9061         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
9062         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
9063         fmin/fmax sysdep routines.
9064         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
9065
9066 2012-03-14  David S. Miller  <davem@davemloft.net>
9067
9068         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
9069         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
9070         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
9071         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
9072         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
9073         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
9074         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
9075         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
9076         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
9077         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
9078         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
9079         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
9080         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
9081         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
9082         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
9083         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
9084         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
9085         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
9086         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
9087         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
9088         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
9089         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
9090         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
9091         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
9092         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
9093         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
9094         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
9095         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
9096         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
9097         routines.
9098         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
9099         file.
9100         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
9101         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
9102         file.
9103         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
9104         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
9105         file.
9106         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
9107         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
9108         file.
9109         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
9110         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
9111         file.
9112         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
9113         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
9114         file.
9115         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
9116         file.
9117         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
9118         file.
9119         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
9120         file.
9121         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
9122         New file.
9123         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
9124         file.
9125         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
9126         file.
9127         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
9128         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
9129         file.
9130         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
9131         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
9132         file.
9133         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
9134         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
9135         file.
9136         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
9137         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
9138         VIS3 routines.
9139
9140         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
9141         New file.
9142
9143         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9144
9145         * sysdeps/sparc/configure.in: New file.
9146         * sysdeps/sparc/configure: Generate.
9147         * configure.in (libc_cv_sparc_as_vis3): Substitute.
9148         * configure: Regenerate.
9149         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
9150         * config.make.in (have-as-vis3): New.
9151         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
9152         available use -Av9d instead of -Av9a.
9153         * sysdeps/sparc/sparc64/Makefile: Likewise.
9154         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
9155         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
9156         New file.
9157         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
9158         file.
9159         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
9160         New file.
9161         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
9162         file.
9163         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
9164         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
9165         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
9166         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
9167         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
9168
9169         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
9170         fzeros/fnegs to load 0x80000000 into a float register instead of
9171         using the stack.
9172         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
9173
9174 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
9175
9176         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
9177         bits/syscall.h.
9178         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
9179         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
9180         ($(inst_includedir)/bits/syscall.h): Remove rule.
9181         ($(objpfx)bits/syscall.d): Include instead of
9182         $(objpfx)syscall-list.d.
9183         (generated): Change syscall-list.h and syscall-list.d to
9184         bits/syscall.h and bits/syscall.d.
9185
9186 2012-03-14  Roland McGrath  <roland@hack.frob.com>
9187
9188         [BZ #13846]
9189         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
9190
9191 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
9192
9193         [BZ #13841]
9194         * math/s_csqrt.c: Include <float.h>.
9195         (__csqrt): Scale large or subnormal inputs.
9196         * math/s_csqrtf.c: Likewise.
9197         * math/s_csqrtl.c: Likewise.
9198         * math/libm-test.inc (csqrt_test): Add more tests.
9199         * sysdeps/i386/fpu/libm-test-ulps: Update.
9200         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9201
9202         [BZ #13840]
9203         * math/libm-test.inc (hypot_test): Add more tests.
9204
9205 2012-03-13  David S. Miller  <davem@davemloft.net>
9206
9207         [BZ #13840]
9208         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
9209         double-precision for the calculation instead of scaling.
9210
9211 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
9212
9213         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
9214         manipulate bits before adding and subtracting TWO52[sx].
9215         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
9216         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
9217         Likewise.
9218         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
9219
9220 2012-03-13  David S. Miller  <davem@davemloft.net>
9221
9222         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
9223         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
9224         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
9225         rtld-global-offsets.h
9226         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
9227
9228         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
9229         large parameters.
9230
9231         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
9232
9233         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
9234         'err' in the ifdef scope in which it is actually used.
9235
9236         * nss/nss_db/db-init.c: Include string.h
9237
9238 2012-03-12  David S. Miller  <davem@davemloft.net>
9239
9240         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
9241         masking out of the most significant byte of random value used.
9242         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
9243         Fix coding style in previous change.
9244
9245         * sysdeps/unix/sysv/linux/kernel-features.h
9246         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
9247         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
9248         expression.
9249         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
9250         later.
9251
9252 2012-03-11  David S. Miller  <davem@davemloft.net>
9253
9254         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
9255         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
9256         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
9257         for 'resultvar' otherwise things get truncated on 64-bit.
9258
9259         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
9260         Fix masking out of the most significant byte of random value used.
9261
9262         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9263
9264 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
9265
9266         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9267
9268 2012-03-09  David S. Miller  <davem@davemloft.net>
9269
9270         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
9271         variables with appropriate CPP guards.
9272         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
9273         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
9274         on resulting framesize and the management of the outregs buffer for pltexit.
9275         Preserve floating point return values across _dl_call_pltexit call.
9276         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
9277         framesize and the management of the outregs buffer for pltexit.
9278         Preserve floating point return values across _dl_call_pltexit
9279         call.
9280         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
9281         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
9282         (print_exit): Fix format string for return register value.
9283
9284 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
9285
9286         * sunrpc/Makefile (others): Add rpcgen.
9287         ($(objpfx)rpcgen): Remove special build rule and dependency on
9288         libc.
9289         * sunrpc/rpcgen.c: New file.
9290
9291 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
9292
9293         [BZ #13673]
9294         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
9295         * stdio-common/bug-vfprintf-nargs.c: Likewise.
9296         * sysdeps/i386/crti.S: Likewise.
9297         * sysdeps/i386/crtn.S: Likewise.
9298         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
9299         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
9300         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
9301         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
9302         * sysdeps/sh/crti.S: Likewise.
9303         * sysdeps/sh/crtn.S: Likewise.
9304         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
9305
9306         [BZ #13673]
9307         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
9308         with URL.
9309         * locale/programs/locfile-kw.gperf: Likewise.
9310         * locale/programs/charmap-kw.h: Regenerated.
9311         * locale/programs/locfile-kw.h: Likewise.
9312
9313         [BZ #13673]
9314         * intl/plural.y: Replace FSF snail mail address with URL.
9315         * intl/plural.c: Regenerated.
9316
9317 2012-03-09  Richard Henderson  <rth@twiddle.net>
9318
9319         * include/math_private.h: Remove file.
9320         * math/math_private.h: Move file ...
9321         * sysdeps/generic/math_private.h: ... here.
9322
9323         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
9324         * sysdeps/powerpc/fpu/math_private.h: Likewise.
9325         * sysdeps/x86_64/fpu/math_private.h: Likewise.
9326
9327         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
9328         and <math_private.h>.
9329         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
9330         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
9331         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
9332         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
9333         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
9334         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
9335         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
9336         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
9337         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
9338         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
9339         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
9340         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
9341         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
9342         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
9343         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
9344         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
9345         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
9346         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
9347         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
9348         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
9349         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
9350         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
9351         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
9352         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
9353         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
9354         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
9355         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
9356         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
9357         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
9358         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
9359         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
9360         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
9361         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
9362         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
9363         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
9364         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
9365         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
9366         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
9367         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
9368         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
9369         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
9370         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
9371         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
9372         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
9373         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
9374         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
9375         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
9376         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
9377         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
9378         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
9379         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
9380         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
9381         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
9382         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
9383         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
9384         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
9385         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
9386         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
9387         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
9388         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
9389         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
9390         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
9391         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
9392         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
9393         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
9394         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
9395         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
9396         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
9397         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
9398         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
9399         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
9400         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
9401         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
9402         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
9403         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
9404         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
9405         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
9406         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
9407         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
9408         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
9409         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
9410         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
9411         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
9412         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
9413         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
9414         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
9415         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
9416         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
9417         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
9418         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
9419         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
9420         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
9421         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
9422         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
9423         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
9424         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
9425         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
9426         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
9427         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
9428         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
9429         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
9430         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
9431         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
9432         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
9433         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
9434         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
9435         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
9436         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
9437         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
9438         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
9439         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
9440         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
9441         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
9442         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
9443         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
9444         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
9445         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
9446         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
9447         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
9448         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
9449         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
9450         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
9451         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
9452         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
9453         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
9454         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
9455         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
9456         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
9457         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
9458         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
9459         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
9460         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
9461         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
9462         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
9463         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
9464         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
9465         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
9466         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
9467         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
9468         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
9469         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
9470         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
9471         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
9472         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
9473         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
9474         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
9475         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
9476         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
9477         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
9478         * sysdeps/ieee754/k_standard.c: Likewise.
9479         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
9480         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
9481         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
9482         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
9483         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
9484         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
9485         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
9486         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
9487         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
9488         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
9489         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
9490         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
9491         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
9492         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
9493         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
9494         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
9495         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
9496         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
9497         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
9498         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
9499         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
9500         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
9501         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
9502         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
9503         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
9504         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
9505         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
9506         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
9507         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
9508         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
9509         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
9510         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
9511         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
9512         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
9513         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
9514         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
9515         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
9516         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
9517         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
9518         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
9519         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
9520         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
9521         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
9522         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
9523         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
9524         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
9525         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
9526         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
9527         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
9528         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
9529         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
9530         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
9531         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
9532         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
9533         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
9534         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
9535         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
9536         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
9537         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
9538         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
9539         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
9540         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
9541         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
9542         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
9543         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
9544         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
9545         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
9546         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
9547         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
9548         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
9549         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
9550         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
9551         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
9552         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
9553         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
9554         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
9555         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
9556         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
9557         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
9558         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
9559         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
9560         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
9561         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
9562         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
9563         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
9564         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
9565         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
9566         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
9567         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
9568         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
9569         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
9570         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
9571         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
9572         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
9573         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
9574         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
9575         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
9576         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
9577         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
9578         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
9579         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
9580         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
9581         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
9582         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
9583         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
9584         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
9585         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
9586         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
9587         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
9588         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
9589         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
9590         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
9591         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
9592         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
9593         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
9594         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
9595         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
9596         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
9597         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
9598         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
9599         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
9600         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
9601         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
9602         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
9603         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
9604         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
9605         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
9606         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
9607         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
9608         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
9609         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
9610         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
9611         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
9612         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
9613         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
9614         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
9615         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
9616         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
9617         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
9618         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
9619         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
9620         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
9621         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
9622         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
9623         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
9624         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
9625         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
9626         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
9627         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
9628         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
9629         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
9630         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
9631         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
9632         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
9633         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
9634         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
9635         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
9636         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
9637         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
9638         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
9639         * sysdeps/ieee754/s_lib_version.c: Likewise.
9640         * sysdeps/ieee754/s_matherr.c: Likewise.
9641         * sysdeps/ieee754/s_signgam.c: Likewise.
9642         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
9643         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
9644         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
9645         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
9646         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
9647         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
9648         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
9649         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
9650         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
9651         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
9652         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
9653         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
9654         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
9655         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
9656         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
9657         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
9658         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
9659         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
9660         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
9661         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
9662         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
9663
9664 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
9665
9666         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
9667         * sunrpc/rpc_main.c: Likewise.
9668         * sunrpc/rpc_svcout.c: Likewise.
9669
9670 2012-03-09  David S. Miller  <davem@davemloft.net>
9671
9672         * include/math_private.h: New file.
9673
9674 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
9675
9676         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
9677         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
9678         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
9679         from <bits/socket_type.h>.
9680         (enum __socket_type): Don't define here.
9681         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
9682         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
9683         bits/socket_type.h.
9684
9685         [BZ #13566]
9686         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
9687         checking __USE_GNU.
9688
9689         * Makerules ($(inst_includedir)/%.h): New rule.
9690         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
9691         (install-others): Remove variable setting.
9692         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
9693
9694 2012-03-08  Richard Henderson  <rth@twiddle.net>
9695
9696         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
9697         from macro to inline function; merge with the
9698         !__LIBC_INTERNAL_MATH_INLINES version.
9699         (__ieee754_sqrtf): Likewise.
9700
9701         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
9702         to inline function.
9703         (__rintf, __floor, __floorf): Likewise.
9704
9705         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
9706         macro to inline function.
9707         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
9708
9709         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
9710         not <math/math_private.h>.
9711
9712 2012-03-08  David S. Miller  <davem@davemloft.net>
9713
9714         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
9715         copyright year.
9716         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
9717
9718 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
9719
9720         * resolv/gai_misc.c (handle_requests): Fix struct timespec
9721         normalization.
9722         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
9723         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
9724
9725 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
9726
9727         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
9728         be defined individually, they must be defined as a block.  Define
9729         S for printing a string instead of hidint the different by using a
9730         macro for adding the 'l'.
9731         * stdio-common/tst-fphex-wide.c: Adjust.
9732
9733 2012-03-07  Marek Polacek  <polacek@redhat.com>
9734
9735         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
9736
9737 2012-03-08  Marek Polacek  <polacek@redhat.com>
9738
9739         [BZ #13806]
9740         * stdio-common/Makefile (tests): Add tst-fphex-wide.
9741         * stdio-common/tst-fphex.c: Define a few macros to make the
9742         test reusable.  Use them.
9743         * stdio-common/tst-fphex-wide.c: New file.
9744
9745 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
9746
9747         [BZ #6911]
9748         * manual/macros.texi (gnusystems): New macro.
9749         (nongnusystems): Likewise.
9750         (gnulinuxhurdsystems): Likewise.
9751         (gnuhurdsystems): Likewise..
9752         (gnulinuxsystems): Likewise.
9753         * manual/charset.texi: Use new macros or @theglibc{} to refer to
9754         variants of the GNU system, not "GNU system".
9755         * manual/conf.texi: Likewise.
9756         * manual/errno.texi: Likewise.  Update example of errno macro
9757         expansion.
9758         * manual/filesys.texi: Likewise.
9759         (getumask): Document as specific to GNU/Hurd.
9760         * manual/install.texi: Likewise.  Reword some references to
9761         GNU/Linux.
9762         * manual/intro.texi: Likewise.
9763         * manual/io.texi: Likewise.
9764         (File Name Portability): Detail which constraints are inapplicable
9765         to all GNU systems and which are only inapplicable to GNU/Hurd.
9766         * manual/job.texi: Likewise.
9767         * manual/llio.texi: Likewise.
9768         (O_NOCTTY): Document as present on GNU/Linux.
9769         * manual/maint.texi: Likewise.
9770         * manual/memory.texi: Likewise.
9771         * manual/pattern.texi: Likewise.
9772         * manual/pipe.texi: Likewise.
9773         * manual/process.texi: Likewise.
9774         * manual/resource.texi: Likewise.
9775         (RUSAGE_CHILDREN): Remove statement about specifying a particular
9776         child on GNU/Hurd.
9777         * manual/setjmp.texi: Likewise.
9778         * manual/signal.texi: Likewise.
9779         * manual/startup.texi: Likewise.
9780         * manual/stdio.texi: Likewise.
9781         * manual/terminal.texi: Likewise.
9782         (ONLCR): Document as POSIX.
9783         (OXTABS): Document availability on GNU/Linux as XTABS.
9784         (ONOEOT): Document availability separately from other bits.
9785         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
9786         * manual/time.texi: Likewise.
9787         * manual/users.texi: Likewise.
9788         * INSTALL: Regenerated.
9789         * sysdeps/gnu/errlist.c: Regenerated.
9790
9791         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
9792         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
9793         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
9794         puts.
9795         * configure: Regenerated.
9796
9797 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
9798
9799         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
9800         default includes instead of AC_HEADER_CHECK.
9801         * sysdeps/i386/configure: Regenerated.
9802
9803         [BZ #10716]
9804         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
9805         * math/s_cacoshf.c (__cacoshf): Likewise.
9806         * math/s_cacoshl.c (__cacoshl): Likewise.
9807         * math/s_casinh.c (__casinh): Set signs of result from argument.
9808         * math/s_casinhf.c (__casinhf): Likewise.
9809         * math/s_casinhl.c (__casinhl): Likewise.
9810         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
9811         (casinh_test): Add more tests.
9812         * sysdeps/i386/fpu/libm-test-ulps: Update.
9813         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9814
9815 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
9816
9817         * po/zh_TW.po: Update from translation team.
9818
9819         * login/Makefile (distribute): Remove variable.
9820         * catgets/Makefile: Likewise.
9821         * mach/Makefile: Likewise.
9822         * malloc/Makefile: Likewise.
9823         * misc/Makefile: Likewise.
9824         * iconv/Makefile: Likewise.
9825         * nscd/Makefile: Likewise.
9826         * hurd/Makefile: Likewise.
9827         * manual/Makefile: Likewise.
9828         * locale/Makefile: Likewise.
9829         * intl/Makefile: Likewise.
9830         * conform/Makefile: Likewise.
9831         * nss/Makefile: Likewise.
9832         * time/Makefile: Likewise.
9833         * soft-fp/Makefile: Likewise.
9834         * dirent/Makefile: Likewise.
9835         * gmon/Makefile: Likewise.
9836         * po/Makefile: Likewise.
9837         * rt/Makefile: Likewise.
9838         * socket/Makefile: Likewise.
9839         * math/Makefile: Likewise.
9840         * signal/Makefile: Likewise.
9841         * debug/Makefile: Likewise.
9842         * elf/Makefile: Likewise.
9843         * timezone/Makefile: Likewise.
9844         * stdlib/Makefile: Likewise.
9845         * iconvdata/Makefile: Likewise.
9846         * sunrpc/Makefile: Likewise.
9847         * io/Makefile: Likewise.
9848         * argp/Makefile: Likewise.
9849         * inet/Makefile: Likewise.
9850         * hesiod/Makefile: Likewise.
9851         * grp/Makefile: Likewise.
9852         * csu/Makefile: Likewise.
9853         * wctype/Makefile: Likewise.
9854         * crypt/Makefile: Likewise.
9855         * libio/Makefile: Likewise.
9856         * string/Makefile: Likewise.
9857         * nis/Makefile: Likewise.
9858         * resolv/Makefile: Likewise.
9859         * stdio-common/Makefile: Likewise.
9860         * wcsmbs/Makefile: Likewise.
9861         * dlfcn/Makefile: Likewise.
9862         * posix/Makefile: Likewise.
9863
9864         [BZ #6959]
9865         * timezone/Makefile: Don't install timezone files, just the programs
9866         and scripts.
9867
9868 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
9869
9870         * nss/databases.def: Add missing gshadow entry.
9871
9872         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
9873
9874 2012-03-06  Marek Polacek  <polacek@redhat.com>
9875
9876         [BZ #13726]
9877         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
9878         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
9879         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
9880         * stdio-common/tst-long-dbl-fphex.c: New file.
9881
9882 2012-03-06  David S. Miller  <davem@davemloft.net>
9883
9884         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
9885         (set_obp_int): New function.
9886         (get_obp_int): New function.
9887         (__get_clockfreq_via_dev_openprom): Likewise.
9888         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
9889         Avoid unused variable warnings on 'val' and use builtin_expect.
9890         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
9891         __builtin_expect.
9892         (INLINE_CLONE_SYSCALL): Likewise.
9893
9894 2012-03-05  David S. Miller  <davem@davemloft.net>
9895
9896         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9897
9898 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
9899
9900         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9901
9902         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
9903         only for |x| >= 40.
9904         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
9905
9906 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
9907
9908         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
9909         Replace gettimeofday with __vdso_gettimeofday.
9910
9911         * sysdeps/unix/sysv/linux/x86_64/init-first.c
9912         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
9913         __vdso_clock_gettime and __vdso_getcpu.
9914
9915         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
9916         time with __vdso_time.
9917
9918 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
9919
9920         * manual/lang.texi (size_t): Note types to which size_t may be
9921         equivalent with the GNU C Library, but do not describe when
9922         differences between them are significant.
9923
9924 2012-03-05  Andreas Jaeger  <aj@suse.de>
9925
9926         * sysdeps/i386/fpu/libm-test-ulps: Update.
9927
9928 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
9929
9930         [BZ #3976]
9931         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
9932         (__ieee754_pow): Save and restore rounding mode and use
9933         round-to-nearest for main computations.
9934         * math/libm-test.inc (pow_test_tonearest): New function.
9935         (pow_test_towardzero): Likewise.
9936         (pow_test_downward): Likewise.
9937         (pow_test_upward): Likewise.
9938         (main): Call the new functions.
9939         * sysdeps/i386/fpu/libm-test-ulps: Update.
9940         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9941
9942         [BZ #3976]
9943         * math/libm-test.inc (cosh_test_tonearest): New function.
9944         (cosh_test_towardzero): Likewise.
9945         (cosh_test_downward): Likewise.
9946         (cosh_test_upward): Likewise.
9947         (sinh_test_tonearest): Likewise.
9948         (sinh_test_towardzero): Likewise.
9949         (sinh_test_downward): Likewise.
9950         (sinh_test_upward): Likewise.
9951         (main): Call the new functions.
9952         * sysdeps/i386/fpu/libm-test-ulps: Update.
9953         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9954
9955 2012-03-05  Tom de Vries  <tom@codesourcery.com>
9956
9957         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
9958         default stack guard is set in last bytes.
9959         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
9960
9961 2012-03-05  Kees Cook  <keescook@chromium.org>
9962
9963         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
9964
9965         [BZ #13656]
9966         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
9967         possibly allocate from heap instead of stack.
9968         * stdio-common/bug-vfprintf-nargs.c: New file.
9969         * stdio-common/Makefile (tests): Add nargs overflow test.
9970
9971 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
9972
9973         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9974
9975 2012-03-03  Marek Polacek  <polacek@redhat.com>
9976
9977         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
9978         * math/math_private.h: Likewise.
9979         * stdlib/tst-strtod.c: Likewise.
9980         * sysdeps/i386/i486/bits/atomic.h: Likewise.
9981         * sysdeps/x86_64/bits/atomic.h: Likewise.
9982
9983 2012-03-02  David S. Miller  <davem@davemloft.net>
9984
9985         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
9986         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
9987         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
9988         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
9989         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
9990         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
9991         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
9992         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
9993
9994 2012-03-02  Roland McGrath  <roland@hack.frob.com>
9995
9996         [BZ #13792]
9997         * manual/examples/README: New file, says the example source files
9998         can be used under GPL>=2.
9999         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
10000         line containing just "*/".
10001         * manual/examples/add.c: Add copyright header (GPL>=2).
10002         * manual/examples/argp-ex1.c: Likewise.
10003         * manual/examples/argp-ex2.c: Likewise.
10004         * manual/examples/argp-ex3.c: Likewise.
10005         * manual/examples/argp-ex4.c: Likewise.
10006         * manual/examples/atexit.c: Likewise.
10007         * manual/examples/db.c: Likewise.
10008         * manual/examples/dir.c: Likewise.
10009         * manual/examples/dir2.c: Likewise.
10010         * manual/examples/execinfo.c: Likewise.
10011         * manual/examples/filecli.c: Likewise.
10012         * manual/examples/filesrv.c: Likewise.
10013         * manual/examples/fmtmsgexpl.c: Likewise.
10014         * manual/examples/genpass.c: Likewise.
10015         * manual/examples/inetcli.c: Likewise.
10016         * manual/examples/inetsrv.c: Likewise.
10017         * manual/examples/isockad.c: Likewise.
10018         * manual/examples/longopt.c: Likewise.
10019         * manual/examples/memopen.c: Likewise.
10020         * manual/examples/memstrm.c: Likewise.
10021         * manual/examples/mkfsock.c: Likewise.
10022         * manual/examples/mkisock.c: Likewise.
10023         * manual/examples/mygetpass.c: Likewise.
10024         * manual/examples/pipe.c: Likewise.
10025         * manual/examples/popen.c: Likewise.
10026         * manual/examples/rprintf.c: Likewise.
10027         * manual/examples/search.c: Likewise.
10028         * manual/examples/select.c: Likewise.
10029         * manual/examples/setjmp.c: Likewise.
10030         * manual/examples/sigh1.c: Likewise.
10031         * manual/examples/sigusr.c: Likewise.
10032         * manual/examples/stpcpy.c: Likewise.
10033         * manual/examples/strdupa.c: Likewise.
10034         * manual/examples/strftim.c: Likewise.
10035         * manual/examples/strncat.c: Likewise.
10036         * manual/examples/subopt.c: Likewise.
10037         * manual/examples/swapcontext.c: Likewise.
10038         * manual/examples/termios.c: Likewise.
10039         * manual/examples/testopt.c: Likewise.
10040         * manual/examples/testpass.c: Likewise.
10041         * manual/examples/timeval_subtract.c: Likewise.
10042
10043         [BZ #13792]
10044         * manual/time.texi (Elapsed Time): Move timeval_subtract example
10045         function to ...
10046         * manual/timeval_subtract.c.texi: ... here, new file.
10047
10048 2012-03-02  David S. Miller  <davem@davemloft.net>
10049
10050         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
10051
10052 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
10053
10054         [BZ #3976]
10055         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
10056         (__sin): Save and restore rounding mode and use round-to-nearest
10057         for all computations.
10058         (__cos): Save and restore rounding mode and use round-to-nearest
10059         for all computations.
10060         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
10061         <fenv.h>.
10062         (tan): Save and restore rounding mode and use round-to-nearest for
10063         all computations.
10064         * math/libm-test.inc (cos_test_tonearest): New function.
10065         (cos_test_towardzero): Likewise.
10066         (cos_test_downward): Likewise.
10067         (cos_test_upward): Likewise.
10068         (sin_test_tonearest): Likewise.
10069         (sin_test_towardzero): Likewise.
10070         (sin_test_downward): Likewise.
10071         (sin_test_upward): Likewise.
10072         (tan_test_tonearest): Likewise.
10073         (tan_test_towardzero): Likewise.
10074         (tan_test_downward): Likewise.
10075         (tan_test_upward): Likewise.
10076         (main): Call the new functions.
10077         * sysdeps/i386/fpu/libm-test-ulps: Update.
10078         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10079
10080         [BZ #10135]
10081         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
10082         small n, then large n, before computing and testing k+n.
10083         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
10084         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
10085         Likewise.
10086         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
10087         Likewise.
10088         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
10089         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
10090         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
10091         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
10092         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
10093         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
10094         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
10095         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
10096         * math/libm-test.inc (scalbn_test): Add more tests.
10097         (scalbln_test): Likewise.
10098
10099         * manual/filesys.texi (mode_t): Describe constraints on size and
10100         signedness, not exact equivalence to a particular type.
10101         (ino_t): Likewise.
10102         (ino64_t): Likewise.
10103         (dev_t): Likewise.
10104         (nlink_t): Likewise.
10105         (blkcnt_t): Likewise.
10106         (blkcnt64_t): Likewise.
10107         * manual/llio.texi (off_t): Likewise.
10108
10109         [BZ #3976]
10110         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
10111         (__ieee754_exp): Save and restore rounding mode and use
10112         round-to-nearest for all computations.
10113         * math/libm-test.inc (exp_test_tonearest): New function.
10114         (exp_test_towardzero): Likewise.
10115         (exp_test_downward): Likewise.
10116         (exp_test_upward): Likewise.
10117         (main): Call the new functions.
10118         * sysdeps/i386/fpu/libm-test-ulps: Update.
10119         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10120
10121 2012-03-01  Chris Demetriou  <cgd@google.com>
10122
10123         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
10124         have predictable order.
10125
10126 2012-03-01  David S. Miller  <davem@davemloft.net>
10127
10128         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
10129
10130         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
10131         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
10132         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
10133         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
10134
10135         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
10136         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
10137         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
10138         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
10139         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
10140         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
10141         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
10142         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
10143         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
10144
10145         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10146
10147         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
10148         * sysdeps/sparc/fpu/libm-test-ulps: to here.
10149         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
10150
10151         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
10152         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
10153         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
10154         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
10155         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
10156         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
10157         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
10158         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
10159         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
10160         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
10161         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
10162         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
10163         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
10164         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
10165         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
10166         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
10167         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
10168         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
10169         * sysdeps/sparc/elf/configure: Regenerated.
10170
10171 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
10172
10173         * configure.in (AS, LD): Require binutils 2.20 or later.
10174         * configure: Regenerated.
10175         * manual/install.texi (Tools for Compilation): Give binutils 2.20
10176         as required minimum version.
10177         * INSTALL: Regenerated.
10178
10179         [BZ #2541]
10180         [BZ #4108]
10181         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
10182         before squaring exponent.
10183         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
10184         bottom long double and 27 bits of top long double before squaring
10185         exponent.
10186         * math/libm-test.inc (erfc_test): Add more tests.
10187         * sysdeps/i386/fpu/libm-test-ulps: Update.
10188         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
10189         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10190
10191 2012-03-01  Kai Tietz  <ktietz@redhat.com>
10192
10193         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
10194         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
10195         containing bit-fields.
10196         * soft-fp/extended.h (_FP_UNION_E): Likewise.
10197         * soft-fp/single.h (_FP_UNION_S): Likewise.
10198         * soft-fp/double.h (_FP_UNION_D): Likewise.
10199
10200 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
10201
10202         [BZ #13786]
10203         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
10204         not include ../strcmp.S.
10205         [USE_AS_STRNCASECMP_L]: Likewise.
10206         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
10207         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
10208         * sysdeps/i386/i686/multiarch/strncase_l-c.c
10209         (__strncasecmp_l_ia32): Define as alias to
10210         __strncasecmp_l_nonascii.
10211
10212         [BZ #5794]
10213         * math/libm-test.inc (expm1_test): Add test for bug 5794.
10214         * sysdeps/i386/fpu/libm-test-ulps: Update.
10215         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10216
10217         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
10218         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10219
10220 2012-02-29  Jeff Law  <law@redhat.com>
10221
10222         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
10223         out of bounds read.
10224
10225 2012-02-29  Marek Polacek  <polacek@redhat.com>
10226
10227         [BZ #13706]
10228         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
10229         * elf/Makefile: Add rules to run tst-unused-dep.out.
10230
10231 2012-02-28  David S. Miller  <davem@davemloft.net>
10232
10233         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
10234         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
10235         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
10236         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
10237         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
10238         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
10239
10240 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
10241
10242         * math/libm-test.inc (llround_test): Move one test from
10243         lround_test.  Use TEST_f_L in moved test.
10244         (lround_test): Move misplaced test to llround_test.  Add testcase
10245         from bug 2561.
10246
10247 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
10248
10249         * sysdeps/x86_64/fpu/e_expf.S: New file.
10250         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
10251
10252 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
10253
10254         [BZ #13637]
10255         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
10256         of remain_len that may cause incomplete multi-byte character and
10257         false match.
10258         * posix/bug-regex33.c: New file.
10259         * posix/Makefile (tests): Add bug-regex33.
10260
10261 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
10262
10263         * manual/macros.texi: New file.
10264         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
10265         * manual/libc.texinfo: Include macros.texi.
10266         * manual/creatute.texi: Likewise.
10267         * manual/install.texi: Likewise.
10268         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
10269         @glibcadj{} in references to the GNU C Library.
10270         * manual/charset.texi: Likewise.
10271         * manual/conf.texi: Likewise.
10272         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
10273         when not using those macros.
10274         * manual/creature.texi: Likewise.
10275         * manual/crypt.texi: Likewise.
10276         * manual/errno.texi: Likewise.
10277         * manual/filesys.texi: Likewise.
10278         * manual/header.texi: Likewise.
10279         * manual/install.texi: Likewise.
10280         * manual/intro.texi: Likewise.
10281         * manual/io.texi: Likewise.
10282         * manual/job.texi: Likewise.
10283         * manual/lang.texi: Likewise.
10284         * manual/libc.texiinfo: Likewise.
10285         * manual/llio.texi: Likewise.
10286         * manual/locale.texi: Likewise.
10287         * manual/maint.texi: Likewise.
10288         * manual/math.texi: Likewise.
10289         * manual/memory.texi: Likewise.
10290         * manual/message.texi: Likewise.
10291         * manual/nss.texi: Likewise.
10292         * manual/pattern.texi: Likewise.
10293         * manual/process.texi: Likewise.
10294         * manual/resource.texi: Likewise.
10295         * manual/search.texi: Likewise.
10296         * manual/setjmp.texi: Likewise.
10297         * manual/signal.texi: Likewise.
10298         * manual/socket.texi: Likewise.
10299         * manual/startup.texi: Likewise.
10300         * manual/stdio.texi: Likewise.
10301         * manual/string.texi: Likewise.
10302         * manual/sysinfo.texi: Likewise.
10303         * manual/syslog.texi: Likewise.
10304         * manual/terminal.texi: Likewise.
10305         * manual/time.texi: Likewise.
10306         * manual/users.texi: Likewise.
10307         * INSTALL: Regenerated.
10308         * NOTES: Regenerated.
10309         * sysdeps/gnu/errlist.c: Regenerated.
10310
10311 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
10312
10313         * include/dirent.h: Include <dirstream.h> before
10314         <dirent/dirent.h>.
10315
10316 2012-02-28  David S. Miller  <davem@davemloft.net>
10317
10318         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
10319         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
10320         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
10321         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
10322
10323 2012-02-27  David S. Miller  <davem@davemloft.net>
10324
10325         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
10326         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
10327         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
10328         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
10329
10330         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
10331         frame pointer instead of stack pointer relative arg slot.
10332         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
10333         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
10334         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
10335
10336 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
10337
10338         [BZ #3992]
10339         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
10340
10341 2012-02-27  David S. Miller  <davem@davemloft.net>
10342
10343         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
10344         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
10345         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
10346         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
10347         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
10348         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
10349         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
10350         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
10351
10352 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
10353
10354         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
10355         later.  Allow versions 5-9.
10356         * configure: Regenerated.
10357         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
10358         required minimum version and 4.6 as recommended version.  Do not
10359         mention bugs in GCC 2.7 and 2.8.
10360         * INSTALL: Regenerated.
10361
10362 2012-02-27  David S. Miller  <davem@davemloft.net>
10363
10364         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
10365         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
10366         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
10367         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
10368         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
10369         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
10370         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
10371         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
10372
10373         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
10374         manipulate bits before adding and subtracting TWO112[sx].
10375         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
10376
10377 2012-02-27  Roland McGrath  <roland@hack.frob.com>
10378
10379         [BZ #13775]
10380         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
10381         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
10382         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
10383         being in POSIX, because they are in 1003.1-2008.
10384
10385         * rt/tst-aio.c: Include <fcntl.h>.
10386         * rt/tst-aio7.c: Likewise.
10387         * rt/tst-aio64.c: Likewise.
10388
10389         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
10390
10391 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
10392
10393         * manual/install.texi (--with-headers): Describe headers as
10394         interface headers, not private headers.
10395         (Specific advice for GNU/Linux systems): Describe use of headers
10396         from "make headers_install", not private headers from older
10397         kernels.
10398         * INSTALL: Regenerated.
10399         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
10400         Change to 2.6.19.
10401         * sysdeps/unix/sysv/linux/configure: Regenerated.
10402
10403         * manual/llio.texi (fclean): Remove documentation.
10404
10405         * manual/Makefile (libc-texi-generated): New variable.  Include
10406         version.texi.
10407         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
10408         $(libc-texi-generated), not duplicated list of files.
10409         (version.texi, stamp-version): New rules.
10410         (realclean): Remove $(libc-texi-generated), not individual files
10411         from that list.  Do not remove dir-add.texinfo.
10412         * manual/libc.texinfo: Comment out uses of edition numbers and
10413         references to printed manual.  Remove last-updated dates.
10414         (EDITION): Comment out.
10415         (ISBN): Likewise.
10416         (VERSION, UPDATED): Remove.
10417         (version.texi): Include.
10418
10419 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
10420
10421         * sysdeps/posix/spawni.c: Include <signal.h>.
10422         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
10423         * sysdeps/pthread/aio_fsync.c: Likewise.
10424
10425 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
10426
10427         * conform/Makefile (tests): Run only when not cross-compiling and
10428         when fast-check is not defined.
10429
10430         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
10431         * conform/data/limits.h-data: Fixes for POSIX2008.
10432         * conform/run-conformtest.sh: Run all tests.
10433         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
10434         headers.
10435         * include/bits/dlfcn.h: Likewise.
10436         * include/langinfo.h: Likewise.
10437         * include/monetary.h: Likewise.
10438         * include/sys/poll.h: Likewise.
10439
10440         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
10441         for __USE_GNU.
10442         * posix/spawn.h: Define __need_sigset_t.
10443         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
10444         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
10445         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
10446         to get sigevent_t only.
10447         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
10448         only for __USE_GNU.
10449         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
10450         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
10451         process_vm_writev only for __USE_GNU.
10452         * termios/termios.h: Declare tcgetsid also for POSIX2008.
10453
10454         * conform/Makefile: For now ignore errors from run-conformtest.
10455         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
10456         POSIX to avoid namespace pollution.  Don't prepend headers.
10457         * conform/data/aio.h-data: Fixes for POSIX testing.
10458         * conform/data/fcntl.h-data: Likewise.
10459         * conform/data/glob.h-data: Likewise.
10460         * conform/data/grp.h-data: Likewise.
10461         * conform/data/pthread.h-data: Likewise.
10462         * conform/data/pwd.h-data: Likewise.
10463         * conform/data/signal.h-data: Likewise.
10464         * conform/data/spawn.h-data: Likewise.
10465         * conform/data/stdio.h-data: Likewise.
10466         * conform/data/stdlib.h-data: Likewise.
10467         * conform/data/stropts.h-data: Likewise.
10468         * conform/data/sys/mman.h-data: Likewise.
10469         * conform/data/sys/stat.h-data: Likewise.
10470         * conform/data/sys/types.h-data: Likewise.
10471         * conform/data/sys/wait.h-data: Likewise.
10472         * conform/data/time.h-data: Likewise.
10473         * conform/data/unistd.h-data: Likewise.
10474         * conform/data/utime.h-data: Likewise.
10475
10476         * io/sys/stat.h: fchmod was always in POSIX.
10477         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
10478         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
10479         * rt/aio.h: Define __need_timespec before including <time.h>.
10480         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
10481         struct.  Add forward declaration of pthread_attr_t and use it in
10482         sigevent.
10483         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
10484         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
10485         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
10486         always remove CLK_TCK definition.
10487
10488 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
10489
10490         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
10491
10492 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
10493
10494         * conform/run-conformtest.sh: New file.
10495         * conform/Makefile: Run run-conformtest for tests.
10496         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
10497         support.
10498
10499         * conform/data/uchar.h-data: New file.
10500         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
10501         * conform/data/arpa/inet.h-data: Likewise.
10502         * conform/data/assert.h-data: Likewise.
10503         * conform/data/complex.h-data: Likewise.
10504         * conform/data/cpio.h-data: Likewise.
10505         * conform/data/ctype.h-data: Likewise.
10506         * conform/data/dirent.h-data: Likewise.
10507         * conform/data/dlfcn.h-data: Likewise.
10508         * conform/data/errno.h-data: Likewise.
10509         * conform/data/fcntl.h-data: Likewise.
10510         * conform/data/float.h-data: Likewise.
10511         * conform/data/fmtmsg.h-data: Likewise.
10512         * conform/data/fnmatch.h-data: Likewise.
10513         * conform/data/ftw.h-data: Likewise.
10514         * conform/data/glob.h-data: Likewise.
10515         * conform/data/grp.h-data: Likewise.
10516         * conform/data/iconv.h-data: Likewise.
10517         * conform/data/inttypes.h-data: Likewise.
10518         * conform/data/langinfo.h-data: Likewise.
10519         * conform/data/libgen.h-data: Likewise.
10520         * conform/data/limits.h-data: Likewise.
10521         * conform/data/locale.h-data: Likewise.
10522         * conform/data/math.h-data: Likewise.
10523         * conform/data/monetary.h-data: Likewise.
10524         * conform/data/mqueue.h-data: Likewise.
10525         * conform/data/ndbm.h-data: Likewise.
10526         * conform/data/net/if.h-data: Likewise.
10527         * conform/data/netdb.h-data: Likewise.
10528         * conform/data/netinet/in.h-data: Likewise.
10529         * conform/data/nl_types.h-data: Likewise.
10530         * conform/data/poll.h-data: Likewise.
10531         * conform/data/pthread.h-data: Likewise.
10532         * conform/data/pwd.h-data: Likewise.
10533         * conform/data/regex.h-data: Likewise.
10534         * conform/data/sched.h-data: Likewise.
10535         * conform/data/search.h-data: Likewise.
10536         * conform/data/semaphore.h-data: Likewise.
10537         * conform/data/setjmp.h-data: Likewise.
10538         * conform/data/signal.h-data: Likewise.
10539         * conform/data/spawn.h-data: Likewise.
10540         * conform/data/stdarg.h-data: Likewise.
10541         * conform/data/stdio.h-data: Likewise.
10542         * conform/data/stdlib.h-data: Likewise.
10543         * conform/data/string.h-data: Likewise.
10544         * conform/data/strings.h-data: Likewise.
10545         * conform/data/stropts.h-data: Likewise.
10546         * conform/data/sys/ipc.h-data: Likewise.
10547         * conform/data/sys/mman.h-data: Likewise.
10548         * conform/data/sys/msg.h-data: Likewise.
10549         * conform/data/sys/resource.h-data: Likewise.
10550         * conform/data/sys/select.h-data: Likewise.
10551         * conform/data/sys/sem.h-data: Likewise.
10552         * conform/data/sys/shm.h-data: Likewise.
10553         * conform/data/sys/socket.h-data: Likewise.
10554         * conform/data/sys/stat.h-data: Likewise.
10555         * conform/data/sys/statvfs.h-data: Likewise.
10556         * conform/data/sys/time.h-data: Likewise.
10557         * conform/data/sys/timeb.h-data: Likewise.
10558         * conform/data/sys/times.h-data: Likewise.
10559         * conform/data/sys/types.h-data: Likewise.
10560         * conform/data/sys/uio.h-data: Likewise.
10561         * conform/data/sys/un.h-data: Likewise.
10562         * conform/data/sys/utsname.h-data: Likewise.
10563         * conform/data/sys/wait.h-data: Likewise.
10564         * conform/data/syslog.h-data: Likewise.
10565         * conform/data/tar.h-data: Likewise.
10566         * conform/data/termios.h-data: Likewise.
10567         * conform/data/utime.h-data: Likewise.
10568         * conform/data/utmpx.h-data: Likewise.
10569         * conform/data/varargs.h-data: Likewise.
10570         * conform/data/wchar.h-data: Likewise.
10571         * conform/data/wctype.h-data: Likewise.
10572         * conform/data/wordexp.h-data: Likewise.
10573
10574         * include/stropts.h: New file.
10575         * include/uchar.h: New file.
10576         * include/aio.h: Changes to allow conformtest.pl to use the headers.
10577         * include/assert.h: Likewise.
10578         * include/ctype.h: Likewise.
10579         * include/dirent.h: Likewise.
10580         * include/dlfcn.h: Likewise.
10581         * include/fcntl.h: Likewise.
10582         * include/fnmatch.h: Likewise.
10583         * include/glob.h: Likewise.
10584         * include/grp.h: Likewise.
10585         * include/libio.h: Likewise.
10586         * include/locale.h: Likewise.
10587         * include/math.h: Likewise.
10588         * include/net/if.h: Likewise.
10589         * include/netdb.h: Likewise.
10590         * include/netinet/in.h: Likewise.
10591         * include/pthread.h: Likewise.
10592         * include/pwd.h: Likewise.
10593         * include/regex.h: Likewise.
10594         * include/sched.h: Likewise.
10595         * include/search.h: Likewise.
10596         * include/setjmp.h: Likewise.
10597         * include/signal.h: Likewise.
10598         * include/stdio.h: Likewise.
10599         * include/stdlib.h: Likewise.
10600         * include/string.h: Likewise.
10601         * include/sys/cdefs.h: Likewise.
10602         * include/sys/mman.h: Likewise.
10603         * include/sys/msg.h: Likewise.
10604         * include/sys/resource.h: Likewise.
10605         * include/sys/select.h: Likewise.
10606         * include/sys/socket.h: Likewise.
10607         * include/sys/stat.h: Likewise.
10608         * include/sys/statvfs.h: Likewise.
10609         * include/sys/time.h: Likewise.
10610         * include/sys/times.h: Likewise.
10611         * include/sys/uio.h: Likewise.
10612         * include/sys/utsname.h: Likewise.
10613         * include/sys/wait.h: Likewise.
10614         * include/termios.h: Likewise.
10615         * include/time.h: Likewise.
10616         * include/ulimit.h: Likewise.
10617         * include/unistd.h: Likewise.
10618         * include/utime.h: Likewise.
10619         * include/wchar.h: Likewise.
10620         * include/wctype.h: Likewise.
10621         * include/wordexp.h: Likewise.
10622
10623         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
10624
10625         * time/time.h: TIME_UTC must be a macro.
10626         Make timespec_get available for ISO C11 only as well.
10627
10628 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
10629
10630         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
10631         Reported by Peng Haitao <penght@cn.fujitsu.com>.
10632
10633 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
10634
10635         * configure.in: Use -o not -a in test for unsupported multi-arch.
10636
10637 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
10638
10639         * manual/texinfo.tex: Update to version 2012-01-19.16.
10640
10641 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
10642
10643         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
10644
10645 2012-02-24  Roland McGrath  <roland@hack.frob.com>
10646
10647         [BZ #13738]
10648         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
10649         * manual/fdl-1.3.texi: New file.
10650         * manual/fdl-1.1.texi: File removed.
10651
10652         [BZ #13738]
10653         * manual/libc.texinfo (FDL_VERSION): New @set.
10654         Use it for mention of FDL in cover text.
10655         (Documentation License): Use it in @include file name.
10656
10657 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
10658             Roland McGrath  <roland@hack.frob.com>
10659
10660         [BZ #5461]
10661         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
10662         not LONG_LONG_MAX and LONG_LONG_MIN.
10663         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
10664         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
10665         name.
10666         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
10667
10668 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
10669
10670         [BZ #2547]
10671         [BZ #11365]
10672         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
10673         manipulate bits before adding and subtracting TWO23[sx].
10674         * math/libm-test.inc (nearbyint_test): Add more tests.
10675
10676 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
10677
10678         [BZ #2548]
10679         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
10680         bits before adding and subtracting TWO23[sx].
10681         * math/libm-test.inc (rint_test): Add more tests.
10682         (rint_test_tonearest): Likewise.
10683         (rint_test_towardzero): Likewise.
10684         (rint_test_downward): Likewise.
10685         (rint_test_upward: Likewise.
10686
10687 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
10688
10689         [BZ #10110]
10690         * include/stdc-predef.h: New file.  Extracted from features.h.
10691         * include/features.h: Include stdc-predef.h.
10692         * Makefile (headers): Add stdc-predef.h.
10693         * CONFORMANCE (Compiler limitations): Update.
10694
10695 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
10696
10697         * manual/libc.texinfo (VERSION, UPDATED): Revert.
10698
10699 2012-02-21  David S. Miller  <davem@davemloft.net>
10700
10701         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
10702         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
10703
10704 2012-02-20  David S. Miller  <davem@davemloft.net>
10705
10706         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
10707         using a normal save/restore sequence, rather than allocating a
10708         dummy stack frame just to store a frame pointer and restore.
10709         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
10710
10711 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
10712
10713         * manual/install.texi: Fix stray word in line-wrapped comment.
10714
10715 2012-02-20  David S. Miller  <davem@davemloft.net>
10716
10717         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
10718         both binutils and gcc support GOTDATA.
10719
10720         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
10721         "rd %pc" in the PIC register setup sequences.
10722
10723         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
10724         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
10725         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
10726         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
10727         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
10728         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
10729         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
10730         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
10731         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
10732         (SYSCALL_ERROR_HANDLER): Likewise.
10733         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
10734         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
10735         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
10736         (SYSCALL_ERROR_HANDLER): Likewise.
10737
10738         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
10739         (HAVE_GCC_GOTDATA): New.
10740         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
10741         relocation support in both binutils and gcc.
10742         * sysdeps/sparc/elf/configure: Regenerate.
10743
10744         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
10745         * sysdeps/sparc/sparc32/elf/configure: Delete.
10746         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
10747         * sysdeps/sparc/sparc64/elf/configure: Delete.
10748         * sysdeps/sparc/elf/configure.in: New file.
10749         * sysdeps/sparc/elf/configure: Generate.
10750
10751         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
10752         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
10753         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
10754         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
10755         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
10756
10757 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
10758
10759         * manual/install.texi: Do not mention specific glibc version
10760         numbers.
10761         * manual/libc.texinfo (VERSION, UPDATED): Update.
10762         (@copying): Use @copyright{} and range of years.
10763
10764 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
10765
10766         [BZ #13695]
10767         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
10768         [crti.S not in sysdirs] (generated): Do not append.
10769         [crti.S not in sysdirs] (omit-deps): Likewise.
10770         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
10771         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
10772         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
10773         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
10774         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
10775         Likewise.
10776         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
10777         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
10778         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
10779         * csu/defs.awk: Remove file.
10780         * sysdeps/generic/initfini.c: Likewise.
10781         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
10782         variable.
10783         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
10784         Likewise.
10785
10786 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
10787
10788         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
10789         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
10790         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
10791         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
10792         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
10793         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
10794         <bits/epoll.h>.
10795         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
10796         (__EPOLL_PACKED): Define to empty if not defined by
10797         <bits/epoll.h>.
10798         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
10799         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10800         bits/epoll.h.
10801
10802 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
10803
10804         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
10805         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
10806         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
10807         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
10808         <bits/timerfd.h>.
10809         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
10810         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10811         bits/timerfd.h.
10812
10813 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
10814
10815         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
10816         in C locale.
10817         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
10818         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
10819         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
10820         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10821
10822 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
10823
10824         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
10825         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
10826
10827 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
10828
10829         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
10830         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
10831         defined.
10832         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
10833         Likewise.
10834         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
10835         entry for 2.16.
10836
10837 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
10838
10839         * math/w_acos.c: Use non-signaling floating-point comparisons.
10840         * math/w_acosf.c: Likewise.
10841         * math/w_acosh.c: Likewise.
10842         * math/w_acoshf.c: Likewise.
10843         * math/w_acoshl.c: Likewise.
10844         * math/w_acosl.c: Likewise.
10845         * math/w_asin.c: Likewise.
10846         * math/w_asinf.c: Likewise.
10847         * math/w_asinl.c: Likewise.
10848         * math/w_atanh.c: Likewise.
10849         * math/w_atanhf.c: Likewise.
10850         * math/w_atanhl.c: Likewise.
10851         * math/w_exp2.c: Likewise.
10852         * math/w_exp2f.c: Likewise.
10853         * math/w_exp2l.c: Likewise.
10854         * math/w_j0.c: Likewise.
10855         * math/w_j0f.c: Likewise.
10856         * math/w_j0l.c: Likewise.
10857         * math/w_j1.c: Likewise.
10858         * math/w_j1f.c: Likewise.
10859         * math/w_j1l.c: Likewise.
10860         * math/w_jn.c: Likewise.
10861         * math/w_jnf.c: Likewise.
10862         * math/w_log.c: Likewise.
10863         * math/w_log10.c: Likewise.
10864         * math/w_log10f.c: Likewise.
10865         * math/w_log10l.c: Likewise.
10866         * math/w_log2.c: Likewise.
10867         * math/w_log2f.c: Likewise.
10868         * math/w_log2l.c: Likewise.
10869         * math/w_logf.c: Likewise.
10870         * math/w_logl.c: Likewise.
10871         * math/w_sqrt.c: Likewise.
10872         * math/w_sqrtf.c: Likewise.
10873         * math/w_sqrtl.c: Likewise.
10874         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
10875         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
10876         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
10877         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
10878         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
10879
10880 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
10881
10882         [BZ #9739]
10883         * manual/string.texi (strnlen): Use correct parameter name in
10884         equivalent expression.
10885
10886 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
10887
10888         [BZ #11174]
10889         * manual/users.texi (seteuid): Consistently use neweuid for
10890         argument name.
10891
10892 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
10893
10894         [BZ #13704]
10895         * manual/nss.texi (Services in the NSS configuration): Correct
10896         list of services in example configuration file.
10897
10898 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
10899
10900         [BZ #11322]
10901         * manual/arith.texi: Remove statements about negative zero
10902         behaving identically to zero.
10903
10904 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
10905
10906         [BZ #5993]
10907         * manual/install.texi: Do not document upgrading from libc5.
10908
10909 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
10910
10911         [BZ #4596]
10912         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
10913
10914 2012-02-18  David S. Miller  <davem@davemloft.net>
10915
10916         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
10917         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
10918         %o7 across the call.
10919         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
10920         instead.
10921         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
10922         SETUP_PIC_REG_LEAF.
10923         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
10924         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
10925         * sysdeps/sparc/crtn.S: Likewise.
10926
10927 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
10928
10929         * aout/Makefile: Remove.
10930
10931 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
10932
10933         [BZ #13058]
10934         * manual/examples/argp-ex1.c (main): Format definition in GNU
10935         style.
10936         * manual/examples/argp-ex2.c (main): Likewise.
10937         * manual/examples/argp-ex3.c (main): Likewise.
10938         * manual/examples/argp-ex4.c (main): Likewise.
10939         * manual/examples/longopt.c (main): Use new-style prototype
10940         definition.
10941         * manual/examples/strncat.c (main): Specify return type and use
10942         (void) for arguments.
10943         * manual/examples/subopt.c (main): Use char **argv argument.
10944
10945 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
10946
10947         [BZ #5077]
10948         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
10949         rounding modes.
10950
10951 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
10952
10953         [BZ #6907]
10954         * manual/string.texi (strchr): Change when strchrnul is
10955         recommended.
10956
10957 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
10958
10959         [BZ #174]
10960         * manual/locale.texi (setlocale): Document LOCPATH.
10961
10962 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
10963
10964         [BZ #10210]
10965         * manual/process.texi (execle): Move @dots{} before last argument.
10966
10967 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
10968
10969         [BZ #12047]
10970         * manual/charset.texi (Generic Charset Conversion): Fix typo
10971         (LC_TYPE -> LC_CTYPE).
10972
10973 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
10974
10975         [BZ #5805]
10976         * manual/arith.texi (scalbn): Use @var{} on parameter names.
10977         (scalbnf): Likewise.
10978         (scalbnl): Likewise.
10979         (scalbln): Likewise.
10980         (scalblnf): Likewise.
10981         (scalblnl): Likewise.
10982         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
10983         (vwarnx): Likewise.
10984         (verr): Likewise.
10985         (verrx): Likewise.
10986         * manual/filesys.texi (telldir): Use braces around return type.
10987         * manual/llio.texi (mmap): Add space after comma.
10988         (mmap64): Likewise.
10989         * manual/math.texi (jn): Use @var{} on parameter names.
10990         (jnf): Likewise.
10991         (jnl): Likewise.
10992         (yn): Likewise.
10993         (ynf): Likewise.
10994         (ynl): Likewise.
10995         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
10996         line.
10997         * manual/resource.texi (ulimit): Use @dots{} instead of literal
10998         "...".
10999         (sched_get_priority_min): Remove semicolon on @deftypefun line.
11000         (sched_get_priority_max): Likewise.
11001         * manual/signal.texi (sigvec): Add space after comma.
11002         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
11003         names.
11004         (if_indextoname): Likewise.
11005         (if_freenameindex): Likewise.
11006         (sendto): Use ',' instead of '.' in prototype.
11007         * manual/startup.texi (syscall): Use @dots{} instead of literal
11008         "...".
11009         * manual/stdio.texi (__fpending): Separate initial words of
11010         paragraph from @deftypefun line.
11011         * manual/syslog.texi (syslog): Use @dots{} instead of literal
11012         "...".
11013         (vsyslog): Use @var{} on parameter names.
11014         * manual/terminal.texi (stty): Use @var{} on parameter names.
11015         * manual/users.texi (getutmp): Use @var{} on parameter names.
11016         (getutmpx): Likewise.
11017
11018 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11019
11020         [BZ #6884]
11021         * manual/stdio.texi (fopen): Fix typos in description of
11022         ",ccs=STRING".
11023
11024 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
11025
11026         [BZ #4026]
11027         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
11028         get clock_id definition.
11029
11030 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
11031
11032         [BZ #4822]
11033         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
11034         (madvise): Cast every argument to void on its own.
11035
11036 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11037
11038         [BZ #9902]
11039         * manual/startup.texi (Exit Status): Fix typo.
11040
11041 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11042
11043         [BZ #10140]
11044         * manual/examples/argp-ex1.c: Include <stdlib.h>.
11045         * manual/examples/argp-ex2.c: Likewise.
11046         * manual/examples/argp-ex3.c: Likewise.
11047
11048 2012-02-16  Richard Henderson  <rth@redhat.com>
11049
11050         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
11051         * sysdeps/s390/s390-32/initfini.c: Remove.
11052         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
11053         * sysdeps/s390/s390-64/initfini.c: Remove.
11054
11055 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
11056
11057         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
11058         compiler output for sysdeps/generic/initfini.c.
11059         * sysdeps/sh/elf/initfini.c: Remove file.
11060
11061 2012-02-16  David S. Miller  <davem@davemloft.net>
11062
11063         [BZ #11494]
11064         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
11065
11066         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
11067         * sysdeps/sparc/crti.S: New file.
11068         * sysdeps/sparc/crtn.S: New file.
11069         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
11070         * sysdeps/sparc/sparc64/Makefile: Likewise.
11071
11072 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
11073
11074         [BZ #3335]
11075         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
11076
11077 2012-02-15  Roland McGrath  <roland@hack.frob.com>
11078
11079         [BZ #4822]
11080         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
11081
11082         * mach/devstream.c (cookie_io_functions_t): Macro removed.
11083         (write, read, close): Likewise.
11084         Patch by Aurelien Jarno <aurelien@aurel32.net>.
11085
11086 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
11087
11088         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
11089         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
11090         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
11091         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
11092         <bits/signalfd.h>.
11093         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
11094         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11095         bits/signalfd.h.
11096
11097 2012-02-14  Marek Polacek  <polacek@redhat.com>
11098
11099         * sysdeps/x86_64/crti.S: New file.
11100         * sysdeps/x86_64/crtn.S: New file.
11101         * sysdeps/x86_64/elf/initfini.c: Remove file.
11102
11103 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
11104
11105         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
11106         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
11107         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
11108         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
11109         <bits/inotify.h>.
11110         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
11111         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11112         bits/inotify.h.
11113
11114 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
11115
11116         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
11117         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
11118         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
11119         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
11120         <bits/eventfd.h>.
11121         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
11122         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11123         bits/eventfd.h.
11124
11125 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
11126
11127         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
11128         __feraiseexcept instead of feraiseexcept.
11129
11130         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
11131         nanosleep invocations.
11132         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
11133         strings, and add error checking for a nanosleep invocations.
11134
11135 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
11136
11137         Replace FSF snail mail address with URLs, as per GNU coding standards.
11138         Most of the snail mail addresses were wrong anyway, and omitting
11139         them makes the source code easier to maintain.  Almost all of the
11140         changes are to license notices and to locale LC_IDENTIFICATION
11141         addresses, except for this one:
11142         * manual/libc.texinfo: In "Published by", give the FSF's URL,
11143         not its snail mail address.
11144
11145 2012-02-09  Richard Henderson  <rth@twiddle.net>
11146
11147         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
11148         of kernel-features.h.
11149
11150         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
11151
11152 2012-02-08  Marek Polacek  <polacek@redhat.com>
11153
11154         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
11155         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
11156         * sysdeps/gnu/_G_config.h: Likewise.
11157         * sysdeps/generic/_G_config.h: Likewise.
11158
11159 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
11160
11161         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
11162         tests.
11163         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11164
11165         * sysdeps/powerpc/powerpc32/crti.S: New file.
11166         * sysdeps/powerpc/powerpc32/crtn.S: New file.
11167         * sysdeps/powerpc/powerpc64/crti.S: New file.
11168         * sysdeps/powerpc/powerpc64/crtn.S: New file.
11169
11170         * Makeconfig (have-initfini): Don't set.
11171         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
11172         * configure.in (nopic_initfini): Don't substitute.
11173         * config.h.in (HAVE_INITFINI): Don't #undef.
11174         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
11175         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
11176
11177 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
11178
11179         Support crti.S and crtn.S provided directly by architectures.
11180         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
11181         [crti.S in sysdirs] (omit-deps): Likewise.
11182         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
11183         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
11184         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
11185         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
11186         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
11187         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
11188         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
11189         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
11190         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
11191         compiler output for sysdeps/generic/initfini.c.
11192         * sysdeps/i386/elf/Makefile: Remove file.
11193         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
11194
11195 2012-02-07  Marek Polacek  <polacek@redhat.com>
11196
11197         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
11198         * sysdeps/gnu/_G_config.h: Likewise.
11199         * sysdeps/mach/hurd/_G_config.h: Likewise.
11200
11201 2012-02-07  Marek Polacek  <polacek@redhat.com>
11202
11203         * math/Makefile (tests): Add tst-CMPLX2.
11204         * math/tst-CMPLX2.c: New file.
11205
11206 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
11207
11208         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
11209
11210         * math/libm-test.inc (jn_test): Add missing L suffix.
11211
11212 2012-02-06  Marek Polacek  <polacek@redhat.com>
11213
11214         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
11215         * sysdeps/i386/fpu/e_powf.S: Likewise.
11216         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
11217         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
11218         * sysdeps/i386/fpu/e_acosh.S: Likewise.
11219         * sysdeps/i386/fpu/e_pow.S: Likewise.
11220         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
11221         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
11222         * sysdeps/i386/fpu/s_expm1.S: Likewise.
11223         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
11224         * sysdeps/i386/fpu/e_log2.S: Likewise.
11225         * sysdeps/i386/fpu/e_log2l.S: Likewise.
11226         * sysdeps/i386/fpu/e_scalb.S: Likewise.
11227         * sysdeps/i386/fpu/e_powl.S: Likewise.
11228         * sysdeps/i386/fpu/s_log1p.S: Likewise.
11229         * sysdeps/i386/fpu/e_log10f.S: Likewise.
11230         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
11231         * sysdeps/i386/fpu/e_logl.S: Likewise.
11232         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
11233         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
11234         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
11235         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
11236         * sysdeps/i386/fpu/e_log2f.S: Likewise.
11237         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
11238         * sysdeps/i386/fpu/e_log.S: Likewise.
11239         * sysdeps/i386/fpu/s_cexp.S: Likewise.
11240         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
11241         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
11242         * sysdeps/i386/fpu/e_logf.S: Likewise.
11243         * sysdeps/i386/fpu/e_log10l.S: Likewise.
11244         * sysdeps/i386/fpu/e_atanh.S: Likewise.
11245         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
11246         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
11247         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
11248         * sysdeps/i386/fpu/e_log10.S: Likewise.
11249         * sysdeps/i386/fpu/s_frexp.S: Likewise.
11250         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
11251         * sysdeps/i386/fpu/s_asinh.S: Likewise.
11252         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
11253         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
11254         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
11255         * sysdeps/i386/asm-syntax.h: Likewise.
11256         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
11257         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
11258         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
11259         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
11260         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
11261         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
11262         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
11263         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
11264         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
11265         * sysdeps/powerpc/sysdep.h: Likewise.
11266         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
11267         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
11268
11269 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
11270
11271         [BZ #411]
11272         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
11273
11274 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
11275
11276         * sysdeps/i386/sysdep.h: Include <features.h>.
11277         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
11278         version.
11279
11280 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
11281
11282         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
11283         Define.
11284         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
11285         LOAD_PIC_REG_STR.
11286
11287 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
11288
11289         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
11290         (SETUP_PIC_REG): Use GET_PC_THUNK.
11291         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
11292         macro.
11293
11294 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
11295
11296         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
11297         for non-PIC compilation.
11298         (SETUP_PIC_REG): Add .p2align directive.
11299         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
11300         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
11301         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
11302         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
11303         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
11304         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
11305         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
11306         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
11307         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
11308         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
11309         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
11310         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
11311         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
11312         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
11313         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
11314         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
11315         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
11316         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
11317         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
11318         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
11319         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
11320         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
11321         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
11322         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
11323         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
11324         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
11325         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
11326         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
11327         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
11328         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
11329         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
11330         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
11331         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
11332         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
11333         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
11334         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
11335         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
11336         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
11337         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
11338         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
11339         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
11340
11341 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
11342
11343         * math/tst-CMPLX.c: Include <stdio.h>.
11344
11345 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
11346
11347         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
11348         float.
11349         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
11350         * sysdeps/sparc/bits/mathdef.h: Likewise.
11351
11352 2012-01-31  Marek Polacek  <polacek@redhat.com>
11353
11354         * libio/libio.h: Don't define _PARAMS.
11355         * locale/programs/config.h: Don't define PARAMS.
11356         * stdlib/strtol_l.c: Likewise.
11357         (__strtol_l): Remove PARAMS from the prototype.
11358
11359 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
11360
11361         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
11362         names.  Just use the correct names.  Remove unnecessary wrapper
11363         functions.
11364         * malloc/arena.c: Likewise.
11365         * malloc/hooks.c: Likewise.
11366
11367         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
11368         ARENA_TEST says not to.  Simplify test for creation of a new arena.
11369         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
11370
11371 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
11372
11373         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
11374         into tail calls.
11375         (update_get_addr): New function.
11376         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
11377         GET_ADDR_MODULE parameter.
11378
11379 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
11380
11381         * crypt/cert.c: Remove __STDC__ conditionals.
11382         * crypt/crypt-entry.c: Likewise.
11383         * crypt/crypt_util.c: Likewise.
11384         * libio/filedoalloc.c: Likewise.
11385         * libio/fileops.c: Likewise.
11386         * libio/genops.c: Likewise.
11387         * libio/iofclose.c: Likewise.
11388         * libio/iofdopen.c: Likewise.
11389         * libio/iofopen.c: Likewise.
11390         * libio/iofopen64.c: Likewise.
11391         * libio/iogetdelim.c: Likewise.
11392         * libio/iopopen.c: Likewise.
11393         * libio/obprintf.c: Likewise.
11394         * libio/oldfileops.c: Likewise.
11395         * libio/oldiofclose.c: Likewise.
11396         * libio/oldiofdopen.c: Likewise.
11397         * libio/oldiofopen.c: Likewise.
11398         * libio/oldiopopen.c: Likewise.
11399         * libio/wfiledoalloc.c: Likewise.
11400         * libio/wgenops.c: Likewise.
11401         * locale/programs/xmalloc.c: Likewise.
11402         * misc/syslog.c: Likewise.
11403         * stdio-common/xbug.c: Likewise.
11404         * string/memchr.c: Likewise.
11405         * string/memcmp.c: Likewise.
11406         * string/memrchr.c: Likewise.
11407         * string/rawmemchr.c: Likewise.
11408         * sysdeps/posix/getcwd.c: Likewise.
11409         * time/strftime_l.c: Likewise.
11410
11411 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
11412
11413         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
11414         * config.make.in (config-cflags-sse2avx): Define.
11415         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
11416         Fix typo.
11417
11418 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
11419
11420         * scripts/config.guess: Update from upstream config git repository.
11421         * scripts/config.sub: Likewise.
11422
11423 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
11424
11425         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
11426         (EM_NUM): Update.
11427         (R_TILEPRO_*, R_TILEGX_*): New macros.
11428
11429         * scripts/firstversions.awk: Fix bug in version range handling.
11430
11431         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
11432
11433         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
11434
11435         * include/sys/epoll.h: New file.
11436         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
11437         libc_hidden_def.
11438
11439 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
11440
11441         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
11442         Avoid unnecessary __WORDSIZE == 64 test.
11443         (fmaxf): Use VEX format if possible.
11444         (fmax): Likewise.
11445         (fminf): Likewise.
11446         (fmin): Likewise.
11447
11448         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
11449         * math/math_private.h: Remove libc_fegetround* and
11450         libc_fesetround*.
11451         * sysdeps/i386/configure.in: Check for -msse2avx.
11452         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
11453         also if SSE2AVX is defined.
11454         Remove libc_fegetround* and libc_fesetround*.
11455         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
11456         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
11457         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
11458         of HAS_YMM_USABLE.
11459         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
11460         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
11461         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
11462         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
11463         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
11464
11465         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
11466
11467 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11468
11469         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
11470         size is not set.
11471         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
11472
11473 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
11474
11475         [BZ #13618]
11476         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
11477         relocation.
11478         * Makeconfig (libm): Define.
11479         * elf/Makefile: Add rules to build and run tst-relsort1.
11480         * elf/tst-relsort1.c: New file.
11481         * elf/tst-relsort1mod1.c: New file.
11482         * elf/tst-relsort1mod2.c: New file.
11483
11484 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
11485
11486         * math/s_ldexp.c: Remove __STDC__ conditionals.
11487         * math/s_ldexpf.c: Likewise.
11488         * math/s_ldexpl.c: Likewise.
11489         * math/s_nextafter.c: Likewise.
11490         * math/s_nexttowardf.c: Likewise.
11491         * math/s_significand.c: Likewise.
11492         * math/s_significandf.c: Likewise.
11493         * math/s_significandl.c: Likewise.
11494         * math/w_jnl.c: Likewise.
11495         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
11496         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
11497         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
11498         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
11499         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
11500         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
11501         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
11502         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
11503         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
11504         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
11505         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
11506         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
11507         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
11508         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
11509         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
11510         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
11511         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
11512         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
11513         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
11514         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
11515         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
11516         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
11517         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
11518         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
11519         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
11520         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
11521         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
11522         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
11523         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
11524         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
11525         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
11526         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
11527         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
11528         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
11529         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
11530         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
11531         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
11532         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
11533         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
11534         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
11535         * sysdeps/ieee754/k_standard.c: Likewise.
11536         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11537         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
11538         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
11539         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
11540         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
11541         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
11542         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
11543         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
11544         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
11545         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
11546         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
11547         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
11548         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
11549         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
11550         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
11551         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
11552         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
11553         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
11554         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
11555         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
11556         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
11557         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
11558         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
11559         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
11560         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
11561         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
11562         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
11563         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11564         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
11565         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
11566         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
11567         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
11568         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
11569         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
11570         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
11571         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
11572         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
11573         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
11574         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
11575         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
11576         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
11577         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
11578         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
11579         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
11580         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
11581         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
11582         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
11583         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
11584         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
11585         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
11586         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
11587         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
11588         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
11589         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
11590         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
11591         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
11592         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
11593         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
11594         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
11595         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
11596         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
11597         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
11598         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
11599         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
11600         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
11601         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
11602         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
11603         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
11604         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
11605         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
11606         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
11607         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
11608         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
11609         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
11610         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
11611         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
11612         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
11613         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
11614         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
11615         * sysdeps/ieee754/s_matherr.c: Likewise.
11616         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
11617         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
11618         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
11619         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
11620
11621 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
11622
11623         * crypt/md5.h: Remove __STDC__ conditionals.
11624         * libio/libioP.h: Likewise.
11625         * locale/programs/config.h: Likewise.
11626         * sysdeps/generic/sysdep.h: Likewise.
11627         * sysdeps/i386/asm-syntax.h: Likewise.
11628         * sysdeps/s390/asm-syntax.h: Likewise.
11629         * sysdeps/unix/sysdep.h: Likewise.
11630         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
11631         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
11632
11633 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
11634
11635         * libio/libio.h: Remove __STDC__ conditionals.
11636         * malloc/obstack.h: Likewise.
11637         * math/complex.h: Likewise.
11638         * math/math.h: Likewise.
11639         * sysdeps/generic/_G_config.h: Likewise.
11640         * sysdeps/gnu/_G_config.h: Likewise.
11641         * sysdeps/mach/hurd/_G_config.h: Likewise.
11642         * sysdeps/powerpc/bits/mathdef.h: Likewise.
11643         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
11644         * sysdeps/sparc/bits/mathdef.h: Likewise.
11645
11646 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
11647
11648         [BZ #13583]
11649         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
11650         Clean up HAS_* macros.
11651         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
11652         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
11653         possible.
11654         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
11655         HAS_AVX.
11656         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
11657         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
11658         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
11659         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
11660         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
11661
11662 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
11663
11664         * elf/tst-unique3.cc (gets): Remove declaration.
11665         * elf/tst-unique3lib.cc (gets): Likewise.
11666         * elf/tst-unique3lib2.cc (gets): Likewise.
11667         * elf/tst-unique4.cc (gets): Likewise.
11668
11669 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
11670
11671         * include/stdio.h: Add C++ protection.  Add gets declarations and
11672         definitions.
11673         * debug/tst-chk1.c: Don't declare gets here.
11674         * stdio-common/tst-gets.c: Likewise.
11675
11676 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
11677
11678         * posix/glob: Remove directory.
11679
11680 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
11681
11682         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
11683
11684 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
11685
11686         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
11687         of the non-standard EPFNOSUPPORT.
11688
11689 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11690
11691         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
11692         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
11693         ANYWHERE set to 1 only on KERN_NO_SPACE error.
11694
11695 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
11696
11697         * wcsmbs/uchar.h: Test __STDC_VERSION__.
11698
11699 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
11700
11701         * nscd/aicache.c (addhstaiX): Do not cache negative results of
11702         transient errors.
11703         * nscd/grpcache.c (cache_addgr): Likewise.
11704         * nscd/hstcache.c (cache_addhst): Likewise.
11705         * nscd/initgrcache.c (addinitgroupsX): Likewise.
11706         * nscd/pwdcache.c (cache_addpw): Likewise.
11707         * nscd/servicescache.c (cache_addserv): Likewise.
11708
11709 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
11710
11711         * malloc/malloc.c: Various cleanups.
11712         * malloc/hooks.c: Likewise.
11713
11714         * stdlib/Makefile (tests): Add bug-fmtmsg1.
11715         * stdlib/bug-fmtmsg1.c: New file.
11716
11717         * stdlib/fmtmsg.c (init): Add missing unlock.
11718         Patch by Peng Haitao <penght@cn.fujitsu.com>.
11719
11720 2012-01-12  Marek Polacek  <polacek@redhat.com>
11721
11722         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
11723         and _GNU_SOURCE.
11724
11725 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
11726
11727         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
11728         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
11729         macro to ensure uniqueness of label name.
11730         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
11731         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
11732
11733 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
11734
11735         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
11736
11737         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
11738         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
11739         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
11740         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
11741
11742 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
11743
11744         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
11745
11746         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
11747         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
11748         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
11749
11750         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
11751
11752         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
11753         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
11754         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
11755         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
11756
11757         * math/bits/math-finite.h: Add ldexp support.
11758
11759 2012-01-10  Marek Polacek  <polacek@redhat.com>
11760
11761         * locale/programs/localedef.h (show_archive_content): Add noreturn
11762         attribute.
11763
11764 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
11765
11766         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
11767
11768 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
11769
11770         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
11771
11772         * io/Makefile (headers): Add bits/poll2.h.
11773
11774 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
11775
11776         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
11777         typo #include statement.
11778
11779 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
11780
11781         * include/sys/cdefs.h: Define __attribute_alloc_size.
11782         * catgets/gencat.c: Add alloc_size attribute and apply consistently
11783         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
11784         * elf/pldd.c: Likewise.
11785         * iconv/iconv_charmap.c: Likewise.
11786         * iconv/iconvconfig.c: Likewise.
11787         * iconv/strtab.c: Likewise.
11788         * locale/programs/locale.c: Likewise.
11789         * locale/programs/localedef.h: Likewise.
11790         * locale/programs/simple-hash.c: Likewise.
11791         * nscd/nscd.h: Likewise.
11792         * nss/makedb.c: Likewise.
11793         * sysdeps/generic/ldconfig.h: Likewise.
11794         * locale/programs/localedef.c: Remove xmalloc prototype.
11795         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
11796
11797 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
11798
11799         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
11800         appropriate.
11801
11802 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
11803
11804         * math/Makefile (tests): Add tst-CMPLX.
11805         * math/tst-CMPLX.c: New file.
11806
11807         * math/complex.h (CMPLXL): Fix typo.
11808
11809         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
11810         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
11811         GLIBC_2.16.
11812         * debug/tst-chk1.c: Add poll and ppoll tests.
11813         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
11814         * include/sys/poll.h: Add hidden proto for ppoll.
11815         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
11816         * sysdeps/mach/hurd/ppoll.c: Likewise.
11817         * io/ppoll.c: Likewise.
11818         * debug/poll_chk.c: New file.
11819         * debug/ppoll_chk.c: New file.
11820         * include/bits/poll2.h: New file.
11821         * io/bits/poll2.h: New file.
11822
11823         [BZ #1350]
11824         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
11825
11826         * configure.in: static is always set to yes.  Remove.
11827         * config.make.in: Don't set build-static.
11828         * Makeconfig: Remove use of build-static.
11829         * dlfcn/Makefile: Likewise.
11830         * elf/Makefile: Likewise.
11831         * math/Makefile: Likewise.
11832         * misc/Makefile: Likewise.
11833         * nptl/Makefile: Likewise.
11834         * sysdeps/mach/hurd/Makefile: Likewise.
11835
11836         * configure.in: PWD_P is not used anymore.
11837         * config.make.in: Remove PWD_P entry.
11838
11839         * configure.in: Remove last remnants of RANLIB.
11840         No need to check for signed size_t anymore.
11841         Don't set libc_commonpagesize and libc_relro_required here for Alpha
11842         and IA-64.
11843         Remove __builtin_expect test because we require at least gcc 3.4.
11844         * aclocal.m4: Likewise.
11845
11846         * wcsmbs/mbrtoc16.c: Implement using towc function.
11847         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
11848         * wcsmbs/wcsmbsload.c: Likewise.
11849         * iconv/gconv_simple.c: Likewise.
11850         * iconv/gconv_int.h: Likewise.
11851         * iconv/gconv_builtin.h: Likewise.
11852         * iconv/iconv_prog.c: Remove CHAR16 handling.
11853
11854         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
11855
11856         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
11857
11858         * configure.in: Remove --with-elf and --enable-bounded options.
11859         Dont set base_machine for ia64.  More non-ELF conditions removed.
11860         Remove testing and setting of leading underscore information.
11861         * config.make.in (build-bounded): Set to no.
11862         * config.h.in: Remove NO_UNDERSCORES entry.
11863         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
11864         them.
11865         * csu/start.c: Remove !NO_UNDERSCORE code.
11866         * locale/localeinfo.h: Likewise.
11867         * sysdeps/generic/machine-gmon.h: Likewise.
11868         * sysdeps/generic/sysdep.h: Likewise.
11869         * sysdeps/i386/sysdep.h: Likewise.
11870         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
11871         * sysdeps/mach/sysdep.h: Likewise.
11872         * sysdeps/s390/s390-32/sysdep.h: Likewise.
11873         * sysdeps/s390/s390-64/sysdep.h: Likewise.
11874         * sysdeps/sh/sysdep.h: Likewise.
11875         * sysdeps/sparc/sparc32/alloca.S: Likewise.
11876         * sysdeps/unix/i386/sysdep.S: Likewise.
11877         * sysdeps/unix/sparc/start.c: Likewise.
11878         * sysdeps/unix/sparc/sysdep.S: Likewise.
11879         * sysdeps/unix/sparc/sysdep.h: Likewise.
11880         * sysdeps/unix/start.c: Likewise.
11881         * sysdeps/unix/x86_64/sysdep.S: Likewise.
11882         * sysdeps/x86_64/sysdep.h: Likewise.
11883
11884 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
11885
11886         [BZ #13553]
11887         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
11888         for non-gcc.
11889         * argp/argp-fmtstream.h: Use const instead __const.
11890         * argp/argp.h: Likewise.
11891         * assert/assert.h: Likewise.
11892         * bits/fenv.h: Likewise.
11893         * bits/sched.h: Likewise.
11894         * bits/sigset.h: Likewise.
11895         * bits/sigthread.h: Likewise.
11896         * catgets/nl_types.h: Likewise.
11897         * conform/data/pthread.h-data: Likewise.
11898         * crypt/crypt-private.h: Likewise.
11899         * crypt/crypt.h: Likewise.
11900         * crypt/crypt_util.c: Likewise.
11901         * ctype/ctype.h: Likewise.
11902         * debug/execinfo.h: Likewise.
11903         * debug/mbsnrtowcs_chk.c: Likewise.
11904         * debug/mbsrtowcs_chk.c: Likewise.
11905         * debug/wcsnrtombs_chk.c: Likewise.
11906         * debug/wcsrtombs_chk.c: Likewise.
11907         * debug/wcstombs_chk.c: Likewise.
11908         * dirent/dirent.h: Likewise.
11909         * dlfcn/dlfcn.h: Likewise.
11910         * elf/neededtest4.c: Likewise.
11911         * grp/grp.h: Likewise.
11912         * gshadow/gshadow.h: Likewise.
11913         * iconv/gconv.h: Likewise.
11914         * iconv/gconv_int.h: Likewise.
11915         * iconv/gconv_simple.c: Likewise.
11916         * iconv/iconv.h: Likewise.
11917         * iconv/loop.c: Likewise.
11918         * iconv/skeleton.c: Likewise.
11919         * include/aio.h: Likewise.
11920         * include/aliases.h: Likewise.
11921         * include/argz.h: Likewise.
11922         * include/arpa/inet.h: Likewise.
11923         * include/assert.h: Likewise.
11924         * include/dirent.h: Likewise.
11925         * include/dlfcn.h: Likewise.
11926         * include/execinfo.h: Likewise.
11927         * include/fcntl.h: Likewise.
11928         * include/fenv.h: Likewise.
11929         * include/glob.h: Likewise.
11930         * include/grp.h: Likewise.
11931         * include/libintl.h: Likewise.
11932         * include/mntent.h: Likewise.
11933         * include/netdb.h: Likewise.
11934         * include/pwd.h: Likewise.
11935         * include/rpc/netdb.h: Likewise.
11936         * include/sched.h: Likewise.
11937         * include/search.h: Likewise.
11938         * include/shadow.h: Likewise.
11939         * include/signal.h: Likewise.
11940         * include/stdio.h: Likewise.
11941         * include/stdlib.h: Likewise.
11942         * include/string.h: Likewise.
11943         * include/sys/socket.h: Likewise.
11944         * include/sys/stat.h: Likewise.
11945         * include/sys/statfs.h: Likewise.
11946         * include/sys/statvfs.h: Likewise.
11947         * include/sys/syslog.h: Likewise.
11948         * include/sys/time.h: Likewise.
11949         * include/sys/uio.h: Likewise.
11950         * include/time.h: Likewise.
11951         * include/unistd.h: Likewise.
11952         * include/utmp.h: Likewise.
11953         * include/wchar.h: Likewise.
11954         * include/wctype.h: Likewise.
11955         * inet/aliases.h: Likewise.
11956         * inet/arpa/inet.h: Likewise.
11957         * inet/netinet/ether.h: Likewise.
11958         * inet/netinet/in.h: Likewise.
11959         * intl/libintl.h: Likewise.
11960         * io/bits/fcntl2.h: Likewise.
11961         * io/fcntl.h: Likewise.
11962         * io/ftw.h: Likewise.
11963         * io/sys/poll.h: Likewise.
11964         * io/sys/stat.h: Likewise.
11965         * io/sys/statfs.h: Likewise.
11966         * io/sys/statvfs.h: Likewise.
11967         * io/utime.h: Likewise.
11968         * libio/bits/stdio.h: Likewise.
11969         * libio/bits/stdio2.h: Likewise.
11970         * libio/libio.h: Likewise.
11971         * libio/libioP.h: Likewise.
11972         * libio/stdio.h: Likewise.
11973         * locale/lc-ctype.c: Likewise.
11974         * locale/locale.h: Likewise.
11975         * login/utmp.h: Likewise.
11976         * malloc/arena.c: Likewise.
11977         * malloc/malloc.c: Likewise.
11978         * malloc/malloc.h: Likewise.
11979         * malloc/mcheck.c: Likewise.
11980         * malloc/mtrace.c: Likewise.
11981         * math/bits/mathcalls.h: Likewise.
11982         * math/fenv.h: Likewise.
11983         * math/math_private.h: Likewise.
11984         * misc/bits/error.h: Likewise.
11985         * misc/bits/syslog.h: Likewise.
11986         * misc/err.h: Likewise.
11987         * misc/error.h: Likewise.
11988         * misc/fstab.h: Likewise.
11989         * misc/mntent.h: Likewise.
11990         * misc/regexp.h: Likewise.
11991         * misc/search.h: Likewise.
11992         * misc/sgtty.h: Likewise.
11993         * misc/sys/mman.h: Likewise.
11994         * misc/sys/syslog.h: Likewise.
11995         * misc/sys/uio.h: Likewise.
11996         * misc/sys/xattr.h: Likewise.
11997         * misc/ttyent.h: Likewise.
11998         * nis/rpcsvc/ypclnt.h: Likewise.
11999         * nss/nss.h: Likewise.
12000         * posix/bits/unistd.h: Likewise.
12001         * posix/fnmatch.h: Likewise.
12002         * posix/glob.h: Likewise.
12003         * posix/sched.h: Likewise.
12004         * posix/spawn.h: Likewise.
12005         * posix/sys/wait.h: Likewise.
12006         * posix/unistd.h: Likewise.
12007         * posix/wordexp.h: Likewise.
12008         * pwd/pwd.h: Likewise.
12009         * resolv/netdb.h: Likewise.
12010         * resource/sys/resource.h: Likewise.
12011         * rt/aio.h: Likewise.
12012         * rt/bits/mqueue2.h: Likewise.
12013         * rt/mqueue.h: Likewise.
12014         * shadow/shadow.h: Likewise.
12015         * signal/signal.h: Likewise.
12016         * socket/send.c: Likewise.
12017         * socket/sendto.c: Likewise.
12018         * socket/sys/socket.h: Likewise.
12019         * stdio-common/printf.h: Likewise.
12020         * stdlib/bits/stdlib.h: Likewise.
12021         * stdlib/fmtmsg.h: Likewise.
12022         * stdlib/monetary.h: Likewise.
12023         * stdlib/stdlib.h: Likewise.
12024         * stdlib/ucontext.h: Likewise.
12025         * streams/stropts.h: Likewise.
12026         * string/argz.h: Likewise.
12027         * string/bits/string2.h: Likewise.
12028         * string/string.h: Likewise.
12029         * string/strings.h: Likewise.
12030         * sunrpc/rpc/auth.h: Likewise.
12031         * sunrpc/rpc/auth_des.h: Likewise.
12032         * sunrpc/rpc/clnt.h: Likewise.
12033         * sunrpc/rpc/netdb.h: Likewise.
12034         * sunrpc/rpc/pmap_clnt.h: Likewise.
12035         * sunrpc/rpc/xdr.h: Likewise.
12036         * sysdeps/generic/inttypes.h: Likewise.
12037         * sysdeps/generic/net/if.h: Likewise.
12038         * sysdeps/generic/sys/swap.h: Likewise.
12039         * sysdeps/gnu/net/if.h: Likewise.
12040         * sysdeps/gnu/utmpx.h: Likewise.
12041         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
12042         * sysdeps/i386/i486/bits/string.h: Likewise.
12043         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
12044         * sysdeps/s390/bits/string.h: Likewise.
12045         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
12046         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
12047         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
12048         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
12049         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
12050         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
12051         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
12052         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
12053         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
12054         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
12055         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
12056         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
12057         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
12058         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
12059         * sysdeps/unix/sysv/linux/readv.c: Likewise.
12060         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
12061         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
12062         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
12063         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
12064         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
12065         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
12066         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
12067         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
12068         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
12069         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
12070         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
12071         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
12072         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
12073         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
12074         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
12075         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
12076         * sysvipc/sys/ipc.h: Likewise.
12077         * sysvipc/sys/msg.h: Likewise.
12078         * sysvipc/sys/sem.h: Likewise.
12079         * sysvipc/sys/shm.h: Likewise.
12080         * termios/termios.h: Likewise.
12081         * time/sys/time.h: Likewise.
12082         * time/time.h: Likewise.
12083         * wcsmbs/bits/wchar2.h: Likewise.
12084         * wcsmbs/uchar.h: Likewise.
12085         * wcsmbs/wchar.h: Likewise.
12086         * wctype/wctype.h: Likewise.
12087
12088         [BZ #13551]
12089         * Makeconfig: Remove all but ELF support including AIX support.
12090         * Makerules: Likewise.
12091         * config.h.in: Likewise.
12092         * config.make.in: Likewise.
12093         * configure: Likewise.
12094         * configure.in: Likewise.
12095         * csu/Makefile: Likewise.
12096         * csu/version.c: Likewise.
12097         * debug/Makefile: Likewise.
12098         * dlfcn/Makefile: Likewise.
12099         * elf/Makefile: Likewise.
12100         * extra-lib.mk: Likewise.
12101         * iconv/Makefile: Likewise.
12102         * include/libc-symbols.h: Likewise.
12103         * include/shlib-compat.h: Likewise.
12104         * resolv/Makefile: Likewise.
12105         * resolv/res_libc.c: Likewise.
12106         * rt/Makefile: Likewise.
12107         * sysdeps/i386/asm-syntax.h: Likewise.
12108         * sysdeps/i386/sysdep.h: Likewise.
12109         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
12110         * sysdeps/mach/sysdep.h: Likewise.
12111         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
12112         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
12113         * sysdeps/s390/asm-syntax.h: Likewise.
12114         * sysdeps/s390/s390-32/sysdep.h: Likewise.
12115         * sysdeps/s390/s390-64/sysdep.h: Likewise.
12116         * sysdeps/sh/sysdep.h: Likewise.
12117         * sysdeps/unix/sparc/sysdep.h: Likewise.
12118         * sysdeps/wordsize-32/divdi3.c: Likewise.
12119         * sysdeps/x86_64/sysdep.h: Likewise.
12120
12121         * argp/Versions: Remove _argp_unlock_xxx.
12122
12123         [BZ #13559]
12124         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
12125         * abilist/libBrokenLocale.abilist: Likewise.
12126         * abilist/libanl.abilist: Likewise.
12127         * abilist/libc.abilist: Likewise.
12128         * abilist/libcrypt.abilist: Likewise.
12129         * abilist/libdl.abilist: Likewise.
12130         * abilist/libm.abilist: Likewise.
12131         * abilist/libnsl.abilist: Likewise.
12132         * abilist/libpthread.abilist: Likewise.
12133         * abilist/libresolv.abilist: Likewise.
12134         * abilist/librt.abilist: Likewise.
12135         * abilist/libthread_db.abilist: Likewise.
12136         * abilist/libutil.abilist: Likewise.
12137         * abilist/libnss_db.abilist: New file.
12138
12139         * scripts/abilist.awk: Add support for indirect functions.
12140
12141         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
12142
12143         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
12144
12145         * shlib-versions: Remove entries for ports architectures.
12146
12147         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
12148         files in ports.
12149         * elf/stackguard-macros.h: Remove support for IA-64.
12150         * elf/tst-auditmod1.c: Likewise.
12151         * sysdeps/generic/ldsodefs.h: Likewise.
12152
12153         * sysdeps/unix/sysv/linux/configure.in: Ports should define
12154         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
12155         configure files.
12156
12157         [BZ #13552]
12158         * configure.in: Remove --enable-omitfp support.
12159         * FAQ.in: Adjust.
12160         * config.make.in: Likewise.
12161         * Makeconfig: Likewise.
12162         * manual/install.texi: Likewise.
12163
12164         In case anyone cares, the IA-64 architecture could move to ports.
12165         * sysdeps/ia64/*: Removed.
12166         * sysdeps/unix/sysv/linux/ia64/*: Removed.
12167         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
12168
12169         [BZ #13555]
12170         * configure.in: Remove entries for unsupported architectures.
12171
12172         [BZ #13533]
12173         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
12174         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
12175         routines.
12176         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
12177         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
12178         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
12179         fall back to using wcrtomb.
12180         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
12181         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
12182         renaming.
12183         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
12184         * wcsmbs/tst-c16c32-1.c: New file.
12185
12186         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
12187         local variable.
12188
12189         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
12190
12191         * elf/tst-unique3.cc: Add explicit declaration of gets.
12192         * elf/tst-unique3lib.cc: Likewise.
12193         * elf/tst-unique3lib2.cc: Likewise.
12194         * elf/tst-unique4.cc: Likewise.
12195
12196         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
12197
12198 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
12199
12200         [BZ #13566]
12201         * assert/assert.h (static_assert): Don't define for C++.
12202         * libio/stdio.h (gets): Do declare for C++ <= C++11.
12203         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
12204
12205 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
12206
12207         * iconv/loop.c (single loop): Fix assertion in storing of
12208         remaining bytes.
12209
12210         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
12211
12212 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
12213
12214         * posix/getconf.c: Update copyright year.
12215         * nss/getent.c: Likewise.
12216         * nss/makedb.c: Likewise.
12217         * iconv/iconvconfig.c: Likewise.
12218         * iconv/iconv_prog.c: Likewise.
12219         * elf/ldconfig.c: Likewise.
12220         * elf/pldd.c: Likewise.
12221         * elf/sotruss.ksh: Likewise.
12222         * catgets/gencat.c: Likewise.
12223         * csu/version.c: Likewise.
12224         * elf/ldd.bash.in: Likewise.
12225         * elf/sprof.c (print_version): Likewise.
12226         * locale/programs/locale.c: Likewise.
12227         * locale/programs/localedef.c: Likewise.
12228         * login/programs/pt_chown.c: Likewise.
12229         * nscd/nscd.c (print_version): Likewise.
12230         * debug/xtrace.sh: Likewise.
12231         * malloc/memusage.sh: Likewise.
12232         * malloc/mtrace.pl: Likewise.
12233         * debug/catchsegv.sh: Likewise.
12234
12235 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
12236
12237         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
12238         pure attribute.
12239
12240 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
12241
12242         [BZ #13533]
12243         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
12244         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
12245         transformations.
12246         * iconv/gconv_int.h: Likewise.
12247         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
12248         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
12249         from libc for GLIBC_2.16.
12250         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
12251         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
12252         * wcsmbs/uchar.h: Really define mbstate_t.
12253         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
12254         * wcsmbs/c16rtomb.c: New file.
12255         * wcsmbs/mbrtoc16.c: New file.
12256         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
12257         for C/POSIX locale.
12258         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
12259         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
12260
12261         * wcsmbs/wchar.h: Add missing __restrict.
12262
12263 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
12264
12265         [BZ #13532]
12266         * time/Makefile (routines): Add timespec_get.
12267         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
12268         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
12269         timespec for ISO C11.
12270         * time/timespec_get.c: New file.
12271         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
12272         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
12273
12274         [BZ #13531]
12275         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
12276         * stdlib/stdlib.h: Declare aligned_alloc.
12277         * Versions.def: Add GLIBC_2.16 for libc.
12278         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
12279
12280         [BZ 13527]
12281         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
12282         ISO C11.
12283
12284         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
12285         code.
12286
12287         [BZ #13528]
12288         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
12289
12290         [BZ #13529]
12291         * assert/assert.h (static_assert): Define.
12292
12293         * version.h: Update for 2.16 development version.
12294
12295         [BZ #13526]
12296         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
12297         _ISOC11_SOURCE.
12298
12299         * version.h (RELEASE): Bump for 2.15 release.
12300         * include/features.h (__GLIBC_MINOR__): Bump to 15.
12301
12302         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
12303         Patch by Marek Polacek <mpolacek@redhat.com>.
12304
12305         * bits/byteswap.h: Protect long long constants with __extension__.
12306         * sysdeps/i386/bits/byteswap.h: Likewise.
12307         * sysdeps/ia64/bits/byteswap.h: Likewise.
12308         * sysdeps/s390/bits/byteswap.h: Likewise.
12309         * sysdeps/x86_64/bits/byteswap.h: Likewise.
12310
12311 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12312
12313         [BZ #13540]
12314         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
12315         destination buffer.
12316         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
12317
12318 2011-12-23  Marek Polacek  <polacek@redhat.com>
12319
12320         * elf/dl-addr.c (determine_info): Add inline keyword.
12321         * elf/tst-auditmod4b.c (check_avx): Likewise.
12322         * elf/tst-auditmod6b.c (check_avx): Likewise.
12323         * elf/tst-auditmod6c.c (check_avx): Likewise.
12324         * elf/tst-auditmod7b.c (check_avx): Likewise.
12325
12326 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
12327
12328         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
12329         !__SSE_MATH__.
12330
12331 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12332
12333         [BZ #13540]
12334         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
12335         processing for last bytes.
12336
12337 2011-08-06  Bruno Haible  <bruno@clisp.org>
12338
12339         [BZ #13061]
12340         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
12341         U+0385, not to U+1FEE.
12342
12343         [BZ #13062]
12344         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
12345         entry for U+00A5 U+0301.
12346
12347 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
12348
12349         [BZ #13166]
12350         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
12351         buffer for the output is too small.
12352
12353         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
12354         optimization.
12355
12356         [BZ #13185]
12357         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
12358         SSE flags if possible.
12359
12360 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12361
12362         [BZ #13540]
12363         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
12364         processing for last bytes.
12365
12366 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
12367
12368         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
12369         (syscall-list-default-options, syscall-list-default-condition)
12370         (syscall-list-includes): Define.
12371         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
12372         list of ABIs and options and #if conditions for each ABI.  Do not
12373         handle common syscalls between ABIs specially.
12374         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
12375         Remove.
12376         (syscall-list-variants, syscall-list-32bit-options)
12377         (syscall-list-32bit-condition, syscall-list-64bit-options)
12378         (syscall-list-64bit-condition): Define.
12379         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
12380         (syscall-list-variants, syscall-list-32bit-options)
12381         (syscall-list-32bit-condition, syscall-list-64bit-options)
12382         (syscall-list-64bit-condition): Define.
12383         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
12384         Remove.
12385         (syscall-list-variants, syscall-list-32bit-options)
12386         (syscall-list-32bit-condition, syscall-list-64bit-options)
12387         (syscall-list-64bit-condition): Define.
12388         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
12389         Remove.
12390         (syscall-list-variants, syscall-list-32bit-options)
12391         (syscall-list-32bit-condition, syscall-list-64bit-options)
12392         (syscall-list-64bit-condition): Define.
12393
12394 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
12395
12396         * locale/iso-639.def: Add brx entry.
12397
12398         [BZ #13328]
12399         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
12400         Proposed by Mariusz_Cukr <marcukr@op.pl>.
12401
12402         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
12403         __feraiseexcept_renamed.
12404
12405 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
12406
12407         [BZ #13538]
12408         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
12409         EPOLLET with unsigned values.
12410         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
12411         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
12412
12413         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
12414         to large cancellation.
12415         * math/s_cacoshf.c: Likewise.
12416         * math/s_cacoshl.c: Likewise.
12417
12418 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
12419
12420         [BZ #13305]
12421         [BZ #12786]
12422         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
12423         * math/s_cacoshf.c: Likewise.
12424         * math/s_cacoshl.c: Likewise.
12425
12426 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
12427
12428         [BZ #13439]
12429         * iconv/gconv.h: Define __GCONV_SWAP.
12430         * iconvdata/unicode.c: The swap bit must be stored in __flags.
12431         * iconvdata/utf-16.c: Likewise.
12432         * iconvdata/utf-32.c: Likewise.
12433
12434 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
12435
12436         [BZ #13524]
12437         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
12438         numerator after shifting it by one limb.
12439
12440 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
12441
12442         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
12443         under [__USE_EXTERN_INLINES].
12444
12445 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
12446
12447         [BZ #13446]
12448         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
12449
12450 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12451
12452         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
12453         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
12454         optimized code.
12455         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
12456         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
12457         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
12458         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
12459         for strncasecmp/strncasecmp_l compilation.
12460         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
12461         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
12462
12463 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
12464
12465         [BZ #13484]
12466         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
12467         of __asm__.
12468
12469 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
12470
12471         [BZ #13506]
12472         * time/tzfile.c (__tzfile_read): Check values from file header.
12473
12474 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
12475
12476         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
12477         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
12478         * powerpc/powerpc32/dl-start.S: Likewise.
12479         * powerpc/powerpc32/elf/start.S: Likewise.
12480         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
12481         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
12482         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
12483         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
12484         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
12485         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
12486         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
12487         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
12488         * powerpc/powerpc32/fpu/s_round.S: Likewise.
12489         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
12490         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
12491         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
12492         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
12493         * powerpc/powerpc32/memset.S: Likewise.
12494         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
12495         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
12496         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
12497         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
12498         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
12499         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
12500         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
12501         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
12502         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
12503         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
12504         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
12505         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
12506         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
12507
12508 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12509
12510         * math/libm-test.inc: Added more nearbyint tests.
12511         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
12512         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
12513         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
12514         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
12515
12516 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
12517
12518         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
12519         FD_CLOEXEC.
12520
12521 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12522
12523         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
12524         Add wcscpy-ssse3 wcscpy-c.
12525         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
12526         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
12527         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
12528         * sysdeps/x86_64/wcschr.S: New file.
12529         * sysdeps/x86_64/wcsrchr.S: New file.
12530         * string/test-strcmp.c: Remove checking of wcscmp function for
12531         wrong alignments.
12532         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
12533         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
12534         wcsrchr-sse2 wcsrchr-c.
12535         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
12536         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
12537         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
12538         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
12539         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
12540         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
12541         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
12542         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
12543         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
12544         * wcsmbc/wcschr.c (WCSCHR): New macro.
12545
12546 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12547
12548         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
12549         * wcsmbs/test-wcsrchr.c: New file.
12550         * string/test-strrchr.c: Add wcsrchr support.
12551         (WIDE): New macro.
12552         * wcsmbs/test-wcscpy.c: New file.
12553         * string/test-strcpy.c: Add wcscpy support.
12554         (WIDE): New macro.
12555
12556 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
12557
12558         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
12559         the inner loop.
12560
12561 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
12562
12563         [BZ #13472]
12564         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
12565
12566 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
12567
12568         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
12569         Minor optimizations.
12570
12571         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
12572         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
12573         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
12574
12575 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
12576
12577         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
12578         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
12579         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
12580         for gcc to avoid warnings.
12581         * inet/Makefile (tests): Add tst-checks.
12582         * inet/tst-checks.c: New file.
12583
12584         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
12585         warning.
12586
12587         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
12588         __wmemcmp_sse2.
12589
12590         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
12591         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
12592
12593         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
12594
12595 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
12596
12597         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
12598         problem.
12599
12600         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
12601
12602 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
12603
12604         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
12605         conditional on GCC version.
12606         (__arch_compare_and_exchange_val_8_acq)
12607         (__arch_compare_and_exchange_val_16_acq)
12608         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
12609         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
12610         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
12611
12612 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
12613
12614         * sysdeps/sh/backtrace.c: New file.
12615
12616 2011-12-02  Andreas Schwab  <schwab@redhat.com>
12617
12618         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
12619         parenthesis.
12620
12621 2011-12-01  Andreas Schwab  <schwab@redhat.com>
12622
12623         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
12624         falling back to utime.
12625
12626 2011-11-30  Andreas Schwab  <schwab@redhat.com>
12627
12628         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
12629         expectations for float.
12630
12631 2011-11-29  Andreas Schwab  <schwab@redhat.com>
12632
12633         * locale/weight.h (findidx): Add parameter len.
12634         * locale/weightwc.h (findidx): Likewise.
12635         * posix/fnmatch_loop.c (FCT): Adjust caller.
12636         * posix/regcomp.c (build_equiv_class): Likewise.
12637         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
12638         * posix/regexec.c (check_node_accept_bytes): Likewise.
12639         * string/strcoll_l.c (STRCOLL): Likewise.
12640         * string/strxfrm_l.c (STRXFRM): Likewise.
12641
12642 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
12643
12644         * Makefile.in: Remove CVSOPT handling.
12645         * configure.in: Remove use of AC_REVISION.
12646         * iconvdata/Makefile (distribute): No need to filter out CVS.
12647         * scripts/list-sources.sh: Remove CVS, subversion and monotone
12648         handling.
12649
12650 2011-11-16  Andreas Schwab  <schwab@redhat.com>
12651
12652         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
12653         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
12654         [USE_AS_STRNCASECMP_L]: Likewise.
12655         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
12656         NO_TLS_DIRECT_SEG_REFS.
12657         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
12658         Fix argument offsets for non-PIC.
12659         [USE_AS_STRNCASECMP_L]: Likewise.
12660         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
12661         NO_TLS_DIRECT_SEG_REFS.
12662
12663 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
12664
12665         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
12666         O_CLOEXEC.
12667         * locale/loadlocale.c (_nl_load_locale): Likewise.
12668
12669 2011-11-15  Andreas Schwab  <schwab@redhat.com>
12670
12671         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
12672         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
12673         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
12674         (SYSCALL_GETTIME): Set errno on error.
12675
12676         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
12677         count references to noai6ai_cached.
12678
12679 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
12680
12681         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
12682
12683         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
12684         FD_CLOEXEC for /proc/self/maps.
12685
12686         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
12687         FD_CLOEXEC for /proc/meminfo.
12688
12689         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
12690         gai.conf.
12691
12692         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
12693         FD_CLOEXEC for given file.
12694
12695         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
12696
12697         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
12698         FD_CLOEXEC for /etc/hosts.
12699         (_gethtent): Likewise.
12700
12701         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
12702
12703         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
12704         cancellation and set FD_CLOEXEC for /etc/netgroup.
12705
12706         * nss/nss_files/files-key.c (search): Don't allow cancellation when
12707         reading /etc/publickey.
12708
12709         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
12710         allow cancellation when reading /etc/group.
12711
12712         * nss/nss_files/files-alias.c (internal_setent): Don't allow
12713         cancellation.
12714         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
12715
12716         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
12717         when using data file.
12718
12719         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
12720
12721         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
12722         (write_nis_obj): Use "c" and "e" in fopen.
12723
12724         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
12725
12726         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
12727
12728         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
12729
12730         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
12731
12732         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
12733         locale.alias.
12734
12735         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
12736
12737         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
12738
12739         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
12740
12741         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
12742         file parsing and set FD_CLOEXEC.
12743
12744 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
12745
12746         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
12747
12748 2011-11-14  Andreas Schwab  <schwab@redhat.com>
12749
12750         * malloc/arena.c (arena_get2): Don't call reused_arena when
12751         _int_new_arena failed.
12752
12753 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
12754
12755         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
12756         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
12757         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
12758         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
12759         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
12760         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
12761         to compile strcasecmp and strncasecmp.
12762         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
12763         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
12764
12765         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
12766
12767 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
12768
12769         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
12770         locale-defines.sym to gen-as-const-headers.
12771         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
12772         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
12773         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
12774         to compile strcasecmp and strncasecmp.
12775         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
12776         strcasecmp_l and strncasecmp_l.
12777         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
12778         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
12779         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
12780         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
12781         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
12782         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
12783         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
12784         * sysdeps/i386/i686/multiarch/strncase.S: New file.
12785         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
12786         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
12787         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
12788
12789 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
12790
12791         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
12792         result of SYSDEP_GETTIME_CPU to retval.
12793         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
12794         parameter list to macro.  Remove trailing semicolon.  Adjust users.
12795
12796         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
12797         variable.
12798
12799         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
12800         mantissa words.
12801         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
12802
12803         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
12804         from unused variable.
12805
12806         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
12807         DWARF definitions.
12808         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
12809         for assembling.
12810
12811         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
12812         over namespaces.
12813
12814         * sunrpc/rpc_prot.c (rejected): Fix case value.
12815
12816         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
12817         unsigned long long int to avoid warnings in shift.
12818
12819         * posix/regex_internal.c (re_string_reconstruct): Actually use result
12820         of use of trans.
12821         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
12822         variable tmp.
12823
12824         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
12825         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
12826         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
12827
12828         * nis/nis_table.c (nis_list): Use variable of correct type for
12829         result of __follow_path call.
12830
12831 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12832
12833         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
12834         of math functions ceil, trunc, floor, round, and sqrt, when
12835         avaliable on the platform.
12836         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
12837         name clash.
12838         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
12839         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
12840         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
12841
12842 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
12843
12844         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
12845         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
12846
12847 2011-11-11  Roland McGrath  <roland@hack.frob.com>
12848
12849         * include/unistd.h: Fix __readlink return type.
12850         Reported by Chris Metcalf <cmetcalf@tilera.com>.
12851
12852 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
12853
12854         * stdlib/ucontext.h: Undo last change for makecontext.
12855
12856 2011-11-11  Andreas Schwab  <schwab@redhat.com>
12857
12858         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
12859
12860         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
12861         * setjmp/setjmp.h: Mark functions as non-leaf.
12862         * setjmp/bits/setjmp2.h: Likewise.
12863         * stdlib/ucontext.h: Likewise.
12864
12865 2011-11-10  Andreas Schwab  <schwab@redhat.com>
12866
12867         * malloc/arena.c (_int_new_arena): Don't increment narenas.
12868         (reused_arena): Don't check arena limit.
12869         (arena_get2): Atomically check arena limit.
12870
12871 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
12872
12873         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
12874         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
12875
12876         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
12877         instructions.
12878
12879 2011-11-07  Andreas Schwab  <schwab@redhat.com>
12880
12881         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
12882         handler when locking.
12883
12884         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
12885         Fix size of allocated buffer.
12886
12887 2011-11-04  Andreas Schwab  <schwab@redhat.com>
12888
12889         [BZ #10103]
12890         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
12891         declarations for long double functions.
12892         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
12893
12894         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
12895
12896 2011-11-03  Andreas Schwab  <schwab@redhat.com>
12897
12898         * nscd/nscd.c (main): Don't start AVC thread until credentials are
12899         installed.
12900
12901         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
12902         is disabled.
12903
12904 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12905
12906         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
12907
12908 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
12909
12910         * include/alloca.h (stackinfo_alloca_round): Define.
12911         (extend_alloca): Use it.
12912         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
12913         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
12914         here.
12915
12916         * scripts/check-local-headers.sh: Ignore libaudit.h.
12917
12918         * nscd/Makefile (extra-objs): Make recursively expanded.
12919
12920 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
12921
12922         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
12923         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
12924
12925         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
12926         * posix/tst-rfc3484-2.c: Likewise.
12927         * posix/tst-rfc3484-3.c: Likewise.
12928
12929         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
12930         process_vm_writev.
12931         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
12932         process_vm_writev.
12933         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
12934         process_vm_writev from libc using GLIBC_2.15 version.
12935
12936         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
12937
12938 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
12939
12940         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
12941         stack usage.
12942
12943 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
12944
12945         [BZ #13367]
12946         * nss/getent.c (initgroups_keys): Show error message in case no group
12947         names are given.
12948
12949         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
12950         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
12951         __bump_nl_timestamp.
12952         * nscd/connections (nscd_init): When host database is served open
12953         netlink socket and request notification about configuration changes.
12954         (main_loop_poll): Track netlink file descriptor and bump timestamp
12955         in case data becomes available.
12956         (main_loop_epoll): Likewise.
12957         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
12958         (database_pers_head): Add extra_data fileds.
12959         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
12960         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
12961         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
12962         Adjust caller.
12963         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
12964         in6ai data, call __free_in6ai.
12965         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
12966         Add -DHAVE_NETLINK.
12967         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
12968         interface information.  Reuse previous data if netlink timestamp
12969         is not changed.
12970         (__bump_nl_timestamp): New function.
12971         (__free_in6ai): New function.
12972
12973 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
12974
12975         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
12976         close_not_cancel_no_status here.
12977         (__check_pf): Reorganize code a bit to not call close twice if OOM.
12978
12979 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
12980
12981         [BZ #13276]
12982         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
12983         return value.
12984
12985         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
12986         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
12987         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
12988
12989 2011-07-03  Andreas Jaeger  <aj@suse.de>
12990
12991         [BZ #10709]
12992         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
12993         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
12994         * math/libm-test.inc (sin_test): Add test case.
12995
12996 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
12997
12998         [BZ #13337]
12999         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
13000         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
13001
13002         * elf/chroot_canon.c (chroot_canon): Cleanups.
13003
13004         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
13005
13006         [BZ #13335]
13007         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
13008         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
13009
13010         * string/test-strchr.c: Make usable for strchrnul testing.
13011         * string/test-strchrnul.c: New file.
13012         * string/Makefile (strop-tests): Add strchrnul.
13013
13014         * po/it.po: Update from translation team.
13015         * po/es.po: Likewise.
13016
13017 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
13018
13019         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
13020         the three constants needed as parameters.  Drop the others.
13021         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
13022         __m128i_strloadu_tolower.
13023         Create and initialize variable zero and use it in all the places
13024         where _mm_setzero_si128 was used.
13025
13026         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
13027         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
13028         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
13029         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
13030         anymore.
13031         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
13032         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
13033         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
13034         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
13035         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
13036         __mpranred, __mptan.
13037         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
13038         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
13039         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
13040         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
13041         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
13042         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
13043         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
13044         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
13045         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
13046
13047 2011-10-28  Andreas Schwab  <schwab@redhat.com>
13048
13049         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
13050         redefine if SHARED.
13051         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
13052
13053         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
13054         wide char related routines to wcsmbs subdir.
13055
13056 2011-10-27  Andreas Schwab  <schwab@redhat.com>
13057
13058         [BZ #13344]
13059         * misc/sys/cdefs.h (__THROWNL): Define.
13060         * posix/unistd.h: Use __THREADNL instead of __THREAD
13061         for memory synchronization functions.
13062
13063 2011-10-26  Roland McGrath  <roland@hack.frob.com>
13064
13065         [BZ #13349]
13066         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
13067         doesn't exist.
13068         * manual/stdio.texi (Obstack Streams): Node removed.
13069
13070 2011-10-26  Andreas Schwab  <schwab@redhat.com>
13071
13072         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
13073         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
13074         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
13075
13076         * math/math_private.h (math_force_eval): Allow non-addressable
13077         arguments.
13078         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
13079
13080 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
13081
13082         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
13083         file is not needed.
13084
13085         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
13086         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
13087         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
13088         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
13089         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
13090         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
13091         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
13092         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
13093         Add AVX variants.
13094         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
13095         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
13096         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
13097         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
13098         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
13099         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
13100         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
13101         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
13102         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
13103         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
13104         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
13105         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
13106         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
13107         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
13108         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
13109         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
13110         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
13111         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
13112         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
13113
13114         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
13115         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
13116
13117         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
13118         place.  Use VEX encoding when compiling for AVX.
13119
13120 2011-10-25  Andreas Schwab  <schwab@redhat.com>
13121
13122         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
13123         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
13124
13125         * string/test-strchr.c (do_test): Don't generate NUL bytes.
13126
13127 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
13128
13129         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
13130         useless if() expression.
13131         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
13132         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
13133         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
13134         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
13135         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
13136         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
13137         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
13138         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
13139         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
13140         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
13141         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
13142         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
13143         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
13144         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
13145         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
13146         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
13147         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
13148         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
13149         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
13150
13151         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
13152
13153 2011-10-25  Andreas Schwab  <schwab@redhat.com>
13154
13155         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
13156         condition.
13157         * elf/dl-fini.c (_dl_sort_fini): Likewise.
13158
13159 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
13160
13161         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
13162         .text section.  Avoid duplicate constants.
13163         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
13164         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13165         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
13166         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13167         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
13168         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13169         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13170         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
13171         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
13172         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
13173         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
13174         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
13175         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
13176         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
13177         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
13178         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
13179         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
13180         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
13181         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
13182         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13183         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
13184         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
13185         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
13186         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
13187         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
13188         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
13189         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
13190         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
13191         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
13192         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
13193         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
13194         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
13195         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
13196         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
13197         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
13198         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
13199         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
13200         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
13201         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
13202         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
13203         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
13204         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
13205         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
13206         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
13207         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
13208
13209 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
13210
13211         * sysdeps/x86_64/dla.h: Move to ...
13212         * sysdeps/x86_64/fpu/dla.h: ...here.
13213         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
13214         situations.  Use __builtin_fma only for gcc 4.6 and up.
13215
13216         * config.make.in: Add have-mfma4 entry.
13217         * configure.in: Substitute libc_cv_cc_fma4.
13218         * math/Makefile (dbl-only-routines): Add sincostab.
13219         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
13220         Use __sincostab not sincos.
13221         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
13222         name is a macro.
13223         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
13224         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13225         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13226         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
13227         using __copysign.
13228         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
13229         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
13230         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
13231         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
13232         and __inv.
13233         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
13234         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
13235         __copysign.
13236         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
13237         define aliases when function name is a macro.
13238         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
13239         sysdeps/ieee754/dbl-64/sincos.tbl.
13240         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
13241         fma4-enabled routines.
13242         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
13243         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
13244         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
13245         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
13246         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
13247         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
13248         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
13249         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
13250         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
13251         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
13252         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
13253         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
13254         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
13255         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
13256         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
13257         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
13258         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
13259         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
13260         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
13261         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
13262         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
13263         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
13264         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
13265         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
13266         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
13267         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
13268         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
13269         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
13270         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
13271         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
13272
13273         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
13274         rename.
13275         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13276         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13277         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13278         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13279         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13280         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
13281         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
13282         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13283
13284 2011-10-24  Andreas Schwab  <schwab@redhat.com>
13285
13286         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
13287
13288 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
13289
13290         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
13291
13292         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
13293         prediction.
13294         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
13295
13296         * string/strnlen.c: Don't define STRNLEN, reverse logic.
13297         Remove unused variable magic_bits.
13298         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
13299
13300         * string/strnlen.c: Define and use STRNLEN macro.
13301         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
13302         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
13303         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
13304         * wcsmbs/wcslen.c: Define and use WCSLEN.
13305         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
13306         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
13307         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
13308         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
13309         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
13310         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
13311         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
13312
13313 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13314
13315         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
13316         strnlen-sse2-no-bsf.
13317         Rename strlen-no-bsf to strlen-sse2-no-bsf.
13318         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
13319         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
13320         Add strnlen support.
13321         (USE_AS_STRNLEN): New macro.
13322         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
13323         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
13324         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
13325         * sysdeps/x86_64/wcslen.S: New file.
13326
13327 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
13328
13329         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
13330         XMM-moves are used for copying on small sizes.
13331
13332 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13333
13334         * wcsmbs/Makefile (strop-tests): Add wcschr.
13335         * wcsmbs/test-wcschr.c: New file.
13336         * string/test-strchr.c: Update.
13337         Add wcschr support.
13338         (WIDE): New macro.
13339
13340 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13341
13342         * wcsmbs/Makefile (strop-tests): Add wcslen.
13343         * wcsmbs/test-wcslen.c: New file.
13344         * string/test-strlen.c: Update.
13345         Add wcslen support.
13346         (WIDE): New macro.
13347
13348 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
13349
13350         * po/it.po: Update from translation team.
13351
13352 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13353
13354         * sysdeps/x86_64/wcscmp.S: Update.
13355         Fix wrong comparison semantics.
13356         wcscmp shall use signed comparison not unsigned.
13357         Don't use substraction to avoid overflow bug.
13358         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
13359         * wcsmbc/wcscmp.c: Likewise.
13360         * string/test-strcmp.c: Likewise.
13361         Add new tests to check cases with negative values.
13362
13363 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
13364
13365         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
13366         * sysdeps/x86_64/dla.h: ...here.  New file.
13367         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
13368         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13369         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13370         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13371         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13372         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
13373         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
13374         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
13375         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13376
13377 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
13378
13379         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
13380         __ynl_finite aliases.
13381
13382 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
13383
13384         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
13385
13386         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
13387         define DLA_FMA.
13388         [DLA_FMA] (EMULV): Use DLA_FMA.
13389         [DLA_FMA] (MUL12): Use EMULV.
13390         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
13391         that are not needed.
13392         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13393         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13394         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13395         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13396         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
13397         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
13398         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13399
13400 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
13401
13402         * math/s_nan.c: Undef __nan.
13403         * math/s_nanf.c: Undef __nanf.
13404         * math/s_nanl.c: Undef __nanl.
13405         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
13406         "math_private.h".
13407
13408 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
13409
13410         * math/s_catan.c: Add branch predictions.
13411         * math/s_catanf.c: Likewise.
13412         * math/s_catanh.c: Likewise.
13413         * math/s_catanhf.c: Likewise.
13414         * math/s_catanhl.c: Likewise.
13415         * math/s_catanl.c: Likewise.
13416         * math/s_cexp.c: Likewise.
13417         * math/s_cexpf.c: Likewise.
13418         * math/s_cexpl.c: Likewise.
13419         * math/s_clog.c: Likewise.
13420         * math/s_clog10.c: Likewise.
13421         * math/s_clog10f.c: Likewise.
13422         * math/s_clog10l.c: Likewise.
13423         * math/s_clogf.c: Likewise.
13424         * math/s_clogl.c: Likewise.
13425         * math/s_csqrt.c: Likewise.
13426         * math/s_csqrtf.c: Likewise.
13427         * math/s_csqrtl.c: Likewise.
13428         * math/s_ctanf.c: Likewise.
13429         * math/s_ctanh.c: Likewise.
13430         * math/s_ctanhf.c: Likewise.
13431         * math/s_ctanhl.c: Likewise.
13432         * math/s_ctanl.c: Likewise.
13433
13434         * math/math_private.h: Define __nan, __nanf, __nanl.
13435         * math/s_cacosh.c: Include <math_private.h>.
13436         * math/s_cacoshl.c: Likewise.
13437         * math/s_casinh.c: Likewise.
13438         * math/s_casinhf.c: Likewise.
13439         * math/s_casinhl.c: Likewise.
13440         * math/s_ccos.c: Rely entire on ccosh.
13441         * math/s_ccosf.c: Rely entire on ccoshf.
13442         * math/s_ccosl.c: Rely entirely on ccoshl.
13443         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
13444         Remove tests for FE_INVALID.
13445         * math/s_ccoshf.c: Likewise.
13446         * math/s_ccoshl.c: Likewise.
13447         * math/s_csin.c: Likewise.
13448         * math/s_csinf.c: Likewise.
13449         * math/s_csinh.c Likewise.
13450         * math/s_csinhf.c: Likewise.
13451         * math/s_csinhl.c: Likewise.
13452         * math/s_csinl.c: Likewise.
13453         * math/s_ctan.c: Likewise.
13454         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
13455         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
13456         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
13457
13458 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
13459
13460         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
13461         compilation problems.
13462
13463         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
13464         __builtin_expect.
13465
13466 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
13467
13468         * sysdeps/i386/configure.in: Test for -mfma4 option.
13469         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
13470         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
13471         COMMON_CPUID_INDEX_80000001.
13472         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
13473         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
13474         use it if FMA3 is not supported.
13475         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
13476
13477         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
13478         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
13479
13480 2011-10-20  Andreas Schwab  <schwab@redhat.com>
13481
13482         [BZ #12892]
13483         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
13484         it would create a cycle with a link time dependency.
13485
13486 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
13487
13488         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
13489         instruction.
13490         * string/Makefile (strop-tests): Add rawmemchr.
13491         * string/test-rawmemchr.c: New file.
13492
13493         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
13494         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
13495         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
13496         when compiling str{,n}casecmp and when AVX is available.  Hook up
13497         new optimized code in initializers.
13498
13499 2011-10-19  Andreas Schwab  <schwab@redhat.com>
13500
13501         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
13502         __feraiseexcept instead of feraiseexcept.
13503
13504 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
13505
13506         * math/math_private.h: Define defaults for libc_fetestexcept and
13507         libc_feupdateenv.
13508         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
13509         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
13510         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
13511         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
13512         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
13513         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
13514         libc_fetestexcept and libc_feupdateenv.
13515
13516         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
13517         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
13518         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
13519         * sysdeps/x86_64/fpu/math_private.h: Define special version of
13520         libc_feholdexcept_setround.
13521
13522         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
13523         Add s_nearbyint-c and s_nearbyintf-c.
13524         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
13525         nearbyintf inlines.
13526         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
13527         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
13528         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
13529         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
13530
13531         * math/math_private.h: Define defaults for libc_fegetround,
13532         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
13533         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
13534         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
13535         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
13536         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
13537         standard functions.
13538         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
13539         Remove comments and hacks for old compiler versions.
13540         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
13541         libc_fegetround, libc_fesetround, libc_feholdexcept, and
13542         libc_feholdexceptl.
13543
13544 2011-10-18  Andreas Schwab  <schwab@redhat.com>
13545
13546         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
13547         (__feraiseexcept_renamed): Add __NTH.
13548         (feraiseexcept): Add __NTH.  Rename local variables to fix
13549         namespace violations.
13550
13551 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
13552
13553         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
13554
13555         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
13556
13557         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
13558         recently added interfaces.
13559         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
13560
13561         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
13562         about macro parameter expansion.
13563
13564         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
13565         __NO_MATH_INLINES is defined.  Cleanups.
13566
13567         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
13568         and __floorf is target has SSE4.1.
13569         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
13570         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
13571         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
13572         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
13573
13574         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
13575         name.
13576         (floorf): Likewise.
13577
13578         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
13579
13580 2011-10-17  Andreas Schwab  <schwab@redhat.com>
13581
13582         * misc/sys/cdefs.h: Fix last change.
13583
13584         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
13585         database lookup.
13586
13587 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
13588
13589         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
13590
13591         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
13592         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
13593         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
13594         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
13595         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
13596         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
13597         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
13598         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
13599         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
13600         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
13601         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
13602         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
13603         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
13604         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
13605         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
13606         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
13607         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
13608         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
13609         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
13610         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
13611         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
13612         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
13613
13614         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
13615         ceil, ceilf, floor, floorf.
13616
13617         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
13618         Perform IRELATIVE relocations last.
13619
13620         * elf/do-rel.h: Add another parameter nrelative, replacing the
13621         local variable with the same name.  Change name of the function
13622         to end in Rel or Rela (uppercase).
13623         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
13624         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
13625         elf_dynamic_do_##reloc function.
13626
13627 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
13628
13629         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
13630         is sufficient, at least on modern CPUs.
13631
13632         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
13633
13634         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
13635         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
13636
13637         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
13638         __expl_finite.
13639         * math/bits/math-finite.h: Add entries for exp.
13640         * math/e_expl.c: Add __*_finite alias.
13641         * sysdeps/i386/fpu/e_exp.S: Likewise.
13642         * sysdeps/i386/fpu/e_expf.S: Likewise.
13643         * sysdeps/i386/fpu/e_expl.c: Likewise.
13644         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
13645         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
13646         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
13647         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
13648         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
13649         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
13650         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
13651
13652         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
13653         is sufficient, at least on modern CPUs.
13654
13655         * ctype/ctype-info.c (__ctype_init): Define.
13656         * include/ctype.h (__ctype_init): Declare.
13657         (__ctype_b_loc): The variable is always initialized.
13658         (__ctype_toupper_loc): Likewise.
13659         (__ctype_tolower_loc): Likewise.
13660         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
13661         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
13662
13663 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
13664
13665         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
13666
13667         * configure.in: Also look in $cxxmachine/include for C++ system
13668         headers.
13669
13670 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13671
13672         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
13673         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
13674         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
13675         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
13676         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
13677         (USE_AS_WMEMCMP): New macro.
13678         Fixing indents.
13679         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
13680         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
13681         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
13682         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
13683         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
13684         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
13685         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
13686         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
13687         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
13688         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
13689         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
13690         (USE_AS_WMEMCMP): New macro.
13691         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
13692         * sysdeps/string/test-memcmp.c: Update.
13693         Fix simple_wmemcmp.
13694         Add new tests.
13695         * wcsmbs/wmemcmp.c: Update.
13696         (WMEMCMP): New macro.
13697         Fix overflow bug.
13698
13699 2011-10-12  Andreas Jaeger  <aj@suse.de>
13700
13701         [BZ #13268]
13702         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
13703
13704 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
13705
13706         * libio/iofwide.c (do_length): Avoid warning.
13707
13708         * ctype/ctype.h (__isctype_f): Add missing __THROW.
13709
13710 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
13711
13712         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
13713
13714         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
13715         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
13716         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
13717         * sysdeps/i386/i686/fpu/e_log.S: New file.
13718         * sysdeps/i386/i686/fpu/e_logf.S: New file.
13719         * sysdeps/i386/i686/fpu/e_logl.S: New file.
13720
13721         * ctype/ctype.h: Add support for inlined isXXX functions when
13722         compiling C++ code.
13723
13724 2011-10-14  Andreas Schwab  <schwab@redhat.com>
13725
13726         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
13727
13728         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
13729
13730 2011-10-13  Roland McGrath  <roland@hack.frob.com>
13731
13732         [BZ #13291]
13733         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
13734
13735 2011-10-13  Andreas Schwab  <schwab@redhat.com>
13736
13737         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
13738         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
13739         feraiseexcept.
13740
13741         * sysdeps/x86_64/memrchr.S: Check for zero size.
13742
13743         * string/stratcliff.c: Add memrchr tests.
13744
13745 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13746
13747         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
13748         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
13749         rawmemchr-sse2 rawmemchr-sse2-bsf.
13750         * sysdeps/i386/i686/multiarch/memchr.S: New file.
13751         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
13752         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
13753         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
13754         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
13755         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
13756         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
13757         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
13758         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
13759         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
13760         * string/memrchr.c (MEMRCHR): New macro.
13761
13762 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
13763
13764         Add integration with gcc's -ffinite-math-only and optimize wrapper
13765         functions in libm.
13766         * Versions.def: Define GLIBC_2.15 version for libm.
13767         * math/Makefile (headers): Add bits/math-finite.h.
13768         * math/bits/math-finite.h: New file.
13769         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
13770         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
13771         * math/e_acoshl.c: Add __*_finite alias.
13772         * math/e_acosl.c: Likewise.
13773         * math/e_asinl.c: Likewise.
13774         * math/e_atan2l.c: Likewise.
13775         * math/e_atanhl.c: Likewise.
13776         * math/e_coshl.c: Likewise.
13777         * math/e_exp10.c: Likewise.
13778         * math/e_exp10f.c: Likewise.
13779         * math/e_exp10l.c: Likewise.
13780         * math/e_exp2l.c: Likewise.
13781         * math/e_fmodl.c: Likewise.
13782         * math/e_gammal_r.c: Likewise.
13783         * math/e_hypotl.c: Likewise.
13784         * math/e_j0l.c: Likewise.
13785         * math/e_j1l.c: Likewise.
13786         * math/e_jnl.c: Likewise.
13787         * math/e_lgammal_r.c: Likewise.
13788         * math/e_log10l.c: Likewise.
13789         * math/e_log2l.c: Likewise.
13790         * math/e_logl.c: Likewise.
13791         * math/e_powl.c: Likewise.
13792         * math/e_sinhl.c: Likewise.
13793         * math/e_sqrtl.c: Likewise.
13794         * math/e_scalb.c: Completely rewritten and optimized.
13795         * math/e_scalbf.c: Likewise.
13796         * math/e_scalbl.c: Likewise.
13797         * math/w_acos.c: Likewise.
13798         * math/w_acosf.c: Likewise.
13799         * math/w_acosl.c: Likewise.
13800         * math/w_acosh.c: Likewise.
13801         * math/w_acoshf.c: Likewise.
13802         * math/w_acoshl.c: Likewise.
13803         * math/w_asin.c: Likewise.
13804         * math/w_asinf.c: Likewise.
13805         * math/w_asinl.c: Likewise.
13806         * math/w_atan2.c: Likewise.
13807         * math/w_atan2f.c: Likewise.
13808         * math/w_atan2l.c: Likewise.
13809         * math/w_atanh.c: Likewise.
13810         * math/w_atanhf.c: Likewise.
13811         * math/w_atanhl.c: Likewise.
13812         * math/w_exp10.c: Likewise.
13813         * math/w_exp10f.c: Likewise.
13814         * math/w_exp10l.c: Likewise.
13815         * math/w_fmod.c: Likewise.
13816         * math/w_fmodf.c: Likewise.
13817         * math/w_fmodl.c: Likewise.
13818         * math/w_j0.c: Likewise.
13819         * math/w_j0f.c: Likewise.
13820         * math/w_j0l.c: Likewise.
13821         * math/w_j1.c: Likewise.
13822         * math/w_j1f.c: Likewise.
13823         * math/w_j1l.c: Likewise.
13824         * math/w_jn.c: Likewise.
13825         * math/w_jnf.c: Likewise.
13826         * math/w_log.c: Likewise.
13827         * math/w_logf.c: Likewise.
13828         * math/w_logl.c: Likewise.
13829         * math/w_log10.c: Likewise.
13830         * math/w_log10f.c: Likewise.
13831         * math/w_log10l.c: Likewise.
13832         * math/w_log2.c: Likewise.
13833         * math/w_log2f.c: Likewise.
13834         * math/w_log2l.c: Likewise.
13835         * math/w_pow.c: Likewise.
13836         * math/w_powf.c: Likewise.
13837         * math/w_powl.c: Likewise.
13838         * math/w_remainder.c: Likewise.
13839         * math/w_remainderf.c: Likewise.
13840         * math/w_remainderl.c: Likewise.
13841         * math/w_scalb.c: Likewise.
13842         * math/w_scalbf.c: Likewise.
13843         * math/w_scalbl.c: Likewise.
13844         * math/w_sqrt.c: Likewise.
13845         * math/w_sqrtf.c: Likewise.
13846         * math/w_sqrtl.c: Likewise.
13847         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
13848         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
13849         used.
13850         * math/math_private.h: Declare __kernel_standard_f.
13851         * math/w_cosh.c: Remove cruft and optimize a bit.
13852         * math/w_coshf.c: Likewise.
13853         * math/w_coshl.c: Likewise.
13854         * math/w_exp2.c: Likewise.
13855         * math/w_exp2f.c: Likewise.
13856         * math/w_exp2l.c: Likewise.
13857         * math/w_hypot.c: Likewise.
13858         * math/w_hypotf.c: Likewise.
13859         * math/w_hypotl.c: Likewise.
13860         * math/w_lgamma.c: Likewise.
13861         * math/w_lgamma_r.c: Likewise.
13862         * math/w_lgammaf.c: Likewise.
13863         * math/w_lgammaf_r.c: Likewise.
13864         * math/w_lgammal.c: Likewise.
13865         * math/w_lgammal_r.c: Likewise.
13866         * math/w_sinh.c: Likewise.
13867         * math/w_sinhf.c: Likewise.
13868         * math/w_sinhl.c: Likewise.
13869         * math/w_tgamma.c: Likewise.
13870         * math/w_tgammaf.c: Likewise.
13871         * math/w_tgammal.c: Likewise.
13872         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
13873         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
13874         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
13875         Minor optimizations.  Pretty printing.  Remove cruft.
13876         * sysdeps/i386/fpu/e_acosf.S: Likewise.
13877         * sysdeps/i386/fpu/e_acosh.S: Likewise.
13878         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
13879         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
13880         * sysdeps/i386/fpu/e_acosl.c: Likewise.
13881         * sysdeps/i386/fpu/e_asin.S: Likewise.
13882         * sysdeps/i386/fpu/e_asinf.S: Likewise.
13883         * sysdeps/i386/fpu/e_atan2.S: Likewise.
13884         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
13885         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
13886         * sysdeps/i386/fpu/e_atanh.S: Likewise.
13887         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
13888         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
13889         * sysdeps/i386/fpu/e_exp10.S: Likewise.
13890         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
13891         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
13892         * sysdeps/i386/fpu/e_exp2.S: Likewise.
13893         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
13894         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
13895         * sysdeps/i386/fpu/e_fmod.S: Likewise.
13896         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
13897         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
13898         * sysdeps/i386/fpu/e_hypot.S: Likewise.
13899         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
13900         * sysdeps/i386/fpu/e_log.S: Likewise.
13901         * sysdeps/i386/fpu/e_log10.S: Likewise.
13902         * sysdeps/i386/fpu/e_log10f.S: Likewise.
13903         * sysdeps/i386/fpu/e_log10l.S: Likewise.
13904         * sysdeps/i386/fpu/e_log2.S: Likewise.
13905         * sysdeps/i386/fpu/e_log2f.S: Likewise.
13906         * sysdeps/i386/fpu/e_log2l.S: Likewise.
13907         * sysdeps/i386/fpu/e_logf.S: Likewise.
13908         * sysdeps/i386/fpu/e_logl.S: Likewise.
13909         * sysdeps/i386/fpu/e_pow.S: Likewise.
13910         * sysdeps/i386/fpu/e_powf.S: Likewise.
13911         * sysdeps/i386/fpu/e_powl.S: Likewise.
13912         * sysdeps/i386/fpu/e_remainder.S: Likewise.
13913         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
13914         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
13915         * sysdeps/i386/fpu/e_scalb.S: Likewise.
13916         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
13917         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
13918         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
13919         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
13920         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
13921         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
13922         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
13923         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13924         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
13925         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
13926         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
13927         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
13928         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
13929         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
13930         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
13931         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
13932         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
13933         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13934         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
13935         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
13936         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13937         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
13938         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
13939         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
13940         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
13941         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
13942         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
13943         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
13944         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
13945         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
13946         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
13947         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
13948         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
13949         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
13950         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
13951         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
13952         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
13953         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
13954         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
13955         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
13956         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
13957         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
13958         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
13959         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
13960         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
13961         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
13962         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
13963         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
13964         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
13965         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
13966         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
13967         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
13968         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
13969         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
13970         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
13971         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
13972         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
13973         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
13974         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
13975         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
13976         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
13977         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
13978         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
13979         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
13980         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
13981         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
13982         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
13983         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
13984         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
13985         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
13986         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
13987         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
13988         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
13989         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
13990         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
13991         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
13992         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
13993         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
13994         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
13995         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
13996         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
13997         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
13998         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
13999         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
14000         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
14001         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
14002         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
14003         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
14004         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
14005         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
14006         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
14007         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
14008         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
14009         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
14010         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
14011         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
14012         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
14013         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
14014         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
14015         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
14016         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
14017         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
14018         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
14019         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
14020         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
14021         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
14022         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
14023         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
14024         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
14025         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
14026         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
14027         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
14028         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
14029         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
14030         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
14031         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
14032         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
14033         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
14034         (__isnanf): Likewise.
14035         (__isinf_ns): Likewise.
14036         (__isinf_nsf): Likewise.
14037         (__finite): Likewise.
14038         (__finitef): Likewise.
14039         (__ieee754_sqrt): Define as macro.
14040         (__ieee754_sqrtf): Define as macro.
14041         (__ieee754_sqrtl): Define as macro.
14042         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
14043         inlined copy.
14044         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
14045         __FINITE_MATH_ONLY__ consistent.
14046         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
14047
14048 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
14049
14050         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
14051         of rawmemchr.
14052
14053         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
14054
14055 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
14056
14057         * po/ja.po: Update from translation team.
14058
14059 2011-10-08  Roland McGrath  <roland@hack.frob.com>
14060
14061         * locale/programs/locarchive.c (prepare_address_space): New function.
14062         (create_archive, enlarge_archive, open_archive): Use it.
14063
14064         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
14065         inside [SHARED], where it is used.
14066
14067         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
14068
14069         * nss/getent.c (netgroup_keys): Remove unused variable.
14070         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
14071
14072 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
14073
14074         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
14075         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
14076         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
14077         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
14078         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
14079         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
14080         * math/Makefile (libm-calls): Add s_isinf_ns.
14081         * math/divtc3.c: Use __isinf_nsl instead of isinf.
14082         * math/multc3.c: Likewise.
14083         * math/s_casin.c: Likewise.
14084         * math/s_casinf.c: Likewise.
14085         * math/s_casinl.c: Likewise.
14086         * math/s_ccos.c: Likewise.
14087         * math/s_ccosf.c: Likewise.
14088         * math/s_ccosl.c: Likewise.
14089         * math/s_ctan.c: Likewise.
14090         * math/s_ctanf.c: Likewise.
14091         * math/s_ctanh.c: Likewise.
14092         * math/s_ctanhf.c: Likewise.
14093         * math/s_ctanhl.c: Likewise.
14094         * math/s_ctanl.c: Likewise.
14095         * math/w_fmod.c: Likewise.
14096         * math/w_fmodf.c: Likewise.
14097         * math/w_fmodl.c: Likewise.
14098         * math/w_remainder.c: Likewise.
14099         * math/w_remainderf.c: Likewise.
14100         * math/w_remainderl.c: Likewise.
14101         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
14102         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
14103         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
14104         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
14105         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
14106         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
14107         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
14108         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
14109
14110         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
14111         of the number.
14112         * stdio-common/printf_fphex.c: Likewise.
14113         * stdio-common/printf_size.c: Likewise.
14114
14115         * math/e_exp10.c: Include math_private.h using <...> not "...".
14116         * math/e_exp10f.c: Likewise.
14117         * math/e_exp10l.c: Likewise.
14118         * math/e_exp2l.c: Likewise.
14119         * math/e_j0l.c: Likewise.
14120         * math/e_j1l.c: Likewise.
14121         * math/e_jnl.c: Likewise.
14122         * math/e_lgammal_r.c: Likewise.
14123         * math/e_rem_pio2l.c: Likewise.
14124         * math/e_scalb.c: Likewise.
14125         * math/e_scalbf.c: Likewise.
14126         * math/e_scalbl.c: Likewise.
14127         * math/k_cosl.c: Likewise.
14128         * math/k_sinl.c: Likewise.
14129         * math/k_tanl.c: Likewise.
14130         * math/s_cacoshf.c: Likewise.
14131         * math/s_catan.c: Likewise.
14132         * math/s_catanf.c: Likewise.
14133         * math/s_catanh.c: Likewise.
14134         * math/s_catanhf.c: Likewise.
14135         * math/s_catanhl.c: Likewise.
14136         * math/s_catanl.c: Likewise.
14137         * math/s_ccosh.c: Likewise.
14138         * math/s_ccoshf.c: Likewise.
14139         * math/s_ccoshl.c: Likewise.
14140         * math/s_cexp.c: Likewise.
14141         * math/s_cexpf.c: Likewise.
14142         * math/s_cexpl.c: Likewise.
14143         * math/s_clog.c: Likewise.
14144         * math/s_clog10.c: Likewise.
14145         * math/s_clog10f.c: Likewise.
14146         * math/s_clog10l.c: Likewise.
14147         * math/s_clogf.c: Likewise.
14148         * math/s_clogl.c: Likewise.
14149         * math/s_csin.c: Likewise.
14150         * math/s_csinf.c: Likewise.
14151         * math/s_csinh.c: Likewise.
14152         * math/s_csinhf.c: Likewise.
14153         * math/s_csinhl.c: Likewise.
14154         * math/s_csinl.c: Likewise.
14155         * math/s_csqrt.c: Likewise.
14156         * math/s_csqrtf.c: Likewise.
14157         * math/s_csqrtl.c: Likewise.
14158         * math/s_ctan.c: Likewise.
14159         * math/s_ctanf.c: Likewise.
14160         * math/s_ctanh.c: Likewise.
14161         * math/s_ctanhf.c: Likewise.
14162         * math/s_ctanhl.c: Likewise.
14163         * math/s_ctanl.c: Likewise.
14164         * math/s_ldexp.c: Likewise.
14165         * math/s_ldexpf.c: Likewise.
14166         * math/s_ldexpl.c: Likewise.
14167         * math/s_significand.c: Likewise.
14168         * math/s_significandf.c: Likewise.
14169         * math/s_significandl.c: Likewise.
14170         * math/w_acos.c: Likewise.
14171         * math/w_acosf.c: Likewise.
14172         * math/w_acosh.c: Likewise.
14173         * math/w_acoshf.c: Likewise.
14174         * math/w_acoshl.c: Likewise.
14175         * math/w_acosl.c: Likewise.
14176         * math/w_asin.c: Likewise.
14177         * math/w_asinf.c: Likewise.
14178         * math/w_asinl.c: Likewise.
14179         * math/w_atan2.c: Likewise.
14180         * math/w_atan2f.c: Likewise.
14181         * math/w_atan2l.c: Likewise.
14182         * math/w_atanh.c: Likewise.
14183         * math/w_atanhf.c: Likewise.
14184         * math/w_atanhl.c: Likewise.
14185         * math/w_cosh.c: Likewise.
14186         * math/w_coshf.c: Likewise.
14187         * math/w_coshl.c: Likewise.
14188         * math/w_dremf.c: Likewise.
14189         * math/w_exp10.c: Likewise.
14190         * math/w_exp10f.c: Likewise.
14191         * math/w_exp10l.c: Likewise.
14192         * math/w_exp2.c: Likewise.
14193         * math/w_exp2f.c: Likewise.
14194         * math/w_fmod.c: Likewise.
14195         * math/w_fmodf.c: Likewise.
14196         * math/w_fmodl.c: Likewise.
14197         * math/w_hypot.c: Likewise.
14198         * math/w_hypotf.c: Likewise.
14199         * math/w_hypotl.c: Likewise.
14200         * math/w_j0.c: Likewise.
14201         * math/w_j0f.c: Likewise.
14202         * math/w_j0l.c: Likewise.
14203         * math/w_j1.c: Likewise.
14204         * math/w_j1f.c: Likewise.
14205         * math/w_j1l.c: Likewise.
14206         * math/w_jn.c: Likewise.
14207         * math/w_jnf.c: Likewise.
14208         * math/w_jnl.c: Likewise.
14209         * math/w_lgamma.c: Likewise.
14210         * math/w_lgamma_r.c: Likewise.
14211         * math/w_lgammaf.c: Likewise.
14212         * math/w_lgammaf_r.c: Likewise.
14213         * math/w_lgammal.c: Likewise.
14214         * math/w_lgammal_r.c: Likewise.
14215         * math/w_log.c: Likewise.
14216         * math/w_log10.c: Likewise.
14217         * math/w_log10f.c: Likewise.
14218         * math/w_log10l.c: Likewise.
14219         * math/w_log2.c: Likewise.
14220         * math/w_log2f.c: Likewise.
14221         * math/w_log2l.c: Likewise.
14222         * math/w_logf.c: Likewise.
14223         * math/w_logl.c: Likewise.
14224         * math/w_pow.c: Likewise.
14225         * math/w_powf.c: Likewise.
14226         * math/w_powl.c: Likewise.
14227         * math/w_remainder.c: Likewise.
14228         * math/w_remainderf.c: Likewise.
14229         * math/w_remainderl.c: Likewise.
14230         * math/w_scalb.c: Likewise.
14231         * math/w_scalbf.c: Likewise.
14232         * math/w_scalbl.c: Likewise.
14233         * math/w_sinh.c: Likewise.
14234         * math/w_sinhf.c: Likewise.
14235         * math/w_sinhl.c: Likewise.
14236         * math/w_sqrt.c: Likewise.
14237         * math/w_sqrtf.c: Likewise.
14238         * math/w_sqrtl.c: Likewise.
14239         * math/w_tgamma.c: Likewise.
14240         * math/w_tgammaf.c: Likewise.
14241         * math/w_tgammal.c: Likewise.
14242
14243         * po/ja.po: Update from translation team.
14244
14245 2011-09-29  Andreas Jaeger  <aj@suse.de>
14246
14247         [BZ #13179]
14248         * sunrpc/netname.c (netname2host): Fix logic.
14249
14250         [BZ #6779]
14251         [BZ #6783]
14252         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
14253         correctly.
14254         * math/w_remainder.c (__remainder): Likewise.
14255         * math/w_remainderf.c (__remainderf): Likewise.
14256         * math/libm-test.inc (remainder_test): Add test cases.
14257
14258 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14259
14260         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
14261         sdiv_qrnnd.
14262
14263 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
14264
14265         * string/test-memcmp.c: Avoid unncessary #defines.
14266         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
14267
14268 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14269
14270         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
14271         Use new sse2 version for core i3 - i7 as it's faster
14272         than sse42 version.
14273         (bit_Prefer_PMINUB_for_stringop): New.
14274         * sysdeps/x86_64/rawmemchr.S: Update.
14275         Replace with faster SSE2 version.
14276         * sysdeps/x86_64/memrchr.S: New file.
14277         * sysdeps/x86_64/memchr.S: Update.
14278         Replace with faster SSE2 version.
14279
14280 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
14281
14282         * elf/dl-load.c (lose): Add cast to avoid warning.
14283
14284 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
14285
14286         * po/ca.po: Update from translation team.
14287
14288         * inet/getnetgrent_r.c: Hook up nscd.
14289         * nscd/Makefile (routines): Add nscd_netgroup.
14290         (nscd-modules): Add netgroupcache.
14291         (CFLAGS-netgroupcache.c): Define.
14292         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
14293         (cache_search): Add const to second parameter.
14294         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
14295         INNETGR.
14296         (dbs): Add netgrdb entry.
14297         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
14298         (verify_persistent_db): Handle netgrdb.
14299         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
14300         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
14301         GETFDNETGR.
14302         (netgroup_response_header): Define.
14303         (innetgroup_response_header): Define.
14304         (datahead): Add netgroup_response_header and innetgroup_response_header
14305         elements.
14306         * nscd/nscd.conf: Add entries for netgroup cache.
14307         * nscd/nscd.h (dbtype): Add netgrdb.
14308         (_PATH_NSCD_NETGROUP_DB): Define.
14309         (netgroup_iov_disabled): Declare.
14310         (xmalloc, xcalloc, xrealloc): Move declarations here.
14311         (cache_search): Adjust prototype.
14312         Add netgroup-related prototypes.
14313         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
14314         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
14315         (__nscd_innetgr): Declare.
14316         * nscd/selinux.c (perms): Use access_vector_t as element type and
14317         add netgroup-related initializers.
14318         * nscd/netgroupcache.c: New file.
14319         * nscd/nscd_netgroup.c: New file.
14320         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
14321         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
14322         For four parameters use innetgr.
14323         * nss/nss_files/files-init.c: Add definition and callback for netgr.
14324         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
14325         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
14326         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
14327
14328         * nscd/connections.c (register_traced_file): Don't register file
14329         for disabled databases.
14330
14331 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
14332
14333         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
14334
14335         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
14336         from tree and freeing node.
14337
14338 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
14339
14340         * nss/nsswitch.c (__nss_database_lookup): Handle
14341         nss_parse_service_list out of memory case.
14342
14343 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
14344
14345         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
14346         out of memory case.
14347
14348 2011-10-04  Andreas Schwab  <schwab@redhat.com>
14349
14350         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
14351         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
14352         pass it down.
14353         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
14354         elf_machine_rela, elf_machine_lazy_rel.
14355         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
14356         (ELF_DYNAMIC_DO_REL): Likewise.
14357         (ELF_DYNAMIC_DO_RELA): Likewise.
14358         (ELF_DYNAMIC_RELOCATE): Likewise.
14359         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
14360         to ELF_DYNAMIC_DO_REL.
14361         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
14362         (dl_main): In trace mode always set __RTLD_NOIFUNC.
14363         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
14364         elf_machine_rela.
14365         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
14366         skip_ifunc, don't call ifunc function if non-zero.
14367         (elf_machine_rela): Likewise.
14368         (elf_machine_lazy_rel): Likewise.
14369         (elf_machine_lazy_rela): Likewise.
14370         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
14371         (elf_machine_lazy_rel): Likewise.
14372         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
14373         Likewise.
14374         (elf_machine_lazy_rel): Likewise.
14375         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
14376         Likewise.
14377         (elf_machine_lazy_rel): Likewise.
14378         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
14379         (elf_machine_lazy_rel): Likewise.
14380         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
14381         (elf_machine_lazy_rel): Likewise.
14382         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
14383         (elf_machine_lazy_rel): Likewise.
14384         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
14385         (elf_machine_lazy_rel): Likewise.
14386         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
14387         (elf_machine_lazy_rel): Likewise.
14388         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
14389         (elf_machine_lazy_rel): Likewise.
14390
14391 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
14392
14393         * nss/nss_files/files-init.c (_nss_files_init): Use static
14394         initialization for all the *_traced_file variables.
14395
14396 2011-09-28  Andreas Schwab  <schwab@redhat.com>
14397
14398         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
14399
14400 2011-09-27  Roland McGrath  <roland@hack.frob.com>
14401
14402         [BZ #13226]
14403         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
14404
14405 2011-09-27  Andreas Schwab  <schwab@redhat.com>
14406
14407         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
14408         Reread the line before reparsing it.
14409
14410 2011-09-26  Andreas Schwab  <schwab@redhat.com>
14411
14412         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
14413
14414 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
14415             Maxim Kuvyrkov  <maxim@codesourcery.com>
14416             Joseph Myers  <joseph@codesourcery.com>
14417
14418         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
14419         if needed for __stack_chk_guard.
14420
14421 2011-09-19  Roland McGrath  <roland@hack.frob.com>
14422
14423         * sysdeps/posix/spawni.c (script_execute): Always define it.
14424         It will be optimized away if unused.
14425         (maybe_script_execute): New function.
14426         (__spawni): Call it.
14427
14428         * Makerules: Don't include tls.make.
14429         (config-tls): Always set to thread.
14430         * tls.make.c: File removed.
14431
14432 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
14433
14434         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
14435         * config.make.in (CPPFLAGS-config): New substituted variable.
14436
14437 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
14438
14439         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
14440
14441         [BZ #13192]
14442         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
14443         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
14444
14445 2011-09-15  Roland McGrath  <roland@hack.frob.com>
14446
14447         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
14448         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
14449         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
14450         (CALL_FAIL): Likewise.
14451         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
14452         (CALL_FAIL): Macro removed.
14453         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
14454
14455 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
14456
14457         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
14458         for __FINITE_MATH_ONLY__ == 1.
14459
14460 2011-09-15  Andreas Schwab  <schwab@redhat.com>
14461
14462         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
14463         __ieee754_sqrt instead of sqrt.
14464         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
14465         __ieee754_sqrtf instead of sqrtf.
14466         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
14467         __floorf instead of floorf.
14468         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
14469         __floorf, __truncf instead of floorf, truncf.
14470
14471 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
14472
14473         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
14474
14475         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
14476         __extern_always_inline.
14477         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
14478         32-bit.
14479
14480 2011-09-14  Andreas Schwab  <schwab@redhat.com>
14481
14482         * elf/rtld.c (dl_main): Also relocate in dependency order when
14483         doing symbol dependency testing.
14484
14485 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
14486
14487         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
14488         Always define `refsym'.
14489
14490 2011-09-13  Andreas Schwab  <schwab@redhat.com>
14491
14492         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
14493         (__FD_ELT): Renamed from __FDELT.
14494         * misc/bits/select2.h (__FD_ELT): Likewise.
14495         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
14496         __FD_MASK instead of __FDELT, __FDMASK.
14497         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
14498         Likewise.
14499         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
14500         Likewise.
14501
14502         * elf/Makefile (gen-ldd): Fix pattern.
14503
14504         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
14505         (init_tls): Likewise.
14506
14507 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
14508
14509         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
14510
14511 2011-09-12  Andreas Schwab  <schwab@redhat.com>
14512
14513         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
14514         `struct cmsghdr *' instead of `void *'.
14515         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
14516         Likewise.
14517
14518 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
14519
14520         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
14521         if non-absolute.
14522         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
14523         ldd_rewrite_script.
14524
14525 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
14526
14527         * configure.in: Remove --with-tls option.
14528         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
14529         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
14530         out in case it is missing.
14531         * sysdeps/ia64/elf/configure.in: Likewise.
14532         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
14533         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
14534         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
14535         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
14536         * sysdeps/sh/elf/configure.in: Likewise.
14537         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
14538         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
14539         * sysdeps/x86_64/elf/configure.in: Likewise.
14540         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
14541         * sysdeps/mach/hurd/tls.h: Likewise.
14542
14543         [BZ #13067]
14544         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
14545
14546         [BZ #13090]
14547         * configure.in: Fix use of AC_INIT.
14548
14549         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
14550
14551 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
14552
14553         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
14554         __set_errno.
14555         * malloc/hooks.c: Likewise.
14556
14557         [BZ #11929]
14558         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
14559         variables statically.
14560         (narenas): Initialize.
14561         (list_lock): Initialize.
14562         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
14563         initializtion of main_arena and list_lock.  Small cleanups.
14564         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
14565         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
14566         Add initializers to main_arena and mp_.
14567         (malloc_state): Remove pagesize member.  Change all users to use
14568         GLRO(dl_pagesize).
14569
14570         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
14571         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
14572         is always initialized.
14573
14574         * malloc/malloc.c: Removed unused configurations and dead code.
14575         * malloc/arena.c: Likewise.
14576         * malloc/hooks.c: Likewise.
14577         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
14578
14579         * include/tls.h: Removed.  USE___THREAD must always be defined.
14580         * bits/libc-tsd.h: Don't handle !USE___THREAD.
14581         * elf/dl-libc.c: Likewise.
14582         * elf/dl-tsd.c: Likewise.
14583         * include/errno.h: Likewise.
14584         * include/netdb.h: Likewise.
14585         * include/resolv.h: Likewise.
14586         * inet/herrno-loc.c: Likewise.
14587         * inet/herrno.c: Likewise.
14588         * malloc/arena.c: Likewise.
14589         * malloc/hooks.c: Likewise.
14590         * malloc/malloc.c: Likewise.
14591         * resolv/res-state.c: Likewise.
14592         * resolv/res_libc.c: Likewise.
14593         * sysdeps/i386/dl-machine.h: Likewise.
14594         * sysdeps/ia64/dl-machine.h: Likewise.
14595         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
14596         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
14597         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
14598         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
14599         * sysdeps/sh/dl-machine.h: Likewise.
14600         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
14601         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
14602         * sysdeps/unix/i386/sysdep.S: Likewise.
14603         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
14604         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
14605         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
14606         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
14607         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
14608         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
14609         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
14610         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
14611         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
14612         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
14613         * sysdeps/unix/x86_64/sysdep.S: Likewise.
14614         * sysdeps/x86_64/dl-machine.h: Likewise.
14615         * tls.make.c: Likewise.
14616
14617         * configure.in: Remove --with-__thread option.  Make tests for
14618         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
14619         tls_model attribute fail if no support is available.  Remove
14620         USE_IN_LIBIO.
14621         * Makeconfig: Adjust for dropped configure option.  All features are
14622         now mandatory.
14623         * Makerules: Likewise.
14624         * Versions.def: Likewise.
14625         * argp/argp-fmtstream.c: Likewise.
14626         * argp/argp-fmtstream.h: Likewise.
14627         * argp/argp-help.c: Likewise.
14628         * assert/assert.c: Likewise.
14629         * config.h.in: Likewise.
14630         * config.make.in: Likewise.
14631         * configure: Likewise.
14632         * configure.in: Likewise.
14633         * csu/Versions: Likewise.
14634         * csu/init.c: Likewise.
14635         * elf/tst-audit2.c: Likewise.
14636         * elf/tst-tls10.c: Likewise.
14637         * elf/tst-tls10.h: Likewise.
14638         * elf/tst-tls11.c: Likewise.
14639         * elf/tst-tls12.c: Likewise.
14640         * elf/tst-tls14.c: Likewise.
14641         * elf/tst-tlsmod11.c: Likewise.
14642         * elf/tst-tlsmod12.c: Likewise.
14643         * elf/tst-tlsmod13.c: Likewise.
14644         * elf/tst-tlsmod13a.c: Likewise.
14645         * elf/tst-tlsmod14a.c: Likewise.
14646         * elf/tst-tlsmod15b.c: Likewise.
14647         * elf/tst-tlsmod16a.c: Likewise.
14648         * elf/tst-tlsmod16b.c: Likewise.
14649         * elf/tst-tlsmod7.c: Likewise.
14650         * elf/tst-tlsmod8.c: Likewise.
14651         * elf/tst-tlsmod9.c: Likewise.
14652         * gmon/gmon.c: Likewise.
14653         * grp/fgetgrent_r.c: Likewise.
14654         * grp/putgrent.c: Likewise.
14655         * hurd/fopenport.c: Likewise.
14656         * include/libc-symbols.h: Likewise.
14657         * include/tls.h: Likewise.
14658         * intl/gettextP.h: Likewise.
14659         * intl/loadinfo.h: Likewise.
14660         * locale/global-locale.c: Likewise.
14661         * locale/localeinfo.h: Likewise.
14662         * mach/devstream.c: Likewise.
14663         * malloc/arena.c: Likewise.
14664         * malloc/set-freeres.c: Likewise.
14665         * misc/err.c: Likewise.
14666         * misc/getttyent.c: Likewise.
14667         * misc/mntent_r.c: Likewise.
14668         * posix/getopt.c: Likewise.
14669         * posix/wordexp.c: Likewise.
14670         * pwd/fgetpwent_r.c: Likewise.
14671         * resolv/Versions: Likewise.
14672         * resolv/res_hconf.c: Likewise.
14673         * shadow/fgetspent_r.c: Likewise.
14674         * shadow/putspent.c: Likewise.
14675         * stdio-common/printf_fphex.c: Likewise.
14676         * stdio-common/tmpfile.c: Likewise.
14677         * stdlib/abort.c: Likewise.
14678         * stdlib/fmtmsg.c: Likewise.
14679         * sunrpc/auth_unix.c: Likewise.
14680         * sunrpc/clnt_perr.c: Likewise.
14681         * sunrpc/clnt_tcp.c: Likewise.
14682         * sunrpc/clnt_udp.c: Likewise.
14683         * sunrpc/clnt_unix.c: Likewise.
14684         * sunrpc/openchild.c: Likewise.
14685         * sunrpc/svc_simple.c: Likewise.
14686         * sunrpc/svc_tcp.c: Likewise.
14687         * sunrpc/svc_udp.c: Likewise.
14688         * sunrpc/svc_unix.c: Likewise.
14689         * sunrpc/xdr.c: Likewise.
14690         * sunrpc/xdr_array.c: Likewise.
14691         * sunrpc/xdr_rec.c: Likewise.
14692         * sunrpc/xdr_ref.c: Likewise.
14693         * sunrpc/xdr_stdio.c: Likewise.
14694
14695 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
14696
14697         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
14698
14699 2011-07-03  Andreas Jaeger  <aj@suse.de>
14700
14701         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
14702         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
14703         regenerate with gen-libm-tests.pl.
14704
14705 2010-05-12  Petr Baudis  <pasky@suse.cz>
14706
14707         [BZ #11589]
14708         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
14709         around j0() zero points by switching to j1().
14710         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
14711         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
14712         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
14713         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
14714
14715 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
14716
14717         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
14718         instead of 0.
14719         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
14720         instead of 0.                              .
14721         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
14722         Patch in part by Pavel Roskin <proski@gnu.org>.
14723
14724         [BZ #13138]
14725         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
14726         realloc.
14727         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
14728         Free memory block if necessary.
14729
14730         [BZ #12847]
14731         * libio/genops.c (INTDEF): For string streams the _lock pointer can
14732         be NULL.  Don't lock in this case.
14733
14734 2011-09-09  Roland McGrath  <roland@hack.frob.com>
14735
14736         * elf/elf.h (ELFOSABI_GNU): New macro.
14737         (ELFOSABI_LINUX): Define to that.
14738
14739 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
14740
14741         * string/strncat.c (strncat): Undef the symbol in case it has been
14742         defined in bits/string.h.
14743
14744 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
14745
14746         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
14747
14748         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
14749         link map.
14750
14751 2011-08-17  Andreas Jaeger  <aj@suse.de>
14752
14753         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
14754
14755 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
14756             Ian Lance Taylor  <iant@google.com>
14757
14758         * math/libm-test.inc (lround_test): New testcase.
14759         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
14760
14761 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
14762
14763         * Makefile: Remove support for automatic cvs check-ins.
14764         * Makerules: Likewise.
14765         * config.make.in: Likewise.
14766         * configure.in: Likewise.
14767         * intl/Makefile: Likewise.
14768         * locale/Makefile: Likewise.
14769         * po/Makefile: Likewise.
14770         * posix/Makefile: Likewise.
14771         * sysdeps/gnu/Makefile: Likewise.
14772         * sysdeps/mach/hurd/Makefile: Likewise.
14773         * sysdeps/sparc/sparc32/Makefile: Likewise.
14774
14775         [BZ #13118]
14776         * posix/Makefile (bug-regex32-ENV): Define.
14777         Patch by John Stanley <jpsinthemix@verizon.net>.
14778
14779         * misc/Makefile (headers): Add bits/select2.h.
14780         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
14781         * misc/bits/select2.h: New file.
14782         * include/bits/select2.h: New file.
14783         * debug/Makefile (routines): Add fdelt_chk.
14784         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
14785         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
14786         FD_ISSET.
14787         * debug/fdelt_chk.c: New file.
14788
14789         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
14790         * wcsmbs/test-wmemcmp.c: Likewise.
14791         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
14792         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
14793
14794 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14795
14796         * string/Makefile (strop-tests): Add memcmp.
14797         * string/test-wmemcmp.c: New file.
14798         * string/test-memcmp.c: Add wmemcmp support.
14799
14800 2011-09-08  Roland McGrath  <roland@hack.frob.com>
14801
14802         [BZ #13153]
14803         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
14804         2011-07-19 change.
14805
14806         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
14807         garbage value in a __mach_port_mod_refs call in the cases of the
14808         task-self and thread-self ports.
14809
14810 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14811
14812         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
14813
14814 2011-09-08  Andreas Schwab  <schwab@redhat.com>
14815
14816         * elf/dl-load.c (lose): Check for non-null L.
14817
14818 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
14819
14820         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
14821
14822         * elf/dl-libc.c (dlerror_run): Pass back error code from
14823         dl_catch_error.
14824
14825         [BZ #13123]
14826         * elf/dl-load.c (lose): Free l_origin if it is valid.
14827
14828         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
14829         names.
14830         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
14831         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
14832         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
14833         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
14834         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
14835         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
14836
14837 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14838
14839         * sysdeps/powerpc/fpu/e_hypot.c: New file.
14840         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
14841         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
14842         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
14843         * sysdeps/powerpc/fpu/k_cosf.c: New file.
14844         * sysdeps/powerpc/fpu/k_sinf.c: New file.
14845         * sysdeps/powerpc/fpu/s_cosf.c: New file.
14846         * sysdeps/powerpc/fpu/s_sinf.c: New file.
14847         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
14848         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
14849
14850 2011-08-15  Alan Modra  <amodra@gmail.com>
14851
14852         [BZ #13092]
14853         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
14854         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
14855         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
14856         ppc_mcount to static-only-routines.
14857         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
14858         __mcount_internal.
14859         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
14860         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
14861
14862 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
14863
14864         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
14865         for finite and infinity parameters.
14866
14867 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
14868
14869         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
14870         and add nop instructions for throughput optimization.
14871         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
14872
14873 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
14874
14875         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
14876         aligned copy for power7 with vector-scalar instructions.
14877         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
14878
14879 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
14880
14881         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
14882         AVX check.
14883
14884 2011-09-07  Andreas Schwab  <schwab@redhat.com>
14885
14886         [BZ #13144]
14887         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
14888         last change.
14889
14890 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
14891
14892         * sysdeps/unix/sysv/linux/x86_64/init-first.c
14893         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
14894         syscall wrapper around clock_gettime in __vdso_clock_gettime.
14895         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
14896         clock_gettime.
14897
14898 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
14899
14900         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
14901         Forgot to demangle the pointer.
14902
14903         * sysdeps/i386/sysdep.h: Define atom_text_section.
14904         * sysdeps/x86_64/sysdep.h: Likewise.
14905         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
14906         section with atom_text_section.
14907         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
14908         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
14909         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
14910         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
14911         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
14912
14913         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
14914         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
14915         already be defined.  Change to take two parameters and don't assign
14916         result to variable.  Adjust all users.
14917         Define INTERNAL_GETTIME if not already defined.
14918         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
14919         call.
14920         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
14921         HAVE_CLOCK_GETTIME_VSYSCALL.
14922         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
14923
14924         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
14925         gettimeofday vsyscall, just use time.
14926
14927 2011-09-06  Andreas Schwab  <schwab@redhat.com>
14928
14929         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
14930         <errno.h>.
14931
14932 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
14933
14934         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
14935         syscall on x86-64.
14936         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
14937         syscall.
14938         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
14939         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
14940         syscall if possible.
14941
14942 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
14943
14944         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
14945         e_ident.  Don't pass to find_mapsXX.
14946         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
14947
14948 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
14949
14950         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
14951         strchr-sse2-no-bsf strrchr-sse2-no-bsf
14952         * sysdeps/x86_64/multiarch/strchr.S: Update.
14953         Check bit_slow_BSF bit.
14954         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
14955         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
14956         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
14957
14958 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
14959
14960         [BZ #13134]
14961         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
14962         before glibc 2.15.
14963         (tryshell): Define.
14964         (__spawni): Change last parameter to be flag.  Test
14965         SPAWN_XFLAGS_USE_PATH flag to use path or not.
14966         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
14967         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
14968         * posix/spawni.c: Likewise.
14969         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
14970         * posix/spawnp.c: Likewise.  Change normal version to use
14971         SPAWN_XFLAGS_USE_PATH.
14972         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
14973         SPAWN_XFLAGS_TRY_SHELL.
14974
14975         [BZ #13150]
14976         * posix/glob.h: Remove gcc 1.x support.
14977
14978         [BZ #13068]
14979         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
14980
14981 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
14982
14983         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
14984         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
14985         strrchr-sse2-bsf
14986         * sysdeps/i386/i686/multiarch/strchr.S: New file.
14987         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
14988         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
14989         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
14990         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
14991         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
14992
14993 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14994
14995         * sysdeps/x86_64/wcscmp.S: New file.
14996
14997         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
14998         wcscmp-c wcscmp-sse2
14999         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
15000         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
15001         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
15002         * wcsmbs/wcscmp.c: Allow renaming.
15003
15004 2011-09-05  David S. Miller  <davem@davemloft.net>
15005
15006         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
15007         stack slot, rather than the struct return pointer slot.
15008         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
15009         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
15010         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
15011         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
15012
15013 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
15014
15015         * po/ja.po: Update from translation team.
15016
15017         [BZ #13144]
15018         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
15019         kernel in 64-bit binaries.
15020
15021 2011-09-01  David S. Miller  <davem@davemloft.net>
15022
15023         * elf/elf.h (HWCAP_SPARC_*): Move to..
15024         * sysdeps/sparc/sysdep.h: this new file and add new values.
15025         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
15026         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
15027         _DL_HWCAP_COUNT to 24.
15028         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
15029         entries.
15030         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
15031         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
15032         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
15033         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
15034         instead of magic constants.
15035         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
15036
15037 2011-08-31  David S. Miller  <davem@davemloft.net>
15038
15039         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
15040         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
15041         Reimplement to do errno handling inline.
15042         (SYSCALL_ERROR_HANDLER): New macro.
15043         (__SYSCALL_STRING): Do not do errno handling in asm.
15044         (__CLONE_SYSCALL_STRING): Delete.
15045         (__INTERNAL_SYSCALL_STRING): Delete.
15046         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
15047         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
15048         (PSEUDO): Reimplement to do errno handling inline.
15049         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
15050         (SYSCALL_ERROR_HANDLER): New macro.
15051         (__SYSCALL_STRING): Do not do errno handling in asm.
15052         (__CLONE_SYSCALL_STRING): Delete.
15053         (__INTERNAL_SYSCALL_STRING): Delete.
15054         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
15055         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
15056         i386.
15057         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
15058         (inline_syscall*): Add 'err' argument.
15059         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
15060         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
15061         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
15062         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
15063
15064         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
15065         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
15066
15067 2011-08-30  Andreas Schwab  <schwab@redhat.com>
15068
15069         * elf/rtld.c (dl_main): Relocate objects in dependency order.
15070
15071 2011-08-29  Jiri Olsa <jolsa@redhat.com>
15072
15073         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
15074         directive.
15075
15076 2011-08-24  David S. Miller  <davem@davemloft.net>
15077
15078         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
15079
15080 2011-08-24  Andreas Schwab  <schwab@redhat.com>
15081
15082         * elf/Makefile: Add rules to build and run unload8 test.
15083         * elf/unload8.c: New file.
15084         * elf/unload8mod1.c: New file.
15085         * elf/unload8mod1x.c: New file.
15086         * elf/unload8mod2.c: New file.
15087         * elf/unload8mod3.c: New file.
15088
15089         * elf/dl-close.c (_dl_close_worker): Reset private search list if
15090         it wasn't used.
15091
15092 2011-08-23  David S. Miller  <davem@davemloft.net>
15093
15094         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
15095         subtract stack bias.
15096         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
15097         %sp not %fp in calculations.
15098         (_JMPBUF_UNWINDS_ADJ): Likewise.
15099
15100         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
15101         (aio_suspend): Call it to force an exception region around the
15102         AIO_MISC_WAIT() invocation.
15103
15104 2011-08-23  Andreas Schwab  <schwab@redhat.com>
15105
15106         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
15107         backslash.
15108
15109 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
15110
15111         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
15112         protection macro.
15113         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
15114         and <dl-machine.h>.
15115         (Elf64_FuncDesc): Remove.
15116
15117 2011-08-22  David S. Miller  <davem@davemloft.net>
15118
15119         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
15120         sigaltstack check, add missing cfi directives.
15121         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
15122         missing cfi directives, and sigaltstack handling.
15123
15124 2011-08-16  Andreas Schwab  <schwab@redhat.com>
15125
15126         [BZ #11724]
15127         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
15128         object is seen twice.
15129         * elf/dl-fini.c (_dl_sort_fini): Likewise.
15130
15131         * elf/Makefile (distribute): Add tst-initorder2.c.
15132         (tests): Add tst-initorder2.
15133         (modules-names): Add tst-initorder2a tst-initorder2b
15134         tst-initorder2c tst-initorder2d.  Add rules to build them.
15135         ($(objpfx)tst-initorder2.out): New rule.
15136         * elf/tst-initorder2.c: New file.
15137         * elf/tst-initorder2.exp: New file.
15138
15139 2011-08-22  Andreas Schwab  <schwab@redhat.com>
15140
15141         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
15142
15143         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
15144         dependencies back to end of function.
15145
15146         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
15147         $(elfobjdir)/ld.so.
15148
15149 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
15150
15151         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
15152         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
15153         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
15154         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
15155         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
15156         of __vdso_gettimeofday.
15157         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
15158         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
15159         attribute_hidden.
15160         (_libc_vdso_platform_setup): Remove initialization of
15161         __vdso_gettimeofday and __vdso_time.
15162
15163 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
15164
15165         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
15166         and fgetc_unlocked.
15167         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
15168         getc_unlocked.
15169
15170         * elf/dl-open.c (add_to_global): Report additions to the global scope
15171         for LD_DEBUG=scopes.
15172         (dl_open_worker): Also print scope of newly loaded dependencies.
15173         (_dl_show_scope): Indicate if there is no scope.
15174
15175         [BZ #13114]
15176         * stdio-common/Makefile (tests): Add bug24.
15177         * stdio-common/bug24.c: New file.
15178
15179 2011-08-19  Andreas Jaeger  <aj@suse.de>
15180
15181         [BZ #13114]
15182         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
15183         non-existant file when using close-on-exec mode.
15184
15185 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
15186
15187         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
15188         the very first instruction.
15189
15190         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
15191         the CFI state in the end.
15192         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
15193         inclusion of dl-trampoline.h.
15194         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
15195
15196 2011-08-19  Andreas Schwab  <schwab@redhat.com>
15197
15198         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
15199         expectations for long double.
15200
15201         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
15202         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
15203
15204 2011-08-14  David S. Miller  <davem@davemloft.net>
15205
15206         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
15207         artificual limit depends upon the system page size.
15208
15209 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
15210
15211         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
15212         * resolv/Makefile: Define CFLAGS-libresolv.
15213
15214 2011-08-17  Andreas Schwab  <schwab@redhat.com>
15215
15216         * nss/makedb.c (compute_tables): Make variables used in nested
15217         function static.
15218
15219 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
15220
15221         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
15222         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
15223         if buffer was too small.
15224
15225         * elf/pldd.c (main): Attach to all threads in the process.
15226         Rewrite /proc handling to use *at functions.
15227
15228 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
15229
15230         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
15231         specifies first scope to show.
15232         (dl_open_worker): Update callers.  Move printing scope of new
15233         object to before the relocation.
15234         * elf/rtld.c (dl_main): Update _dl_show_scope call.
15235         * sysdeps/generic/ldsodefs.h: Update declaration.
15236
15237         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
15238         string for the scope number.
15239
15240 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
15241
15242         * nscd/servicescache.c (cache_addserv): Make sure written is always
15243         initialized.
15244
15245 2011-08-14  Roland McGrath  <roland@hack.frob.com>
15246
15247         * sysdeps/i386/i486/bits/atomic.h
15248         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
15249         statement expression, so as to suppress "set but not used" warning.
15250         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
15251
15252         * string/strncat.c (STRNCAT): Use prototype definition.
15253
15254         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
15255         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
15256         -Iprograms here.
15257         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
15258         (localedef-modules): Add localedef.
15259         (locale-modules): Add locale.
15260
15261         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
15262         * elf/rtld.c (dl_main): Invert order of assignment in last change,
15263         to avoid a warning.
15264
15265 2011-08-14  David S. Miller  <davem@davemloft.net>
15266
15267         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
15268         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
15269
15270 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
15271
15272         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
15273         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
15274         * elf/rtld.c (dl_main): Set l_name of vDSO.
15275         Call _dl_show_scope when DL_DEBUG_SCOPES.
15276         (process_dl_debug): Recognize scopes flag and also set it for all.
15277         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
15278         Declare _dl_show_scope.
15279
15280         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
15281         (do_dlopen): Pass caller_dlopen to dl_open.
15282         (__libc_dlopen_mode): Initialize caller_dlopen.
15283
15284         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
15285         of libc.  Make tolower call locale-independent.  Optimize a bit by
15286         using isdigit instead of isalnum.
15287         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
15288
15289 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
15290
15291         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
15292         was a dependency or dynamically loaded.
15293
15294 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
15295
15296         * intl/l10nflist.c: Allow architecture-specific pop function.
15297         * sysdeps/x86_64/l10nflist.c: New file.
15298
15299         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
15300         classification.
15301
15302 2011-08-10  Andreas Schwab  <schwab@redhat.com>
15303
15304         * include/dirent.h: Add libc_hidden_proto for scandirat and
15305         scandirat64.  Don't declare __scandirat64.
15306         * dirent/scandirat.c: Add libc_hidden_def.
15307         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
15308         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
15309
15310 2011-08-10  David S. Miller  <davem@davemloft.net>
15311
15312         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
15313         enum.
15314         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
15315         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
15316         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
15317
15318 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
15319
15320         * Versions.def [libc]: Add GLIBC_2.15.
15321         * dirent/Makefile (routines): Add scandirat and scandirat64.
15322         * dirent/Versions [libc]: Export scandirat and scandirat64 for
15323         GLIBC_2.15.
15324         * dirent/dirent.h: Declare scandirat and scandirat64.
15325         * dirent/scandirat.c: New file.
15326         * dirent/scandirat64.c: New file.
15327         * sysdeps/wordsize-64/scandirat.c: New file.
15328         * sysdeps/wordsize-64/scandirat64.c: New file.
15329         * dirent/opendir.c: Define opendirat.
15330         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
15331         using scandirat.
15332         * dirent/scandir64.c: Adjust for scandir.c change.
15333         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
15334         __scandirat64, and __scandir_cancel_handler.
15335         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
15336         additional parameter and use openat instead of open (outside of ld.so).
15337         Add new __opendir as wrapper around __opendirat.
15338         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
15339         here without requiring old scandirat implementation.
15340
15341 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
15342
15343         * dirent/scandir.c (cancel_handler): Renamed to
15344         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
15345         defined.  Adjust users.
15346         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
15347         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
15348
15349 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
15350
15351         * string/test-string.h (IMPL): Use __STRING to expand name and then
15352         stringify it.
15353
15354         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
15355         of cleanups.
15356
15357 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15358
15359         * string/Makefile: Update.
15360         (strop-tests): Append strncat.
15361         * string/test-wcscmp.c: New file.
15362         New comprehensive test for wcscmp.
15363         * string/test-strcmp.c: Update.
15364         (WIDE): New define.
15365
15366 2011-07-22  Andreas Schwab  <schwab@redhat.com>
15367
15368         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
15369         line.
15370
15371 2011-07-26  Andreas Schwab  <schwab@redhat.com>
15372
15373         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
15374         encoding to ACE if AI_IDN.
15375
15376 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
15377
15378         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
15379         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
15380
15381 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15382
15383         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
15384         Fix overflow bug in strncat.
15385         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
15386
15387         * string/test-strncat.c: Update.
15388         Add new tests for checking overflow bugs.
15389
15390 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15391
15392         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15393         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
15394         * sysdeps/i386/i686/multiarch/strcat.S: New file.
15395         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
15396         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
15397         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
15398         * sysdeps/i386/i686/multiarch/strncat.S: New file.
15399         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
15400         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
15401
15402         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
15403         (USE_AS_STRCAT): Define.
15404         Add strcat and strncat support.
15405         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
15406
15407 2011-07-25  Andreas Schwab  <schwab@redhat.com>
15408
15409         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
15410         __n bigger than INT_MAX+1.
15411         (__strncmp_g): Likewise.
15412
15413 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
15414
15415         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
15416         * libio/stido.h: Likewise.
15417
15418         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
15419         (AF_NFC): Define.
15420         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
15421         (AF_NFC): Define.
15422
15423         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
15424         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
15425         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
15426         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
15427         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
15428
15429         [BZ #13021]
15430         * scripts/test-installation.pl: Don't expect libnss_test1 to be
15431         installed.
15432
15433         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
15434         typo.
15435         (_dl_x86_64_save_sse): Likewise.
15436
15437 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
15438
15439         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
15440         OSXSAVE.
15441         (_dl_x86_64_save_sse): Likewise.
15442
15443         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
15444
15445         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
15446
15447 2011-07-21  Andreas Schwab  <schwab@redhat.com>
15448
15449         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
15450         change.
15451         (_dl_x86_64_save_sse): Use correct AVX check.
15452
15453 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15454
15455         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
15456         bug in strncpy/strncat.
15457         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
15458
15459 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
15460
15461         * string/tester.c (test_strcat): Add tests for different alignments
15462         of source and destination.
15463         (test_strncat): Likewise.
15464
15465 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
15466
15467         [BZ #12852]
15468         * posix/glob.c (glob): Check passed in values before using them in
15469         expressions to avoid some overflows.
15470         (glob_in_dir): Likewise.
15471
15472         [BZ #13007]
15473         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
15474         check for AVX enablement so that we don't crash with old kernels and
15475         new hardware.
15476         * elf/tst-audit4.c: Add same checks here.
15477         * elf/tst-audit6.c: Likewise.
15478
15479         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
15480
15481 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
15482
15483         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
15484
15485 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
15486
15487         * po/cs.po: Update from translation team.
15488         * po/bg.po: Likewise.
15489
15490 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
15491
15492         * misc/sys/cdefs.h: Add support for const attribute.
15493         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
15494         to gnu_dev_{major,minor,makedev} functions.
15495
15496 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
15497
15498         * intl/dcigettext.c (get_output_charset): Add missing bracket.
15499
15500 2011-07-20  Andreas Schwab  <schwab@redhat.com>
15501
15502         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
15503         strlen results.
15504
15505 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15506
15507         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
15508         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
15509         register in order to avoid conflicts with the soft frame pointer
15510         being held in r11 when necessary.
15511         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
15512         (INTERNAL_VSYSCALL_NCS): Likewise.
15513
15514 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
15515
15516         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
15517         * elf/dl-fini.c (_dl_fini): Adjust caller.
15518         * elf/dl-close.c (_dl_close_worker): Likewise.
15519         * sysdeps/generic/ldsodefs.h: Adjust declaration.
15520
15521 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
15522
15523         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
15524         "aux_cache->nlibs < 0".
15525
15526         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
15527         in the reload-count case.
15528
15529 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15530
15531         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
15532         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
15533         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
15534         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
15535         * sysdeps/x86_64/multiarch/strcat.S: New file.
15536         * sysdeps/x86_64/multiarch/strncat.S: New file.
15537         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
15538         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
15539         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
15540         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
15541         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
15542         (USE_AS_STRCAT): Define.
15543         Add strcat and strncat support.
15544         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
15545         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
15546         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
15547         * string/strncat.c: Update.
15548         (USE_AS_STRNCAT): Define.
15549         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
15550         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
15551         and i7.
15552         * sysdeps/x86_64/multiarch/init-arch.h
15553         (bit_Prefer_PMINUB_for_stringop): New.
15554         (index_Prefer_PMINUB_for_stringop): Likewise.
15555         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
15556         bit_Prefer_PMINUB_for_stringop.
15557
15558 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
15559
15560         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
15561         buffer64.
15562         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
15563         of casting of buffer.
15564         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
15565         buffer32 and buffer64.
15566         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
15567         writes instead of casting of buffer.
15568         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
15569         buffer32.
15570         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
15571         casting of buffer.
15572
15573 2011-07-19  Andreas Schwab  <schwab@redhat.com>
15574
15575         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
15576
15577 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
15578
15579         * nscd/nscd.c (termination_handler): Don't do anything for a database
15580         if it has not yet been initialized.
15581
15582 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
15583
15584         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
15585
15586 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
15587
15588         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
15589
15590 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
15591
15592         * po/nl.po: Update from translation team.
15593         * po/sv.po: Likewise.
15594
15595 2011-07-16  Roland McGrath  <roland@hack.frob.com>
15596
15597         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
15598         now disallowed by GCC.
15599
15600         * configure.in (use-default-link): Default to yes if a test -shared
15601         link meets our qualifications.
15602         * configure: Regenerated.
15603
15604         * config.make.in (output-format): New variable.
15605         * configure.in: Check for ld --print-output-format support.
15606         * configure: Regenerated.
15607         * Makerules ($(common-objpfx)format.lds)
15608         [$(output-format) != unknown]: Just use $(output-format),
15609         instead of the linker-script munging.
15610
15611 2011-07-14  Roland McGrath  <roland@hack.frob.com>
15612
15613         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
15614         of $(common-objpfx)shlib.lds.
15615         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
15616
15617         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
15618         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
15619
15620         * configure.in (-z relro check): Adjust test code to add a large
15621         writable data section after it.
15622         * configure: Regenerated.
15623
15624 2011-07-11  Roland McGrath  <roland@hack.frob.com>
15625
15626         * configure.in (-z relro check): Fix test code to make the variable
15627         truly const.
15628         * configure: Regenerated.
15629
15630 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
15631
15632         * nscd/nscd.h (struct traced_file): Define.
15633         (struct database_dyn): Remove inotify_descr, reset_res, and filename
15634         elements.  Add traced_files.
15635         (inotify_fd): Declare.
15636         (register_traced_file): Declare.
15637         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
15638         (inotify_fd): Export.
15639         (resolv_conf_descr): Remove.
15640         (nscd_init): Move inotify descriptor creation to main.
15641         Don't register files for notification here.
15642         (register_traced_file): New function.
15643         (invalidate_cache): Don't use reset_res to determine whether to call
15644         res_init, go through the list of registered files.
15645         (main_loop_poll): The inotify descriptors are now stored in the
15646         structures for the traced files.
15647         (main_loop_epoll): Likewise
15648         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
15649         to __nss_disable_nscd.
15650         * nscd/cache.c (prune_cache): There is no single inotify descriptor
15651         for a database anymore.  Check the records for all the registered
15652         files instead.
15653         * nss/Makefile (libnss_files-routines): Add files-init.
15654         (libnss_db-routines): Add db-init.
15655         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
15656         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
15657         * nss/nss_db/db-init.c: New file.
15658         * nss/nss_files/files-init.c: New file.
15659         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
15660         __nss_lookup_function.
15661         (__nss_lookup_function): Call nss_load_library.
15662         (nss_load_all_libraries): New function.
15663         (__nss_disable_nscd): Take parameter with callback function for files
15664         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
15665         used for the cached services.
15666         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
15667         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
15668         options for features to all the files in nscd.
15669
15670         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
15671
15672 2011-07-10  Roland McGrath  <roland@hack.frob.com>
15673
15674         * csu/elf-init.c (__libc_csu_init): Comment typo.
15675
15676 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
15677
15678         * po/pl.po: Update from translation team.
15679         * po/ja.po: Likewise.
15680         * po/ru.po: Likewise.
15681         * po/ko.po: Likewise.
15682         * po/fr.po: Likewise.
15683
15684 2011-07-09  Roland McGrath  <roland@hack.frob.com>
15685
15686         * configure.in (.ctors/.dtors header and trailer check):
15687         Use an empirical test on a built program.
15688         * configure: Regenerated.
15689
15690         * configure.in (-z relro check): Use an empirical test on a built DSO.
15691         Detect, but do not require, on ia64.
15692         * configure: Regenerated.
15693
15694         * configure.in (READELF): Find it with AC_CHECK_TOOL.
15695         Update tests that use readelf to use $READELF instead.
15696         * configure: Regenerated.
15697
15698 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
15699
15700         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
15701         if the result is not used.
15702
15703 2011-07-05  Andreas Jaeger  <aj@suse.de>
15704
15705         [BZ#9696]
15706         * stdlib/tst-strtod.c: Add testcase.
15707
15708 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
15709
15710         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
15711         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
15712         The latter has a higher limit.  Take additional parameter to pass to
15713         the new function.
15714         (__pathconf): Pass file to __statfs_link_max.
15715         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
15716         __statfs_link_max.
15717         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
15718         __statfs_link_max.
15719
15720         [BZ #12868]
15721         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
15722         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
15723         Handle Lustre.
15724         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
15725         (__statfs_filesize_max): Likewise.
15726         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
15727
15728 2011-07-05  Andreas Jaeger  <aj@suse.de>
15729
15730         * resolv/res_comp.c (dn_skipname): Remove unused variable.
15731
15732 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
15733
15734         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
15735         `status' variable.
15736         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
15737         Likewise.
15738
15739 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
15740
15741         * Makefile (strop-tests): Add strncat.
15742         * string/test-strncat.c: New file.
15743
15744 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
15745
15746         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
15747
15748 2011-06-21  Andreas Jaeger  <aj@suse.de>
15749
15750         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
15751         Copy rule from iconvdata/Makefile.
15752
15753 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
15754
15755         [BZ #12922]
15756         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
15757         but no long options are defined, just return 'W'.
15758
15759 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
15760
15761         [BZ #9696]
15762         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
15763
15764 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
15765
15766         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
15767         netgroups to read.
15768         (innetgr): Likewise.
15769
15770 2011-07-05  Roland McGrath  <roland@hack.frob.com>
15771
15772         * config.make.in (install_root): Default to $(DESTDIR).
15773
15774 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
15775
15776         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
15777
15778 2011-07-02  Roland McGrath  <roland@hack.frob.com>
15779
15780         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
15781
15782         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
15783         containing directory rather than embedding absolute directory names.
15784
15785         * scripts/check-local-headers.sh: Rewritten using awk.
15786         Match by word, not by line.  Print error messages for matches.
15787         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
15788
15789         * Makerules [shlib-lds-flags empty]:
15790         ($(common-objpfx)libc_pic.opts): New target.
15791         ($(common-objpfx)libc_pic.os.clean): New target.
15792         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
15793
15794         * config.make.in (OBJCOPY): New variable.
15795         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
15796         * configure: Regenerated.
15797
15798         * config.make.in (use-default-link): New variable.
15799         * configure.in (use_default_link): Grok --with-default-link to set it.
15800         * configure: Regenerated.
15801         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
15802         (shlib-lds, shlib-lds-flags): Define to empty.
15803
15804         * Makerules (shlib-lds): New variable.
15805         (shlib-lds-flags): New variable.
15806         (build-shlib, build-moduile, build-module-asneeded): Use it.
15807         ($(common-objpfx)libc.so): Use $(shlib-lds).
15808         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
15809         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
15810
15811         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
15812         DT_FLAGS/DT_FLAGS_1 with zero flags.
15813
15814         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
15815         linker script munging.
15816
15817 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
15818
15819         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
15820         as 128-bit value.
15821         * crypt/sha512.c (sha512_process_block): Perform total addition using
15822         128-bit if possible.
15823         (__sha512_finish_ctx): Likewise.
15824         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
15825         as 64-bit value.
15826         * crypt/sha256.c (SWAP64): Define.
15827         (sha256_process_block): Perform total addition using 64-bit if
15828         possible.
15829         (__sha256_finish_ctx): Likewise.
15830
15831 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
15832
15833         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
15834         * nscd/initgrcache.c (addinitgroupsX): Likewise.
15835         * nscd/hstcache.c (cache_addhst): Likewise.
15836         * nscd/grpcache.c (cache_addgr): Likewise.
15837         * nscd/aicache.c (addhstaiX): Likewise
15838         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
15839
15840 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
15841
15842         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
15843         * nscd/initgrcache.c (addinitgroupsX): Likewise.
15844         * nscd/hstcache.c (cache_addhst): Likewise.
15845         * nscd/grpcache.c (cache_addgr): Likewise.
15846         * nscd/aicache.c (addhstaiX): Likewise
15847
15848 2011-07-01  Andreas Schwab  <schwab@redhat.com>
15849
15850         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
15851         domain only when needed.
15852
15853 2011-06-30  Andreas Schwab  <schwab@redhat.com>
15854
15855         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
15856         is always restored.
15857
15858 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
15859
15860         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
15861         are re-adding the entry.
15862         * nscd/servicescache.c (cache_addserv): Likewise.
15863
15864 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
15865
15866         * sysdeps/generic/dl-irel.h: fix protection against multiple
15867         inclusions.
15868         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
15869
15870 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
15871
15872         [BZ #12935]
15873         * malloc/memusage.sh: Fix quoting in message.
15874         * debug/xtrace.sh: Likewise.
15875
15876         * configure.in: Remove support for --experimental-malloc option, make
15877         it the default.
15878         * config.make.in: Likewise.
15879         * malloc/Makefile: Likewise.
15880
15881 2011-06-27  Andreas Schwab  <schwab@redhat.com>
15882
15883         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
15884         two-byte characters.
15885
15886 2011-06-27  Roland McGrath  <roland@hack.frob.com>
15887
15888         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
15889         AC_CACHE_CHECK invocation.
15890         * configure: Regenerated.
15891
15892         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
15893
15894 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
15895
15896         [BZ #12350]
15897         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
15898         bit from old_res_options.
15899
15900         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
15901
15902         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
15903         value type for setfct.
15904
15905 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
15906
15907         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
15908         __gettimeofday instead of gettimeofday.
15909
15910 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
15911
15912         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
15913
15914 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
15915
15916         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
15917
15918         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
15919         info.
15920
15921 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
15922
15923         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
15924         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
15925         strcpy-sse2-unaligned strncpy-sse2-unaligned
15926         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
15927         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
15928         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
15929         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
15930         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
15931         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
15932         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
15933         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
15934         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
15935         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
15936         (STRCPY): Support SSE2 and SSSE3 versions.
15937
15938 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
15939
15940         [BZ #12874]
15941         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
15942         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
15943         kernels which artificially limit size of requests.
15944
15945 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
15946
15947         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15948         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
15949         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
15950         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
15951         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
15952         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
15953         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
15954         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
15955         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
15956         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
15957         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
15958         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
15959         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
15960         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
15961         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
15962         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
15963         Enable unaligned load optimization for Intel Core i3, i5 and i7
15964         processors.
15965         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
15966         Define.
15967         (index_Fast_Unaligned_Load): Define.
15968         (HAS_FAST_UNALIGNED_LOAD): Define.
15969
15970 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
15971
15972         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
15973
15974 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
15975
15976         [BZ #12907]
15977         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
15978         until it is clear that the information is realy needed.
15979         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
15980
15981 2011-06-22  Andreas Schwab  <schwab@redhat.com>
15982
15983         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
15984
15985 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
15986
15987         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
15988         /sys/devices/system/cpu/online if it is usable.
15989
15990         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
15991         reading the information from the /proc filesystem to once a second.
15992
15993 2011-06-21  Andreas Jaeger  <aj@suse.de>
15994
15995         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
15996         NULL after inclusion of kernel headers.
15997
15998 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
15999
16000         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
16001         calls to internal_setent.
16002
16003         [BZ #12885]
16004         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
16005         addresses using gethostbyname4_r ignore IPv4 addresses.
16006
16007         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
16008         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
16009
16010         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
16011
16012 2011-06-20  David S. Miller  <davem@davemloft.net>
16013
16014         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
16015         inclusions.
16016         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
16017
16018         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
16019         (elf_irel): Use it.
16020         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
16021         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
16022         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
16023         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
16024         * sysdeps/x86_64/dl-irel.h: Likewise.
16025
16026         * elf/dl-runtime.c: Use elf_ifunc_invoke.
16027         * elf/dl-sym.c: Likewise.
16028
16029 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
16030
16031         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
16032         need to dereference resplen2.
16033
16034 2011-06-14  Andreas Schwab  <schwab@redhat.com>
16035
16036         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
16037
16038 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
16039
16040         * Makeconfig: Define vardbdir and inst_vardbdir.
16041         * nss/Makefile: Add rules to install db-Makefile.
16042
16043         * nss/nss_db/db-XXX.c: Cleanup.
16044
16045         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
16046         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
16047         GLIBC_PRIVATE.
16048         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
16049         * nss/makedb.c: Implement -g option to specify that value strings
16050         are generated and should not be added to table iterated over for
16051         get*ent calls.
16052         * nss/nss_db/db-initgroups.c: New file.
16053
16054         * nss/getent.c: Add support for initgroups lookups through getgrouplist
16055         interface.
16056
16057         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
16058         (internal_getgrouplist): Adjust to name change.
16059         Update use_initgroups_entry if this is not the first call.
16060         * nss/databases.def: Add initgroups entry.
16061
16062         * nss/makedb.c (compute_tables): Check result of multiple hash table
16063         sizes to minimize maximum chain length.
16064
16065 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
16066
16067         * Versions.def: Add entry for libnss_db.
16068         * shlib-versions: Likewise.
16069         * nss/Makefile: Add rules to build libnss_db.
16070         * nss/Versions: Add libnss_db information.  Organize libnss_files
16071         entries better.
16072         * nss/db-Makefile: Add gshadow support.  Change rules for the new
16073         makedb progra.  Some minor improvements to generate smaller files.
16074         * nss/nss_db/nss_db.h: Move NSS database header data structures to
16075         here from...
16076         * nss/makedb.c: ...here.
16077         Improve database format to be smaller and require less memory at
16078         runtime.
16079         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
16080         db anymore.
16081         * nss/nss_db/db-netgrp.c: Likewise.
16082         * nss/nss_db/db-open.c: Likewise.
16083         * nss/nss_files/flies-XXX.x: Adjust comments.
16084         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
16085         * nss/nss_files/files-grp.c: Likewise.
16086         * nss/nss_files/files-hosts.c: Likewise.
16087         * nss/nss_files/files-network.c: Likewise.
16088         * nss/nss_files/files-proto.c: Likewise.
16089         * nss/nss_files/files-pwd.c: Likewise.
16090         * nss/nss_files/files-rpc.c: Likewise.
16091         * nss/nss_files/files-service.c: Likewise.
16092         * nss/nss_files/files-sgrp.c: Likewise.
16093         * nss/nss_files/files-spwd.c: Likewise.
16094         * nss/nss_db/db-alias.c: Removed.
16095         * nss/nss_db/dummy-db.h: Removed.
16096
16097 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
16098
16099         * nss/makedb.c: Rewritten to not use database library.
16100         * nss/Makefile: Update to build new makedb program.
16101
16102 2011-06-14  Andreas Jaeger  <aj@suse.de>
16103
16104         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
16105         memset declaration.
16106
16107 2011-06-10  Andreas Schwab  <schwab@redhat.com>
16108
16109         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
16110         tmpbuf.
16111
16112 2011-06-10  Roland McGrath  <roland@hack.frob.com>
16113
16114         * Makerules (shlib.lds): Fail if the linker script comes out empty.
16115         * elf/Makefile ($(objpfx)ld.so): Likewise.
16116
16117         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
16118         Don't list ld.so twice in dependencies.
16119
16120         * posix/bug-regex31.c: Include <stdlib.h>.
16121
16122         * nscd/hstcache.c (cache_addhst): Remove unused variable.
16123
16124         * nis/nss_compat/compat-spwd.c
16125         (getspent_next_nss_netgr): Remove unused variable.
16126         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
16127
16128         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
16129         nonmembers" output to use the right array.
16130
16131         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
16132
16133         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
16134
16135         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
16136         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
16137         * catgets/gencat.c (read_input_file): Likewise.
16138         * locale/programs/locarchive.c (enlarge_archive): Likewise.
16139
16140         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
16141         variable definition inside #if's controlling its use.
16142
16143         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
16144
16145         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
16146
16147         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
16148
16149         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
16150         unreachable code.
16151
16152         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
16153
16154         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
16155         * configure: Regenerated.
16156
16157         * Makerules: Revert last change.
16158         * elf/Makefile: Likewise.
16159
16160 2011-06-09  Roland McGrath  <roland@hack.frob.com>
16161
16162         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
16163         * elf/Makefile ($(objpfx)librtld.os): Likewise.
16164         (reloc-link): Likewise.
16165
16166 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
16167
16168         * elf/Makefile: Add rules to build pldd.
16169         * elf/pldd.c: New file.
16170         * elf/pldd-xx.c: New file.
16171
16172 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
16173
16174         * version.h: Update for 2.15 development version.
16175
16176 2011-06-07  David S. Miller  <davem@davemloft.net>
16177
16178         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
16179         ifuncs.
16180         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
16181         elf_machine_lazy_rel): Likewise.
16182         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
16183         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
16184         elf_machine_lazy_rel): Likewise.
16185         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
16186         dl_hwcap via passed in argument.
16187         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
16188         Likewise.
16189
16190 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16191
16192         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
16193
16194 2011-06-06  Roland McGrath  <roland@hack.frob.com>
16195
16196         [BZ #12849]
16197         * manual/fdl-1.1.texi: New file, verbatim from:
16198         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
16199         * manual/lgpl-2.1.texi: New file, verbatim from:
16200         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
16201         * manual/Makefile (licenses): New variable, list those new file names.
16202         (texis): Use it.
16203         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
16204
16205         * manual/fdl.texi: File removed.
16206         * manual/lesser.texi: File removed.
16207         * manual/libc.texinfo (Copying, Documentation License):
16208         Use new @include file names, put @appendix directive before @include.
16209
16210 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
16211
16212         [BZ #12841]
16213         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
16214         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
16215         (mq_open): Add __NTH.
16216
16217 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
16218
16219         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16220         Assume Intel Core i3/i5/i7 processor if AVX is available.
16221
16222 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
16223
16224         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
16225         typo.
16226
16227 2011-05-31  Andreas Schwab  <schwab@redhat.com>
16228
16229         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
16230         memory.  Use alloca_account.  Fix memory leak when retrying.
16231
16232 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
16233
16234         * version.h (RELEASE): Bump for 2.14 release.
16235         * include/features.h (__GLIBC_MINOR__): Bump to 14.
16236
16237         * config.make.in (RANLIB): Remove entry.
16238
16239 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
16240
16241         * po/Makefile (po-sed-cmd): Add ksh to extensions.
16242         (libc.pot): Work around missing support for .ksh extension in xgettext.
16243
16244         [BZ #12684]
16245         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
16246         if both request failed.
16247         (send_dg): In case of server errors clear resplen or *resplen2.
16248
16249         [BZ #12454]
16250         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
16251         when there are multiple maps.
16252         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
16253         (_dl_fini): Remove test here.
16254
16255         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
16256
16257 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
16258
16259         [BZ #12350]
16260         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
16261         bit from old_res_options.
16262         (gaih_inet): Likewise.
16263
16264         [BZ #11099]
16265         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
16266         as signed.
16267
16268         * resolv/res_init.c (res_setoptions): Make the code more compact.
16269
16270         [BZ #11558]
16271         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
16272         set RES_USEVC.
16273
16274         [BZ #11634]
16275         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
16276
16277         * malloc/malloc.h: Mark malloc hook variables as deprecated.
16278
16279         [BZ #11781]
16280         * malloc/malloc.h: Declare malloc hook variables as volatile.
16281
16282         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
16283         in last patch.
16284
16285         [BZ #11799]
16286         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
16287         raise in the comment.
16288         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
16289         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
16290         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
16291
16292 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
16293
16294         [BZ #12811]
16295         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
16296         grow the buffers more if it already has to be sufficient.
16297         (build_wcs_upper_buffer): Likewise.
16298         * posix/regexec.c (check_matching): Likewise.
16299         (clean_state_log_if_needed): Likewise.
16300         (extend_buffers): Don't enlarge buffers beyond size of the input
16301         buffer.
16302         Patches mostly by Emil Wojak <emil@wojak.eu>.
16303         * posix/bug-regex32.c: New file.
16304         * posix/Makefile (tests): Add bug-regex32.
16305
16306         * locale/findlocale.c (_nl_find_locale): Return right away if
16307         _nl_explode_name failed.
16308         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
16309
16310         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
16311
16312         * debug/xtrace.sh: Unify messages.
16313         * malloc/memusage.sh: Likewise.
16314
16315         [BZ #12813]
16316         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
16317         time symbol from vDSO.  Substitute with vsyscall if not available.
16318         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
16319         __vdso_time.
16320
16321         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
16322         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
16323         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
16324         Add sendmmsg and internal_sendmmsg.
16325         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
16326         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
16327         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
16328
16329         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
16330         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
16331         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
16332
16333 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
16334
16335         [BZ #12813]
16336         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
16337         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
16338         available.
16339         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
16340         __vdso_getcpu.
16341
16342         [BZ #12814]
16343         * iconvdata/Makefile (tests): Add bug-iconv9.
16344         * iconvdata/bug-iconv9.c: New file.
16345
16346 2011-05-27  Andreas Schwab  <schwab@redhat.com>
16347
16348         [BZ #12814]
16349         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
16350
16351 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
16352
16353         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
16354         (struct user_regs_struct): Change intcs field back to cs.
16355
16356 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
16357
16358         * po/ja.po: Update from translation team.
16359
16360 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
16361
16362         [BZ #12795]
16363         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
16364         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
16365
16366 2011-05-20  Andreas Schwab  <schwab@redhat.com>
16367
16368         * stdlib/longlong.h: Update from GCC.
16369
16370 2011-05-23  Andreas Schwab  <schwab@redhat.com>
16371
16372         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
16373         parameter name.
16374         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
16375         Add parameter name.
16376         (__sysconf): Pass it down.
16377
16378 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
16379
16380         [BZ #12671]
16381         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
16382         some situations.
16383         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
16384         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
16385         add in in __libc_use_alloca calls.  Adjust callers.
16386         (glob): Use malloc in some situations.
16387
16388         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
16389         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
16390         pltexit.
16391
16392 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
16393
16394         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
16395         and CLOCK_BOOTTIME_ALARM.
16396
16397         [BZ #12782]
16398         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
16399         is returned.
16400
16401         * string/_strerror.c (__strerror_r): Print negative errors as signed
16402         numbers.
16403
16404         [BZ #12777]
16405         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
16406         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
16407         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
16408
16409         * configure.in: Fix typo in redirection and correct removal of test
16410         files in two cases.
16411
16412         [BZ #12788]
16413         * locale/setlocale.c (new_composite_name): Fix test to check for
16414         identical name of all categories.
16415
16416         [BZ #12792]
16417         * libio/filedoalloc.c (local_isatty): New function.
16418         (_IO_file_doallocate): Use local_isatty.
16419         * stdio-common/perror.c (perror): In case a new stream is used
16420         forward the stream error.
16421         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
16422         error flag.
16423
16424 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
16425
16426         [BZ #11869]
16427         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
16428         alloca.
16429         * include/alloca.h (extend_alloca_account): Define.
16430
16431         [BZ #11857]
16432         * posix/regex.h: Fix comments with documentation of user-accessible
16433         fields after compilation and describe correct free'ing of pattern
16434         after re_compile_pattern.
16435         Patch by Reuben Thomas <rrt@sc3d.org>.
16436
16437 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
16438
16439         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
16440         and -mno-altivec to prevent the compiler from using Altivec and/or
16441         VSX instructions when the corresponding registers are not available.
16442
16443 2011-05-19  Andreas Schwab  <schwab@redhat.com>
16444
16445         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
16446
16447 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
16448
16449         * libio/freopen.c (freopen): Use __dup2, not dup2.
16450         * libio/freopen64.c (freopen64): Likewise.
16451
16452 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
16453
16454         [BZ #12775]
16455         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
16456         * math/Makefile (tests): Add test-powl.
16457         (CFLAGS-test-powl.c): Define.
16458         * math/test-powl.c: New file.
16459
16460 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
16461
16462         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
16463
16464 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
16465
16466         [BZ #11837]
16467         * iconvdata/gb18030.c: Update to GB18020-2005.
16468
16469 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
16470
16471         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
16472         RE_SYNTAX_POSIX_AWK): Update to match recent development.
16473         Patch by Aharon Robbins <arnold@skeeve.com>.
16474
16475         [BZ #11892]
16476         * stdlib/putenv.c (putenv): Don't always create copy of the variable
16477         on the stack.
16478
16479         [BZ #11895]
16480         * misc/pselect.c (__pselect): Handle timeout value errors hidden
16481         through underflows.
16482
16483         [BZ #12766]
16484         * misc/error.c (error_at_line): Ensure file_name and old_file_name
16485         point to strings before performing equality test for error_one_per_line
16486         mode.
16487
16488         [BZ #11697]
16489         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
16490
16491         [BZ #11820]
16492         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
16493         (struct user_fpregs_struct): Avoid __uint*_t types.
16494
16495         [BZ #6420]
16496         * malloc/mtrace.c (tr_where): Add additional parameter to point to
16497         symbol info.  Use it instead of calling _dl_addr locally.
16498         (lock_and_info): New function.
16499         (tr_freehook): Call lock_and_info and pass symbol info as additional
16500         parameter to tr_where.
16501         (tr_mallochook): Likewise.
16502         (tr_reallochook): Likewise.
16503         (tr_memalignhook): Likewise.
16504
16505         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
16506         used and couldn't be at all thread-safe.
16507
16508 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
16509
16510         * libio/freopen.c (freopen): Don't close old file descriptor
16511         before the new one is opened.  Instead dup the new file descriptor
16512         to the old one after the new stream is created.
16513         * libio/freopen64.c (freopen64): Likewise.
16514         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
16515         * libio/fileops.c (_IO_new_file_close_it): Handle new
16516         _IO_FLAGS2_NOCLOSE flag.
16517         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
16518         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
16519         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
16520         _IO_FLAGS2_NOCLOSE flag.
16521         * include/unistd.h: Add hidden_proto for dup3.
16522         Define __have_dup3.
16523         * io/dup3.c: Define hidden symbol.
16524         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
16525
16526         [BZ #7101]
16527         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
16528         when an incomplete long option is used.
16529         * posix/tst-getopt_long1.c: New file.
16530         * posix/Makefile (tests): Add tst-getopt_long1.
16531
16532         [BZ #10138]
16533         * scripts/config.guess: Update from autoconf-2.68.
16534         * scripts/config.sub: Likewise.
16535
16536         [BZ #10157]
16537         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
16538         tests into ...
16539         (has_cpuclock): ...this.  New function.
16540         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
16541         macro here based on has_cpuclock code.
16542
16543         [BZ #10149]
16544         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
16545         First byte (not low byte) is now always NUL.
16546         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
16547
16548         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
16549         Use non-cancelable interfaces.
16550
16551         [BZ #9809]
16552         * locale/iso-639.def: Add entry for Sorani.
16553
16554         [BZ #11901]
16555         * include/stdlib.h: Move include protection to the right place.
16556         Define abort_msg_s.  Declare __abort_msg with it.
16557         * stdlib/abort.c (__abort_msg): Adjust type.
16558         * assert/assert.c (__assert_fail_base): New function.  Majority
16559         of code from __assert_fail.  Allocate memory for __abort_msg with
16560         mmap.
16561         (__assert_fail): Now call __assert_fail_base.
16562         * assert/assert-perr.c: Remove bulk of implementation.  Use
16563         __assert_fail_base.
16564         * include/assert.hL Declare __assert_fail_base.
16565         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
16566         mmap.
16567         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
16568
16569 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
16570
16571         [BZ #11952]
16572         [BZ #12453]
16573         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
16574         until all modules are registered in the DTV.
16575         * elf/Makefile: Add rules to build and run tst-tls19.
16576         * elf/tst-tls19.c: New file.
16577         * elf/tst-tls19mod1.c: New file.
16578         * elf/tst-tls19mod2.c: New file.
16579         * elf/tst-tls19mod3.c: New file.
16580         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
16581
16582         [BZ #12083]
16583         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
16584         correctly.
16585
16586         [BZ #12601]
16587         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
16588         two-byte sequence errors.
16589         * iconvdata/Makefile (tests): Add bug-iconv8.
16590         * iconvdata/bug-iconv8.c: New file.
16591
16592         [BZ #12626]
16593         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
16594         buf2 definition.
16595
16596         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
16597
16598         [BZ #12432]
16599         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
16600         (dummy_getcfa): New function.
16601         (init): Get _Unwind_GetCFA address, use dummy if not found.
16602         (backtrace_helper): In recursion check, also check whether CFA changes.
16603         (__backtrace): Completely initialize arg.
16604
16605         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
16606         storing incomplete byte sequence in state object.  Avoid testing for
16607         guaranteed too small input if we know there is enough data available.
16608
16609 2011-05-11  Andreas Schwab  <schwab@redhat.com>
16610
16611         * Makeconfig (+link-pie): Indent.
16612         * Rules (binaries-pie): Define if $(have-fpie) and
16613         $(build-shared).
16614         (binaries-shared): Also filter out $(binaries-pie).
16615         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
16616         * nscd/Makefile (others-pie): Add nscd.
16617         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
16618         ($(objpfx)nscd): Remove command override.
16619         * login/Makefile (others-pie): Add pt_chown.
16620         ($(objpfx)pt_chown): Remove command override.
16621         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
16622         remove command overrides.
16623
16624 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
16625
16626         * libio/tst_putwc.c: Fix error messages.
16627
16628         [BZ #12724]
16629         * libio/fileops.c (_IO_new_file_close_it): Always flush when
16630         currently writing and seek to current position when not.
16631         * libio/Makefile (tests): Add bug-fclose1.
16632         * libio/bug-fclose1.c: New file.
16633
16634 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
16635
16636         [BZ #12511]
16637         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
16638         don't set DF_1_NODELETE here.
16639         (do_lookup_x): When entering new entry test for copy relocation
16640         and if necessary set DF_1_NODELETE flag.
16641         * elf/tst-unique4.cc: New file.
16642         * elf/tst-unique4.h: New file.
16643         * elf/tst-unique4lib.cc: New file.
16644         * elf/Makefile: Add rules to build and run tst-unique4.
16645         Patch by Piotr Bury <pbury@goahead.com>.
16646
16647 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
16648
16649         [BZ #12052]
16650         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
16651
16652         [BZ #12625]
16653         * misc/mntent_r.c (addmntent): Flush the stream after the output
16654
16655         [BZ #12393]
16656         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
16657         (is_trusted_path_normalize): Skip initial colon.  Append slash
16658         to empty buffer.  Duplicate is_trusted_path code but allow
16659         constructed patch to be prefix.
16660         (is_dst): Allow $ORIGIN followed by /.
16661         (_dl_dst_substitute): Correct clearing of check_for_trusted.
16662         Correct testing of result of is_trusted_path_normalize
16663         (decompose_rpath): Fix warning.
16664
16665 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
16666
16667         [BZ #11257]
16668         * grp/initgroups.c (internal_getgrouplist): When we found the service
16669         list through the initgroups entry in nsswitch.conf do not always
16670         continue on a successful lookup.  Don't always use the
16671         __nss_group_database value if it is set.
16672         * nss/nsswitch.conf (initgroups): Change action for successful db
16673         lookup to continue for compatibility.
16674
16675 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
16676
16677         [BZ #11532]
16678         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
16679         and CP774 modules.
16680         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
16681         and CP774 modules.
16682         * iconvdata/tst-tables.sh: Likewise.
16683         * iconvdata/cp770.c: New file.
16684         * iconvdata/cp771.c: New file.
16685         * iconvdata/cp772.c: New file.
16686         * iconvdata/cp773.c: New file.
16687         * iconvdata/cp774.c: New file.
16688         * iconvdata/testdata/CP770: New file.
16689         * iconvdata/testdata/CP770..UTF8: New file.
16690         * iconvdata/testdata/CP771: New file.
16691         * iconvdata/testdata/CP771..UTF8: New file.
16692         * iconvdata/testdata/CP772: New file.
16693         * iconvdata/testdata/CP772..UTF8: New file.
16694         * iconvdata/testdata/CP773: New file.
16695         * iconvdata/testdata/CP773..UTF8: New file.
16696         * iconvdata/testdata/CP774: New file.
16697         * iconvdata/testdata/CP774..UTF8: New file.
16698
16699         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
16700         END CHARMAP line.
16701         * iconvdata/gen-8bit-gap.sh: Likewise.
16702         * iconvdata/gen-8bit.sh: Likewise.
16703
16704         * locale/iso-639.def: Add ary entry.
16705
16706         [BZ #11258]
16707         * locale/C-translit.h.in: Add U20A1 transliteration.
16708
16709         [BZ #12178]
16710         * locale/iso-639.def: Add wae entry.
16711         Patch by Kevin Bortis <bortis@translate-wae.ch>.
16712
16713         [BZ #12545]
16714         * locale/programs/localedef.c (construct_output_path): Use ssize_t
16715         for n.
16716
16717         [BZ #12711]
16718         * locale/C-translit.h.in: Add entry for U20B9.
16719         Patch by pravin.d.s@gmail.com.
16720
16721 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
16722
16723         [BZ #12713]
16724         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
16725         ENAMETOOLONG use generic getcwd.
16726         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
16727         in rtld.  Use *stat64.
16728         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
16729         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
16730         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
16731         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
16732         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
16733         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
16734         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
16735         __fstatat64 macros.
16736         * include/dirent.h: Add libc_hidden_proto for rewinddir.
16737         * dirent/rewinddir.c: Add libc_hidden_def.
16738         * sysdeps/mach/hurd/rewinddir.c: Likewise.
16739         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
16740
16741         * include/dirent.h (__alloc_dir): Add flags parameter.
16742         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
16743         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
16744         __alloc_dir.
16745         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
16746         from fdopendir if O_CLOEXEC is already set.
16747
16748 2011-03-15  Alan Modra  <amodra@gmail.com>
16749
16750         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
16751         l_tls_firstbyte_offset non-zero.  Save padding offset in
16752         l_tls_firstbyte_offset for later use.
16753         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
16754         freeing static tls block.
16755
16756 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
16757
16758         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
16759         where #ifdef was intended.  The intent is to prevent ARG_MAX from
16760         being defined by the kernel headers.
16761
16762 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
16763
16764         [BZ #12734]
16765         * resolv/resolv.h: Define RES_NOTLDQUERY.
16766         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
16767         no-tld-query and set RES_NOTLDQUERY.
16768         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
16769         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
16770         modern BIND to search name as TLD unless forbidden.
16771
16772 2011-05-07  Petr Baudis  <pasky@suse.cz>
16773             Ulrich Drepper  <drepper@gmail.com>
16774
16775         [BZ #12393]
16776         * elf/dl-load.c (fillin_rpath): Move trusted path check...
16777         (is_trusted_path): ...to here.
16778         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
16779         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
16780         using is_trusted_path_normalize() in setuid scripts.
16781
16782 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
16783
16784         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
16785         __BEGIN/__END_DECLS.
16786
16787 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
16788
16789         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
16790         NSS_STATUS_NOTFOUND if no record was found.
16791
16792 2011-05-05  Andreas Schwab  <schwab@redhat.com>
16793
16794         * sunrpc/Makefile (headers): Add rpc/netdb.h.
16795         (headers-not-in-tirpc): Remove rpc/netdb.h
16796         * resolv/netdb.h: Revert last change.
16797
16798 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
16799
16800         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
16801         circular dependency between libgcc.a and libc.a.
16802
16803 2011-05-05  Andreas Schwab  <schwab@redhat.com>
16804
16805         * resolv/netdb.h: Don't include <rpc/netdb.h>.
16806         * nis/Makefile: Don't install rpcsvc/*.
16807         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
16808         instead of <rpc/types.h>.
16809         (MAXHOSTNAMELEN): Define.
16810
16811 2011-05-03  Andreas Schwab  <schwab@redhat.com>
16812
16813         * elf/ldconfig.c (add_dir): Don't crash on empty path.
16814
16815 2011-04-28  Maciej Babinski  <mbabinski@google.com>
16816
16817         [BZ #12714]
16818         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
16819         gethostbyname4_r when IPv6 results are possible.
16820
16821 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
16822
16823         [BZ #12723]
16824         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
16825         _PC_PIPE_BUF handling.
16826
16827 2011-04-30  Bruno Haible  <bruno@clisp.org>
16828
16829         [BZ #12717]
16830         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
16831         * resolv/netdb.h (getnameinfo): Change type of flags parameter
16832         to 'int'.
16833         * inet/getnameinfo.c (getnameinfo): Likewise.
16834
16835 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
16836
16837         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
16838         to groups setting in database lookup.
16839         * nss/nsswitch.conf: Add initgroups entry.
16840
16841 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
16842
16843         [BZ #12685]
16844         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
16845         mode string.
16846         Patch by Eric Blake <eblake@redhat.com>.
16847
16848 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
16849
16850         * sunrpc/Makefile (need-export-routines): Add svc_run.
16851         (routines): Remove svc_run.
16852         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
16853         * sunrpc/clnt_perr.c (clnt_perrno): Export.
16854         * sunrpc/svc_run.c (svc_run): Likewise.
16855         * sunrpc/svc_udp.c (svcudp_create): Likewise.
16856
16857 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
16858
16859         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
16860         problem in reallocation in last patch.
16861
16862 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
16863
16864         * sunrpc/Makefile: Move inclusion of Rules.
16865
16866 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
16867
16868         * nss/nss_files/files-initgroups.c: New file.
16869         * nss/Makefile (libnss_files-routines): Add files-initgroups.
16870         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
16871         _nss_files_initgroups_dyn.
16872
16873 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
16874
16875         * elf/elf.h (R_ARM_IRELATIVE): Define.
16876
16877 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
16878
16879         * po/ru.po: Update from translation team.
16880
16881 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
16882
16883         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
16884         dependencies.
16885
16886 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
16887
16888         [BZ #12653]
16889         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
16890         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
16891         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
16892         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
16893         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
16894
16895 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
16896
16897         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
16898         differing bytes.
16899         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
16900         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
16901         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
16902
16903 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
16904
16905         [BZ #12420]
16906         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
16907         storing it.
16908         * stdlib/bug-getcontext.c: New file.
16909         * stdlib/Makefile: Add rules to build and run bug-getcontext.
16910
16911 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16912
16913         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
16914         instructions into .machine "z9-109".
16915         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
16916         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
16917
16918 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16919
16920         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
16921         between environment variables and auxiliary vector.
16922
16923 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
16924
16925         * Makefile: Add rules to build linkobj/libc.so.
16926         * include/libc-symbols.h: Define libc_hidden_nolink.
16927         * include/rpc/auth.h: Mark functions which are to be hidden.
16928         * include/rpc/auth_des.h: Likewise.
16929         * include/rpc/auth_unix.h: Likewise.
16930         * include/rpc/clnt.h: Likewise.
16931         * include/rpc/des_crypt.h: Likewise.
16932         * include/rpc/key_prot.h: Likewise.
16933         * include/rpc/pmap_clnt.h: Likewise.
16934         * include/rpc/pmap_prot.h: Likewise.
16935         * include/rpc/pmap_rmt.h: Likewise.
16936         * include/rpc/rpc_msg.h: Likewise.
16937         * include/rpc/svc.h: Likewise.
16938         * include/rpc/svc_auth.h: Likewise.
16939         * include/rpc/xdr.h: Likewise.
16940         * nis/Makefile: Link all DSOs against linkobj/libc.so.
16941         * nss/Makefile: Likewise.
16942         * sunrpc/Makefile: Don't install headers.  Build library with normal
16943         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
16944         * sunrpc/auth_des.c: Hide exported symbols by default, export some
16945         for the compat linking library.  Remove use of INTDEF/INTUSE.
16946         * sunrpc/auth_none.c: Likewise.
16947         * sunrpc/auth_unix.c: Likewise.
16948         * sunrpc/authdes_prot.c: Likewise.
16949         * sunrpc/authuxprot.c: Likewise.
16950         * sunrpc/clnt_gen.c: Likewise.
16951         * sunrpc/clnt_perr.c: Likewise.
16952         * sunrpc/clnt_raw.c: Likewise.
16953         * sunrpc/clnt_simp.c: Likewise.
16954         * sunrpc/clnt_tcp.c: Likewise.
16955         * sunrpc/clnt_udp.c: Likewise.
16956         * sunrpc/clnt_unix.c: Likewise.
16957         * sunrpc/des_crypt.c: Likewise.
16958         * sunrpc/des_soft.c: Likewise.
16959         * sunrpc/get_myaddr.c: Likewise.
16960         * sunrpc/key_call.c: Likewise.
16961         * sunrpc/key_prot.c: Likewise.
16962         * sunrpc/netname.c: Likewise.
16963         * sunrpc/pm_getmaps.c: Likewise.
16964         * sunrpc/pm_getport.c: Likewise.
16965         * sunrpc/pmap_clnt.c: Likewise.
16966         * sunrpc/pmap_prot.c: Likewise.
16967         * sunrpc/pmap_prot2.c: Likewise.
16968         * sunrpc/pmap_rmt.c: Likewise.
16969         * sunrpc/publickey.c: Likewise.
16970         * sunrpc/rpc_cmsg.c: Likewise.
16971         * sunrpc/rpc_common.c: Likewise.
16972         * sunrpc/rpc_dtable.c: Likewise.
16973         * sunrpc/rpc_prot.c: Likewise.
16974         * sunrpc/rpc_thread.c: Likewise.
16975         * sunrpc/rtime.c: Likewise.
16976         * sunrpc/svc.c: Likewise.
16977         * sunrpc/svc_auth.c: Likewise.
16978         * sunrpc/svc_authux.c: Likewise.
16979         * sunrpc/svc_raw.c: Likewise.
16980         * sunrpc/svc_run.c: Likewise.
16981         * sunrpc/svc_simple.c: Likewise.
16982         * sunrpc/svc_tcp.c: Likewise.
16983         * sunrpc/svc_udp.c: Likewise.
16984         * sunrpc/svc_unix.c: Likewise.
16985         * sunrpc/svcauth_des.c: Likewise.
16986         * sunrpc/xcrypt.c: Likewise.
16987         * sunrpc/xdr.c: Likewise.
16988         * sunrpc/xdr_array.c: Likewise.
16989         * sunrpc/xdr_float.c: Likewise.
16990         * sunrpc/xdr_intXX_t.c: Likewise.
16991         * sunrpc/xdr_mem.c: Likewise.
16992         * sunrpc/xdr_rec.c: Likewise.
16993         * sunrpc/xdr_ref.c: Likewise.
16994         * sunrpc/xdr_sizeof.c: Likewise.
16995         * sunrpc/xdr_stdio.c: Likewise.
16996
16997 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
16998
16999         [BZ #12650]
17000         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
17001         * sysdeps/ia64/dl-tls.h: Likewise.
17002         * sysdeps/powerpc/dl-tls.h: Likewise.
17003         * sysdeps/s390/dl-tls.h: Likewise.
17004         * sysdeps/sh/dl-tls.h: Likewise.
17005         * sysdeps/sparc/dl-tls.h: Likewise.
17006         * sysdeps/x86_64/dl-tls.h: Likewise.
17007         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
17008
17009 2011-03-14  Andreas Schwab  <schwab@redhat.com>
17010
17011         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
17012         rpath element also skip the following colon.
17013         (expand_dynamic_string_token): Add is_path parameter and pass
17014         down to DL_DST_REQUIRED and _dl_dst_substitute.
17015         (decompose_rpath): Call expand_dynamic_string_token with
17016         non-zero is_path.  Ignore empty rpaths.
17017         (_dl_map_object_from_fd): Call expand_dynamic_string_token
17018         with zero is_path.
17019
17020 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
17021
17022         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
17023         Make cancelable.
17024
17025 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
17026
17027         [BZ #12655]
17028         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
17029         Patch by Filipe David Manana <fdmanana@apache.org>.
17030
17031 2011-04-07  Andreas Schwab  <schwab@redhat.com>
17032
17033         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
17034         Maintain aligned stack.
17035         (CHECK_RSP): Remove unused macro.
17036
17037 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
17038
17039         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
17040         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
17041
17042 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
17043
17044         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
17045
17046         * include/features.h: Mention __USE_XOPEN2K8 in comment.
17047
17048 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
17049
17050         [BZ #12518]
17051         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
17052         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
17053         * sysdeps/x86_64/memmove.c: New file.
17054         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
17055         (memcpy): Renamed to ...
17056         (__new_memcpy): This.
17057         (memcpy): Provide GLIBC_2_14 memcpy.
17058         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
17059         (memcpy): Provide GLIBC_2_2_5 memcpy.
17060
17061 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
17062
17063         [BZ #12631]
17064         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
17065
17066 2011-03-30  Andreas Schwab  <schwab@redhat.com>
17067
17068         * misc/syncfs.c: New file.
17069         * misc/Makefile (routines): Add syncfs.
17070         * posix/unistd.h: Declare syncfs.
17071         * sysdeps/unix/syscalls.list: Add syncfs.
17072
17073 2011-04-01  Andreas Schwab  <schwab@redhat.com>
17074
17075         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
17076         open_by_handle_at.
17077         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
17078         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
17079         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
17080         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
17081         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
17082         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
17083         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
17084
17085 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
17086
17087         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
17088         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
17089         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
17090         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
17091         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
17092         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
17093         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
17094
17095         * io/Makefile: Compile fallocate.c, fallocate64.c, and
17096         sync_file_range.c with -fexceptions.
17097         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
17098         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
17099         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
17100         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
17101         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
17102         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
17103         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
17104         sync_file_range as cancellation point
17105         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
17106         now a wrapper around __call_sync_file_range with cancellation handling.
17107         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
17108         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
17109         function name to __call_sync_file_range.
17110         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
17111         Add call_sync_file_range.
17112
17113 2011-04-01  Andreas Schwab  <schwab@redhat.com>
17114
17115         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
17116         bits/timex.h.
17117
17118 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
17119
17120         * iconv/iconv.h: Fix typo in comment.
17121         * io/fcntl.h: Likewise.
17122         * libio/stdio.h: Likewise.
17123         * posix/spawn.h: Likewise.
17124         * posix/unistd.h: Likewise.
17125         * stdlib/stdlib.h: Likewise.
17126         * time/time.h: Likewise.
17127         * wcsmbs/wchar.h: Likewise.
17128
17129         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
17130         open_by_handle): Add.
17131         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
17132         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
17133         Augment a few comments.
17134         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
17135         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
17136         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
17137         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
17138         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
17139         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
17140         open_by_handle.
17141
17142         * io/fcntl.h (AT_EMPTY_PATH): Define.
17143
17144 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
17145
17146         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
17147         * sysdeps/unix/sysv/linux/bits/time.h: New file.
17148         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
17149         to...
17150         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
17151         * Versions.def: Add GLIBC_2.14.
17152         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
17153         Export.
17154
17155 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
17156
17157         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
17158         round counter.
17159         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
17160
17161 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
17162
17163         [BZ #12597]
17164         * string/test-strncmp.c (do_page_test): New function.
17165         (check2): Likewise.
17166         (test_main): Call check2.
17167         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
17168
17169 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
17170
17171         [BZ #12587]
17172         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
17173         Handle cache information in CPU leaf 4.
17174         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
17175
17176 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
17177
17178         [BZ #12583]
17179         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
17180         character representation.
17181         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
17182
17183 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
17184
17185         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
17186         END(__isnan) to END(__isnanf) to match function entry point/label
17187         EALIGN(__isnanf,...).
17188
17189 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
17190
17191         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
17192
17193 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
17194
17195         [BZ #12510]
17196         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
17197         copy from the symbol referenced in the relocation to initialize the
17198         used variable.
17199         Patch by Piotr Bury <pbury@goahead.com>.
17200         * elf/Makefile: Add rules to build and tst-unique3.
17201         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
17202         * elf/tst-unique3.cc: New file.
17203         * elf/tst-unique3.h: New file.
17204         * elf/tst-unique3lib.cc: New file.
17205         * elf/tst-unique3lib2.cc: New file.
17206
17207         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
17208
17209 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
17210
17211         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
17212         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
17213         to _start.
17214
17215 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
17216
17217         * elf/dl-load.c (_dl_map_object): If we are looking for the first
17218         to-be-loaded object along a path to loader is ld.so.
17219
17220 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
17221             Ulrich Drepper  <drepper@gmail.com>
17222
17223         * sysdeps/x86_64/memset.S: After aligning destination, code
17224         branches to different locations depending on the value of
17225         misalignment, when multiarch is enabled. Fix this.
17226
17227 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
17228
17229         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
17230         Set _x86_64_preferred_memory_instruction for AMD processsors.
17231         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17232         Set bit_Prefer_SSE_for_memop for AMD processors.
17233
17234 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
17235
17236         * libio/fmemopen.c (fmemopen): Optimize a bit.
17237
17238 2011-03-03  Andreas Schwab  <schwab@redhat.com>
17239
17240         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
17241
17242 2011-03-03  Roland McGrath  <roland@redhat.com>
17243
17244         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
17245
17246 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
17247
17248         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
17249         __bzero_ultra1 instead of __memset_ultra1.
17250
17251 2011-02-23  Andreas Schwab  <schwab@redhat.com>
17252             Ulrich Drepper  <drepper@gmail.com>
17253
17254         [BZ #12509]
17255         * include/link.h (struct link_map): Add l_orig_initfini.
17256         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
17257         returning unsuccessfully.
17258         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
17259         close of a file loaded at startup, restore the original l_initfini
17260         list.
17261         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
17262         list, store the pointer.
17263         * elf/Makefile ($(objpfx)noload-mem): New rule.
17264         (noload-ENV): Define.
17265         (tests): Add $(objpfx)noload-mem.
17266         * elf/noload.c: Include <memcheck.h>.
17267         (main): Call mtrace.  Close all opened handles.
17268
17269 2011-02-17  Andreas Schwab  <schwab@redhat.com>
17270
17271         [BZ #12454]
17272         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
17273         dependencies are missing.
17274
17275 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17276
17277         Fix __if_freereq crash: Unlike the generic version which uses free,
17278         Hurd needs munmap.
17279         * sysdeps/mach/hurd/ifreq.h: New file.
17280
17281 2011-01-27  Petr Baudis  <pasky@suse.cz>
17282             Ulrich Drepper  <drepper@gmail.com>
17283
17284         [BZ 12445]#
17285         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
17286         to extend_alloca().
17287         * stdio-common/bug23.c: New file.
17288         * stdio-common/Makefile (tests): Add bug23.
17289
17290 2010-09-28  Andreas Schwab  <schwab@redhat.com>
17291             Ulrich Drepper  <drepper@gmail.com>
17292
17293         [BZ #12489]
17294         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
17295         before performing relro protection.  At old place add assertion
17296         to make sure nothing changed.
17297
17298 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
17299             Glauber de Oliveira Costa  <glommer@gmail.com>
17300
17301         * elf/elf.h: Add new ARM TLS relocs.
17302
17303 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
17304
17305         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
17306         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
17307         cast from r3.
17308         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
17309         'tests' variable.
17310         * sysdeps/wordsize-64/tst-writev.c: New file.
17311
17312 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
17313
17314         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
17315         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
17316         insns in _dl_start to prevent a TOC reference before relocs are
17317         resolved.
17318
17319 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
17320
17321         [BZ #12469]
17322         * Makeconfig: Remove RANLIB definition.
17323         * Makerules: Don't use RANLIB.
17324         * aclocal.m4: Remove ranlib test.
17325         * configure.in: No need to check for ranlib.
17326         * elf/rtld-Rules: Don't use RANLIB.
17327
17328 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17329
17330         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
17331         protection macro.
17332         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
17333         inclusion protection macro.
17334
17335         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
17336         SIGRTMIN and SIGRTMAX and print information in that case only when
17337         SIGRTMIN is defined.
17338
17339 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
17340
17341         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
17342         arginfo fn returning -1.
17343
17344         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
17345         and thousands string is zero terminated.
17346
17347 2011-02-03  Andreas Schwab  <schwab@redhat.com>
17348
17349         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
17350         sysdeps/unix/sysv/linux/bits/socket.h.
17351
17352 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17353
17354         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
17355         (__CPU_COUNT): Remove old macros.
17356         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
17357         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
17358         (__CPU_ALLOC, __CPU_FREE): Add macros.
17359         (__sched_cpualloc, __sched_cpufree): Add declarations.
17360
17361 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
17362
17363         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
17364         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
17365         * nscd/aicache.c (addhstaiX): Return timeout of added value.
17366         (readdhstai): Return value of addhstaiX call.
17367         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
17368         (addgrbyX): Return value returned by cache_addgr.
17369         (readdgrbyname): Return value returned by addgrbyX.
17370         (readdgrbygid): Likewise.
17371         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
17372         (addpwbyX): Return value returned by cache_addpw.
17373         (readdpwbyname): Return value returned by addhstbyX.
17374         (readdpwbyuid): Likewise.
17375         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
17376         (addservbyX): Return value returned by cache_addserv.
17377         (readdservbyname): Return value returned by addservbyX:
17378         (readdservbyport): Likewise.
17379         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
17380         (addhstbyX): Return value returned by cache_addhst.
17381         (readdhstbyname): Return value returned by addhstbyX.
17382         (readdhstbyaddr): Likewise.
17383         (readdhstbynamev6): Likewise.
17384         (readdhstbyaddrv6): Likewise.
17385         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
17386         (readdinitgroups): Return value returned by addinitgroupsX.
17387         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
17388         (prune_cache): Keep track of timeout value of re-added entries.
17389         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
17390         * nscd/nscd.h: Adjust prototypes of readd* functions.
17391
17392 2011-02-04  Roland McGrath  <roland@redhat.com>
17393
17394         * nis/nis_server.c (nis_servstate): Use the right name for 0.
17395         (nis_stats): Likewise.
17396         * nis/nis_modify.c (nis_modify): Likewise.
17397         * nis/nis_remove.c (nis_remove): Likewise.
17398         * nis/nis_add.c (nis_add): Likewise.
17399
17400         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
17401
17402         * posix/fnmatch_loop.c: Add some consts.
17403
17404         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
17405
17406 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
17407
17408         [BZ #12460]
17409         * config.make.in (config-cflags-novzeroupper): Define.
17410         * configure.in: Substitute libc_cv_cc_novzeroupper.
17411         * elf/Makefile (AVX-CFLAGS): Define.
17412         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
17413         (CFLAGS-tst-auditmod4a.c): Likewise.
17414         (CFLAGS-tst-auditmod4b.c): Likewise.
17415         (CFLAGS-tst-auditmod6b.c): Likewise.
17416         (CFLAGS-tst-auditmod6c.c): Likewise.
17417         (CFLAGS-tst-auditmod7b.c): Likewise.
17418         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
17419
17420 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
17421
17422         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
17423         function to the callback.
17424         Patch partly by Jiri Olsa <jolsa@redhat.com>.
17425
17426 2011-02-02  Andreas Schwab  <schwab@redhat.com>
17427
17428         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
17429         of errno.
17430
17431 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
17432
17433         [BZ #11724]
17434         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
17435         of constructors.
17436         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
17437         of destructors.
17438         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
17439
17440         [BZ #11724]
17441         * elf/Makefile: Add rules to build and run new test.
17442         * elf/tst-initorder.c: New file.
17443         * elf/tst-initorder.exp: New file.
17444         * elf/tst-initordera1.c: New file.
17445         * elf/tst-initordera2.c: New file.
17446         * elf/tst-initordera3.c: New file.
17447         * elf/tst-initordera4.c: New file.
17448         * elf/tst-initorderb1.c: New file.
17449         * elf/tst-initorderb2.c: New file.
17450         * elf/tst-order-a1.c: New file.
17451         * elf/tst-order-a2.c: New file.
17452         * elf/tst-order-a3.c: New file.
17453         * elf/tst-order-a4.c: New file.
17454         * elf/tst-order-b1.c: New file.
17455         * elf/tst-order-b2.c: New file.
17456         * elf/tst-order-main.c: New file.
17457         New test case by George Gensure <werkt0@gmail.com>.
17458
17459 2010-10-01  Andreas Schwab  <schwab@redhat.com>
17460
17461         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
17462         decoding ACE if AI_CANONIDN.
17463
17464 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
17465
17466         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
17467
17468 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
17469
17470         * version.h (RELEASE): Bump for 2.13 release.
17471         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
17472
17473         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
17474
17475         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
17476         MADV_NOHUGEPAGE.
17477         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
17478         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
17479         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
17480         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
17481         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
17482         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
17483
17484         * posix/getconf.c: Update copyright year.
17485         * catgets/gencat.c: Likewise.
17486         * csu/version.c: Likewise.
17487         * debug/catchsegv.sh: Likewise.
17488         * debug/xtrace.sh: Likewise.
17489         * elf/ldconfig.c: Likewise.
17490         * elf/ldd.bash.in: Likewise.
17491         * elf/sprof.c (print_version): Likewise.
17492         * iconv/iconv_prog.c: Likewise.
17493         * iconv/iconvconfig.c: Likewise.
17494         * locale/programs/locale.c: Likewise.
17495         * locale/programs/localedef.c: Likewise.
17496         * malloc/memusage.sh: Likewise.
17497         * malloc/mtrace.pl: Likewise.
17498         * nscd/nscd.c (print_version): Likewise.
17499         * nss/getent.c: Likewise.
17500
17501         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
17502         PF_CAIF, and PF_ALG.
17503         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
17504
17505 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
17506
17507         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
17508         (modules-names): Use them.
17509         (ifunc-test-modules, ifunc-pie-tests): Define.
17510         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
17511         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
17512         (test-extras): Likewise.
17513         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
17514         $(compile-command.c).
17515         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
17516         (all-built-dso): Define.
17517         (check-textrel.out, check-execstack.out): Depend on it.
17518
17519         * configure.in: Don't override --enable-multi-arch.
17520
17521 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
17522
17523         [BZ #6812]
17524         * nscd/hstcache.c (tryagain): Define.
17525         (cache_addhst): Return tryagain not notfound for temporary errors.
17526         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
17527         failed.
17528
17529 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
17530
17531         [BZ #10563]
17532         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
17533         to make the syscall.
17534         * sysdeps/unix/sysv/linux/setgroups.c: New file.
17535
17536         [BZ #12378]
17537         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
17538         and fall back to matching as normal character if the string ends before
17539         the matching ']' is found.  This is what POSIX requires.
17540         * posix/testfnm.c: Adjust test result.
17541         * posix/globtest.sh: Adjust test result.  Add new test.
17542         * posix/tst-fnmatch.input: Likewise.
17543         * posix/tst-fnmatch2.c: Add new test.
17544
17545 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
17546
17547         * elf/Makefile (check-execstack): Revert last change.  Depend on
17548         check-execstack.h.
17549         (check-execstack.h): New target.
17550         (generated): Add check-execstack.h.
17551         * elf/check-execstack.c: Include "check-execstack.h".
17552         (main): Revert last change.
17553         (handle_file): Return zero if GNU_STACK is absent and
17554         DEFAULT_STACK_PERMS doesn't include PF_X.
17555
17556 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
17557
17558         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
17559         in child fails because the descriptor is already closed.
17560         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
17561         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
17562         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
17563
17564         [BZ #12397]
17565         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
17566         syscall.
17567
17568         [BZ #10484]
17569         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
17570         temporary buffer used to handle multi lookups locally.
17571         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
17572
17573 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
17574
17575         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
17576         loader is ld.so.
17577
17578 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
17579
17580         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
17581         alignment for SSE2.
17582
17583 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
17584
17585         [BZ #12394]
17586         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
17587         characters.  When rounding increased number of integer digits recompute
17588         number of groups.
17589         * stdio-common/tst-grouping.c: New file.
17590         * stdio-common/Makefile: Add rules to build and run tst-grouping.
17591
17592 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
17593
17594         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
17595         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
17596
17597         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
17598         void.
17599         * bits/select.h: Likewise.
17600
17601 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
17602
17603         * po/ja.po: Update from translation team.
17604
17605 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
17606
17607         [BZ #11155]
17608         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
17609         implementation just like for lxstat, fxstatat, et al.
17610
17611 2010-12-27  Jim Meyering  <meyering@redhat.com>
17612
17613         [BZ #12348]
17614         * posix/regexec.c (build_trtable): Return failure indication upon
17615         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
17616
17617 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
17618
17619         [BZ #12201]
17620         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
17621         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
17622         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
17623         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
17624
17625         [BZ #12207]
17626         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
17627
17628         [BZ #12204]
17629         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
17630         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
17631
17632 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
17633
17634         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
17635         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
17636         script has SORT_BY_INIT_PRIORITY.
17637         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
17638         NO_CTORS_DTORS_SECTIONS is defined.
17639         * elf/soinit.c: Likewise.
17640         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
17641         NO_CTORS_DTORS_SECTIONS is defined.
17642         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
17643         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
17644         * sysdeps/sh/init-first.c: Likewise.
17645         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
17646
17647 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
17648
17649         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
17650         always use the slow path.
17651
17652 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
17653
17654         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
17655         similar rule which adds the sysdep directories to the header search in
17656         order to pick up the correct platform stackinfo.h.
17657         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
17658         perform test if it is, otherwise return successfully without testing.
17659         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
17660         DEFAULT_STACK_PERMS define in stackinfo.h.
17661         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
17662         defined in stackinfo.h.
17663         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
17664         DEFAULT_STACK_PERMS defined in stackinfo.h.
17665         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
17666         * sysdeps/ia64/stackinfo.h: Likewise.
17667         * sysdeps/s390/stackinfo.h: Likewise.
17668         * sysdeps/sh/stackinfo.h: Likewise.
17669         * sysdeps/sparc/stackinfo.h: Likewise.
17670         * sysdeps/x86_64/stackinfo.h: Likewise.
17671         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
17672         PF_X for powerpc64.  Retain PF_X for powerpc32.
17673
17674 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
17675
17676         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
17677         accurately.
17678         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
17679         GETDENTS_64BIT_ALIGNED.
17680
17681 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
17682
17683         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
17684
17685 2010-12-10  Andreas Schwab  <schwab@redhat.com>
17686
17687         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
17688         _GNU_SOURCE.
17689
17690         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
17691         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
17692         Remove __restrict.
17693         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
17694         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
17695
17696 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
17697
17698         [BZ #11655]
17699         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
17700         are initialized.
17701
17702 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
17703
17704         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
17705
17706 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
17707
17708         * po/it.po: Update from translation team.
17709
17710 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
17711
17712         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
17713         unused codes.
17714
17715 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
17716
17717         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
17718
17719 2010-11-24  Andreas Schwab  <schwab@redhat.com>
17720
17721         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
17722         specially.
17723         (gaih_getanswer_slice): Likewise.
17724
17725 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
17726
17727         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
17728
17729 2010-05-31  Petr Baudis  <pasky@suse.cz>
17730
17731         [BZ #11149]
17732         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
17733         silently even in the chroot mode.
17734
17735 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
17736
17737         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
17738         last patch a bit.  Pretty printing
17739
17740 2010-05-31  Petr Baudis <pasky@suse.cz>
17741
17742         [BZ #10085]
17743         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
17744         initialization of skip_initgroups_dyn.
17745
17746 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
17747
17748         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
17749         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
17750
17751 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
17752
17753         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
17754
17755 2010-11-11  Andreas Schwab  <schwab@redhat.com>
17756
17757         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
17758         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
17759         (tst-fnmatch-ENV): Set MALLOC_TRACE.
17760         ($(objpfx)tst-fnmatch-mem): New rule.
17761         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
17762         * posix/tst-fnmatch.c (main): Call mtrace.
17763
17764 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
17765
17766         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17767         Support Intel processor model 6 and model 0x2c.
17768
17769 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
17770
17771         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
17772           signed comparison.
17773
17774 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
17775
17776         [BZ #12205]
17777         * string/test-strncasecmp.c (check_result): New function.
17778         (do_one_test): Use it.
17779         (check1): New function.
17780         (test_main): Use it.
17781         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
17782         Support strcasecmp and strncasecmp.
17783
17784 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
17785
17786         [BZ #12194]
17787         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
17788         * sysdeps/x86_64/bits/byteswap.h: Likewise.
17789
17790 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
17791
17792         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
17793         IFUNC support.
17794         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17795         memset-x86-64.
17796         * sysdeps/x86_64/multiarch/bzero.S: New file.
17797         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
17798         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
17799         * sysdeps/x86_64/multiarch/memset.S: New file.
17800         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
17801         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17802         Set bit_Prefer_SSE_for_memop for Intel processors.
17803         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
17804         Define.
17805         (index_Prefer_SSE_for_memop): Define.
17806         (HAS_PREFER_SSE_FOR_MEMOP): Define.
17807
17808 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
17809
17810         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
17811         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
17812
17813 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
17814
17815         [BZ #12191]
17816         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
17817         (__x86_64_raw_data_cache_size_half): Likewise.
17818         (__x86_64_raw_shared_cache_size): Likewise.
17819         (__x86_64_raw_shared_cache_size_half): Likewise.
17820
17821         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
17822         (__x86_64_raw_data_cache_size_half): Likewise.
17823         (__x86_64_raw_shared_cache_size): Likewise.
17824         (__x86_64_raw_shared_cache_size_half): Likewise.
17825         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
17826         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
17827         and __x86_64_raw_shared_cache_size_half.  Round
17828         __x86_64_data_cache_size_half, __x86_64_data_cache_size
17829         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
17830         to multiple of 256 bytes.
17831
17832 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
17833
17834         [BZ #12167]
17835         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
17836         of inacessible symlinks.  Verify result of symlink before returning it.
17837         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
17838         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
17839
17840 2010-10-28  Erich Ritz  <erichritz@gmail.com>
17841
17842         * math/math.h (isinf): Fix typo in comment.
17843
17844 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
17845
17846         * po/da.po: Update from translation team.
17847
17848 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
17849
17850         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
17851         is added to the list.
17852
17853 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17854             Ulrich Drepper  <drepper@gmail.com>
17855
17856         * elf/dl-object.c (_dl_new_object): Don't append the new object to
17857         the global list here.  Move code to...
17858         (_dl_add_to_namespace_list): ...here.  New function.
17859         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
17860         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
17861         * elf/dl-load.c (lose): Don't remove the element from the list.
17862         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
17863         (_dl_map_object): Likewise.
17864
17865 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
17866
17867         [BZ #12159]
17868         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
17869         into all bytes of SSE register.
17870         Patch by Richard Li <richardpku@gmail.com>.
17871
17872 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
17873
17874         [BZ #12140]
17875         * malloc/malloc.c (_int_free): Fill correct number of bytes when
17876         perturbing.
17877
17878 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
17879
17880         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
17881         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
17882         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
17883         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
17884         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
17885         submachine.
17886         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
17887
17888 2010-10-22  Andreas Schwab  <schwab@redhat.com>
17889
17890         * include/dlfcn.h (__RTLD_SECURE): Define.
17891         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
17892         mode & __RTLD_SECURE instead.
17893         (open_path): Rename preloaded parameter to secure.
17894         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
17895         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
17896         * elf/dl-deps.c (openaux): Likewise.
17897         * elf/rtld.c (struct map_args): Remove is_preloaded.
17898         (map_doit): Don't use it.
17899         (dl_main): Likewise.
17900         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
17901         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
17902
17903 2010-09-09  Andreas Schwab  <schwab@redhat.com>
17904
17905         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
17906         (sysd-rules-targets): Remove duplicates.
17907         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
17908         rtld-%.$o dependency.
17909
17910 2010-10-18  Andreas Schwab  <schwab@redhat.com>
17911
17912         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
17913         _dl_map_object do it.
17914
17915 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
17916
17917         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
17918         fast fma builtins, define the macros in the C99 standard.
17919         (FP_FAST_FMAF): Likewise.
17920         (FP_FAST_FMAL): Likewise.
17921         * sysdeps/x86_64/bits/mathdef.h: Likewise.
17922
17923         * bits/mathdef.h: Update copyright year.
17924         * sysdeps/powerpc/bits/mathdef.h: Likewise.
17925
17926 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
17927
17928         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
17929         builtins, define the macros in the C99 standard.
17930         (FP_FAST_FMAF): Likewise.
17931         (FP_FAST_FMAL): Likewise.
17932         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
17933         multiply/add.
17934         (FP_FAST_FMAF): Likewise.
17935
17936 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
17937
17938         [BZ #3268]
17939         * math/libm-test.inc (fma_test): Some new testcases.
17940         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
17941         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
17942         y and infinite z.  Do multiplication by C already in long double.
17943         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
17944         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
17945         y and infinite z.  Do bitwise or of inexact bit into u.d.
17946         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
17947         * sysdeps/i386/fpu/s_fmaf.S: Removed.
17948         * sysdeps/i386/fpu/s_fma.S: Removed.
17949         * sysdeps/i386/fpu/s_fmal.S: Removed.
17950
17951 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
17952
17953         [BZ #3268]
17954         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
17955         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
17956         computation is not scheduled after fetestexcept.  Fix value
17957         of minimum denormal long double.
17958
17959 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
17960
17961         [BZ #3268]
17962         * math/libm-test.inc (fma_test): Add some more tests.
17963         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
17964         correctly.
17965
17966 2010-10-15  Andreas Schwab  <schwab@redhat.com>
17967
17968         * scripts/data/localplt-s390-linux-gnu.data: New file.
17969         * scripts/data/localplt-s390x-linux-gnu.data: New file.
17970
17971 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
17972
17973         [BZ #3268]
17974         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
17975         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
17976         instead of dbl-64.
17977         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
17978         inlines.
17979         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
17980         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
17981         if one of x and y is very large and the other is subnormal.
17982         * sysdeps/s390/fpu/s_fmaf.c: New file.
17983         * sysdeps/s390/fpu/s_fma.c: New file.
17984         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
17985         * sysdeps/powerpc/fpu/s_fma.S: New file.
17986         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
17987         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
17988         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
17989
17990 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
17991
17992         [BZ #3268]
17993         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
17994         fma tests.
17995         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
17996         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
17997         * sysdeps/i386/i686/multiarch/s_fma.c: Include
17998         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
17999         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
18000         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
18001         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
18002
18003 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
18004
18005         [BZ #12078]
18006         * posix/regcomp.c (parse_branch): One more memory leak plugged.
18007         * posix/bug-regex31.input: Add test case.
18008
18009 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
18010
18011         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
18012         * posix/bug-regex31.input: New file.
18013
18014         [BZ #12078]
18015         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
18016         (parse_sub_exp): Fix last change, use postorder.
18017
18018         * posix/bug-regex31.c: New file.
18019         * posix/Makefile: Add rules to build and run bug-regex31.
18020
18021         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
18022
18023         [BZ #12078]
18024         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
18025
18026         [BZ #12108]
18027         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
18028         to have entries in sys_siglist.
18029
18030         [BZ #12093]
18031         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
18032         be NULL.
18033
18034 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
18035
18036         [BZ #3268]
18037         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
18038         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
18039         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
18040         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
18041         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
18042         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
18043         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
18044         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
18045         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
18046         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
18047         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
18048         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
18049         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
18050         * math/ftestexcept.c (fetestexcept): Likewise.
18051         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
18052         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
18053         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
18054         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
18055         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
18056         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
18057         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
18058
18059 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
18060
18061         [BZ #12107]
18062         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
18063         newline.
18064
18065 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
18066
18067         * string/bug-strstr1.c: New file.
18068         * string/Makefile: Add rules to build and run bug-strstr1.
18069
18070 2010-10-05  Eric Blake  <eblake@redhat.com>
18071
18072         [BZ #12092]
18073         * string/str-two-way.h (two_way_long_needle): Always clear memory
18074         when skipping input due to the shift table.
18075
18076 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
18077
18078         [BZ #12005]
18079         * malloc/mcheck.c: Handle large requests.
18080
18081         [BZ #12077]
18082         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
18083         for strncmp and strncasecmp.
18084         * string/stratcliff.c: Add tests for strcmp and strncmp.
18085         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
18086
18087 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
18088
18089         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
18090         __set_fpscr.
18091
18092 2010-09-30  Andreas Jaeger  <aj@suse.de>
18093
18094         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
18095         (CGROUP_SUPER_MAGIC): Define.
18096         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
18097         Handle btrfs and cgroup file systems.
18098         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
18099         Likewise.
18100
18101 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
18102
18103         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
18104         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
18105
18106 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18107
18108         [BZ #12067]
18109         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
18110         trying to locate the ELF header.
18111
18112 2010-09-27  Andreas Schwab  <schwab@redhat.com>
18113
18114         [BZ #11611]
18115         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
18116         Mask out sign-bit copies when constructing f_fsid.
18117
18118 2010-09-24  Petr Baudis <pasky@suse.cz>
18119
18120         * debug/stack_chk_fail_local.c: Add missing licence exception.
18121         * debug/warning-nop.c: Likewise.
18122
18123 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
18124
18125         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
18126         implementing getdents64 using getdents syscall, set d_type if
18127         __ASSUME_GETDENTS32_D_TYPE.
18128
18129 2010-09-16  Andreas Schwab  <schwab@redhat.com>
18130
18131         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
18132         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
18133
18134 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
18135
18136         [BZ #12037]
18137         * posix/unistd.h: Undo change of feature selection for ftruncate from
18138         2010-01-11.
18139
18140 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
18141
18142         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
18143         detection.
18144
18145 2010-09-20  Andreas Schwab  <schwab@redhat.com>
18146
18147         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
18148         fanotify_mark.
18149         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
18150
18151 2010-09-14  Andreas Schwab  <schwab@redhat.com>
18152
18153         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
18154         variables after CHECK_SP call.
18155         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
18156
18157 2010-09-13  Andreas Schwab  <schwab@redhat.com>
18158             Ulrich Drepper  <drepper@redhat.com>
18159
18160         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
18161         re-relocationg ld.so.
18162         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
18163         _dl_init_paths call.
18164         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
18165         here anymore.
18166
18167 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
18168
18169         * resolv/res_init.c (__res_vinit): Count the default server we added.
18170
18171 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
18172             Ulrich Drepper  <drepper@redhat.com>
18173
18174         [BZ #11968]
18175         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
18176         (____longjmp_chk): Use %ebx for saving value across system call.
18177         Add unwind info.
18178
18179 2010-09-06  Andreas Schwab  <schwab@redhat.com>
18180
18181         * manual/Makefile: Don't mix pattern rules with normal rules.
18182
18183 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
18184
18185         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
18186         operation.
18187         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
18188         * libio/iofopncook.c (_IO_cookie_init): Likewise.
18189         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
18190         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
18191         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
18192         Likewise.
18193
18194 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
18195
18196         [BZ #11979]
18197         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
18198         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
18199
18200 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
18201
18202         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
18203         * sysdeps/x86_64/addmul_1.S: Likewise.
18204         * sysdeps/x86_64/lshift.S: Likewise.
18205         * sysdeps/x86_64/mul_1.S: Likewise.
18206         * sysdeps/x86_64/rshift.S: Likewise.
18207         * sysdeps/x86_64/sub_n.S: Likewise.
18208         * sysdeps/x86_64/submul_1.S: Likewise.
18209
18210 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18211
18212         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
18213         Define __sched_param instead of SCHED_* and sched_param when
18214         <bits/sched.h> is included with __need_schedparam defined.
18215         * bits/sched.h [__need_schedparam]
18216         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
18217         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
18218         (__defined_schedparam): Define to 1.
18219         (__sched_param): New structure, identical to sched_param.
18220         (__need_schedparam): Undefine.
18221
18222 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
18223
18224         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
18225         (epoll_create1): Declare.
18226
18227         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
18228
18229 2010-08-31  Andreas Schwab  <schwab@redhat.com>
18230
18231         [BZ #7066]
18232         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
18233         shifting retval into place.
18234
18235 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
18236
18237         * nis/rpcsvc/nis.h: Update copyright notice.
18238         * nis/rpcsvc/nis.x: Likewise.
18239         * nis/rpcsvc/nis_callback.h: Likewise.
18240         * nis/rpcsvc/nis_callback.x: Likewise.
18241         * nis/rpcsvc/nis_object.x: Likewise.
18242         * nis/rpcsvc/nis_tags.h: Likewise.
18243         * nis/rpcsvc/yp.h: Likewise.
18244         * nis/rpcsvc/yp.x: Likewise.
18245         * nis/rpcsvc/ypupd.h: Likewise.
18246         * nis/yp_xdr.c: Likewise.
18247         * nis/ypupdate_xdr.c: Likewise.
18248
18249         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
18250         mainly the body of pmap_getport.  Add parameters to specify timeouts.
18251         (pmap_getport): Use __libc_rpc_getport.
18252         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
18253         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
18254         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
18255
18256 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
18257
18258         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
18259         fanotify_mark.
18260
18261 2010-08-27  Roland McGrath  <roland@redhat.com>
18262
18263         * sysdeps/i386/i686/multiarch/Makefile
18264         (CFLAGS-varshift.c): New variable.
18265
18266 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
18267
18268         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
18269         * sysdeps/i386/i686/multiarch/varshift.c: New file.
18270
18271         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
18272
18273         * sysdeps/x86_64/strlen.S: Minimal code improvement.
18274
18275 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
18276
18277         * sysdeps/x86_64/strlen.S: Unroll the loop.
18278         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18279         strlen-sse2 strlen-sse2-bsf.
18280         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
18281         __strlen_no_bsf if bit_Slow_BSF is set.
18282         (__strlen_sse42): Removed.
18283         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
18284         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
18285
18286 2010-08-25  Roland McGrath  <roland@redhat.com>
18287
18288         * sysdeps/x86_64/multiarch/varshift.S: File removed.
18289         * sysdeps/x86_64/multiarch/varshift.c: New file.
18290         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
18291         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
18292         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
18293         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
18294
18295 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
18296
18297         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
18298         strlen-sse2 strlen-sse2-bsf.
18299         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
18300         __strlen_sse2_bsf if bit_Slow_BSF is unset.
18301         (__strlen_sse2): Removed.
18302         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
18303         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
18304         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
18305         bit_Slow_BSF for Atom.
18306         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
18307         (index_Slow_BSF): Define.
18308         (HAS_SLOW_BSF): Define.
18309
18310 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
18311
18312         [BZ #10851]
18313         * resolv/res_init.c (__res_vinit): When no server address at all
18314         is given default to loopback.
18315
18316 2010-08-24  Roland McGrath  <roland@redhat.com>
18317
18318         * configure.in: Remove config-name.h generation.
18319         * configure: Regenerated.
18320         * config-name.in: File removed.
18321         * scripts/config-uname.sh: New file.
18322         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
18323         ($(objdir)config-name.h): New target.
18324
18325         * sunrpc/rpc_parse.h: Avoid nested comment.
18326
18327 2010-08-24  Richard Henderson  <rth@redhat.com>
18328             Ulrich Drepper  <drepper@redhat.com>
18329             H.J. Lu  <hongjiu.lu@intel.com>
18330
18331         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
18332         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
18333         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
18334         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
18335         _mm_alignr_epi8 with _mm_loadu_si128.
18336         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
18337         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
18338         (__m128i_shift_right): Removed.
18339         * sysdeps/i386/i686/multiarch/varshift.h: New file.
18340         * sysdeps/i386/i686/multiarch/varshift.S: New file.
18341         * sysdeps/x86_64/multiarch/varshift.h: New file.
18342         * sysdeps/x86_64/multiarch/varshift.S: New file.
18343
18344 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
18345
18346         * configure.in: Move assembler checks to before sysdep dir checking.
18347
18348 2010-08-20  Petr Baudis  <pasky@suse.cz>
18349
18350         * LICENSES: Sync the sunrpc license.
18351
18352 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
18353
18354         * sunrpc/auth_des.c: Update copyright notice once again.
18355         * sunrpc/auth_none.c: Likewise.
18356         * sunrpc/auth_unix.c: Likewise.
18357         * sunrpc/authdes_prot.c: Likewise.
18358         * sunrpc/authuxprot.c: Likewise.
18359         * sunrpc/bindrsvprt.c: Likewise.
18360         * sunrpc/clnt_gen.c: Likewise.
18361         * sunrpc/clnt_perr.c: Likewise.
18362         * sunrpc/clnt_raw.c: Likewise.
18363         * sunrpc/clnt_simp.c: Likewise.
18364         * sunrpc/clnt_tcp.c: Likewise.
18365         * sunrpc/clnt_udp.c: Likewise.
18366         * sunrpc/clnt_unix.c: Likewise.
18367         * sunrpc/des_crypt.c: Likewise.
18368         * sunrpc/des_soft.c: Likewise.
18369         * sunrpc/get_myaddr.c: Likewise.
18370         * sunrpc/getrpcport.c: Likewise.
18371         * sunrpc/key_call.c: Likewise.
18372         * sunrpc/key_prot.c: Likewise.
18373         * sunrpc/openchild.c: Likewise.
18374         * sunrpc/pm_getmaps.c: Likewise.
18375         * sunrpc/pm_getport.c: Likewise.
18376         * sunrpc/pmap_clnt.c: Likewise.
18377         * sunrpc/pmap_prot.c: Likewise.
18378         * sunrpc/pmap_prot2.c: Likewise.
18379         * sunrpc/pmap_rmt.c: Likewise.
18380         * sunrpc/rpc/auth.h: Likewise.
18381         * sunrpc/rpc/auth_unix.h: Likewise.
18382         * sunrpc/rpc/clnt.h: Likewise.
18383         * sunrpc/rpc/des_crypt.h: Likewise.
18384         * sunrpc/rpc/key_prot.h: Likewise.
18385         * sunrpc/rpc/netdb.h: Likewise.
18386         * sunrpc/rpc/pmap_clnt.h: Likewise.
18387         * sunrpc/rpc/pmap_prot.h: Likewise.
18388         * sunrpc/rpc/pmap_rmt.h: Likewise.
18389         * sunrpc/rpc/rpc.h: Likewise.
18390         * sunrpc/rpc/rpc_des.h: Likewise.
18391         * sunrpc/rpc/rpc_msg.h: Likewise.
18392         * sunrpc/rpc/svc.h: Likewise.
18393         * sunrpc/rpc/svc_auth.h: Likewise.
18394         * sunrpc/rpc/types.h: Likewise.
18395         * sunrpc/rpc/xdr.h: Likewise.
18396         * sunrpc/rpc_clntout.c: Likewise.
18397         * sunrpc/rpc_cmsg.c: Likewise.
18398         * sunrpc/rpc_common.c: Likewise.
18399         * sunrpc/rpc_cout.c: Likewise.
18400         * sunrpc/rpc_dtable.c: Likewise.
18401         * sunrpc/rpc_hout.c: Likewise.
18402         * sunrpc/rpc_main.c: Likewise.
18403         * sunrpc/rpc_parse.c: Likewise.
18404         * sunrpc/rpc_parse.h: Likewise.
18405         * sunrpc/rpc_prot.c: Likewise.
18406         * sunrpc/rpc_sample.c: Likewise.
18407         * sunrpc/rpc_scan.c: Likewise.
18408         * sunrpc/rpc_scan.h: Likewise.
18409         * sunrpc/rpc_svcout.c: Likewise.
18410         * sunrpc/rpc_tblout.c: Likewise.
18411         * sunrpc/rpc_util.c: Likewise.
18412         * sunrpc/rpc_util.h: Likewise.
18413         * sunrpc/rpcinfo.c: Likewise.
18414         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
18415         * sunrpc/rpcsvc/key_prot.x: Likewise.
18416         * sunrpc/rpcsvc/klm_prot.x: Likewise.
18417         * sunrpc/rpcsvc/mount.x: Likewise.
18418         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
18419         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
18420         * sunrpc/rpcsvc/rex.x: Likewise.
18421         * sunrpc/rpcsvc/rstat.x: Likewise.
18422         * sunrpc/rpcsvc/rusers.x: Likewise.
18423         * sunrpc/rpcsvc/sm_inter.x: Likewise.
18424         * sunrpc/rpcsvc/spray.x: Likewise.
18425         * sunrpc/rpcsvc/yppasswd.x: Likewise.
18426         * sunrpc/rtime.c: Likewise.
18427         * sunrpc/svc.c: Likewise.
18428         * sunrpc/svc_auth.c: Likewise.
18429         * sunrpc/svc_authux.c: Likewise.
18430         * sunrpc/svc_raw.c: Likewise.
18431         * sunrpc/svc_run.c: Likewise.
18432         * sunrpc/svc_simple.c: Likewise.
18433         * sunrpc/svc_tcp.c: Likewise.
18434         * sunrpc/svc_udp.c: Likewise.
18435         * sunrpc/svc_unix.c: Likewise.
18436         * sunrpc/svcauth_des.c: Likewise.
18437         * sunrpc/xcrypt.c: Likewise.
18438         * sunrpc/xdr.c: Likewise.
18439         * sunrpc/xdr_array.c: Likewise.
18440         * sunrpc/xdr_float.c: Likewise.
18441         * sunrpc/xdr_mem.c: Likewise.
18442         * sunrpc/xdr_rec.c: Likewise.
18443         * sunrpc/xdr_ref.c: Likewise.
18444         * sunrpc/xdr_sizeof.c: Likewise.
18445         * sunrpc/xdr_stdio.c: Likewise.
18446
18447         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
18448         handling.
18449
18450 2010-08-19  Andreas Schwab  <schwab@redhat.com>
18451
18452         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
18453
18454 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
18455
18456         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
18457         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
18458         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
18459         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
18460         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
18461         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
18462         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
18463         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
18464         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
18465         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
18466         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
18467         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
18468         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
18469         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
18470
18471 2010-07-26  Anton Blanchard  <anton@samba.org>
18472
18473         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
18474         * malloc/arena.c (heap_trim): Likewise.
18475
18476 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
18477
18478         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
18479         here.  Not...
18480         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
18481         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
18482
18483 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
18484
18485         * sysdeps/i386/elf/Makefile: New file.
18486
18487 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
18488
18489         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
18490         from fanotify_init.
18491         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
18492         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
18493
18494 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
18495
18496         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
18497         of strncasecmp_l.
18498         * sysdeps/multiarch/strcmp.S: Likewise.
18499
18500 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
18501
18502         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
18503         strncase_l-nonascii.
18504         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
18505         Add strncase_l-ssse3.
18506         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
18507         * sysdeps/x86_64/strcmp.S: Likewise.
18508         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
18509         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
18510         * sysdeps/x86_64/strncase.S: New file.
18511         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
18512         * sysdeps/x86_64/strncase_l.S: New file.
18513         * string/Makefile (strop-tests): Add strncasecmp.
18514         * string/test-strncasecmp.c: New file.
18515
18516         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
18517         warning.
18518
18519         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
18520         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
18521
18522 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
18523
18524         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
18525
18526 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
18527
18528         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
18529         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
18530         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
18531
18532 2010-05-01  Alan Modra  <amodra@gmail.com>
18533
18534         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
18535         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
18536         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
18537         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
18538         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
18539         tidying.  Don't tail-call __sigjmp_save for static lib.
18540         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
18541         save location.
18542         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
18543         (CALL_MCOUNT): Add eh info, and nop after bl.
18544         (TAIL_CALL_SYSCALL_ERROR): New macro.
18545         (PSEUDO_RET): Use it.
18546         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
18547         Correct save location of integer regs and cr.
18548         (_dl_profile_resolve): Correct cr save location.  Delete nops
18549         after bl when SHARED.  Reduce cfi size a little by better
18550         placement of cfi directives.
18551         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
18552         make a stack frame.  Instead use parm save area as a temp.
18553         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
18554         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
18555         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
18556         Don't make a stack frame for parent, use parm save area.
18557         Increase child stack frame to 112 bytes.  Don't save unused reg,
18558         and adjust reg usage.  Set up cfi on error recovery and
18559         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
18560         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
18561         (__makecontext): Add dummy nop after jump to exit.
18562         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
18563         Use correct parm save area and cr save, reduce stack frame.
18564         Correct cfi for possible PSEUDO_RET frame setup.
18565         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
18566         Branch to local label emitted by PSEUDO_RET rather than
18567         __syscall_error.
18568
18569 2010-08-12  Andreas Schwab  <schwab@redhat.com>
18570
18571         [BZ #11904]
18572         * locale/programs/locale.c (print_assignment): New function.
18573         (show_locale_vars): Use it.
18574
18575 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
18576
18577         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
18578         field.
18579         (struct statfs64): Likewise.
18580         (_STATFS_F_FLAGS): Define.
18581         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
18582         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
18583         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
18584         (ST_VALID): Define locally.
18585         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
18586         __statvfs_getflags, use the provided value.
18587         * sysdeps/unix/sysv/linux/kernel-features.h: Define
18588         __ASSUME_STATFS_F_FLAGS.
18589
18590         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
18591
18592         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
18593         Add sys/fanotify.h.
18594         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
18595         fanotify_mask for GLIBC_2.13.
18596         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
18597         fanotify_init and fanotify_mark.
18598         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
18599         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
18600
18601         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
18602         Add prlimit.
18603         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
18604         prlimit64 for GLIBC_2.13.
18605         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
18606         prlimit64.
18607         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
18608         syscall.
18609         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
18610         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
18611         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
18612         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
18613         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
18614         add prlimit alias.
18615         * sysdeps/unix/sysv/linux/prlimit.c: New file.
18616
18617         [BZ #11903]
18618         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
18619         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
18620
18621         * nss/Makefile: Add rules to build and run tst-nss-test1.
18622         * shlib-versions: Add entry for libnss_test1.
18623         * nss/nss_test1.c: New file.
18624         * nss/tst-nss-test1.c: New file.
18625
18626         * nss/nsswitch.c (__nss_database_custom): Define new variable.
18627         (__nss_configure_lookup): Set appropriate entry in
18628         __nss_configure_lookup to true.
18629         * nss/nsswitch.h: Define enum with indeces of databases in
18630         databases and __nss_database_custom arrays.  Declare
18631         __nss_database_custom.
18632         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
18633         to avoid using nscd when custom rules are installed.
18634         * nss/getXXbyYY_r.c: Likewise.
18635         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
18636
18637         * nss/nss_files/files-parse.c: Whitespace fixes.
18638
18639 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
18640
18641         [BZ #11883]
18642         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
18643         * posix/fnmatch_loop.c: Likewise.
18644
18645 2010-07-17  Andi Kleen  <ak@linux.intel.com>
18646
18647         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
18648         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
18649         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
18650         * Versions.def [GLIBC_2.13]: Add.
18651
18652 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
18653
18654         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
18655         Also fail if tpwd after pwuid call is NULL.
18656
18657 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18658
18659         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
18660         when converting to ms.
18661
18662 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18663
18664         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
18665         EOPNOTSUPP errors with ENOTTY.
18666         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
18667         EOPNOTSUPP errors with ENOTTY.
18668
18669 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
18670
18671         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
18672         Add strcasecmp_l-ssse3.
18673         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
18674         strcasecmp.
18675         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
18676         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
18677         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
18678
18679 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
18680
18681         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
18682
18683         * string/Makefile (strop-tests): Add strcasecmp.
18684         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
18685         strcasecmp_l-nonascii.
18686         (gen-as-const-headers): Add locale-defines.sym.
18687         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
18688         * sysdeps/x86_64/strcasecmp.S: New file.
18689         * sysdeps/x86_64/strcasecmp_l.S: New file.
18690         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
18691         * sysdeps/x86_64/locale-defines.sym: New file.
18692         * string/test-strcasecmp.c: New file.
18693
18694         * string/test-strcasestr.c: Test both ends of the range of characters.
18695         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
18696
18697 2010-07-29  Roland McGrath  <roland@redhat.com>
18698
18699         [BZ #11856]
18700         * manual/locale.texi (Yes-or-No Questions): Fix example code.
18701
18702 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
18703
18704         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
18705         for ld.so.
18706
18707 2010-07-27  Andreas Schwab  <schwab@redhat.com>
18708
18709         * manual/memory.texi (Malloc Tunable Parameters): Document
18710         M_PERTURB.
18711
18712 2010-07-26  Roland McGrath  <roland@redhat.com>
18713
18714         [BZ #11840]
18715         * configure.in (-fgnu89-inline check): Set and substitute
18716         gnu89_inline, not libc_cv_gnu89_inline.
18717         * configure: Regenerated.
18718         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
18719
18720 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
18721
18722         * string/test-strnlen.c: New file.
18723         * string/Makefile (strop-tests): Add strnlen.
18724         * string/tester.c (test_strnlen): Add a few more test cases.
18725         * string/tst-strlen.c: Better error reporting.
18726
18727         * sysdeps/x86_64/strnlen.S: New file.
18728
18729 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
18730
18731         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
18732         lower-latency instructions.
18733
18734 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
18735
18736         * string/test-strcasestr.c: New file.
18737         * string/test-strstr.c: New file.
18738         * string/Makefile (strop-tests): Add strstr and strcasestr.
18739         * string/str-two-way.h: Don't undefine MAX.
18740         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
18741
18742 2010-07-21  Andreas Schwab  <schwab@redhat.com>
18743
18744         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
18745         strcasestr-nonascii.
18746         (CFLAGS-strcasestr-nonascii.c): Define.
18747         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
18748         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
18749         Remove unused attribute.
18750
18751 2010-07-20  Roland McGrath  <roland@redhat.com>
18752
18753         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
18754         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
18755         ld.so.cache was broken.  With it, there is no way to disable dsocaps
18756         like LD_HWCAP_MASK can disable hwcaps.
18757
18758 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
18759
18760         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
18761
18762 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
18763
18764         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
18765         call in strcasestr.
18766         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
18767         __strcasestr_sse42_nonascii.
18768         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
18769         strcasestr-nonascii.c.
18770         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
18771
18772 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
18773
18774         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
18775         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
18776         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
18777         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
18778
18779 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
18780
18781         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
18782         fcntl.
18783
18784 2010-07-06  Andreas Schwab  <schwab@redhat.com>
18785
18786         [BZ #11577]
18787         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
18788         dl_signal_cerror.
18789
18790 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
18791
18792         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
18793         _PC_PIPE_BUF using F_GETPIPE_SZ.
18794
18795 2010-07-05  Roland McGrath  <roland@redhat.com>
18796
18797         * manual/arith.texi (Rounding Functions): Fix rint description
18798         implicit in round description.
18799
18800 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
18801
18802         * elf/Makefile: Fix linking for a few tests to make recent linker
18803         happy.
18804
18805 2010-06-30  Andreas Schwab  <schwab@redhat.com>
18806
18807         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
18808         $(common-objpfx)libc_nonshared.a.
18809
18810 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
18811
18812         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
18813         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
18814         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
18815         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
18816         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
18817         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
18818         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
18819         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
18820         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
18821         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
18822         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
18823         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
18824         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
18825         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
18826         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
18827         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
18828         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
18829         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
18830         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
18831         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
18832         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
18833         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
18834         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
18835         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
18836         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
18837         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
18838         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
18839         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
18840         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
18841         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
18842         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
18843         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
18844         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
18845         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
18846         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
18847         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
18848         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
18849         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
18850         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
18851         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
18852         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
18853         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
18854         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
18855         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
18856         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
18857         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
18858         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
18859         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
18860
18861 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
18862
18863         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
18864         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
18865         * string/memmove.c (memmove): Renamed to ...
18866         (MEMMOVE): ...this.  Default to memmove.
18867         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
18868         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
18869         (END_CHK): Define.
18870         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18871         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
18872         mempcpy-ssse3-back memmove-ssse3-back.
18873         * sysdeps/x86_64/multiarch/bcopy.S: New file .
18874         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
18875         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
18876         * sysdeps/x86_64/multiarch/memcpy.S: New file.
18877         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
18878         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
18879         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
18880         * sysdeps/x86_64/multiarch/memmove.c: New file.
18881         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
18882         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
18883         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
18884         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
18885         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
18886         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
18887         Define.
18888         (index_Fast_Copy_Backward): Define.
18889         (HAS_ARCH_FEATURE): Define.
18890         (HAS_FAST_REP_STRING): Define.
18891         (HAS_FAST_COPY_BACKWARD): Define.
18892
18893 2010-06-21  Andreas Schwab  <schwab@redhat.com>
18894
18895         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
18896         Restore proper fallback handling.
18897
18898 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
18899
18900         [BZ #11701]
18901         * posix/group_member.c (__group_member): Correct checking loop.
18902
18903         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
18904         OOM in getpwuid_r correctly.  Return error number when the caller
18905         should return, otherwise -1.
18906         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
18907         call returning > 0 value.
18908         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
18909
18910 2010-06-07  Andreas Schwab  <schwab@redhat.com>
18911
18912         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
18913         libc_nonshared.a from targets in modules-names.
18914
18915 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
18916
18917         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
18918         requires it.
18919
18920 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
18921
18922         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
18923         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
18924         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
18925         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
18926
18927 2010-06-02  Andreas Schwab  <schwab@redhat.com>
18928
18929         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
18930
18931 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
18932
18933         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
18934         and F_GETPIPE_SZ.
18935         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
18936         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
18937         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
18938         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
18939         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
18940         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
18941
18942 2010-06-14  Roland McGrath  <roland@redhat.com>
18943
18944         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
18945
18946 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
18947
18948         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
18949         __REDIRECT followed by __THROW.
18950         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
18951         * posix/getopt.h (getopt): Likewise.
18952
18953 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
18954
18955         * hurd/lookup-at.c (__file_name_lookup_at): Accept
18956         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
18957         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
18958         in AT_FLAGS.
18959         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
18960         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
18961
18962 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
18963
18964         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
18965
18966 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
18967
18968         [BZ #11640]
18969         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18970         Properly check family and model.
18971
18972 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
18973
18974         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
18975
18976 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
18977
18978         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
18979
18980 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
18981
18982         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
18983         symbol reference.
18984
18985 2010-05-19  Andreas Schwab  <schwab@redhat.com>
18986
18987         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
18988         symbol reference.
18989
18990 2010-05-21  Andreas Schwab  <schwab@redhat.com>
18991
18992         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
18993         and internal_recvmmsg.
18994         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
18995         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
18996         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
18997         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
18998
18999         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
19000         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
19001         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
19002
19003 2010-05-20  Andreas Schwab  <schwab@redhat.com>
19004
19005         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
19006
19007 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
19008
19009         POWER7 optimizations.
19010         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
19011         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
19012
19013 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
19014
19015         * version.h: Update for 2.13 development version.
19016
19017 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
19018
19019         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
19020         exceptions.  Return 0.
19021
19022 2010-05-07  Roland McGrath  <roland@redhat.com>
19023
19024         * elf/ldconfig.c (main): Add a const.
19025
19026 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
19027
19028         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
19029         (args_options): Add no-idn option.
19030         (ahosts_keys_int): Add idn_flags to ai_flags.
19031         (parse_option): Handle 'i' option to clear idn_flags.
19032
19033         * malloc/malloc.c (_int_free): Possible race in the most recently
19034         added check.  Only act on the data if no current modification
19035         happened.
19036
19037 See ChangeLog.17 for earlier changes.